/* ============================================================
   炭化水素リサーチ株式会社 コーポレートサイト 共通スタイル
   ============================================================ */

:root {
  --navy: #16345c;
  --navy-deep: #0d2342;
  --blue: #1f5fa8;
  --blue-bright: #2470c2;
  --flame: #5ec1e8;
  --ink: #1d2530;
  --gray: #5f6b78;
  --line: #e2e7ec;
  --bg-soft: #f4f7fa;
  --white: #ffffff;
  --max-w: 1080px;
  --radius: 10px;
  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { opacity: .85; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------
   ヘッダー
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { opacity: 1; }

.brand img { height: 44px; width: auto; }

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.gnav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.gnav a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.gnav a:hover,
.gnav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  opacity: 1;
}

/* ヘッダーのお問い合わせボタンはサイト内ボタン（.btn-blue）と統一 */
.gnav a.nav-cta {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 10px 26px;
  border-radius: 999px;
  border-bottom: none;
  box-shadow: 0 4px 14px rgba(31, 95, 168, .3);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.gnav a.nav-cta:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
  border-bottom-color: transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   ヒーロー（トップ）
   ------------------------------------------------------------ */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 38%, var(--blue) 74%, var(--blue-bright) 100%);
  overflow: hidden;
}

.hero svg.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 104px;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.5;
  text-shadow: 0 2px 18px rgba(13, 35, 66, .45);
}

.hero .hero-sub {
  margin-top: 18px;
  font-size: clamp(14px, 1.7vw, 17px);
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .88);
}

.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   ボタン
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  padding: 13px 34px;
  border-radius: 999px;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }

.btn-primary { background: #fff; color: var(--navy); box-shadow: 0 4px 16px rgba(13, 35, 66, .25); }
.btn-primary:hover { background: #eaf3fc; }

.btn-outline { border: 1.5px solid rgba(255, 255, 255, .85); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }

.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(31, 95, 168, .3); }
.btn-blue:hover { background: var(--navy); }

.btn-ghost { border: 1.5px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: #eef5fc; }

/* ------------------------------------------------------------
   下層ページ タイトル帯
   ------------------------------------------------------------ */
.page-hero {
  background:
    linear-gradient(100deg, rgba(13, 35, 66, .92) 0%, rgba(31, 95, 168, .88) 100%);
  color: #fff;
  padding: 56px 0;
}

.page-hero .en {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--flame);
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 6px;
}

/* ------------------------------------------------------------
   セクション共通
   ------------------------------------------------------------ */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }

.sec-head { margin-bottom: 36px; }

.sec-head .en {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--navy);
  text-transform: uppercase;
}

.sec-head .ja {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  padding-left: 34px;
  position: relative;
}
.sec-head .ja::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 2px;
  background: var(--flame);
}

.lead { color: var(--ink); max-width: 760px; }

/* ------------------------------------------------------------
   NEWS リスト（トップ）
   ------------------------------------------------------------ */
.news-list { list-style: none; border-top: 1px solid var(--line); }

.news-list li { border-bottom: 1px solid var(--line); }

.news-list .news-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 6px;
  color: var(--ink);
  flex-wrap: wrap;
}

.news-list time {
  font-size: 14px;
  color: var(--gray);
  font-weight: 600;
  white-space: nowrap;
  font-feature-settings: "tnum";
}

.news-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue);
  background: #e8f1fa;
  border-radius: 4px;
  padding: 2px 10px;
  white-space: nowrap;
}

.news-list .news-title { font-size: 15px; flex: 1; min-width: 240px; }

/* ------------------------------------------------------------
   カードグリッド
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

a.card:hover {
  box-shadow: 0 10px 28px rgba(22, 52, 92, .12);
  border-color: #c9d8e8;
  transform: translateY(-2px);
  opacity: 1;
}

.card .card-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--flame);
}

.card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: .04em; }

.card p { font-size: 14px; color: var(--gray); line-height: 1.75; }

.card .card-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.card .card-more::after { content: " →"; }

/* ------------------------------------------------------------
   会社概要テーブル
   ------------------------------------------------------------ */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px 14px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 200px;
  color: var(--navy);
  font-weight: 700;
  background: var(--bg-soft);
  white-space: nowrap;
}

.spec-table ol { padding-left: 1.4em; }
.spec-table ol li { margin: 2px 0; }

/* ------------------------------------------------------------
   Naphtha Portal 紹介
   ------------------------------------------------------------ */
.app-lockup {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.app-lockup img { width: 124px; border-radius: 26px; box-shadow: 0 10px 30px rgba(22, 52, 92, .18); }

.app-lockup .app-name { font-size: 26px; font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.app-lockup .app-copy { font-size: 15px; color: var(--gray); margin-top: 4px; }
.app-lockup .app-release {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 3px 14px;
}

.logo-story {
  display: flex;
  gap: 28px;
  align-items: center;
  background: linear-gradient(112deg, var(--navy-deep), var(--blue));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 36px;
  flex-wrap: wrap;
}

.logo-story img { width: 96px; border-radius: 20px; flex-shrink: 0; }

.logo-story h3 { font-size: 18px; letter-spacing: .06em; margin-bottom: 8px; color: var(--flame); }

.logo-story p { font-size: 14.5px; line-height: 1.9; color: rgba(255, 255, 255, .92); flex: 1; min-width: 260px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.feature .f-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--flame);
}

.feature h3 { font-size: 15.5px; font-weight: 700; margin: 6px 0 8px; line-height: 1.5; }

.feature p { font-size: 13px; color: var(--gray); line-height: 1.7; }

.member-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.tier.tier-report { border-color: var(--blue); box-shadow: 0 6px 20px rgba(31, 95, 168, .1); }

.tier h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.tier p { font-size: 13.5px; color: var(--gray); }

/* ------------------------------------------------------------
   セミナーカード
   ------------------------------------------------------------ */
.seminar-list { display: grid; gap: 20px; }

.seminar-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  flex-wrap: wrap;
}

.seminar-date {
  min-width: 120px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 12px 10px;
}
.seminar-date .d-label { font-size: 11px; font-weight: 700; color: var(--gray); letter-spacing: .1em; }
.seminar-date .d-value { font-size: 15px; font-weight: 800; color: var(--navy); margin-top: 2px; }

.seminar-body { flex: 1; min-width: 240px; }

.seminar-body h3 { font-size: 17px; font-weight: 700; }

.seminar-body .s-meta { font-size: 13px; color: var(--gray); margin-top: 4px; }

.seminar-body p { font-size: 14px; color: var(--ink); margin-top: 8px; }

.seminar-status {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #b06000;
  background: #fdf3e3;
  border-radius: 4px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ------------------------------------------------------------
   フォーム埋め込み
   ------------------------------------------------------------ */
.form-embed {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.form-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* フォーム全体が内部スクロールなしで表示される高さ（実測値＋余裕） */
.form-embed iframe.form-trial { height: 1520px; }
.form-embed iframe.form-seminar { height: 1500px; }
.form-embed iframe.form-contact { height: 1320px; }

@media (max-width: 820px) {
  .form-embed iframe.form-trial { height: 1880px; }
  .form-embed iframe.form-seminar { height: 1720px; }
  .form-embed iframe.form-contact { height: 1520px; }
}

.form-fallback {
  text-align: center;
  font-size: 13.5px;
  color: var(--gray);
  margin-top: 14px;
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  flex-wrap: wrap;
}
.qr-block img { width: 132px; }
.qr-block p { font-size: 14px; color: var(--gray); flex: 1; min-width: 220px; }

/* ------------------------------------------------------------
   採用
   ------------------------------------------------------------ */
.recruit-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, var(--navy-deep), var(--blue));
  border-radius: var(--radius);
  color: #fff;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* 採用画像をゆっくり動かして背景に敷く（Ken Burns） */
.recruit-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/img/recruit-bg.png) center 38% / cover no-repeat;
  transform: scale(1.12);
  animation: recruit-pan 24s ease-in-out infinite alternate;
  z-index: 0;
}

/* テキスト可読性を保つネイビーのオーバーレイ */
.recruit-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 35, 66, .9) 0%, rgba(13, 35, 66, .72) 32%, rgba(22, 52, 92, .45) 62%, rgba(31, 95, 168, .32) 100%);
  z-index: 1;
}

.recruit-banner > * { position: relative; z-index: 2; }

.recruit-banner h3 { font-size: 21px; letter-spacing: .05em; }
.recruit-banner p { font-size: 14px; color: rgba(255, 255, 255, .9); margin-top: 6px; max-width: 560px; }

@keyframes recruit-pan {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to   { transform: scale(1.22) translate3d(-3%, -2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .recruit-banner::before { animation: none; transform: scale(1.12); }
}

/* ------------------------------------------------------------
   フッター
   ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand img { height: 40px; width: auto; }

.footer-brand .f-name { font-size: 14.5px; font-weight: 700; margin-top: 12px; }
.footer-brand .f-addr { font-size: 12.5px; color: var(--gray); margin-top: 6px; line-height: 1.7; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin: 7px 0; }

.footer-col a { color: var(--gray); font-size: 13px; }
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  letter-spacing: .05em;
  text-align: center;
  padding: 14px 24px;
}

/* ------------------------------------------------------------
   スクロールリビール
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .brand-name { font-size: 13px; }
}

/* タブレット幅でヘッダーが崩れるため、960px以下はハンバーガーメニューに切替 */
@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .gnav {
    position: fixed;
    top: 69px;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }

  .gnav.open { transform: none; opacity: 1; visibility: visible; }

  .gnav ul { flex-direction: column; gap: 0; padding: 12px 0; }

  .gnav li { width: 100%; }

  .gnav a {
    display: block;
    padding: 13px 28px;
    border-bottom: none;
  }

  .gnav a.nav-cta { margin: 10px 24px 6px; text-align: center; }

  .hero-inner { padding: 64px 24px 72px; }
}

@media (max-width: 560px) {
  .hero-sub br { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .member-tiers { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .spec-table th { width: 110px; white-space: normal; }
  .brand img { height: 36px; }
  .brand-name { display: none; }
  .section { padding: 52px 0; }
}
