@charset "UTF-8";
/* ==========================================================================
   landing.css — index.html（LP）専用 / LP構成書 v3.0 準拠

   二幕構成。
     第一幕（A0〜A5）＝ 黒 × ライムのポスター。没入させる面
     第二幕（B1〜B8）＝ 白 × 濃紺の帳票。信頼させる面。本テスト・結果画面と同じ世界

   ★第一幕のアクセントはライム1色。ここに色を足さない。
   ★第二幕は base.css の共通トークン（--canvas / --navy / --accent …）だけを使う。
     landing.css で第二幕の色を新しく定義しない。

   引き算の10箇条（v3.0 §4）のうち、CSSで担保するもの：
     ・第一幕にヘッダナビ・フッター・外部リンクを置かない → 全画面固定レイヤー
     ・1画面1問。スクロールしても次の問題が見えない       → 同上
     ・残時間はライムのバー＋数字。赤にしない、点滅させない
     ・アニメは「明転0.8秒」と「カウントアップ0.6秒」の2つだけ
     ・確定ボタンは下部固定、タップ領域52px以上
   ========================================================================== */

/* ★hidden 属性を絶対に殺さないこと。
   要素に display を当てると [hidden] の UA スタイルに作者スタイルが勝ち、
   js/free5.js の `el.hidden = true` が効かなくなる。 */
[hidden] { display: none !important; }

/* --- 英字ディスプレイ（Space Grotesk・可変・自前ホスト） -----------------
   上流のラテン版(22KB)を ASCII + 約物 に絞ったサブセット(11.4KB)。
   OFL はサブセット化を認めている。ライセンス文は assets/fonts/ に同梱して配る。
   unicode-range は実際に入っている文字だけを申告する。広く書くと豆腐になる。 */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00B7, U+00D7,
                 U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

:root {
  --font-display: "Space Grotesk", var(--font-num);
  --gap-block: 24px;
  --gap-section: clamp(56px, 11vw, 88px);
}

body.lp { background: var(--k-bg); color: var(--k-ink); }
/* 第二幕へ明転したら地の色も入れ替える */
body.lp.is-act2 { background: var(--canvas); color: var(--ink); }

.font-display { font-family: var(--font-display); letter-spacing: -.01em; }

/* ==========================================================================
   第一幕 A0 ── ヒーロー（黒）
   ========================================================================== */
.act1 { background: var(--k-bg); color: var(--k-ink); }

.brandbar { padding-top: 20px; }
.brandbar__inner { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brandbar__logo {
  font-family: var(--font-display);
  font-size: .9375rem; font-weight: 700; letter-spacing: .12em;
  color: var(--k-ink); margin: 0;
}
.brandbar__note {
  font-size: .8125rem; font-weight: 600; color: var(--k-sub);
  border: 1px solid var(--k-line); border-radius: 999px; padding: 3px 12px;
}

.hero { padding-block: 24px clamp(36px, 8vw, 56px); }
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em;
  color: var(--k-sub); margin: 0 0 16px;
}
/* 画面幅いっぱい・W900相当 */
.hero__logo {
  /* 「地頭力テスト」は6字。旧「地頭測定」の4字前提（17vw）のままだと
     320px幅で 17vw × 6 = 326px となり、画面幅を超えて折り返す。 */
  font-size: clamp(2.5rem, 14vw, 3.75rem);
  font-weight: 900; line-height: 1.02; letter-spacing: .01em;
  margin: 0 0 20px;
}
.hero__title { font-size: clamp(1.1875rem, 5.2vw, 1.4375rem); font-weight: 700; line-height: 1.55; margin: 0 0 4px; }
.hero__sub   { font-size: clamp(1.0625rem, 4.6vw, 1.125rem); font-weight: 600; line-height: 1.6; color: var(--k-sub); margin: 0 0 var(--gap-block); }

/* 唯一の招待文 */
.hero__invite { font-size: 1.0625rem; font-weight: 700; margin: 0 0 14px; }

/* ==========================================================================
   選択肢 ── ライムの角丸コンテナに、白地×黒文字のピル型ボタン
   選択中はライム地×黒文字に反転（v3.0 §2）
   ========================================================================== */
.answers { background: var(--lime); padding: 14px; border-radius: 16px; }
.answers .options { gap: 10px; }
.answers .options--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.answers .option {
  min-height: 56px; padding: 12px 14px;
  background: #FFFFFF; color: #0B0B0D;
  border: 2px solid #0B0B0D; border-radius: 999px;
  font-weight: 700; justify-content: flex-start;
}
.answers .option:hover { background: #F2F2F0; }
.answers .option__key {
  background: none; border: 0; width: auto; min-width: 1.3em;
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; color: inherit;
}
.answers .option__body { font-size: 1rem; font-weight: 700; }
/* 選択中＝ライム地に反転。記号も併記して色だけに頼らない */
.answers .option[aria-pressed="true"] { background: var(--lime); color: #0B0B0D; }
.answers .option[aria-pressed="true"] .option__key { color: inherit; }
.answers .option[aria-pressed="true"] .option__mark { display: block; color: inherit; }
.answers .option[disabled] { opacity: .6; }

/* 図形の選択肢は2列 */
.answers .options--figure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.answers .options--figure .option { border-radius: 14px; min-height: 84px; }

/* --- ウォームアップの数列は「読むもの」。カードに入れず黒地に直接置く ---- */
.act1 .qstem .hero-lead { display: none; }
.act1 .qstem .sequence {
  background: none; border: 0; padding: 0; margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 8.8vw, 2.375rem);
  font-weight: 700; letter-spacing: .01em; color: var(--k-ink);
  font-variant-numeric: tabular-nums; text-align: left;
}

/* --- 第一幕の中の図（表・SVG）を黒地に合わせる -------------------------
   問題データは var(--field) / var(--navy) / var(--ink) を参照している。
   SVGを書き換えず、スコープでトークンだけ入れ替える。 */
.act1, .immersive {
  --field: transparent;
  --navy: var(--k-ink);
  --ink: var(--k-ink);
  --border: var(--k-line);
  --canvas: transparent;
}
.act1 .qstem .matrix-table td,
.immersive .qstem .matrix-table td { color: var(--k-ink); }

/* --- 価格開示（小さくしない。ただし装飾もしない） ----------------------- */
.disclosure { font-size: .9375rem; font-weight: 600; line-height: 1.85; margin: var(--gap-block) 0 0; }
.disclosure strong { font-weight: 700; }
.act1 .disclosure { color: var(--k-sub); }
.act1 .disclosure strong { color: var(--k-ink); }
.offer .disclosure { margin-top: 0; font-size: 1.0625rem; }

.btn--lime {
  background: var(--lime); color: #0B0B0D; border-color: var(--lime);
  min-height: 56px; font-size: 1.0625rem; font-weight: 800; border-radius: 999px;
}
.btn--lime:hover { background: #C6E51F; }

/* ==========================================================================
   第一幕 A1〜A5 ── 没入モード（全画面固定レイヤー）
   ここにヘッダ・フッター・外部リンクは存在しない。
   fixed で覆うので、スクロールしても次の問題は見えない。
   ========================================================================== */
.immersive {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: var(--k-bg); color: var(--k-ink);
  overflow-y: auto; overscroll-behavior: contain;
}
body.is-immersive { overflow: hidden; }   /* 背面をスクロールさせない */

.immersive__head { flex: none; padding: 18px 20px 0; }
.immersive__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: .9375rem; font-weight: 700; margin-bottom: 10px;
}
.immersive__area { letter-spacing: .04em; }
.immersive__count { font-family: var(--font-display); color: var(--k-sub); font-variant-numeric: tabular-nums; }

/* 残時間：ライムのバー＋数字。赤にしない、点滅させない。
   base.css の .meter / .meter__fill / .meter--warn をそのまま使い、色だけ替える。 */
.immersive .meter { height: 4px; border-radius: 2px; background: var(--k-line); }
.immersive .meter__fill { background: var(--lime); border-radius: 2px; }
.immersive .meter--warn .meter__fill { background: var(--k-warn); }
.immersive__sec { font-family: var(--font-display); font-size: .875rem; color: var(--k-sub); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.immersive__sec.is-low { color: var(--k-warn); }

/* 内容が短い問題は上下中央に、長い問題は上詰めにする。
   justify-content:center のままだと、はみ出したときに上が切れて読めなくなる。 */
.immersive__body {
  flex: 1; padding: clamp(18px, 5vw, 32px) 20px 20px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.immersive__body > :first-child { margin-top: auto; }
.immersive__body > :last-child { margin-bottom: auto; }
".immersive .qstem { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 18px; }
.immersive .qstem .figure, .immersive .qstem .matrix-table { margin-block: 14px; }
/* 選択肢が5つある問題でも縦に収まるよう、没入中だけ少し詰める（下限52pxは守る） */
.immersive .answers { padding: 12px; }
.immersive .answers .options { gap: 8px; }
.immersive .answers .option { min-height: 52px; padding: 10px 14px; }
.immersive .qstem .sequence {
  background: none; border: 0; padding: 0; margin: 0 0 4px;
  font-family: var(--font-display); font-size: clamp(1.75rem, 8vw, 2.125rem);
  font-weight: 700; color: var(--k-ink); font-variant-numeric: tabular-nums; text-align: left;
}
.immersive .qstem .conditions { margin: 12px 0 0; }
.immersive .qstem .figure { margin: 18px 0 0; }

/* 無効中の確定ボタン。base.css の淡いグレーは黒地で浮くので、黒の面に沈める */
.immersive .btn[disabled] {
  background: var(--k-line); color: #6E6E74; border-color: var(--k-line);
}

/* 確定ボタンは下部固定 */
.immersive__foot {
  flex: none; position: sticky; bottom: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--k-bg) 70%, transparent);
  background: var(--k-bg);            /* グラデーションは使わない。単色で上書き */
  border-top: 1px solid var(--k-line);
}
.immersive__note { font-size: .8125rem; color: var(--k-sub); margin: 10px 0 0; text-align: center; }

/* ==========================================================================
   明転（夜→朝）── 0.8秒・1回だけ。偽の待機は作らない
   ========================================================================== */
.curtain {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: var(--k-bg); color: var(--k-ink);
  font-size: 1.125rem; font-weight: 700;
  transition: background .8s ease, color .8s ease;
}
.curtain.is-morning { background: var(--canvas); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .curtain { transition: none; }
}

/* ==========================================================================
   第二幕 B1〜B8 ── 白×濃紺の帳票
   base.css の共通トークンだけを使う（本テスト・結果画面と同じ世界）
   ========================================================================== */
.act2 { background: var(--canvas); color: var(--ink); }
.band { padding-block: var(--gap-section); }
.band--field { background: var(--field); }

.band__head { margin-bottom: var(--gap-block); }
.band__title {
  font-size: clamp(1.375rem, 5.8vw, 1.75rem); font-weight: 800; line-height: 1.5;
  margin: 0 0 12px; word-break: auto-phrase; text-wrap: balance;
}
.band__lead { font-size: 1.0625rem; line-height: 1.85; margin: 0; max-width: 34em; }

/* --- B1 結果レポート ----------------------------------------------------- */
.score {
  font-family: var(--font-display); font-size: clamp(3.5rem, 18vw, 4.5rem);
  font-weight: 700; line-height: 1; margin: 0 0 8px; font-variant-numeric: tabular-nums;
}
/* 数字そのものは濃く、「/ 5」だけ退かせる */
.score > span:last-child { font-size: .42em; color: var(--muted); }

.qlist { list-style: none; margin: 0; padding: 0; }
.qlist > li { border-bottom: 1px solid var(--line2); }
.qlist > li:last-child { border-bottom: 0; }
.qlist__row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  width: 100%; padding: 14px 0; background: none; border: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 52px;
}
.qlist__no { font-weight: 700; min-width: 4.5em; }
.qlist__area { color: var(--muted); font-size: .9375rem; min-width: 5em; }
.qlist__time { margin-left: auto; font-family: var(--font-display); font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.qlist__toggle { flex: none; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.qlist__exp {
  font-size: .9375rem; line-height: 1.8; margin: 0 0 14px;
  background: var(--canvas); border-radius: var(--radius); padding: 12px 14px;
}

/* --- B2 測定マップ（このLPで最重要）------------------------------------- */
.map { list-style: none; margin: 0 0 16px; padding: 0; }
.map li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.map__name { font-weight: 700; min-width: 5.5em; flex: none; }
.map__mark { font-family: var(--font-display); color: var(--accent); letter-spacing: .1em; min-width: 2.4em; flex: none; }
.map__mark--none { color: var(--border); }
/* 未測定は薄いグレーの長い空白線。空白の面積が目で分かること */
.map__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.map__bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.map__state { font-size: .875rem; color: var(--muted); min-width: 7.5em; flex: none; text-align: right; }

/* --- B3 オファー --------------------------------------------------------- */
.offer { background: var(--field); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.offer p { font-size: 1.0625rem; line-height: 1.85; }
.offer .btn-row { margin: 20px 0 14px; }
.offer__price { font-weight: 700; }

/* --- B5 何を測るのか ----------------------------------------------------- */
.domains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.domains li { background: var(--field); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.domains dt, .domains__name { font-weight: 700; margin-bottom: 4px; }
.domains__desc { font-size: .9375rem; line-height: 1.75; color: var(--muted); margin: 0; }

/* --- B6 受け取るもの ----------------------------------------------------- */
.gets { margin: 0; padding-left: 1.3em; }
.gets li { margin-bottom: 10px; line-height: 1.8; }

/* --- B7 FAQ -------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--field); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px 18px; }
.faq__item > summary {
  list-style: none; cursor: pointer; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 700;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after { content: "＋"; flex: none; font-family: var(--font-display); color: var(--accent); }
.faq__item[open] > summary::after { content: "−"; }
.faq__a { font-size: .9375rem; line-height: 1.85; color: var(--muted); margin: 0 0 16px; }

/* --- B8 最終CTA ---------------------------------------------------------- */
.finale { background: var(--navy); color: #fff; }
.finale .band__title { color: #fff; }
.finale .band__lead { color: #C7D2DE; }
.finale .btn--primary { background: var(--accent); }
.finale .disclosure { color: #C7D2DE; }
.finale .disclosure strong { color: #fff; }

/* --- 見本レポートの透かし ------------------------------------------------ */
.sample-page { position: relative; }
.sample-page::after {
  content: "SAMPLE"; position: absolute; top: 0; right: 0;
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; color: var(--border); pointer-events: none;
}

/* --- フッター法務 -------------------------------------------------------- */
.legal { border-top: 1px solid var(--line2); padding: 12px 0; }
.legal > summary { cursor: pointer; font-weight: 700; min-height: 56px; display: flex; align-items: center; }
.legal__dl { display: grid; grid-template-columns: minmax(9em, auto) 1fr; gap: 6px 16px; font-size: .875rem; margin: 8px 0; }
.legal__dl dt { color: var(--muted); }
.legal__dl dd { margin: 0; }

/* ==========================================================================
   モーション ── 明転とカウントアップの2つだけ（v3.0 §4-6）
   第一幕にスクロール演出は入れない
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .act2 .reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
  }
  .js-reveal .act2 .reveal.is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   狭い画面
   ========================================================================== */
@media (max-width: 400px) {
  .wrap { padding-inline: 16px; }
  .immersive__head, .immersive__body, .immersive__foot { padding-inline: 16px; }
  .legal__dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal__dl dd { margin-bottom: 8px; }
  .map li { flex-wrap: wrap; }
  .map__state { margin-left: auto; text-align: right; }
}
@media (max-width: 320px) {
  .answers .options--grid { grid-template-columns: 1fr; }
}
@media (min-width: 560px) {
  .domains { grid-template-columns: repeat(2, 1fr); }
}
