@charset "utf-8";
/* =========================================================================
   abceed for school — AI添削プラン LP
   site.css : 共通スタイル（バニラCSS / ビルド工程なし）

   構成
     0. tokens import / plan accent
     1. base & utilities
     2. keyframes / reveal
     3. buttons
     4. 画像スロット（.ph 枠 + .ph__img 実画像）
     5. header
     6. hero
     7. kpi
     8. logo strip
     9. problem
    10. value (AI添削の4大価値)
    11. how it works
    12. strength
    13. contents
    14. voice
    15. flow
    16. faq
    17. plans
    18. cta
    19. footer
    20. sticky cta
    21. page shell（フォーム/完了ページ）
    22. breadcrumb
    23. form
    24. thanks（完了ページ）
    25. interview（導入事例の詳細ページ）
   ========================================================================= */

@import "./tokens/fonts.css";
@import "./tokens/colors.css";
@import "./tokens/typography.css";
@import "./tokens/spacing.css";

/* ------------------------------------------------------------------ *
 * 0. プラン別アクセント
 *    8プラン展開時はこのブロックだけを差し替える。
 *    --accent は tokens/colors.css の定義を上書きしている。
 * ------------------------------------------------------------------ */
:root {
  --accent: #ff223c;
  --accent-rgb: 255, 34, 60;   /* rgba() 用（影・マーカー） */
  --accent-tint: #fcedee;      /* Hero / CTA / Strength 背景 */
  --accent-chip: #fdecee;      /* チップ・表組みヘッダー */
  --accent-rail: #e4c3c8;      /* 導入フローの点線レール */
  --accent-hairline: #f5d9dd;  /* 資料画像の枠線 */
  --accent-hover: #d81028;     /* テキストリンクのホバー（アクセントの暗色） */

  /* 汎用（プランに依らない） */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-form: 0 16px 48px rgba(20, 22, 30, .08); /* フォームカード / 画像枠 */
  --nav-ink: #4a4d57;
  --ink-900: #101116;
  --ink-800: #1c1e25;
  --ink-700: #2a2c34;
  --ink-600: #3c3f48;
  --ink-550: #3d404a;
  --line: #ececef;
  --line-lightest: #f0f0f2;
  --header-h: 68px;   /* 固定ヘッダー実測 67px。アンカー着地位置の逃げに使う */
}

/* ------------------------------------------------------------------ *
 * 1. base
 * ------------------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-body);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }

.container { max-width: var(--content-max); margin: 0 auto; }
.container--1100 { max-width: 1100px; }
.container--820 { max-width: 820px; }

.section { padding: clamp(32px, 4vw, 52px) clamp(18px, 5vw, 56px); background: var(--surface); }
.section--alt { background: var(--surface-alt); }
.section--soft { background: var(--accent-tint); }
.section--kpi { padding: clamp(26px, 3.5vw, 40px) clamp(18px, 5vw, 56px); }

/* セクション見出し */
.sec-head { text-align: center; margin-bottom: clamp(30px, 5vw, 60px); }
.sec-head--tight { margin-bottom: clamp(30px, 5vw, 56px); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow--lg { margin-bottom: 14px; }
.eyebrow--cta { margin-bottom: 16px; }

.sec-head__title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .05em;
  margin: 0;
  color: var(--ink-900);
}
.sec-head__title--gap { margin: 0 0 16px; }
.sec-head__title--gap-sm { margin: 0 0 14px; }

.sec-head__lead {
  font-size: clamp(14px, 1.1vw, 15.5px);
  color: var(--ink-muted);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 42em;
}
.sec-head__lead--44 { line-height: 1.85; max-width: 44em; }
.sec-head__lead--plain { max-width: none; }
.sec-head__lead strong { color: var(--accent); font-weight: 800; }

/* ------------------------------------------------------------------ *
 * 2. keyframes / スクロール出現
 * ------------------------------------------------------------------ */
@keyframes ab-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ab-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ab-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 初期状態を隠すのは JS が動く環境だけ（html.js は <head> のインラインscriptが付与）。
   JS 無効／読み込み失敗時はそのまま表示される。 */
[data-reveal] {
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
}
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-reveal].faq-item { opacity: 1; transform: none; transition: none; }
  .logostrip__track { animation: none; }
  .marker__ink { animation: none !important; transform: scaleX(1) !important; }
  .sticky-cta__btn { animation: none; }
}

/* ------------------------------------------------------------------ *
 * 3. buttons
 * ------------------------------------------------------------------ */
.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), .26);
  transition: transform .2s, box-shadow .2s;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(var(--accent-rgb), .34); }

.btn--ghost-dark {
  background: #fff;
  color: var(--ink-body);
  border: 1.5px solid var(--ink-body);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn--ghost-dark:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(21, 22, 28, .08); }

/* 白地＋アクセント枠（完了ページの「トップページへ戻る」） */
.btn--outline-accent {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn--outline-accent:hover { background: var(--accent); color: #fff; }

/* サイズ */
.btn--sm { height: 40px; min-width: 132px; padding: 0 20px; font-size: 13px; }
.btn--menu { flex: 1; height: 46px; font-size: 14px; }

/* Hero / CTA / 追従 の大ボタンはプロトタイプが <button>（UA既定 line-height:normal）。
   実装は <a> なので body の 1.6 を継承してしまい、文字が 0.35px ずれる。明示して揃える。
   letter-spacing はアクセント塗り（17px）だけに付く。ghost は素の字送り。 */
.btn--lg,
.btn--xl,
.sticky-cta__btn { line-height: normal; }

.btn--lg { height: 60px; min-width: 220px; padding: 0 32px; font-size: 17px; }
.btn--lg.btn--ghost-dark { font-size: 15px; border-width: 2px; }
.btn--lg.btn--primary { letter-spacing: .01em; box-shadow: 0 12px 30px rgba(var(--accent-rgb), .28); }
.btn--lg.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 30px rgba(var(--accent-rgb), .28); }

.btn--xl { height: 62px; min-width: 240px; padding: 0 36px; font-size: 17px; gap: 11px; }
.btn--xl.btn--ghost-dark { font-size: 15px; border-width: 2px; gap: 10px; }
.btn--xl.btn--primary { letter-spacing: .01em; box-shadow: 0 14px 36px rgba(var(--accent-rgb), .28); }
.btn--xl.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 36px rgba(var(--accent-rgb), .28); }

/* 完了ページの「トップページへ戻る」。高さ固定ではなく padding で立ち上がる 57px。 */
.btn--done { padding: 15px 34px; font-size: 15px; gap: 10px; }

/* 非活性（フォーム送信ボタンの checkValidity() 連動）。
   サイズ修飾子（.btn--xl.btn--primary 等）と同じ詳細度なので、必ずそれらより後に置くこと。 */
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:hover { transform: none; box-shadow: none; }

/* ------------------------------------------------------------------ *
 * 4. 画像スロット
 *    .ph / .ph--* が「枠」（サイズ・角丸・影）、.ph__img が「中身」。
 *    28箇所すべて実画像組み込み済み（assets/img/slots/、data-slot 属性で識別）。
 *    以下の .ph::before / .ph__icon / .ph__cap は画像未定スロット用の
 *    プレースホルダ表現で、現状の使用箇所は無い（枠だけ先に作る時に使う）。
 * ------------------------------------------------------------------ */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
  text-align: center;
  background: rgba(0, 0, 0, .04);
  color: rgba(0, 0, 0, .55);
  font-size: 13px;
  line-height: 1.3;
}
/* 破線リング（枠線と重ならないよう内側に描く） */
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(0, 0, 0, .25);
  border-radius: inherit;
  pointer-events: none;
}
.ph__icon { opacity: .45; flex: none; }
.ph__cap { max-width: 90%; font-weight: 500; letter-spacing: .01em; }
.ph--icon-only .ph__cap { display: none; }

.ph--circle { width: 84px; height: 84px; border-radius: 50%; }
.ph--shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 22, 30, .07);
  margin-bottom: 20px;
}
.ph--wide { width: 132px; height: 72px; border-radius: 12px; }
/* 72px角の枠にはキャプションが収まらないためアイコンのみ（内容は data-placeholder 参照） */
.ph--icon72 { width: 72px; height: 72px; border-radius: 12px; }
.ph--icon72 .ph__cap { display: none; }
.ph--tile { width: 100%; max-width: 180px; height: 88px; border-radius: 10px; margin: 0 auto 12px; }
.ph--photo { flex: 0 0 auto; width: 80px; height: 80px; border-radius: 12px; }
.ph--photo .ph__cap { display: none; }
/* 資料請求ページ左カラムの画像枠 */
.ph--form {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-form);
}

/* --- 実画像を組み込んだスロット（assets/img/slots/） -------------------
   枠（.ph--circle / --shot / --wide / --icon72 / --tile / --photo / --form）は
   サイズ・角丸だけを担い、中身を .ph__img が埋める。
   プレースホルダ表現（グレー地・破線リング）は解除する。
   ＝ プロトタイプの image-slot が data-filled 時に
      .frame{background:transparent} / .ring{display:none} にするのと同じ。   */
.ph--img {
  display: block;
  padding: 0;
  background: none;
}
.ph--img::before { content: none; }
.ph__img {
  display: block;
  width: 100%;
  height: 100%;
  /* image-slot の既定 fit="cover" 相当 */
  object-fit: cover;
  object-position: 50% 50%;
}
/* 課題提起の丸アイコンだけプロトタイプが fit="contain" */
.ph--contain .ph__img { object-fit: contain; }

/* --- 表示調整つきスロット（デザイナーが枠内で拡縮・移動したもの） --------
   プロトタイプの .image-slots.state.json が持つ s / x / y を再現する。
   image-slot.js の _applyView() は
     base = max(枠幅/画像幅, 枠高/画像高)         … cover の基準倍率
     描画サイズ = 画像サイズ × base × s
     中心位置   = left:(50 + x)% / top:(50 + y)%   （枠に対する％）
   としている。x / y の単位は px ではなく「枠の幅・高さに対する％」で、
   同梱 README の「16.4px」等の px 表記は誤り（left/top の％値がそのまま実体）。

   base × s は枠の縦横比で決まる（＝レスポンシブで変わる）ため、
   ％固定ではなく次の形で厳密に表す。
     ・.ph--tile … 枠の高さが 88px 固定なので
                   width: max(枠幅基準 = 100×s ％, 枠高基準 = 画像縦横比 × 88px × s)
     ・.ph--shot … 枠の縦横比が 16/10 固定で常に幅基準になるので width: 100×s ％
   いずれも height:auto で画像の縦横比を保つ。                              */
.ph--adj .ph__img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: fill;
}

/* 収録コンテンツ（枠 = 幅可変 × 高さ88px） */
[data-slot="content-1"] .ph__img { width: max(84.462%, 157.26px); left: 50.223%; }
[data-slot="content-2"] .ph__img { width: max(79.270%, 156.65px); left: 50.065%; }
[data-slot="content-3"] .ph__img { width: max(86.844%, 149.34px); }
[data-slot="content-4"] .ph__img { width: max(101.868%, 207.92px); left: 66.416%; top: 50.934%; }
[data-slot="content-5"] .ph__img { width: max(81.297%, 102.78px); top: 49.699%; }

/* 3ステップのスクリーンショット（枠 = 16/10 固定・上寄せ調整） */
[data-slot="step-1"] .ph__img { width: 99.921%; top: 76.237%; }
[data-slot="step-2"] .ph__img { width: 100%; top: 52%; } /* 実スクショ差し替えに伴い上端揃えへ調整(2026-08-31) */
[data-slot="step-3"] .ph__img { width: 100%; top: 60%; } /* 同上 */

/* ------------------------------------------------------------------ *
 * 5. header
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(20, 22, 30, .07); }

.site-header__bar { padding: 13px clamp(18px, 5vw, 48px); }
.site-header__row {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.site-brand__logo { height: 34px; width: auto; display: block; }
.site-brand__label {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-body);
  letter-spacing: .01em;
  padding-left: 13px;
  border-left: 1px solid var(--border-divider);
  white-space: nowrap;
}

.site-nav { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.site-nav__link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--nav-ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s;
}
.site-nav__link:hover { color: var(--accent); }

.site-header__actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.site-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 5px;
  transition: background .2s;
}
.site-burger span { display: block; width: 24px; height: 2px; background: var(--ink-body); border-radius: 2px; }
.site-burger:hover { background: #f4f4f6; }

.site-menu {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 14px clamp(18px, 5vw, 48px) 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-menu[hidden] { display: none; }
.site-menu__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  cursor: pointer;
  padding: 11px 0;
  border-bottom: 1px solid #f2f2f4;
  transition: color .2s;
}
.site-menu__link:hover { color: var(--accent); }
.site-menu__actions { display: flex; gap: 10px; margin-top: 14px; }

/* コンパクト（ハンバーガー）モード — JS が幅を実測して付与 */
.site-header.is-compact .site-nav,
.site-header.is-compact .site-header__actions { display: none; }
.site-header.is-compact .site-burger { display: flex; }
.site-header:not(.is-compact) .site-menu { display: none; }

/* ------------------------------------------------------------------ *
 * 6. hero
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--accent-tint);
  padding: clamp(40px, 4.5vw, 64px) clamp(18px, 5vw, 56px);
  overflow: hidden;
}
.hero__grid {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 22px;
  white-space: nowrap;
}
.hero__eyebrow-bar { display: block; width: 34px; height: 2px; background: var(--accent); }

.hero__title {
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .04em;
  white-space: nowrap;
  margin: 0 0 20px;
  color: var(--ink-900);
}

/* 赤アンダーライン（描画アニメ） */
.marker { position: relative; display: inline-block; }
.marker__ink {
  position: absolute;
  left: -.06em;
  right: -.06em;
  bottom: .02em;
  height: .5em;
  background: rgba(var(--accent-rgb), .3);
  transform: scaleX(0);
  transform-origin: left;
}
.marker__text { position: relative; }
.hero__title .marker:nth-of-type(1) .marker__ink { animation: ab-draw .7s .65s var(--ease-out) forwards; }
.hero__title .marker:nth-of-type(2) .marker__ink { animation: ab-draw .7s .85s var(--ease-out) forwards; }

.hero__lead {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--ink-secondary);
  line-height: 1.9;
  margin: 0 0 32px;
  max-width: 30em;
}

.hero__cta { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; justify-content: flex-start; }

.hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: min(52vh, 460px);
  width: 100%;
  margin: 0 0 0 auto;
}
.hero__media-back {
  position: absolute;
  inset: 0 26px 44px 0;
  border-radius: 18px;
  background-image: url("../img/scene/classroom-wide.webp");
  background-size: cover;
  background-position: right center;
  box-shadow: 0 24px 56px rgba(20, 22, 30, .2);
}
.hero__media-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  border: 5px solid #fff;
  background-image: url("../img/scene/tablet-girl.webp");
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(20, 22, 30, .26);
}

/* ------------------------------------------------------------------ *
 * 7. kpi
 * ------------------------------------------------------------------ */
.kpi-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(20px, 3vw, 8px);
}
.kpi-cell {
  text-align: center;
  padding: 6px clamp(8px, 2vw, 24px);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}
.kpi-cell + .kpi-cell { border-left: 1px solid var(--line); }
.kpi-cell__num { font-weight: 800; font-size: clamp(34px, 5vw, 54px); line-height: 1; color: var(--accent); }
.kpi-cell__unit { font-size: .4em; font-weight: 700; margin-left: 3px; color: var(--ink-900); }
.kpi-cell__label { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink-600); margin-bottom: 12px; }

/* ------------------------------------------------------------------ *
 * 8. logo strip
 * ------------------------------------------------------------------ */
.logostrip { background: var(--surface); padding: clamp(30px, 3.5vw, 42px) 0; border-bottom: 1px solid var(--line); }
.logostrip__note {
  text-align: center;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  color: var(--ink-600);
  margin: 0 0 28px;
  padding: 0 clamp(18px, 5vw, 56px);
  line-height: 1.8;
}
.logostrip__note strong { color: var(--accent); font-weight: 900; }
.logostrip__viewport { width: 100%; overflow: hidden; }
/* 0827: ロゴ帯を v3 ストリップに差し替え。画像右端に約120px(=表示67px)の余白が
   含まれるようになったため margin-right は不要（入れると継ぎ目だけ間隔が広がる）。
   ストリップの実寸が約1.85倍になったので、スクロール速度を保つため 56s → 104s。 */
.logostrip__track { display: flex; width: max-content; animation: ab-marquee 104s linear infinite; }
.logostrip__track img { height: 56px; width: auto; object-fit: contain; flex: none; }

/* ------------------------------------------------------------------ *
 * 9. problem
 * ------------------------------------------------------------------ */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.problem-card__media { margin-bottom: 18px; }
.problem-card__text { font-size: 14.5px; line-height: 1.85; color: var(--ink-550); margin: 0; }

/* ------------------------------------------------------------------ *
 * 10. value（AI添削の4大価値）
 * ------------------------------------------------------------------ */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value-card {
  background: var(--accent-tint);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out),
    border-color .3s;
}
.value-card:hover { border-color: var(--accent); }
.value-card__num { font-weight: 800; font-size: 30px; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.value-card__title { font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; color: var(--ink-900); margin: 0 0 12px; line-height: 1.5; }
.value-card__body { font-size: 14px; color: var(--ink-muted); line-height: 1.85; margin: 0; }

/* ------------------------------------------------------------------ *
 * 11. how it works
 * ------------------------------------------------------------------ */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px; }
.step__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.step__title { font-size: 17px; font-weight: 700; color: var(--ink-900); margin: 0 0 8px; }
.step__text { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.8; margin: 0; }

/* ------------------------------------------------------------------ *
 * 12. strength
 * ------------------------------------------------------------------ */
.strength-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.strength-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(20, 22, 30, .05);
  transition:
    opacity .7s var(--ease-out),
    transform .25s var(--ease-out);
}
.strength-card.is-revealed:hover { transform: translateY(-4px); }
.strength-card__media { height: 72px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.strength-card__title { font-size: 14px; font-weight: 700; color: var(--ink-800); margin: 0 0 8px; line-height: 1.5; }
.strength-card__text { font-size: 12px; color: var(--ink-muted); line-height: 1.7; margin: 0; }

/* ------------------------------------------------------------------ *
 * 13. contents
 * ------------------------------------------------------------------ */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(20, 22, 30, .05);
  transition:
    opacity .7s var(--ease-out),
    transform .25s var(--ease-out);
}
.content-card.is-revealed:hover { transform: translateY(-4px); }
.content-card__label { font-size: 13px; font-weight: 700; color: var(--ink-700); }

/* ------------------------------------------------------------------ *
 * 14. voice
 *     0827: 掲載を3校（灘 / 北鎌倉女子学園 / 名古屋大谷）に整理。
 *     カードは校章パターンのみ（顔写真・アバター案は廃止）・肩書は非表示。
 *     カード末尾にインタビュー詳細ページへの「READ MORE」を追加したので、
 *     本文の長さが揃わなくてもリンクが下端で揃うよう flex column にしている。
 * ------------------------------------------------------------------ */
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.voice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 8px 26px rgba(20, 22, 30, .05);
  display: flex;
  flex-direction: column;
  transition:
    opacity .7s var(--ease-out),
    transform .25s var(--ease-out);
}
.voice-card.is-revealed:hover { transform: translateY(-4px); }
.voice-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-lightest);
}
.voice-card__id { min-width: 0; }
.voice-card__name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.voice-card__meta { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin-top: 2px; }
.voice-card__title {
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.5;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}
.voice-card__text { font-size: 13px; color: var(--ink-secondary); line-height: 1.9; margin: 0; }

/* 校章。素材の縦横比がまちまち（125×106 / 160×160 / 155×129）なので
   80px角の枠に contain で収める。枠自体は .ph--photo と同寸だが背景・角丸は無し。 */
.voice-card__crest { flex: none; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.voice-card__crest img { display: block; width: 80px; height: 80px; object-fit: contain; }

/* インタビュー詳細ページへの導線。margin-top:auto でカード下端に押し下げる。 */
.voice-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  text-decoration: none;
}
.voice-card__more svg { flex: none; }

/* ------------------------------------------------------------------ *
 * 15. flow
 * ------------------------------------------------------------------ */
.flow-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.flow-rail {
  position: absolute;
  top: 34px;
  left: calc(16.66% + 8px);
  right: calc(16.66% + 8px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent-rail) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.flow-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.flow-step__num {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), .16);
}
.flow-step__num--filled { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(var(--accent-rgb), .28); }
.flow-step__chip {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-chip);
  border-radius: var(--radius-pill);
  padding: 6px 17px;
  letter-spacing: .02em;
}
.flow-step__chip--filled { font-weight: 800; color: #fff; background: var(--accent); }
.flow-step__title { font-size: 22px; font-weight: 700; color: var(--ink-900); margin: 14px 0 8px; }
.flow-step__text { font-size: 12.5px; color: var(--ink-muted); line-height: 1.8; margin: 0 0 16px; max-width: 20em; flex: 1; }

/* 書類プレビュー */
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(20, 22, 30, .06);
  box-sizing: border-box;
  text-align: left;
  overflow: hidden;
}
.doc--form { position: relative; width: 118px; height: 82px; padding: 12px 12px 0; }
.doc--list { width: 118px; height: 82px; padding: 10px; }
.doc--manual { width: 74px; height: 82px; padding: 10px 9px 0; }
.doc--ids { width: 74px; height: 82px; padding: 10px; }
.doc-pair { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 8px; align-items: flex-start; }

.doc__title { font-size: 8px; font-weight: 800; color: var(--ink-900); letter-spacing: .04em; white-space: nowrap; }
.doc__title--xs { font-size: 6.5px; letter-spacing: .01em; }
.doc__title--tight { margin-bottom: 6px; }
.doc__rule { height: 1px; background: var(--line); margin: 6px 0 8px; }
.doc__line { height: 5px; background: var(--line-lightest); border-radius: 2px; margin-bottom: 5px; }
.doc__line--thin { height: 4px; border-radius: 1px; margin-bottom: 4px; }
.doc__line--last { margin-bottom: 0; }
.doc__line--w55 { width: 55%; }
.doc__line--w60 { width: 60%; }
.doc__line--w70 { width: 70%; }
.doc__line--w80 { width: 80%; }
.doc__line--w88 { width: 88%; }
.doc__line--w90 { width: 90%; }
.doc__stamp { position: absolute; bottom: 8px; right: 10px; width: 22px; height: 22px; border: 1.5px solid var(--accent-rail); border-radius: 3px; }
.doc__table { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 3px; }
.doc__table--2 { grid-template-columns: 1.4fr .8fr; }
.doc__cell { height: 6px; background: var(--line-lightest); border-radius: 1px; }
.doc__cell--head { background: var(--accent-chip); }

/* ------------------------------------------------------------------ *
 * 16. faq
 * ------------------------------------------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 4px 18px rgba(20, 22, 30, .04);
  transition:
    opacity .6s var(--ease-out),
    transform .6s var(--ease-out);
}
.js [data-reveal].faq-item { transform: translateY(20px); }
.js [data-reveal].faq-item.is-revealed { transform: none; }

.faq-q {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  font-family: inherit;
  /* button の UA 既定 line-height:normal を打ち消す。
     これが無いと「＋」の行box が縮み、行の高さが 77px→74px になる。 */
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}
.faq-badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-badge--q { background: #eceef1; color: var(--accent); }
.faq-badge--a { background: var(--line-lightest); color: var(--ink-faint); margin-top: 16px; }
.faq-q__text { flex: 1; font-weight: 700; font-size: 14.5px; color: var(--ink-body); line-height: 1.5; transition: color .2s; }
.faq-q:hover .faq-q__text { color: var(--accent); }
.faq-sign { flex-shrink: 0; color: var(--accent); font-size: 22px; font-weight: 400; width: 20px; text-align: center; }

.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.4, 0, .2, 1); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; display: flex; gap: 14px; align-items: flex-start; min-height: 0; }
.faq-a__text { flex: 1; font-size: 13.5px; color: var(--ink-secondary); line-height: 1.85; margin-top: 16px; }

/* ------------------------------------------------------------------ *
 * 17. plans
 * ------------------------------------------------------------------ */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(20, 22, 30, .05);
  transition:
    opacity .7s var(--ease-out),
    transform .25s var(--ease-out),
    box-shadow .25s;
}
.plan-card.is-revealed:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 22, 30, .1); }
.plan-card__head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.plan-card__title { font-size: 17px; font-weight: 800; color: var(--ink-800); margin: 0; letter-spacing: -.01em; }
.plan-card__title--solo { margin: 0 0 10px; }
.plan-card__badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: var(--radius-pill);
  padding: 4px 13px;
}
.plan-card__text { font-size: 13px; color: var(--ink-muted); line-height: 1.75; margin: 0; }

.plan-note {
  margin-top: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px) clamp(22px, 3vw, 36px);
  box-shadow: 0 6px 20px rgba(20, 22, 30, .05);
}
.plan-note__title { font-size: 17px; font-weight: 800; color: var(--ink-800); margin: 0 0 14px; letter-spacing: -.01em; }
.plan-note__text { font-size: 14px; color: var(--ink-muted); line-height: 1.9; margin: 0; }

/* ------------------------------------------------------------------ *
 * 18. cta
 * ------------------------------------------------------------------ */
.cta {
  position: relative;
  background: var(--accent-tint);
  color: var(--ink-body);
  padding: clamp(32px, 4vw, 52px) clamp(18px, 5vw, 56px);
  overflow: hidden;
}
.cta__inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.cta__title { font-size: clamp(26px, 3.6vw, 42px); font-weight: 700; line-height: 1.45; letter-spacing: .05em; margin: 0 0 18px; }
.cta__lead { font-size: clamp(14px, 1.1vw, 16px); color: var(--ink-secondary); line-height: 1.9; margin: 0 auto 36px; max-width: 38em; }
.cta-doc { display: flex; justify-content: center; align-items: center; max-width: 26em; margin: 0 auto 44px; }
.cta-doc img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--accent-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 56px rgba(20, 22, 30, .16);
}
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------------ *
 * 19. footer
 * ------------------------------------------------------------------ */
.site-footer {
  background: var(--surface-alt);
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 56px) clamp(18px, 5vw, 56px) clamp(28px, 3vw, 36px);
}
.site-footer__inner { max-width: var(--content-max); margin: 0 auto; }
.site-footer__links { display: flex; justify-content: center; gap: 22px 28px; font-size: 12px; flex-wrap: wrap; }
.site-footer__links a { color: inherit; text-decoration: none; cursor: pointer; transition: color .2s; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__legal {
  border-top: 1px solid var(--line);
  margin-top: clamp(28px, 3vw, 36px);
  padding-top: clamp(22px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.site-footer__note { font-size: 11px; line-height: 1.7; color: #a2a4ac; }
.site-footer__copy { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

/* ------------------------------------------------------------------ *
 * 20. sticky cta
 * ------------------------------------------------------------------ */
.sticky-cta { position: fixed; bottom: 28px; right: 28px; z-index: 80; }
.sticky-cta[hidden] { display: none; }
.sticky-cta__btn {
  height: 62px;
  width: 240px;
  max-width: 240px;
  padding: 0 36px;
  font-size: 17px;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(20, 22, 30, .4);
  animation: ab-rise .4s ease;
}
.sticky-cta__btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 30px rgba(20, 22, 30, .4); }

/* ------------------------------------------------------------------ *
 * 21. page shell
 *     フォーム / 完了ページは本文が短いのでフッターを最下部に固定する。
 *     header / main / footer は body の直下に置くこと。
 * ------------------------------------------------------------------ */
.page-flex { min-height: 100vh; display: flex; flex-direction: column; }
.page-flex > main { flex: 1; }

/* ------------------------------------------------------------------ *
 * 22. breadcrumb
 *     リンク先とラベルは form.js が document.referrer から差し替える。
 *     JS が動かない場合は HTML に書いた既定値（トップページ）のまま。
 * ------------------------------------------------------------------ */
.breadcrumb {
  max-width: var(--content-max);
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 0 clamp(18px, 5vw, 48px);
  font-size: 12px;
  color: var(--ink-faint);
}
.breadcrumb__link { color: var(--ink-faint); text-decoration: none; transition: color .2s; }
.breadcrumb__link:hover { color: var(--accent); }
.breadcrumb__sep { margin: 0 8px; }
.breadcrumb__current { color: var(--ink-body); font-weight: 700; }

/* ------------------------------------------------------------------ *
 * 23. form
 * ------------------------------------------------------------------ */
.form-main { padding: 14px 0 clamp(40px, 6vw, 72px); background: var(--surface); }
.form-shell { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px); }

/* 資料請求: 左=画像 / 右=フォームの2カラム（1カラムが 320px を切ると縦積み） */
.form-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
/* お問い合わせ: 中央1カラム */
.form-single { max-width: 560px; margin: 0 auto; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--shadow-form);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-card__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--ink-900);
  margin: 0 0 4px;
  text-align: center;
}
.form-card__lead {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.8;
  margin: 0 0 4px;
  text-align: center;
}

/* 姓 / 名 の横並び */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 入力欄（ラベルなし・プレースホルダ提示） */
.f-input {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-body);
  padding: 13px 15px;
  border: 1.5px solid #dcdce0;
  border-radius: 11px;
  background: var(--surface);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.f-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); }
/* display は inline-block（textarea の既定）のまま。block にすると
   ベースライン分の隙間 6px が消えてプロトタイプより下側が詰まる。 */
.f-input--area { resize: vertical; min-height: 132px; line-height: 1.7; }

/* テキストリンク */
.f-link { color: var(--accent); text-decoration: underline; cursor: pointer; transition: color .2s; }
.f-link:hover { color: var(--accent-hover); }

/* 同意チェック + reCAPTCHA */
.form-agree-group { display: flex; flex-direction: column; gap: 16px; }
.form-agree {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--line-lightest);
  border-radius: 10px;
  padding: 16px 18px;
}
.form-agree__text { font-size: 13px; color: var(--ink-secondary); line-height: 1.75; margin: 0; }
.form-agree__check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--ink-700);
  white-space: nowrap;
}
.form-agree__check input { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }

/* reCAPTCHA（Google v2 チェックボックス。form.js が explicit レンダリングする）。
   widget 本体は Google 側が 304×78px 固定の iframe で描くので、
   ここでは枠の確保と中央寄せだけを行い、枠線・背景は widget に任せる。 */
.recaptcha { align-self: center; width: 304px; height: 78px; }

/* 送信ボタン（.btn.btn--primary.btn--xl と併用）。
   プロトタイプは高さ固定ではなく padding:18px で立ち上がる 59px。字送りも素のまま。
   .btn--xl.btn--primary（詳細度 0,2,0）を確実に上書きするため .btn 併記で書く。 */
.btn.form-submit {
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: 360px;
  height: auto;
  padding: 18px;
  gap: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: normal;
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), .34);
}
.btn.form-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(var(--accent-rgb), .42); }
.btn.form-submit[disabled] { box-shadow: none; }
.btn.form-submit[disabled]:hover { transform: none; box-shadow: none; }

.form-note { text-align: center; font-size: 12.5px; color: #9b9ea8; line-height: 1.8; margin: 0; }
.form-note .f-link { font-weight: 600; }

/* ------------------------------------------------------------------ *
 * 24. thanks（完了ページ）
 * ------------------------------------------------------------------ */
.done {
  background: var(--surface);
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 48px) clamp(80px, 12vw, 160px);
}
.done__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.done__title {
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  margin: 0 0 clamp(36px, 5vw, 56px);
}
.done-copy { max-width: 560px; margin: 0 auto; text-align: left; }
.done-copy__lead {
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 20px;
}
.done-copy__text {
  font-size: clamp(14px, 1.2vw, 15.5px);
  color: var(--ink-550);
  line-height: 1.95;
  margin: 0 0 18px;
}
.done-copy__text--last { margin: 0; }
.done-copy__text strong { color: var(--accent); font-weight: 700; }
.done-copy__note { font-size: 13px; color: var(--ink-faint); line-height: 1.9; margin: 0; }
.done__back { margin-top: clamp(40px, 6vw, 64px); }

/* ------------------------------------------------------------------ *
 * 25. interview（導入事例の詳細ページ）
 *     interview/<school>/index.html 共通。本文幅は 880px 固定で
 *     LP本体（--content-max = 1200px）より狭い。数値はプロトタイプ実測。
 *     構成: ヒーロー（パンくず/INTERVIEW/キャッチコピー/先生名・学校名/メタ）
 *           → 本文セクション（最大6） → 締めの一文 → トップページへ戻る
 * ------------------------------------------------------------------ */

/* パンくず: セクション22 の .breadcrumb を本文幅（880px）に合わせて上書き。
   form.js の referrer 差し替えは使わないので表示は常に HTML の静的値。 */
.breadcrumb--itv {
  max-width: none;
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: 0;
}

/* ヒーロー */
.itv-hero {
  background: var(--surface-alt);
  padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 56px);
}
.itv-hero__inner { max-width: 880px; margin: 0 auto; }

.eyebrow--itv { margin-bottom: 16px; }

.itv-hero__title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: var(--fw-black);
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-900);
  margin: 0 0 24px;
}
.itv-hero__name { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.itv-hero__school { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

/* メタ情報: 担当 / 利用プラン の2項目のみ・左詰めの横並び（導入時期は非掲載） */
.itv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 72px;
  margin: clamp(24px, 3vw, 32px) 0 0;
  padding-top: clamp(20px, 2.5vw, 26px);
  border-top: 1px solid #e3e3e6;
}
.itv-meta__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #9a9da6;
  margin: 0 0 6px;
}
.itv-meta__value { font-size: 13.5px; font-weight: 500; color: var(--ink-550); margin: 0; }

/* 本文 */
.itv-body {
  background: var(--surface);
  padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 56px);
}
.itv-body__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 56px);
}

.itv-sec__title {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 800;
  line-height: 1.6;
  color: var(--ink-900);
  margin: 0 0 16px;
}
.itv-sec__bar {
  flex: none;
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-6px);
}
.itv-sec__text {
  font-size: 15px;
  color: var(--ink-550);
  line-height: 2.1;
  margin: 0;
  padding-left: 34px; /* 見出しバー 20px + gap 14px。本文を見出し文字の左端に揃える */
}

/* 締めの一文 */
.itv-closing {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 2;
  margin: 0;
  text-align: center;
}

/* 「トップページへ戻る」（ボタン本体は .btn.btn--outline-accent.btn--done） */
.itv-back {
  background: var(--surface);
  padding: 0 clamp(18px, 5vw, 56px) clamp(64px, 9vw, 120px);
}
.itv-back__inner { max-width: 880px; margin: 0 auto; text-align: center; }

/* =========================================================================
   レスポンシブ
   SP ≤734 / Tablet 735–1068 / Desktop 1069–1440 / Large ≥1441
   ========================================================================= */

/* Hero: CTA は 641px 以上で横並び固定（リード文幅 30em を等分） */
@media (min-width: 641px) {
  .hero__cta {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    max-width: calc(30 * clamp(14px, 1.1vw, 16px));
  }
  .hero__cta .btn { flex: 1 1 0; min-width: 0; max-width: 240px; padding: 0 16px; }
}

/* Hero: ≤999px は 2カラム比率 1.15fr / 0.85fr */
@media (max-width: 999px) {
  .hero { padding: 32px clamp(18px, 4vw, 40px) 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 36px); }
  .hero__title { white-space: normal; }
  .hero__media { width: 100%; max-height: none; margin: 0 auto; }
}

/* Tablet 以下: 導入フローは1カラム・レール非表示 */
@media (max-width: 1068px) {
  .flow-grid { grid-template-columns: 1fr; gap: 36px; }
  .flow-rail { display: none; }

  /* 追従CTA: ハンバーガーと同じ 1068px 境界で下部中央へ回る
     （プロトタイプの isMobile = vw<=1068 と一致。右下は 1069px 以上のみ） */
  .sticky-cta { left: 50%; right: auto; transform: translateX(-50%); }
}

/* グリッド段階縮小 */
@media (max-width: 980px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .voice-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .plan-grid { grid-template-columns: 1fr; } }

/* Hero: ≤640px は縦積み（テキスト中央揃え・画像 4:3・最大520px） */
@media (max-width: 640px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__body { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta {
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: calc(30 * clamp(14px, 1.1vw, 16px));
  }
  .hero__cta .btn { flex: 1 1 200px; min-width: 0; max-width: 240px; padding: 0 24px; }
  .hero__media { max-width: min(520px, 100%); aspect-ratio: 4 / 3; }
}

/* SP */
@media (max-width: 734px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .kpi-cell { padding-left: 0; padding-right: 0; }
  .kpi-cell + .kpi-cell { border-left: none; }
  .logostrip__note { font-size: 14px; }
  .cta-doc { max-width: 20em; }
  .hero { padding: 24px 18px 32px; }
  .hero__grid { gap: 24px; }

  /* 追従CTA: SP は文字を一段小さく（位置の中央寄せは 1068px 側で指定済み） */
  .sticky-cta__btn { font-size: 16px; }

  /* 完了ページ本文は SP で中央揃え */
  .done-copy { text-align: center; }
}

/* 極小幅: reCAPTCHA widget は 304px 固定でフォームカード内に収まらなくなるため
   0.9 倍に縮める（横スクロールを出さないための保険。iPhone SE = 375px は素で収まる） */
@media (max-width: 374px) {
  .recaptcha { width: 274px; height: 71px; }
  .recaptcha > div { transform: scale(.9); transform-origin: 0 0; }
}

/* 極小幅（iPhone SE 未満）でヘッダーが溢れないようにする保険 */
@media (max-width: 359px) {
  .site-brand { gap: 10px; }
  .site-brand__label { font-size: 17px; padding-left: 10px; }
}
