/* =========================================================
 * Chunkbook LP
 * デザイントークンは apps/web/src/index.css（課題45・v4実測値）と同一。
 * LPはライトモードのみ（メンテコスト優先）。ビルド不要の素のCSS。
 * 多言語化は i18n.js（data-i18n属性の差し替えのみ）。
 * スマホ画面内のUIは docs/mockup-current.html（実アプリと同じCSS）から移植。
 * ========================================================= */
:root {
  /* fix21: 純白×鮮緑N4へ全面差し替え（2026-09-01裁定・apps/web/src/index.css と同値） */
  --bg: #f2f4ef; /* lp-v3 fix04: 緑がかった紙（純白→輝度 0.90）。ブランド緑と同系のオフホワイト。LP専用値（docs/DESIGN.md §7 追記） */
  --surface: #fafbf8; /* lp-v3 fix04 */
  --muted: #e8ebe4; /* lp-v3 fix04: 帯セクション地（旧淡緑帯→灰緑） */
  --text: #22272a;
  --sub: #5d6570;
  --border: #d9ddd5; /* lp-v3 fix04 */
  --primary: #149a55;
  --primary-deep: #0d7440;
  --primary-soft: #dfeee4; /* lp-v3 fix04: 紙に合わせて微調整 */
  --danger: #b0402b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 23, 0.05), 0 10px 28px rgba(20, 30, 23, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sp { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.04em; color: var(--primary-deep); } /* lp-v3 fix04 */
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--sub); }
.site-nav a:hover { color: var(--text); }
.lang-select {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 0 8px;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 4px 0 var(--primary-deep); margin-bottom: 4px; } /* fix21: 底影ボタン */
.btn.primary:hover { background: color-mix(in srgb, var(--primary) 85%, black); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--primary-deep); }
.btn.ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 28px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 84px 24px 72px;
}
.eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 4px 14px;
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--primary);
  background: linear-gradient(transparent 68%, var(--primary-soft) 68%);
}
.lead { color: var(--sub); font-size: 16.5px; margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-note { color: var(--sub); font-size: 13px; margin-top: 12px; }
/* 課題851: ストアバッジ（config.js の IOS_URL / ANDROID_URL が空の間は hidden。author の display が [hidden] を上書きしないよう明示） */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.store-badges[hidden], .store-badges a[hidden] { display: none; }
.store-badges a { display: inline-flex; line-height: 0; }
.store-badges img { height: 40px; width: auto; display: block; } /* Apple 公式の最小高 40px。Google の PNG は透明余白込みなので見た目が小さければ 44〜48px に */
.cta-final .store-badges, .anki-hero .store-badges { justify-content: center; }

/* ---------- phone mock（実機風フレーム） ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 302px;
  height: 655px; /* 課題875: hero スクショ 780×1642 に合わせて画面 633＝ステータスバー44＋589（280 幅へ等比縮小）。下端の余白を除去 */
  border-radius: 48px;
  background: linear-gradient(160deg, #3d453f, #1a1f1b 28%, #11140f 90%);
  padding: 11px;
  box-shadow:
    0 30px 60px rgba(22, 28, 24, 0.28),
    0 6px 18px rgba(22, 28, 24, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  animation: rise 0.7s ease both;
}
.phone::before {
  /* 電源ボタン（右） */
  content: "";
  position: absolute;
  right: -2px;
  top: 168px;
  width: 3px;
  height: 66px;
  border-radius: 2px;
  background: #262b23;
}
.phone::after {
  /* 音量ボタン（左） */
  content: "";
  position: absolute;
  left: -2px;
  top: 128px;
  width: 3px;
  height: 96px;
  border-radius: 2px;
  background: #262b23;
}
.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #0b0e0b;
  z-index: 3;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.phone-screen {
  width: 280px;
  height: 633px; /* 課題875 */
  border-radius: 38px;
  overflow: hidden;
  background: var(--bg);
}
/* lp-v3 fix05: 縮小フォン（hero・widgets 以外＝demo/migrate/learn）。画面 567＝ステータスバー44＋523（780×1456 を 280 幅へ等比縮小）。
 * 実UIスクショ側は空白帯を切除（import: 1280〜1512 行を除去して下部ナビを残す／speak: 1456 行で切る）。余白だらけの殺風景を避ける（本人FB） */
.phone.compact { height: 635px; } /* lp-v3 fix13: 画面 613＝44＋569（780×1586 を 280 幅へ等比縮小）。add は取込説明まで・import は空白帯 102 行を除いて下部ナビまで */
.phone.compact .phone-screen { height: 613px; }
.phone.compact .phone-app { height: 854px; } /* 613 / 0.7179 */

/* 画面内は実アプリ（apps/web）のUIを docs/mockup-current.html から移植。
 * 390px基準でレイアウトし、280pxに縮小表示（280 / 390 = 0.7179）。 */
.phone-app {
  width: 390px;
  height: 926px; /* lp-v3 fix02→03: 665 / 0.7179 */
  transform: scale(0.7179);
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.s-statusbar {
  height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 30px 6px;
  font-size: 13px;
  font-weight: 700;
}
.s-topbar { height: 56px; display: flex; align-items: center; padding: 0 16px; }
.s-title { font-size: 23px; font-weight: 700; }
.s-content { flex: 1; overflow: hidden; padding: 4px 16px 24px; }
.s-eyebrow { font-size: 12px; font-weight: 700; color: var(--primary-deep); letter-spacing: 0.06em; }
.s-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 12px 0;
}
.s-english { font-family: "Noto Sans", "Segoe UI", sans-serif; font-weight: 650; line-height: 1.45; }
.s-english-lg { font-size: 20px; }
.s-hit { text-decoration: underline; text-decoration-color: var(--danger); text-decoration-thickness: 2px; text-underline-offset: 3px; } /* lp-v3 fix01: 朱下線＝添削（.phrase-hit に合わせて太字・朱文字を廃止） */
.s-jp { font-size: 13px; color: var(--sub); line-height: 1.55; margin-top: 4px; }
.s-jp-lg { font-size: 15px; margin-top: 10px; }
.s-speak-set {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.s-speak {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 15px;
  display: grid;
  place-items: center;
}
.s-rspeed {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2px;
}
.s-rspeed-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--sub);
}
.s-rspeed-val {
  min-width: 34px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.s-section-title { font-size: 14px; font-weight: 750; margin: 18px 0 6px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
.s-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--sub);
}
.s-chip.is-on { background: var(--primary-soft); color: var(--primary); border-color: transparent; font-weight: 700; }
.s-chip.s-add { border-style: dashed; color: var(--primary); }
.s-hint { font-size: 12px; color: var(--sub); line-height: 1.55; margin: 6px 0; }
.s-hint.s-center { text-align: center; }
.s-chunk { padding: 11px 0; border-bottom: 1px solid var(--border); }
.s-chunk:last-child { border-bottom: 0; }
.s-chunk .s-english { font-size: 16px; }
.s-btn {
  min-height: 48px;
  border-radius: 9px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 11px 16px;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}
.s-btn-ghost {
  background: transparent;
  color: var(--sub);
  border-color: var(--border);
  font-weight: 600;
}
.s-study { flex: 1; display: flex; flex-direction: column; padding: 0 16px 26px; }
.s-study-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 52px; }
.s-x { font-size: 24px; color: var(--sub); }
.s-count { text-align: center; font-size: 12px; color: var(--sub); }
.s-progress { height: 4px; border-radius: 3px; background: var(--border); overflow: hidden; }
.s-progress span { display: block; height: 100%; background: var(--primary); }
.s-study-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 8px;
}
.s-prompt { font-family: "Noto Sans", "Segoe UI", sans-serif; font-size: 29px; line-height: 1.45; font-weight: 700; margin: 0; }
.s-answer { font-size: 18px; line-height: 1.55; margin: 22px 0 0; color: var(--primary); font-weight: 700; }
.s-context {
  font-size: 13px;
  line-height: 1.6;
  color: var(--sub);
  margin: 22px 0 0;
  padding: 14px;
  background: var(--muted);
  border-radius: 9px;
}
.s-rating { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-rate {
  min-height: 58px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 8px 6px;
}
.s-rate small { display: block; font-size: 10px; color: var(--sub); font-weight: 500; margin-top: 3px; }
.s-rate.is-good { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 24px;
}
.strip-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.strip-item strong { font-size: 14.5px; }
.strip-item span { font-size: 12px; color: var(--sub); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.alt + .section.alt { border-top: 0; } /* 課題847: #maker 撤去で #more と #pricing が隣接し、border-bottom + border-top の 2px 線になるのを防ぐ */
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
.section-sub { color: var(--sub); max-width: 40em; margin: 0 auto 42px; }
.section-sub:not(.left) { text-wrap: balance; } /* lp-v3 fix05: 中央揃えサブ文の「す。」1文字ぶら下がりを防ぐ（非対応ブラウザは従来どおり） */
#routes .routes-split + .section-sub { margin: 40px auto 0; } /* lp-v3 fix05: カード直下の補足文が詰まりすぎ（本人FB） */
#routes .section-sub { max-width: 48em; } /* lp-v3 fix06: 40em では ja/en が3行になり balance で各行が箱の2/3幅に縮む（本人FB）。48em なら4言語とも2行で幅を使い切る */
.section-sub.left { margin: 0 0 22px; }
.center { text-align: center; }
.center-text { text-align: center; margin-bottom: 28px; }
.narrow { max-width: 720px; }

/* ---------- cards3 ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.section.alt .card { box-shadow: none; }
.card-num { font-size: 13px; font-weight: 800; color: var(--primary-deep); letter-spacing: 0.08em; margin-bottom: 10px; }
.card h3 { font-size: 18px; margin: 0 0 10px; }
.card p { font-size: 14px; color: var(--sub); margin: 0; }
#routes h2 { text-align: left; } /* lp-v3 fix12: split 化 */
#routes .section-sub:not(.left) { text-align: center; }
/* 課題584: デモ節に専用背景を付与し#routesとの切れ目を明確化・#demo/#whyの見出しまわりを中央揃え */
.section.demo { background: var(--muted); /* lp-v3 fix04: 緑の面を減らす */ border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#demo .section-title, #demo .section-sub { text-align: center; } /* lp-v3 fix12: #why は split 化で左揃え */

/* ---------- split (learn / voice) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 1fr; }
.split-visual { display: flex; justify-content: center; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li {
  font-size: 14.5px;
  color: var(--sub);
  padding-left: 26px;
  position: relative;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}
.feature-list strong { color: var(--text); }

/* ---------- voice ---------- */
.voice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 380px;
}
.section .voice-card { margin: 0 auto; }
.voice-line { font-size: 16px; font-weight: 700; margin: 0 0 18px; line-height: 1.6; }
.voice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-chip {
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: var(--sub);
  background: var(--bg);
}
.voice-chip.is-on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 700; }
.voice-note { font-size: 12px; color: var(--sub); margin: 16px 0 0; }

/* ---------- langs ---------- */
.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lang-chip {
  font-size: 13.5px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-weight: 600;
}
.lang-chip.more { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

/* ---------- pricing ---------- */
/* 課題365: プランは2つ（Free/Standard）のため2カラム中央寄せ（3カラム時の空き列を解消） */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; text-align: left; max-width: 760px; margin: 0 auto; }
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius);
  padding: 3px 12px;
  margin: 0;
}
.plan-name { font-weight: 800; font-size: 15px; margin: 0 0 6px; }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.plan-price span { font-size: 14px; font-weight: 600; color: var(--sub); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.plan li { font-size: 13.5px; padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-deep); font-weight: 800; }
.plan li.dim { color: var(--sub); }
.plan li.dim::before { content: "–"; color: var(--sub); }
.plan-note { font-size: 12.5px; color: var(--sub); margin-top: 22px; }
/* 課題856（第6回マーケレビュー P1-13）: 料金カード内の CTA。カードを縦フレックス化して箇条書きの下端にボタンを置く（項目数が違っても 2 枚のボタン位置が揃う）。長い語・多語語で折り返すため white-space は nowrap を解除 */
.plan { display: flex; flex-direction: column; }
.plan ul { margin-bottom: auto; }
.plan .plan-cta { width: 100%; min-height: 46px; padding: 11px 14px; margin-top: 20px; font-size: 14px; line-height: 1.35; white-space: normal; text-align: center; }

/* ---------- faq ---------- */
details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-bottom: 10px;
}
.section:not(.alt) details { background: var(--surface); }
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}
details[open] summary::after { content: "–"; }
details p { font-size: 14px; color: var(--sub); margin: 0 0 16px; }

/* 課題841(2): anki.html 取込画面の実 UI */
.anki-shot { display: grid; justify-items: center; gap: 12px; margin-top: 32px; }
.anki-shot .phone { animation: none; }
.anki-shot-cap { margin: 0; font-size: 13px; color: var(--sub); text-align: center; }

/* ---------- final CTA / footer ---------- */
.cta-final { padding: 96px 0; background: var(--muted); /* lp-v3 fix04 */ border-top: 1px solid var(--border); }
.cta-final .cta-note { margin-top: 14px; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 24px;
  flex-wrap: wrap;
}
.brand.small { font-size: 15px; margin: 0; font-weight: 800; color: var(--primary-deep); }
.footer-nav { display: flex; gap: 18px; font-size: 12.5px; color: var(--sub); margin-right: auto; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--text); }
.copyright { font-size: 12px; color: var(--sub); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-inner { gap: 12px; }
  .hero-grid { grid-template-columns: 1fr; padding: 56px 24px 48px; gap: 40px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .cards3 { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-copy { order: 0; }
  .split.reverse .split-visual { order: 1; }
  .plans { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .sp { display: inline; }
}

/* Voice sample playback (issue 141) */
button.voice-chip { font: inherit; cursor: pointer; }
.voice-chip.is-playing { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

/* ---------- migrate (S22 CSV取込・課題155) ---------- */
.section.migrate { background: var(--bg); } /* lp-v3 fix04: muted → fix12: demo(muted) と同色で連続し切れ目が消えたため地色へ（前後 demo/learn が枠線を持つので枠線なし） */
.s-card-tight { padding: 4px 14px; }
.s-import-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.s-import-row:last-child { border-bottom: 0; }
.s-import-check { color: var(--primary); font-size: 14px; line-height: 1.4; }
.s-import-check.is-off { color: var(--sub); }
.s-import-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-import-main .s-english { font-size: 14px; }
.s-import-main .s-jp { margin-top: 2px; }
.s-import-edit { border: 1px solid var(--border); border-radius: 7px; padding: 2px 7px; margin-top: 4px; font-size: 11px; color: var(--sub); background: var(--surface); align-self: flex-start; }

/* 課題164: 絵文字→SVGピクトグラム */
.s-speak{display:inline-flex;align-items:center;justify-content:center}
.s-ic{width:13px;height:13px;display:block;flex:none;pointer-events:none}
.s-import-check .s-ic{width:15px;height:15px;margin-top:2px}
.voice-chip{display:inline-flex;align-items:center;gap:6px}
.voice-chip .vc-ic{width:11px;height:11px;flex:none;pointer-events:none}
.s-status{display:inline-flex;align-items:center;flex:none}
.s-status .s-ic{width:14px;height:14px}
.s-ok{color:#16a34a}
.s-warn{color:#d97706}
.s-dup{color:#8a8f89}

/* --- 課題189: スクロールリビール・ヒーローstagger・カードホバー --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.hero-copy > * {
  animation: rise 0.6s ease both;
}
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(n + 5) { animation-delay: 0.3s; }
@media (hover: hover) and (pointer: fine) {
  .cards3 .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .cards3 .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(22, 28, 24, 0.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-copy > *,
  .phone {
    animation: none;
  }
  .cards3 .card {
    transition: none;
  }
  .cards3 .card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* 課題210: 課題192の3D視差（スマホの傾き表示）は見づらいため廃止 */

/* 課題268: プランカードの対象者説明（マーケレビュー Phase2） */
.plan-who { font-size: 12.5px; color: var(--sub); line-height: 1.55; margin: 2px 0 10px; }

/* 課題271: ヒーロー見出しの折返しを文節単位に制限（「一言」等の泣き別れ防止） */
.hero-copy h1 .nb {
  display: inline-block;
}

/* ===== 課題279: ログイン不要デモ ===== */
.demo-box {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.demo-pane {
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 30px rgba(16, 40, 32, 0.06);
}
.demo-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin-bottom: 8px;
}
.demo-input {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}
/* 課題312: 旧デモ専用の .demo-english/.demo-jp/.demo-chunk/.demo-phrase スタイルは削除。
   現在は s-* の実画面スタイルを使用し、demo-english/demo-phrase は demo.js の
   音声フォールバック用セレクタとしてのみ残す */
.demo .btn {
  max-width: 100%;
}

/* ===== 課題291→312: デモのフォンモック（共通.phoneフレームで実画面を再現・ライト配色） ===== */
.demo-result {
  display: grid;
  justify-items: center;
}
/* 課題304→312: ステージをグリッドで重ねて高さを固定。非表示はvisibilityで切替 */
.demo-stages {
  flex: 1;
  min-height: 0;
  display: grid;
}
.demo-stage {
  grid-area: 1 / 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.demo-stage[hidden] {
  visibility: hidden;
  pointer-events: none;
}
.demo-stage.demo-stage-anim {
  animation: demo-stage-in 0.3s ease;
}
@keyframes demo-stage-in {
  from {
    opacity: 0;
  }
}
.demo-stage .s-content {
  display: flex;
  flex-direction: column;
}
/* 課題316: 登録画面モックを実画面（S04）に忠実化: クォータ行・モード切替・エディタ＋マイク/送信・詳細設定 */
.s-quota {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--sub);
}
.s-label {
  font-size: 13px;
  font-weight: 650;
  margin: 8px 0 5px;
}
.s-editor {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px 52px;
}
.s-editor-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.s-editor-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}
.s-editor-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
button.s-editor-btn {
  cursor: pointer;
  font-family: inherit;
}
.s-editor-send {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.s-editor-send:hover {
  filter: brightness(1.08);
}
.s-editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 2px;
  font-size: 12px;
  color: var(--sub);
}
.s-lang-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 10px;
  font-size: 11px;
  background: var(--muted);
  color: var(--text);
}
.s-adv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 4px;
}
.s-adv-arrow {
  color: var(--sub);
  font-size: 11px;
}
.demo-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #e0e5df;
  border-top-color: var(--primary);
  animation: demo-spin 0.9s linear infinite;
  margin: auto auto 14px;
}
@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}
.demo-screen-loading {
  font-size: 14px;
  color: var(--sub);
  text-align: center;
  margin: 0 auto auto;
}
.demo-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.demo-play {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cfdbd2;
  background: #e9f2ec;
  color: #1f6b4f;
  font-size: 13px;
  cursor: pointer;
}
.demo-play:hover {
  background: #dcebe1;
}
.demo-review {
  margin: 12px 0;
  font-size: 13px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 8px 10px;
}
.demo-premium {
  font-size: 12px;
  opacity: 0.7;
  margin: 0;
  text-align: center;
}
/* ===== 課題302: デモ2カラム化 ===== */
.demo-cols {
  max-width: 960px;
}
.demo-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
@media (min-width: 900px) {
  .demo-cols {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-stage.demo-stage-anim,
  .demo-spinner {
    animation: none;
  }
}

/* 課題868（本人依頼 2026-09-11 01:44）: デモのフォンモック内で「押せる箇所」が静止画と区別できないため、
   タップ誘導のアニメーションを付ける。対象＝入力段の送信ボタン（#demo-mock-run）と結果段の再生ボタン（.demo-play）。
   demo.js が表示中の段だけに .demo-tap-hint を付け、その群を一度押した以降は .is-quiet（静的なリングだけ残す）。
   prefers-reduced-motion では動かさずリングのみ。追加要素・追加 i18n キー・計測イベントの変更はなし */
.demo-tap-hint {
  position: relative;
}
.demo-tap-hint::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  pointer-events: none;
}
#demo .demo-tap-hint:not(.is-quiet) {
  animation: demo-tap-nudge 1.9s ease-in-out infinite;
}
#demo .demo-tap-hint:not(.is-quiet)::after {
  animation: demo-tap-ring 1.9s ease-out infinite;
}
#demo .demo-tap-hint.is-quiet::after {
  opacity: 0.4;
}
@keyframes demo-tap-ring {
  0% { opacity: 0.85; transform: scale(0.8); }
  65% { opacity: 0; transform: scale(1.32); }
  100% { opacity: 0; transform: scale(1.32); }
}
@keyframes demo-tap-nudge {
  0%, 66%, 100% { transform: none; }
  76% { transform: scale(1.09); }
  88% { transform: scale(0.99); }
}
@media (prefers-reduced-motion: reduce) {
  #demo .demo-tap-hint:not(.is-quiet),
  #demo .demo-tap-hint:not(.is-quiet)::after {
    animation: none;
  }
  #demo .demo-tap-hint::after {
    opacity: 0.55;
  }
}

/* 課題350: 導入価格表示 */

/* lp-v3 fix01: 旧ベージュ/オリーブ配色をV3トークンへ全置換（iOSウィジェットの形状＝角丸・ピルはOS模写のため維持） */
/* 課題380: ウィジェット紹介セクション（#widgets）ホーム画面ウィジェット風ビジュアル */
.widget-visual { max-width: 320px; margin: 0 auto; }
.pm-phone { background: #14171a; border-radius: 46px; padding: 10px; box-shadow: var(--shadow); }
.pm-screen { position: relative; border-radius: 37px; padding: 10px 12px 14px; overflow: hidden; background: linear-gradient(165deg, #f4f5f4 0%, #e5f5eb 55%, #e4e6e8 100%); }
.pm-top { display: flex; align-items: center; margin: 2px 2px 12px; }
.pm-time { flex: 1; font-size: 12px; font-weight: 700; color: var(--text); padding-left: 10px; }
.pm-island { width: 84px; height: 22px; border-radius: 999px; background: #0b0d0c; }
.pm-sig { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding-right: 8px; font-size: 9px; font-weight: 700; color: var(--text); }
.pm-batt { width: 20px; height: 10px; border: 1px solid rgba(34, 39, 42, 0.55); border-radius: 3px; position: relative; }
.pm-batt::after { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; right: 6px; background: var(--text); border-radius: 1px; }
.iw { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 13px 14px; box-shadow: 0 10px 22px rgba(34, 39, 42, 0.14); overflow: hidden; }
.iw-txt { flex: 1; min-width: 0; }
.iw-en { margin: 0; font-family: "Noto Sans", "Segoe UI", sans-serif; font-size: 14.5px; font-weight: 700; color: var(--text); }
.iw-jp { margin: 3px 0 0; font-size: 11px; color: var(--sub); }
.iw-ctrls { display: flex; align-items: center; gap: 11px; margin-top: 9px; color: var(--text); }
.iw-ctrls svg { width: 17px; height: 17px; flex: none; display: block; }
.iw-ctrls svg.iw-playbtn { width: 19px; height: 19px; }
.iw-row { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.iw-pill { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 27px; padding: 4px 7px; border-radius: 999px; background: var(--muted); color: var(--text); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.iw-pill svg { width: 12px; height: 12px; flex: none; }
.iw-rate { font-size: 10px; }
.iw-green { background: var(--primary-soft); color: var(--primary-deep); }
.iw-last { margin-left: auto; font-size: 10px; }
.iw-ctrls .iw-sp { flex: 1; }
.iw-ctrls svg.iw-tgl { width: 14px; height: 14px; color: var(--sub); }
.iw-ctrls svg.iw-tgl-on { color: var(--primary-deep); }
.iw-gname { flex: 1; min-width: 0; justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; }
.iw-list { margin-top: 0; }
.iw-lhdr { display: flex; align-items: center; justify-content: space-between; }
.iw-gpill { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); font-size: 11px; font-weight: 700; line-height: 1; }
.iw-cnt { font-size: 10px; font-weight: 600; color: var(--sub); }
.iw-li { margin-top: 8px; min-width: 0; }
.iw-len { margin: 0; font-family: "Noto Sans", "Segoe UI", sans-serif; font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iw-ljp { margin: 1px 0 0; font-size: 10px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 課題385: フレーズリストウィジェットのページ送りフッター（実機準拠） */
.iw-lpager { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; color: var(--primary-deep); }
.iw-lpager svg { width: 13px; height: 13px; flex: none; display: block; }
.iw-lpager span { font-size: 10px; font-weight: 600; color: var(--sub); }
.pm-label { margin: 6px 0 12px; text-align: center; font-size: 10px; font-weight: 600; color: rgba(34, 39, 42, 0.72); }
.pm-app { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 10px rgba(34, 39, 42, 0.12); }
.pm-dock { margin-top: 14px; background: rgba(255, 255, 255, 0.4); border-radius: 22px; padding: 8px 12px; display: flex; justify-content: space-between; }
.pm-caption { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--sub); }
.wg-note { margin: 14px 0 0; font-size: 13px; color: var(--sub); }

/* 課題572: 中段「その言えなかった一言、いまどこに？」（#why） */
/* 課題584→585: カード枠撤去のうえ、サブ文（section-sub）とトンマナ統一（細字・サブ色） */
.why-answer {
  max-width: 40em;
  margin: 42px auto 0;
  color: var(--sub);
  text-align: center;
}


/* ===== 書体二層制（DESIGN.md §3準拠・2026-08-26裁定: セリフ＝学習文と大数字のみ。
   クイズ出題英文 .s-prompt はアプリ実装（.prompt.english）どおりセリフ・
   例文 .s-context はアプリ（.context）どおりサンセリフ ===== */
:root { --font-display: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; }
.s-english { font-family: var(--font-display); font-weight: 600; }
.iw-en { font-family: var(--font-display); font-weight: 600; }
.plan-price { font-family: var(--font-display); font-weight: 600; }
.s-prompt { font-family: var(--font-display); font-weight: 600; }

/* 取込画面モックの検出ヒント（fix17実機のチップ廃止→自動判定に追隨） */
.s-hint { font-size: 11px; color: var(--sub); line-height: 1.5; margin: 2px 0 6px; }

/* ===== lp-v3 fix01→fix02: V3実UIスクショ（780×1688＝390×844 の先頭ビューポートを 280×606 に等比縮小。下部ナビまで全表示） ===== */
.phone-shot { display: block; width: 100%; height: calc(100% - 44px); margin-top: 44px; object-fit: contain; object-position: top center; } /* 44px＝ステータスバー領域（アイランドと重ねない） */

/* ===== 課題830: Before/After 対比（#why） ===== */
.ba { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 18px; align-items: stretch; margin-top: 42px; text-align: left; }
.ba-col { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.ba-after { border-color: var(--primary); background: var(--primary-soft); }
.ba-label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--sub); margin: 0 0 16px; }
.ba-after .ba-label { color: var(--primary-deep); }
.ba-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ba-list li strong { display: block; font-size: 16px; line-height: 1.5; margin: 0 0 4px; color: var(--text); }
.ba-list li span { display: block; font-size: 14px; line-height: 1.7; color: var(--sub); }
.ba-arrow { display: flex; align-items: center; justify-content: center; color: var(--primary); }
.ba-arrow svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .ba { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .ba-arrow { height: 32px; }
  .ba-arrow svg { transform: rotate(90deg); }
}

/* lp-v3 fix01: 改行制御（demo.title 等。hero 以外でも使える汎用版） */
.nb { white-space: nowrap; }

/* lp-v3 fix07: Anki 乗り換え導線・比較ページ（lp/anki.html） */
.more-link { margin: 18px 0 0; font-size: 14px; }
.more-link a, details p a { color: var(--primary-deep); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--primary-soft); }
.more-link a:hover, details p a:hover { border-bottom-color: var(--primary-deep); }
.anki-hero .hero-grid { grid-template-columns: 1fr; text-align: center; padding-bottom: 40px; }
.anki-hero .hero-copy { max-width: 40em; margin: 0 auto; }
.anki-hero .lead { margin-left: auto; margin-right: auto; }
.anki-hero .cta-row { justify-content: center; }
.cmp-wrap { overflow-x: auto; margin-top: 8px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 10px); overflow: hidden; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.6; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { background: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--sub); }
.cmp thead th.cb { color: var(--primary-deep); }
.cmp tbody th { width: 22%; font-weight: 700; color: var(--text); background: var(--muted); }
.cmp td.cb { color: var(--text); background: var(--primary-soft); }
.cmp td.an { color: var(--sub); }
.keep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.keep-grid .card h3 { font-size: 15px; margin-bottom: 12px; }
.keep-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.keep-grid li { padding-left: 24px; position: relative; line-height: 1.6; }
.keep-grid li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.keep-grid .keep li::before { content: "○"; color: var(--primary-deep); }
.keep-grid .lose li::before { content: "×"; color: var(--sub); }
@media (max-width: 900px) {
  .cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 10px 10px; }
  .cmp tbody th { width: 26%; }
  .keep-grid { grid-template-columns: 1fr; }
}

/* lp-v3 fix08: #learn の4カード。PC＝4列で全部見える／900px以下＝横スワイプ（scroll-snap・次カードの端を見せて「続き」を示す。JS・自動再生なし） */
#learn h2 { text-align: center; }
.fcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 42px; text-align: left; } /* lp-v3 fix12: 4列→2×2。fix14: ≥1360px は容器を 1440px に広げて 4 列（下の @media・本人FB 2026-09-09 17:56） */
@media (min-width: 1360px) {
  #learn .container { max-width: 1440px; }
  .fcards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .fcard h3 { font-size: 16px; }
  .fcard p { font-size: 13.5px; }
}
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 20px; }
.fcard-shot { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); aspect-ratio: 195 / 443; max-width: 236px; margin: 0 auto; } /* lp-v3 fix12: 横長 → fix13: 780×740（クイズの出題語〜習得済みボタンまで収める） */
.fcard-shot img { display: block; width: 100%; height: calc(100% - 26px); margin-top: 26px; object-fit: contain; object-position: top center; }
/* 課題893: #learn の 4 枚にもステータスバー（他のフォンモック＝.phone-status と同じ 9:41 ・電池表記）。帯 26px 分を上端に取るため比率を 195/422 → 195/443 にし、帯の地色を画像と同じ紙色（--bg）にする */
.fcard-status { position: absolute; top: 0; left: 0; right: 0; height: 26px; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 14px 5px; font-size: 9px; font-weight: 700; color: var(--text); z-index: 2; }
.fcard h3 { font-size: 17px; line-height: 1.4; margin: 16px 0 8px; }
.fcard p { font-size: 14px; line-height: 1.7; color: var(--sub); margin: 0; }
.fcards-note { margin: 32px auto 0; text-align: center; }
@media (max-width: 900px) {
  .fcards {
    display: flex; gap: 14px; margin: 32px -24px 0; padding: 4px 24px 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .fcards::-webkit-scrollbar { display: none; }
  .fcard { flex: 0 0 82%; scroll-snap-align: start; }
  .fcards-note { margin-top: 24px; }
}

/* lp-v3 fix09 */
/* 390 幅の帯（.strip）は 2×2 で項目が折り返し「語」が孤立し、hero 直下で情報が重複するため非表示（600px 以下） */
@media (max-width: 600px) {
  .strip { display: none; }
}
/* デモモックの下部ナビ（実UI切り出し 780×204 → 390×102） */
.s-bottomnav { display: block; width: 390px; height: 102px; flex: 0 0 auto; margin-top: auto; }
.site-nav a.is-current { color: var(--text); font-weight: 600; }

/* ===== lp-v3 fix10: デモ例文3択（案1）・リベンジ予告（案3） ===== */
.demo-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.demo-sample {
  appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.demo-sample:hover { border-color: var(--primary); color: var(--primary-deep); }
.demo-sample.is-on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-deep);
}
.demo-sample:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.demo-revenge {
  margin-top: -6px;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--sub);
}

/* ===== lp-v3 fix12（本人FB 2026-09-09 09:45）=====
 * ①セクション地色の交互配置: hero(bg)→strip(surface)→why(bg)→routes(surface)→demo(muted)→migrate(bg)→learn(surface)→voice(bg)→widgets(surface)→langs(bg)→pricing(surface)→faq(bg)→cta(muted)。隣接同色ゼロ（fix15: voice/widgets/langs は #more(bg) に統合＝learn(surface)→more(bg)→pricing(surface)）
 * ②#why・#routes に実UIのフォンモックを追加（split 化）
 * ③#learn を 2×2・横長切り出しに（4列では実機の 0.55 倍で文字が読めない） */
.why-split { grid-template-columns: 1.45fr 1fr; gap: 40px; }
.why-split .section-sub.left { max-width: none; text-wrap: balance; }
.why-split .ba { grid-template-columns: 1fr 32px 1fr; gap: 12px; margin-top: 28px; }
.why-split .ba-col { padding: 20px 18px; }
.why-split .ba-list { gap: 14px; }
.why-split .ba-list li strong { font-size: 15px; }
.why-split .ba-list li span { font-size: 13.5px; line-height: 1.65; }
.why-split .ba-arrow svg { width: 24px; height: 24px; }
/* 課題876（本人FB 2026-09-13 08:55）: #why の図の上端を Before/After カード（これまで／Chunkbookなら）の上端に揃える。見出し＋リードを .why-head として左列1行目に置き、カードと図を同じ2行目に並べる */
.why-split { align-items: start; row-gap: 0; }
/* 課題879（本人FB 2026-09-13 12:06）: 見出し＋リードは2列ぶんの全幅を使う（1行に収まる幅を確保） */
.why-split > .why-head { grid-column: 1 / -1; grid-row: 1; text-align: left; }
.why-split > .split-copy { grid-column: 1; grid-row: 2; }
.why-split > .split-visual { grid-column: 2; grid-row: 2; margin-top: 28px; }
.routes-split { grid-template-columns: 1fr 1.45fr; gap: 48px; }
.routes-split .section-sub.left { max-width: none; }
.routes-split .cards3 { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.routes-split .card { padding: 20px 22px; }
.routes-split .card-num { margin-bottom: 6px; }
@media (max-width: 1100px) {
  .why-split .ba { grid-template-columns: 1fr; gap: 10px; }
  .why-split .ba-arrow { height: 28px; }
  .why-split .ba-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 900px) {
  .why-split, .routes-split { grid-template-columns: 1fr; gap: 36px; }
  .routes-split .split-visual { order: 1; } /* スマホは文→フォンの順 */
  .why-split .ba { margin-top: 24px; }
  .why-split > .why-head, .why-split > .split-copy, .why-split > .split-visual { grid-column: 1; grid-row: auto; }
  .why-split > .split-visual { margin-top: 0; }
}

/* ===== lp-v3 fix15（本人FB 2026-09-09 17:56 → 18:10 裁定「推奨で」＝LP の長さ削減・#why のビジュアル）=====
 * ①#why: フォンモック（フレーズ詳細）→ CSS タイポグラフィ構成 .why-scene（断片3つ→矢印→Chunkbook の1枚）。画像なし・朱下線は抽出フレーズ（添削）のみ
 * ②#voice・#widgets・#langs → #more 1 セクション 3 カード（.more-grid）
 * ③#routes カードを番号横並びのコンパクト形に
 * ④FAQ 6→4（index.html 側） */
.why-scene { width: 100%; max-width: 400px; display: grid; gap: 10px; }
.why-curve { max-width: 440px; gap: 12px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; }
.wc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.wc-key { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; }
.wc-key i { display: block; width: 20px; border-top: 3px solid currentColor; border-radius: 2px; }
.wc-key-plain { color: #9aa093; }
.wc-key-plain i { border-top-style: dashed; }
.wc-key-cb { color: var(--primary-deep); }
.wc-plot { display: grid; grid-template-columns: 76px 1fr; align-items: stretch; }
.wc-ylab { display: flex; flex-direction: column; justify-content: space-between; padding: 2px 8px 14px 0; text-align: right; font-size: 10.5px; line-height: 1.3; font-weight: 700; color: var(--sub); white-space: nowrap; }
.wc-chart { display: block; width: 100%; height: auto; }
.wc-grid line { stroke: var(--border); stroke-width: 1; }
.wc-marks line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.wc-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wc-line-plain { stroke: #b9bdb4; stroke-dasharray: 7 6; }
.wc-line-cb { stroke: var(--primary); }
.wc-dot circle { fill: var(--bg); stroke: var(--primary); stroke-width: 3; }
.wc-axis { position: relative; height: 16px; margin-left: 76px; }
.wc-x { position: absolute; top: 0; font-size: 11px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.wc-x0 { left: 0; }
.wc-x1 { left: 32.5%; transform: translateX(-50%); }
.wc-x2 { left: 57.5%; transform: translateX(-50%); }
.wc-x3 { right: 0; }
.wc-note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--sub); }
@media (max-width: 560px) { .why-curve { padding: 16px 14px 14px; } .wc-ylab { font-size: 10px; } .wc-x { font-size: 10px; } .wc-plot { grid-template-columns: 64px 1fr; } .wc-axis { margin-left: 64px; } }
.why-split .split-visual { align-items: center; }

.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.more-card { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; }
.more-card h3 { font-size: 17px; margin: 0; line-height: 1.45; }
.more-card > p { font-size: 13.5px; line-height: 1.7; color: var(--sub); margin: 0; }
.more-card .voice-line { font-size: 14px; margin: 4px 0 0; }
.more-card .voice-chips { gap: 6px; }
.more-card .voice-chip { font-size: 12px; }
.more-card .more-iw { margin-top: 4px; }
.more-card .lang-chips.left { justify-content: flex-start; gap: 8px; margin-top: 4px; }
.more-card .lang-chip { font-size: 12.5px; padding: 6px 12px; }
@media (max-width: 1100px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* lp-v3 fix16: 縦積み(3 カード・390 幅で約 1,300px) → #learn(.fcards) と同じ横スクロール（本人 2026-09-09 18:54「横スクロールで見せるのは有効ではない？」→ 推奨で施工。旧: grid-template-columns: 1fr） */
  .more-grid {
    display: flex; gap: 14px; margin: 28px -24px 0; padding: 4px 24px 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .more-grid::-webkit-scrollbar { display: none; }
  .more-card { flex: 0 0 82%; scroll-snap-align: start; }
  .why-scene { max-width: 440px; margin: 0 auto; }
}

.routes-split .cards3 { gap: 10px; margin-top: 22px; }
.routes-split .card { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 4px; padding: 14px 18px; align-items: start; }
.routes-split .card-num { grid-row: 1 / span 2; margin: 0; padding-top: 4px; }
.routes-split .card h3 { font-size: 16px; margin: 0; line-height: 1.45; }
.routes-split .card p { font-size: 13.5px; line-height: 1.65; }

/* ===== lp-v3 fix16: 見出しの 1〜2 文字ぶら下がり（本人FB 2026-09-09 18:54・iPhone SE で #learn h2 が「い。」「る。」で折り返す） =====
 * 原因: h2 の最小 26px × 13 文字（字間 -0.02em）= 約 331px > 375 幅の本文幅 327px。
 * ① ≤480px は h2 を 6.4vw（375→24px・390→25px・480→26px 上限）にして 13 文字を 1 行に収める（ja/ko の 2 行見出しは <br> の位置どおり 2 行に）。
 * ② h2 / カード h3 / FAQ の質問は text-wrap: balance（対応ブラウザのみ。非対応は従来どおり）。1280 幅の #routes「…なる。」・en #why「say?」の 1 語ぶら下がりも解消。
 * h1（hero）は fix12 の <br> 制御を維持し対象外。 */
h2 { text-wrap: balance; }
html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3, html:lang(ko) summary { word-break: keep-all; } /* 韓国語は既定で語の途中でも改行される（“말 / 할 수 있다”）。見出しは語単位で折り返す */
.fcard h3, .more-card h3, .routes-split .card h3, summary { text-wrap: balance; }
@media (max-width: 480px) {
  h2 { font-size: clamp(22px, 6.4vw, 26px); }
  #learn h2 br { display: none; } /* en は <br> の各行が 375 幅で 2 行になり「it.”」が 2 回ぶら下がる。<br> があると balance が働かないため 480px 以下は外し、balance に任せる（ja は 13+13 文字で同じ 2 行） */
}


/* ===== 課題839（第5回マーケレビュー）: デモ結果へのスクロール＋CTA を結果の下へ ===== */
#demo-result { scroll-margin-top: 72px; }
.demo-after { display: grid; gap: 10px; justify-items: center; text-align: center; }
.demo-after .cta-note { margin: 0; }
@media (min-width: 900px) { .demo-after { grid-column: 1 / -1; margin-top: 8px; } }

/* ===== 課題840（第5回マーケレビュー）: SP スティッキー CTA ===== */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; box-sizing: border-box; padding: 0 14px; padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06); }
  .sticky-cta .sticky-note { font-size: 12px; opacity: 0.8; line-height: 1.3; }
  .sticky-cta .btn { padding: 10px 18px; font-size: 15px; margin-bottom: 0; box-shadow: none; white-space: nowrap; }
  body.has-sticky-cta { padding-bottom: 64px; }
}

/* ---------- 課題870: ストアバッジのアプリ DL 誘導（吹き出し） ---------- */
/* .store-badges の子なので、URL 未設定・画像未配置時は wrapper と一緒に非表示される */
.badge-callout {
  position: relative;
  display: inline-block;
  background: var(--brand, #149a55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 15em;
  white-space: pre-line;
}
.badge-callout::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--brand, #149a55);
  border-right: 0;
}
@media (max-width: 560px) {
  /* バッジが折り返す幅では吹き出しを上に置き、尾を下向きに */
  .store-badges { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 12px; justify-content: start; }
  .badge-callout { grid-column: 1 / -1; justify-self: start; }
  .badge-callout::after {
    top: auto;
    bottom: -6px;
    left: 20px;
    right: auto;
    transform: none;
    border: 6px solid transparent;
    border-top-color: var(--brand, #149a55);
    border-bottom: 0;
  }
  .cta-final .store-badges, .anki-hero .store-badges { justify-content: center; }
  .cta-final .badge-callout, .anki-hero .badge-callout { justify-self: center; }
  .cta-final .badge-callout::after, .anki-hero .badge-callout::after { left: 50%; margin-left: -6px; }
}
/* 課題870: ¥0 系の定型句を削除した分、SP スティッキー CTA はワードマーク表示に */
.sticky-cta .sticky-brand { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- 課題871: hero はワードマーク＋h1＋タグラインの 3 段（eyebrow 廃止） ---------- */
.hero-wordmark {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand, #149a55);
  margin: 0 0 12px;
}
/* 課題872: 「あなただけのAI語学帳」までがキャッチコピー。h1 と同格の大きさで見せる */
.hero-tagline { font-size: clamp(24px, 3.1vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: var(--text); margin: 6px 0 0; }

/* 課題871: SP でストアバッジが表示できるときはアプリ DL を上位に。URL 未設定時は has-store が付かないので従来の表示のまま */
.cta-row .web-alt, .sticky-cta .sticky-app { display: none; }
/* 課題872: バッジを出せるときは hero の主CTAを「Web版はこちら」に切替（PC・SP共通） */
.has-store .hero .cta-row .btn.primary { display: none; }
.has-store .hero .cta-row .web-alt { display: inline-flex; }
/* 課題872: ヘッダーのストアバッジ（幅 1200px 以上のみ。ナビと競合させない） */
.store-badges--nav { margin-top: 0; gap: 8px; }
.store-badges--nav img { height: 28px; }
@media (max-width: 1199px) { .store-badges--nav { display: none !important; } }
@media (max-width: 767px) {
  .has-store .hero-copy { display: flex; flex-direction: column; }
  .has-store .hero-copy .hero-wordmark { order: 1; }
  .has-store .hero-copy h1 { order: 2; }
  .has-store .hero-copy .hero-tagline { order: 3; }
  .has-store .hero-copy .lead { order: 4; }
  .has-store .hero-copy .store-badges { order: 5; margin-top: 20px; }
  .has-store .hero-copy .cta-row { order: 6; margin-top: 14px; }
  .has-store .sticky-cta .btn.primary:not(.sticky-app) { display: none; }
  .has-store .sticky-cta .sticky-app { display: inline-flex; }
}

/* 課題874→875: ストアバッジ周りの余白調整（吹き出しは2行表示に得戻し） */
.cta-final .store-badges { margin-top: 28px; margin-bottom: 28px; row-gap: 14px; }
.anki-hero .store-badges { margin-top: 24px; margin-bottom: 24px; row-gap: 14px; }
@media (min-width: 768px) { .hero .store-badges { margin-top: 26px; row-gap: 14px; } .hero .cta-row { margin-top: 22px; } }
@media (max-width: 560px) { .store-badges { gap: 12px; } .cta-final .store-badges { margin-bottom: 30px; } }

/* 課題875: 実機スクショのフォンモックにもステータスバー（demo モックと同じ 9:41 ・電池表記）。.phone-shot が 44px 空けている帯に重なる */
.phone-status { position: absolute; top: 11px; left: 11px; width: 280px; height: 39px; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 4px; font-size: 9.5px; font-weight: 700; color: var(--text); z-index: 2; }

/* 課題875: デモモックの下部ナビ直上に出る文字の見切れを背景色へフェードして隠す */
.demo-stages { position: relative; }
.demo-stages::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(to top, var(--bg) 62%, transparent); pointer-events: none; z-index: 1; }

/* 課題909: 日本語以外のブラウザ向けの言語案内バー（ブラウザ言語での自動切替をやめた代替） */
.lang-notice { background: #fafbf8; border-bottom: 1px solid #d9ddd5; text-align: center; font-size: 13px; padding: 8px 12px; }
.lang-notice a { color: #0f7a43; text-decoration: underline; }
