/* =========================================================
   GENBA Landing Page — style.css
   トンマナ基準: Aska (https://aska.neural-opt.com/)
   誠実 × ミニマル × 機能の具体性 / 色数を絞る / 余白で語る
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root{
  --ink:        #1A2233;   /* ほぼ黒に近いネイビー。本文・見出し */
  --navy:       #1A3A6B;   /* ブランドのディープネイビー。要所のみ */
  --bg:         #FFFFFF;   /* ベース背景 */
  --bg-alt:     #F5F7FA;   /* セクション交互の薄いグレー */
  --line:       #E2E8F0;   /* 罫線・区切り */
  --muted:      #5B6472;   /* 補足テキスト */
  --accent:     #E8820C;   /* CTA・強調。使用は5%以内 */
  --accent-ink: #C56E07;   /* アクセントのホバー/濃色 */

  --font-base: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --container: 1180px;
  --container-narrow: 760px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 1px 2px rgba(26, 34, 51, .05);

  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

body{
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px){ body{ font-size: 17px; } }

/* ---------- レイアウト基盤 ---------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 480px){ .container{ padding-inline: 20px; } }
.container--narrow{ max-width: var(--container-narrow); }

.section{
  padding-block: clamp(64px, 10vw, 120px);
  border-bottom: 1px solid transparent;
}
.section--alt{ background: var(--bg-alt); }

.section-head{ max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow{
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--navy);
  margin-bottom: 14px;
}
.accent-eyebrow{ color: var(--accent-ink); }

/* ---------- タイポグラフィ ---------- */
.section-title{
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--ink);
}
.section-title--lg{ font-size: clamp(1.8rem, 4.4vw, 2.9rem); }

.lead{ margin-top: 20px; color: var(--ink); }
.note{ margin-top: 18px; color: var(--muted); font-size: .96em; }

/* ---------- ボタン ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.7em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-primary{ background: var(--accent); color: #fff; }
.btn-primary:hover{ background: var(--accent-ink); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ background: #fff; border-color: var(--muted); }
.btn-sm{ padding: .62em 1.15em; font-size: .9rem; }
.btn-lg{ padding: 1.05em 2.3em; font-size: 1.05rem; }

:focus-visible{ outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

/* ---------- ヘッダー ---------- */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled{
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.header-inner{ display: flex; align-items: center; height: 100%; gap: 20px; }
.brand{ display: inline-flex; align-items: center; color: var(--navy); min-width: 0; }
.brand-name{ font-weight: 700; font-size: 1.16rem; letter-spacing: .06em; color: var(--ink); }
.brand-name--header{
  font-size: clamp(.68rem, 1.9vw, .94rem);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(60vw, 520px);
}
.site-nav{ display: none; margin-left: auto; gap: 28px; }
.site-nav a{ color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .2s var(--ease); }
.site-nav a:hover{ color: var(--ink); }
.header-cta{ margin-left: auto; }
@media (min-width: 860px){
  .site-nav{ display: flex; }
  .header-cta{ margin-left: 28px; }
}

/* ---------- ① ヒーロー ---------- */
.hero{
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(56px, 9vw, 104px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(26,58,107,.04), transparent 60%),
    var(--bg);
}
.hero-grid{ display: grid; gap: clamp(36px, 6vw, 64px); justify-items: center; text-align: center; }

.hero-copy{ max-width: 860px; }
.hero-title{
  font-weight: 700;
  font-size: clamp(1.95rem, 5vw, 3.15rem);
  line-height: 1.4;
  letter-spacing: .005em;
  margin-top: 6px;
}
.hero-sub{
  margin-top: 22px;
  max-width: 40em;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; justify-content: center; }

/* ---------- ヒーロー直下の動画 ---------- */
.hero-video{
  padding-top: clamp(8px, 2vw, 20px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-video-player{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-soft);
}

/* ---------- ② 課題提起 ---------- */
.problem-list{ display: grid; gap: 16px; }
@media (min-width: 760px){ .problem-list{ grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.problem-item{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.problem-icon{ flex: none; width: 40px; height: 40px; color: var(--navy); }
.problem-icon svg{ width: 100%; height: 100%; }
.problem-item p{ font-size: .98rem; line-height: 1.7; }

.bridge{
  margin-top: clamp(36px, 5vw, 52px);
  padding-left: 18px;
  border-left: 3px solid var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.7;
  max-width: 40em;
}

/* ---------- ③④ 便益（2カラム・左右入替） ---------- */
.split{ display: grid; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (min-width: 900px){
  .split{ grid-template-columns: 1fr 1fr; }
  .split--reverse .split-visual{ order: 2; }
}
.split-copy{ max-width: 38em; }

/* チャットUIモック */
.chat{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 460px;
  margin-inline: auto;
}
.chat-bar{
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.chat-bar .dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.chat-title{ margin-left: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.chat-body{ padding: 22px 18px; display: flex; flex-direction: column; gap: 16px; }
.bubble{ padding: 13px 16px; border-radius: 14px; font-size: .94rem; line-height: 1.7; max-width: 88%; }
.bubble-user{
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble-ai{
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  max-width: 94%;
}
.bubble-ai p{ margin: 0; }

/* 出典チップ */
.sources{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sources--row{ margin-top: 16px; }
.chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}
.chip svg{ width: 13px; height: 13px; color: var(--navy); flex: none; }

/* ④ 便益2の強調 */
.benefit2 .callout{
  border-left: 3px solid var(--accent);
  padding: 14px 0 14px 18px;
  color: var(--ink);
}
.benefit2-img{ width: 100%; height: auto; display: block; margin-inline: auto; }

/* ---------- 根拠提示セクション直前：補足メッセージ＋画像 ---------- */
.auto-guide{
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(20px, 4vw, 40px);
}
.auto-guide-text{
  text-align: center;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: clamp(20px, 3vw, 30px);
}
.auto-guide-img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- ⑤ 信頼の担保 ---------- */
.trust-grid{ display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 820px){ .trust-grid{ grid-template-columns: repeat(3, 1fr); } }
.trust-item{ background: #fff; padding: 34px 28px; }
.trust-icon{ display: inline-flex; width: 44px; height: 44px; color: var(--navy); margin-bottom: 18px; }
.trust-icon svg{ width: 100%; height: 100%; }
.trust-item h3{ font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.trust-item p{ font-size: .94rem; color: var(--muted); line-height: 1.75; }

.evidence-card{
  margin-top: clamp(32px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  max-width: 720px;
}
.evidence-head{ display: flex; gap: 14px; align-items: flex-start; }
.evidence-badge{
  flex: none;
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 12px;
  background: var(--navy); color: #fff;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
}
.evidence-head p{ margin: 0; font-size: .98rem; line-height: 1.7; }
.evidence-label{ margin: 20px 0 0; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

/* ---------- 根拠提示セクション直下：画像2枚 ---------- */
.trust-rag-images{
  padding-top: 0;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.trust-rag-images-inner{
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}
.trust-rag-image{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- ⑥ 使い方（3ステップ） ---------- */
.steps{ display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 820px){ .steps{ grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step{
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.step-num{
  font-size: 1.4rem; font-weight: 700; color: var(--navy);
  letter-spacing: .06em; opacity: .9;
}
.step-icon{ display: inline-flex; width: 40px; height: 40px; color: var(--navy); margin: 14px 0 16px; }
.step-icon svg{ width: 100%; height: 100%; }
.step h3{ font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p{ font-size: .94rem; color: var(--muted); line-height: 1.75; }
/* PCで矢印コネクタ */
@media (min-width: 820px){
  .step:not(:last-child)::after{
    content: "";
    position: absolute;
    top: 50%; right: -16px;
    width: 12px; height: 12px;
    border-top: 1.5px solid var(--line);
    border-right: 1.5px solid var(--line);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------- ⑦ 想定シーン ---------- */
.usecase-grid{ display: grid; gap: 20px; }
@media (min-width: 820px){ .usecase-grid{ grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.usecase-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.usecase-icon{ display: inline-flex; width: 42px; height: 42px; color: var(--navy); margin-bottom: 18px; }
.usecase-icon svg{ width: 100%; height: 100%; }
.usecase-card h3{ font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.usecase-card p{ font-size: .94rem; color: var(--muted); line-height: 1.75; }

/* ---------- ⑧ オファー ---------- */
.offer-inner{ max-width: 720px; }
.offer-actions{ margin-top: 32px; }

/* ---------- ⑨ FAQ ---------- */
.faq-list{ display: grid; gap: 14px; }
.faq-item{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-q, .faq-a{
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  font-size: .82rem; font-weight: 700;
}
.faq-q{ background: var(--navy); color: #fff; }
.faq-a{ background: var(--bg-alt); color: var(--navy); border: 1px solid var(--line); }
.faq-question{ flex: 1; line-height: 1.6; }
.faq-mark{ flex: none; position: relative; width: 14px; height: 14px; }
.faq-mark::before, .faq-mark::after{
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.6px; background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.faq-mark::after{ transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mark::after{ transform: translate(-50%, -50%) rotate(0); }
.faq-answer{
  display: flex; gap: 14px; align-items: flex-start;
  padding: 0 22px 22px 22px;
  color: var(--muted);
}
.faq-answer p{ margin: 0; flex: 1; line-height: 1.8; }

/* ---------- ⑩ 最終CTA（ダーク） ---------- */
.final-cta{
  background: var(--navy);
  color: #fff;
  padding-block: clamp(72px, 11vw, 132px);
  text-align: center;
}
.final-cta-inner{ max-width: 680px; }
.final-cta-title{
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
}
.final-cta-sub{ margin: 20px 0 36px; color: rgba(255,255,255,.78); font-size: 1.02rem; }
.final-cta :focus-visible{ outline-color: #fff; }

/* ---------- フッター ---------- */
.site-footer{ background: var(--accent); color: #fff; padding-block: 48px 28px; }
.footer-inner{ display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.footer-brand .brand-name{ color: #fff; }
.footer-tagline{ margin-top: 6px; font-size: .85rem; color: #fff; }
.footer-company-info{
  margin-top: 14px;
  display: grid;
  gap: 4px;
  font-style: normal;
  font-size: .84rem;
  line-height: 1.7;
  color: #fff;
}
.footer-company-name{
  margin-bottom: 4px;
  color: #fff;
  font-weight: 500;
  line-height: 1.6;
}
.footer-nav{ display: flex; flex-wrap: wrap; gap: 14px 26px; }
.footer-nav a{ font-size: .9rem; color: #fff; transition: opacity .2s var(--ease); }
.footer-nav a:hover{ opacity: .84; }
.footer-base{ margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.32); }
.footer-base small{ font-size: .82rem; color: #fff; }
.site-footer :focus-visible{ outline-color: #fff; }

/* =========================================================
   モーション（控えめに・効果的に）
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* ヒーローのstagger（JSで .is-visible を付与） */
.hero-stagger{ opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero-stagger.is-visible{ opacity: 1; transform: none; }

/* prefers-reduced-motion: アニメ無効化 */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal, .hero-stagger{ opacity: 1; transform: none; }
}
