/* ============================================================================
   LP A/B variants (Lazyweb report 67c53f5a…)
   Control は lp.css のまま。/v/*/ だけがこのシートを追加で読む。
   色はトークンのみ（hex 直書きなし）。
   ============================================================================ */

/* ---- Trust Microline --------------------------------------------------- */
.hero__note--trust {
  margin-top: var(--sp-1);
  font-size: calc(var(--fs-caption) * 0.95);
  color: var(--ink-soft);
  max-width: 36em;
  line-height: 1.7;
}

/* ---- Sticky Start Bar -------------------------------------------------- */
body.has-sticky-start {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
.sticky-start {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 0 var(--paper-shade);
}
.sticky-start__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 64px;
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}
.sticky-start__note {
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.sticky-start__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--shu);
  color: var(--surface);
  font-size: var(--fs-label);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 var(--shadow-btn-y) 0 var(--shu-deep);
  white-space: nowrap;
}
.sticky-start__cta:hover {
  background: var(--shu-deep);
  color: var(--surface);
}
.sticky-start__cta:active {
  transform: translateY(var(--shadow-btn-y));
  box-shadow: none;
}
html[lang="ja"] .sticky-start__cta { font-family: var(--font-kana); }

/* ---- CTA After Trust --------------------------------------------------- */
.hero-trust__lead {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink-soft);
}
.hero-trust__arrow {
  font-size: 1.1em;
  color: var(--indigo);
  line-height: 1;
}
.hero-trust {
  display: grid;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
  padding: var(--sp-3);
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  max-width: 34em;
}
.hero-trust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.hero-trust__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.hero-trust__text {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: 1.65;
  color: var(--ink);
}
.hero-trust__text strong { font-weight: 900; }
.cta--after-trust {
  /* モックは再生アイコンなし・文言が長いので横幅を確保 */
  width: 100%;
  max-width: 22em;
}
@media (min-width: 900px) {
  .cta--after-trust { width: auto; min-width: 18em; }
}

/* ---- Parent Child Tabs ------------------------------------------------- */
.view-switch__input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.view-switch__bar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.view-switch__tabs {
  display: flex;
  align-items: stretch;
  gap: var(--sp-4);
}
.view-switch__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: var(--sp-2) 0;
  border-bottom: 3px solid transparent;
  color: var(--ink-soft);
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.view-switch__radio {
  width: 20px;
  height: 20px;
  display: block;
}
.view-switch__radio-on { display: none; color: var(--indigo); }
.view-switch__radio-off { display: block; color: var(--ink-faint); }

/* 選択中タブ */
.view-switch:has(#lp-view-child:checked) .view-switch__tab--child,
.view-switch:has(#lp-view-parent:checked) .view-switch__tab--parent {
  color: var(--indigo-deep);
  font-weight: 900;
  border-bottom-color: var(--indigo);
}
.view-switch:has(#lp-view-child:checked) .view-switch__tab--child .view-switch__radio-on,
.view-switch:has(#lp-view-parent:checked) .view-switch__tab--parent .view-switch__radio-on {
  display: block;
}
.view-switch:has(#lp-view-child:checked) .view-switch__tab--child .view-switch__radio-off,
.view-switch:has(#lp-view-parent:checked) .view-switch__tab--parent .view-switch__radio-off {
  display: none;
}

/* パネル切替 */
.view-switch:has(#lp-view-child:checked) .view-panel--parent { display: none; }
.view-switch:has(#lp-view-parent:checked) .view-panel--child { display: none; }

/* 子ども面はヒーロー下の1本の帯だけで足りる。フッタ帯が続くと二重になる */
body:has(#lp-view-child:checked) .scene--foot { display: none; }

.hero--child .hero__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero--child .hero__lede { display: none; }
.hero__note--child {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-body);
  color: var(--ink-soft);
}
.hero__parent-link {
  display: block;
  margin-top: var(--sp-3);
  color: var(--indigo);
  font-size: var(--fs-caption);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hero__parent-link:hover {
  color: var(--indigo-deep);
  border-bottom-color: var(--indigo-line);
}

@media (prefers-reduced-motion: reduce) {
  .sticky-start__cta { transition: none; }
}

/* ---- One Min Demo (1分デモ導線) ---------------------------------------- */
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--sp-2);
  max-width: 100%;
}
.hero__cta-row .cta {
  flex: 1 1 100%;
}
@media (min-width: 520px) {
  .hero__cta-row .cta { flex: 0 1 auto; }
}
.cta--ghost {
  background: var(--surface);
  color: var(--indigo-deep);
  border: 2px solid var(--indigo-line);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}
.cta--ghost:hover {
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  box-shadow: none;
}
.cta--ghost:active {
  transform: translateY(1px);
}
/* ヒーローの2ボタンは同じ UI フォントに。Klee サブセットはかな専用なので
   「1分で中身を見る」の漢字が明朝体フォールバックしていた。 */
html[lang="ja"] .hero__cta-row .cta__label,
html[lang="ja"] .cta--ghost { font-family: var(--font-ui); }

/* Pro 監査 round 1 · F1 = friction MEDIUM。副CTA（1分で中身を見る）が主CTAと
   同格のボタンで並んでいて、クリックが分散していた。ボタン→テキストリンクへ
   格下げし、主CTAだけが視覚的に優位になるようにする（demo-modal.js の
   data-demo-open は据え置きなので挙動は変わらない）。 */
.hero__demo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-1) var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--indigo-deep);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__demo-link:hover { color: var(--indigo); }
html[lang="ja"] .hero__demo-link { font-family: var(--font-ui); }

/* Pro 監査 round 2 · P2 = friction MEDIUM。長尺LPで保護者が知りたい項目
   （やり方・あんしん・なぜ・なかみ）へ最短で到達できず、後回しにされやすい。
   ヒーロー直下に既存セクションへのジャンプリンクを4つ置く。新しいセクションは
   増やさず、コピーの書き換えもしない（見出し文言のレビューは別途）。
   →round 5（F1・misframing MEDIUM）: クイックナビが主CTAと同じ導線に見えて
   しまい、まず読む方へ気が散る、という指摘。why-appendix（170）と同じ
   details/summary で初期折りたたみにし、CTAを単独で目立たせてから
   開かせる（Hypothesis「ナビ折りたたみ」confidence 0.88）。 */
.hero-quicknav {
  margin-top: var(--sp-3);
}
.hero-quicknav__summary {
  cursor: pointer;
  color: var(--indigo-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-quicknav[open] .hero-quicknav__summary { margin-bottom: var(--sp-2); }
.hero-quicknav__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}
.hero-quicknav__link {
  color: var(--indigo-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--indigo-line);
  padding-bottom: 1px;
}
.hero-quicknav__link:hover { border-bottom-color: var(--indigo-deep); }
html[lang="ja"] .hero-quicknav__summary,
html[lang="ja"] .hero-quicknav__link { font-family: var(--font-ui); }

/* Pro 監査 round 4 (デスクトップ) · F2 = friction HIGH（confidence 1.00）。
   ヒーロー直下の装飾イラスト帯が大きく、「はじめる まえに、3つだけ」の要点に
   到達する前にスクロールが要る。イラスト自体（170 の世界観）は触らず、
   既存の3ポイント見出しをそのまま1行に圧縮してヒーロー内に先出しする。
   新しい主張は増やしていない（point__title の文言をそのまま使う）。 */
.hero__recap {
  color: var(--ink-soft);
  font-size: var(--fs-caption);
  font-weight: 700;
  margin-top: calc(var(--sp-1) * -1);
  margin-bottom: var(--sp-3);
}

/* Pro 監査 round 3 (モバイル) · Hypothesis #6 "Start Steps"（confidence 0.70・
   SAFE BET）。長尺LPで各章の結論が一目で拾えず途中離脱しやすい、という指摘に
   対して、CTA直下に手順を1行だけ足す。プレイアブルヒーロー（171）で使っている
   語彙（きく/えらぶ）をそのまま流用。 */
.hero__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  color: var(--ink-soft);
  font-size: var(--fs-caption);
  font-weight: 700;
}
.hero__steps span[aria-hidden] { color: var(--line-deep); font-weight: 400; }
.hero__steps-time { font-weight: 400; color: var(--ink-soft); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.demo-modal-open { overflow: hidden; }
.demo-modal[hidden] { display: none; }
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: max(var(--sp-2), env(safe-area-inset-top)) var(--sp-2) max(var(--sp-2), env(safe-area-inset-bottom));
}
.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 48, 43, 0.45);
}
.demo-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  height: min(calc(100dvh - var(--sp-3)), 680px);
  max-height: min(calc(100dvh - var(--sp-3)), 680px);
  overflow: hidden;
  padding: var(--sp-3) var(--sp-3) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.demo-modal__close {
  position: absolute;
  top: var(--sp-1);
  right: var(--sp-1);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.demo-modal__close:hover { color: var(--ink); background: var(--paper-deep); }
.demo-modal__eyebrow {
  display: none; /* opener label — saves vertical space in the dialog */
}
.demo-modal__title {
  margin: 0 var(--sp-6) var(--sp-1) 0;
  font-size: calc(var(--fs-title) * 0.88);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
}
.demo-modal__lede {
  display: none; /* repeated in slide copy — hidden so nav fits without scroll */
}
.demo-modal__slides {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
.demo-slide {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.demo-slide__step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-label);
  font-weight: 900;
  color: var(--indigo-deep);
  flex-shrink: 0;
}
.demo-slide__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4em;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-pill);
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  font-size: var(--fs-caption);
  font-weight: 900;
}
.demo-slide__shot {
  flex: 1 1 0;
  min-height: 0;
  margin: 0 0 var(--sp-2);
  display: grid;
  place-items: center;
  container-type: size;
  overflow: hidden;
  background: transparent;
}
.demo-slide__shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100cqw;
  max-height: 100cqh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(51, 48, 43, 0.12);
  background: var(--paper);
}
@supports not (max-height: 100cqh) {
  .demo-slide__shot img {
    max-width: 100%;
    max-height: min(52dvh, 420px);
  }
}
.demo-slide__body {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.demo-modal__foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.demo-modal__dots {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  z-index: 1;
}
.demo-modal__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.demo-modal__dot.is-active { background: var(--indigo); }
.demo-modal__nav {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
}
.demo-modal__step {
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--indigo-line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--indigo-deep);
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
}
.demo-modal__step:disabled {
  opacity: 0.4;
  cursor: default;
}
.demo-modal__step:not(:disabled):hover {
  background: var(--indigo-soft);
}
.demo-modal__cta {
  width: 100%;
  margin-top: var(--sp-2);
  flex-shrink: 0;
}
.demo-modal__cta[hidden] { display: none; }
.demo-slide[hidden] { display: none; }

@media (min-height: 820px) and (min-width: 480px) {
  .demo-modal__lede {
    display: block;
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-caption);
    color: var(--ink-soft);
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta--ghost { transition: none; }
}

/* ---- evidence-cards（170・Lazyweb 99d67cee #3 ＋ 3289ebcd #6） -----------
   本文は「音→読む→書く」の3枚だけ。図と長文は <details> の付録に畳んである
   ので、根拠は1つも減っていない（開けば control と同じ .why__items が出る）。 */
.evidence-cards {
  display: grid;
  gap: var(--sp-2);
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.evidence-card {
  position: relative;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.evidence-card__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  margin: 0 0 var(--sp-1);
  background: var(--teal-soft);
  border-radius: 50%;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--teal-deep);
}
.evidence-card__title {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-h3);
  color: var(--indigo);
}
.evidence-card__body {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-soft);
}
.evidence-cards__close {
  margin: var(--sp-3) 0 0;
  font-weight: 700;
}
.cta-again--cards { margin-top: var(--sp-2); }

.why-appendix {
  margin-top: var(--sp-4);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}
.why-appendix__summary {
  cursor: pointer;
  padding: var(--sp-1) 0;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--indigo);
}
.why-appendix[open] .why-appendix__summary { margin-bottom: var(--sp-2); }

@media (min-width: 760px) {
  .evidence-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---- playable-prologue（171・Lazyweb 99d67cee #1 ＋ 3289ebcd #4） ---------
   ヒーローのスクショの代わりに、その場で3問だけ解ける盤面を置く。見た目は
   アプリの kana_pick に合わせてある（大きい ▶ ・大きいタイル・まちがいは赤に
   しない）。同じ画面に見えないと「中身を見た」ことにならない。 */
.playable { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.playable__phone {
  width: 100%;
  max-width: 340px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-3) var(--sp-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 28px rgb(31 41 61 / 0.10);
  text-align: center;
}
.playable__step {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.playable__prompt {
  margin: 0 0 var(--sp-2);
  min-height: 2.6em;
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  line-height: 1.6;
}
.playable__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;   /* --hit-min と同じ。絵とタップ先が同じ物体 */
  margin: 0 auto var(--sp-3);
  padding: 0;
  color: var(--surface);
  background: var(--teal);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--teal-deep);
  cursor: pointer;
}
.playable__play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--teal-deep); }
.playable__tiles { display: flex; justify-content: center; gap: var(--sp-2); }
.playable__tile {
  width: 84px; height: 84px;
  font-family: var(--font-kana);  /* 学習対象の字は必ずお手本の書体で（tokens.css） */
  font-size: 2.2rem;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  cursor: pointer;
}
/* まちがいは赤にしない — 押したタイルが灰に沈むだけ（DS「重要な決定」） */
.playable__tile.is-wrong { color: var(--ink-soft); background: var(--paper-shade); border-color: var(--line); opacity: 0.55; cursor: default; }
.playable__tile.is-correct { border-color: var(--teal); background: var(--teal-soft); }
.playable__live { margin: var(--sp-2) 0 0; min-height: 1.5em; font-size: var(--fs-caption); font-weight: 700; color: var(--teal-deep); }
.playable__done-title { margin: 0 0 var(--sp-1); font-size: var(--fs-h3); font-weight: 700; color: var(--indigo); }
.playable__done-body { margin: 0 0 var(--sp-3); font-size: var(--fs-caption); color: var(--ink-soft); line-height: 1.7; }
.playable__done-cta { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .playable__play:active { transform: none; }
}
