/* 動詞図鑑 ビューア
   デザインシステム v2「図鑑スタイル」（2026-07-31 Fable裁定）に移行。
   正典トークン: derived/shared/design-tokens-v2.css
   色はすずきひろし『英単語の語源図鑑』P10見開きから実測サンプリングした値。

   旧v1（実践フレーズデモ踏襲）のネイビー/クリーム/lime/ブルーは全廃。
   ただし本ファイル内の既存セレクタを壊さないよう、旧変数名は v2 の色へ
   読み替える形で残している（--blue* は互換エイリアス。新規実装では使わない）。 */

:root {
  /* ---- v2 基調 ---- */
  --paper: #FFFFFF;
  --ink: #222222;
  --ink-strong: #211816;
  --muted: #888888;
  --line: #D5D5D7;
  --card-line: #D5D5D7;
  --white: #FFFFFF;
  --section-bg: #EFEFEF;

  /* ---- 動詞図鑑アクセント: 青緑 ----
     前置詞図鑑の白×黒グレー×単色アクセント構成をそのまま使い、
     シリーズ内で巻を見分けられるよう色相だけを変える。 */
  --pink: #438F86;
  --pink-deep: #2C6F68;
  --pink-soft: #E1F1EE;
  --pink-line: #B7DDD7;
  --root-grey: #A0A0A0;

  /* 旧変数名の互換エイリアス（既存セレクタ用。新規では --pink 系を使う） */
  --blue: var(--pink);
  --blue-dark: var(--pink-deep);
  --blue-soft: var(--pink-soft);
  --lime: var(--pink);

  /* ---- ハイライト二役分離 ---- */
  /* UI v2 追加トークン（UI-V2-DESIGN.md §0。新色はこの3つだけ） */
  --ipa: #2C6F68;
  --bar-bg: rgba(255, 255, 255, .96);
  --story-bg: #F6F8F7;

  --marker: #F7E58B;          /* 黄色マーカー = 重要文・核心文 */
  --dash: #C9C9CB;            /* グレーの破線 */

  --radius: 14px;
  --shadow: 0 1px 3px rgba(33, 24, 22, 0.06);

  --font-display: "Futura", "Century Gothic", "Avenir Next", "Poppins",
                  "Helvetica Neue", Arial, sans-serif;
  --font-ipa: "Lucida Grande", "Segoe UI", "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---- v2 共通コンポーネント（図鑑スタイル） ---- */

/* 見出し語: 極太ジオメトリックサンセリフ小文字 */
.verb-title, .word-title, .headword {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
/* 語源分解の色分け（語源図鑑シリーズへの布石） */
.hw-prefix { color: var(--ink-strong); }
.hw-root   { color: var(--root-grey); }
.hw-pink   { color: var(--pink-deep); }

/* チャプターバー: ピンクの角丸帯 */
.chapter-bar {
  display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box;
  background: var(--pink); color: #fff;
  font-weight: 700; font-size: 15px; padding: 7px 26px 7px 20px;
  border-radius: 0 999px 999px 0; margin: 0 0 18px -20px;
  letter-spacing: .02em; text-decoration: none;
}
a.chapter-bar:hover { background: var(--pink-deep); color: #fff; }

/* 品詞タグ */
.tag-pos { display: inline-block; background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1; padding: 3px 6px;
  border-radius: 6px; vertical-align: middle; }

/* セクションラベル: ピンクの角丸タブ */
.section-tab { display: inline-block; background: var(--pink); color: #fff;
  font-weight: 700; font-size: 13px; padding: 5px 16px; border-radius: 8px 8px 0 0; }

/* ハイライト二役 */
.mark { background: linear-gradient(transparent 40%, var(--marker) 40%); padding: 0 1px; }
.target { color: var(--pink-deep); font-weight: 700; }

/* グレーの破線区切り */
.divider-dash { border: none; border-top: 2px dashed var(--dash); margin: 22px 0; }

/* 発音: 【 】ジーニアス式 */
.pron-genius { font-family: var(--font-ipa); font-size: 17px; color: var(--ink); }
.pron-genius .pron-val::before { content: "【"; color: var(--muted); }
.pron-genius .pron-val::after  { content: "】"; color: var(--muted); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  /* 本文が横スクロールしないことを保証する（横溢はコンテナ内で処理） */
  overflow-x: hidden;
}

/* 長い英文・IPA・画像がグリッドを押し広げるのを防ぐ */
img { max-width: 100%; height: auto; }

button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: 0.03em; }
.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.topbar-search { flex: 1; max-width: 340px; }
.topbar-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
}
.topbar-search input::placeholder { color: var(--muted); }

.header-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.header-link:hover { color: var(--pink-deep); }

.topbar-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- layout ---------- */
.shell {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  gap: 28px;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
}
/* グリッド/フレックスの子は min-width:auto だと縮まず横溢する */
.shell > * { min-width: 0; }

/* ---------- word list ---------- */
.list-panel {
  position: sticky;
  top: 96px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
}
.list-head span:first-child {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.list-head span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}

.word-list {
  display: grid;
  gap: 2px;
  max-height: 62vh;
  margin-top: 10px;
  overflow-y: auto;
}

.word-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.word-row:hover { background: var(--blue-soft); }
.word-row.is-active { background: var(--ink); color: #fff; }
.word-row b { font-size: 14px; letter-spacing: -0.01em; }
.word-row .row-ja {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.word-row.is-active .row-ja { color: var(--pink-soft); }
.row-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.word-row.has-image .row-dot { background: var(--blue); }
.word-row.is-active .row-dot { background: var(--pink-soft); }

/* ---------- card ---------- */
.practice-card {
  position: relative;
  padding: clamp(24px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.card-meta > div { display: flex; flex-wrap: wrap; gap: 8px; }

.counter, .category, .source-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.counter { background: var(--blue); color: #fff; font-family: var(--mono); }
.category { background: var(--blue-soft); color: var(--blue-dark); }
.source-label { color: var(--muted); }
.source-label.is-pending {
  background: #f0eee7;
  color: #8a7b63;
}

.answer-area { padding: 54px 0 34px; }

.meaning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  align-items: center;
  margin: 0 0 26px;
  padding: 0 0 21px;
  border-bottom: 1px solid var(--line);
}
.meaning-row strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.025em;
}
.meaning-row small { color: var(--muted); font-size: 15px; line-height: 1.5; }

.headword {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.3vw, 68px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.core-image {
  max-width: 800px;
  margin: 18px 0 0;
  color: #555d6d;
  font-size: 16px;
  line-height: 1.8;
}

/* 語源・コアイメージ画像 */
.verb-figure { margin: 30px 0 0; }
.verb-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
}
/* UI v2: figcaption は「CORE IMAGE」の重複になるため削除した（§3）。 */

/* ---------- コアイメージ（1文ラベル） ---------- */
.core-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
}
.core-label-tag {
  display: inline-grid;
  min-height: 24px;
  align-content: center;
  padding: 0 11px;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.core-label p {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- ストーリー仕立ての解説 ---------- */
.core-story {
  margin-top: 16px;
  padding: 20px 22px;
  background: #f0eee7;
  border-radius: 14px;
}
.core-story p {
  margin: 0;
  color: #4a5262;
  font-size: 15px;
  line-height: 2;
}

/* ---------- IPA ---------- */
.ipa-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 26px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-left: 4px solid var(--pink);
  border-radius: 12px;
}
.ipa-panel p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  margin: 0;
}
.ipa-panel p strong {
  display: inline-grid;
  min-height: 22px;
  place-items: center;
  background: var(--ink);
  border-radius: 5px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.06em;
}
.ipa-panel p span {
  color: #303a50;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* ---------- audio row ---------- */
.audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.voice-buttons {
  display: grid;
  width: min(590px, 76%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.voice-button {
  display: grid;
  min-width: 0;
  min-height: 68px;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 14px 9px 10px;
  background: #f6f7fa;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.voice-button:hover:not(:disabled) { border-color: var(--pink); transform: translateY(-1px); }
.voice-button:disabled { cursor: not-allowed; opacity: .5; }
.voice-button.is-playing { background: var(--ink); border-color: var(--ink); color: #fff; }

.voice-play {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: var(--shadow);
  contain: layout paint;
}
.voice-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: 0;
  transform: translate(-38%, -50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}
.voice-button.is-playing .voice-play { background: var(--pink-deep); }
.voice-button.is-playing .voice-play::before {
  width: 10px;
  height: 10px;
  margin: 0;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 0;
  border-radius: 2px;
}

.voice-copy { min-width: 0; }
.voice-copy strong { display: block; font-size: 14px; letter-spacing: .08em; }
.voice-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.voice-button.is-playing .voice-copy small { color: var(--pink-soft); }

.voice-wave { display: flex; height: 26px; gap: 3px; align-items: center; }
.voice-wave i {
  display: block;
  width: 2px;
  height: 8px;
  background: #9da9c6;
  border-radius: 99px;
}
.voice-wave i:nth-child(2), .voice-wave i:nth-child(4) { height: 16px; }
.voice-wave i:nth-child(3) { height: 24px; }
.voice-button.is-playing .voice-wave i { background: var(--lime); }

@media (prefers-reduced-motion: no-preference) {
  .voice-button.is-playing .voice-wave i {
    animation: voice-bar .65s ease-in-out infinite alternate;
  }
  .voice-button.is-playing .voice-wave i:nth-child(2) { animation-delay: -.18s; }
  .voice-button.is-playing .voice-wave i:nth-child(3) { animation-delay: -.36s; }
  .voice-button.is-playing .voice-wave i:nth-child(4) { animation-delay: -.24s; }
}
@keyframes voice-bar { from { height: 6px; } to { height: 24px; } }

/* ---------- speed ---------- */
.speed-control {
  display: grid;
  min-width: min(250px, 100%);
  gap: 9px;
  padding: 10px;
  background: var(--section-bg);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.speed-control-heading span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.speed-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
.speed-options button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}
.speed-options button.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.speed-options button.is-active::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
}

/* ---------- senses ---------- */
.senses { margin-top: 34px; }

.sense-block { margin-top: 26px; }
.sense-block:first-child { margin-top: 0; }

.sense-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 35px;
  margin: 0 0 12px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.sense-block:first-child .sense-heading { padding-top: 0; border-top: 0; }

.sense-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  background: var(--blue-soft);
  border-radius: 50%;
  color: var(--pink-deep);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

.sense-core {
  margin: 0 0 14px 52px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.example {
  margin: 12px 0 0 52px;
  padding: 16px 18px;
  background: #f0eee7;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}
.example-en {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.015em;
}
.example-en mark {
  padding: 0;
  background: none;
  color: var(--pink-deep);
  font-weight: 700;
}
.example-ja {
  margin: 8px 0 0;
  color: #555d6d;
  font-size: 14px;
  line-height: 1.8;
}

.ex-play {
  position: relative;
  display: block;
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-top: 3px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--pink);
  cursor: pointer;
  line-height: 0;
  transform: translate3d(0, 0, 0);
  contain: layout paint;
}
.ex-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-38%, -50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}
.ex-play:hover { background: var(--pink-deep); }
.ex-play:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 2px; }
.ex-play.is-playing { background: var(--pink-deep); }
.ex-play.is-playing::before {
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 1px;
  background: #fff;
}

.pending-note {
  margin: 12px 0 0 52px;
  padding: 14px 16px;
  background: #f4f2ec;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: #8a7b63;
  font-size: 13px;
}

/* ---------- nav ---------- */
.card-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.card-nav button {
  min-height: 46px;
  padding: 0 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.card-nav button:hover:not(:disabled) { border-color: var(--pink); color: var(--pink-deep); }
.card-nav button:disabled { cursor: not-allowed; opacity: .4; }
.card-nav .nav-pos {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding: 24px 18px 72px; }
  .list-panel { position: static; }
  .word-list { max-height: 240px; }
}

@media (max-width: 720px) {
  .audio-row { flex-direction: column; align-items: stretch; }
  .voice-buttons { width: 100%; }
  .voice-play { width: 38px; height: 38px; }
  .voice-wave { display: none; }
  .speed-control { min-width: 0; }
  .meaning-row strong { font-size: 22px; }
  .meaning-row small { width: 100%; font-size: 14px; }
  .ipa-panel { padding: 15px 14px; }
  .ipa-panel p { grid-template-columns: 32px minmax(0, 1fr); gap: 7px; }
  .ipa-panel p span { font-size: 16px; }
  .answer-area { padding: 32px 0 24px; }
  .sense-core, .example, .pending-note { margin-left: 0; }
}

@media (max-width: 620px) {
  .topbar { min-height: 62px; padding: 10px 16px; flex-wrap: wrap; }
  .topbar-search { max-width: none; order: 3; flex-basis: 100%; }
  .headword { font-size: clamp(30px, 11vw, 44px); }
  .core-label { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
  .core-label p { font-size: 17px; }
  .core-story { padding: 16px 18px; }
  .practice-card { padding: 20px 16px; }
  .voice-buttons { grid-template-columns: 1fr; }
  .example-en { font-size: 16px; }
}

/* ============================================================
   多ページIA（トップ／章一覧／章／学習記録）
   ============================================================ */

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.crumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.crumb a { color: var(--pink-deep); text-decoration: none; }
.crumb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.crumb a:hover { text-decoration: underline; }

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 22px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.page-title small {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -.01em;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(28px, 5vw, 62px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}
.hero h1 {
  margin: 10px 0 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -.055em;
}
.hero-lede {
  max-width: 62ch;
  margin: 18px 0 0;
  color: #4e566a;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.btn-primary, .btn-ghost, .btn-danger, .navbtn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.btn-primary { background: var(--blue); border-color: var(--pink); color: #fff;
  box-shadow: var(--shadow); }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn-primary:disabled { background: #c3c9d6; border-color: #c3c9d6; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--white); color: var(--pink-deep); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-danger { background: var(--white); border-color: #c94b52; color: #c94b52; }
.btn-danger:hover { background: #c94b52; color: #fff; }

/* ---------- 統計ストリップ ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  margin: 26px 0 12px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stat-cell {
  display: grid;
  gap: 4px;
  padding: 18px 14px;
  background: var(--white);
  text-align: center;
}
.stat-cell b {
  font-family: var(--mono);
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -.02em;
}
.stat-cell span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }

/* ---------- プログレスバー ---------- */
.pbar {
  overflow: hidden;
  height: 7px;
  background: var(--line);
  border-radius: 999px;
}
.pbar > span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
  transition: width .3s ease;
}

/* ---------- 章 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 16px;
}
.section-head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.03em; }
.link-more { color: var(--pink-deep); font-size: 13px; font-weight: 800; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.ch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.ch-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.ch-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.ch-n { color: var(--pink-deep); font-family: var(--mono); font-size: 11px; font-weight: 900; }
.ch-card strong { font-family: var(--font-display); font-size: 15px; letter-spacing: -.01em; }
.ch-meta { color: var(--muted); font-size: 11px; font-weight: 700; }

.ch-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ch-summary .pbar { flex: 1; }
.ch-summary span { color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 900; }

/* ---------- 検索・フィルタ ---------- */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.search-box { flex: 1; min-width: 220px; max-width: 420px; }
.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
}
.hit { color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 900; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.chip {
  min-width: 34px;
  min-height: 32px;
  padding: 0 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}
.chip:hover { border-color: var(--pink); color: var(--pink-deep); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 単語リスト ---------- */
.wlist {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.wrow {
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.wrow:last-child { border-bottom: 0; }
.wrow:hover { background: var(--blue-soft); }
.wrow b { font-family: var(--font-display); font-size: 16px; letter-spacing: -.01em; }
.wrow-ja { overflow: hidden; color: var(--muted); font-size: 12.5px;
  text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dot.has-img { background: var(--blue); }

.badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}
.badge.done { background: var(--lime); color: var(--ink); }
.badge.review { background: #ffe7e8; color: #c94b52; }
.badge.pending { background: #eceff4; color: #687184; }
.badge.sample { background: #fff1ad; color: #6e5600; }
.badge.locked { background: #34423f; color: #fff; }
.wrow.is-preview-pending { color: #72798a; }
.wrow.is-free-locked { color: #717a78; background: #fafbfb; }
.wrow.is-free-locked:hover { background: #eef4f2; }

.preview-pending-card {
  max-width: 760px;
  margin: 36px auto;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid #e4e7ee;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 18px 54px rgba(34, 44, 74, .09);
  text-align: center;
}
.preview-pending-card h1 { margin: 10px 0 4px; font-size: clamp(44px, 10vw, 76px); }
.preview-pending-card > p { line-height: 1.9; }
.preview-pending-ja { margin-top: 0; color: #71798c; }
.preview-sample-link { display: inline-flex; margin-top: 16px; text-decoration: none; }
.free-core-teaser {
  max-width: 560px;
  margin: 24px auto;
  padding: 20px 22px;
  background: #edf5f3;
  border-left: 4px solid var(--pink);
  border-radius: 0 14px 14px 0;
  text-align: left;
}
.free-core-teaser strong { color: var(--pink-deep); font-size: 11px; letter-spacing: .08em; }
.free-core-teaser p { margin: 8px 0 0; color: var(--ink); font-weight: 800; line-height: 1.8; }

/* ---------- 済/要復習ボタン ---------- */
.flag-btns { display: flex; align-items: center; gap: 7px; }
.flagbtn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}
.flagbtn:hover { border-color: var(--pink); color: var(--pink-deep); }
.flagbtn.is-on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.flagbtn.review.is-on { background: #c94b52; border-color: #c94b52; color: #fff; }
.reps { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 900; }

/* ---------- 連続再生 ---------- */
.play-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.q-status {
  margin: 0 0 16px;
  padding: 11px 16px;
  background: var(--ink);
  border-radius: 10px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}
.note-inline { color: var(--muted); font-size: 12px; }

/* ---------- YouTube導線 ---------- */
.yt-block {
  margin-top: 42px;
  padding: 24px 26px;
  background: var(--ink);
  border-radius: 18px;
  color: #fff;
}
.yt-block h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.yt-block p { margin: 8px 0 0; color: #c8cfdf; font-size: 13.5px; line-height: 1.8; }
.yt-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.yt-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid #26324f;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.yt-link:hover { background: rgba(255, 255, 255, .14); border-color: var(--lime); }
.yt-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  background: #c94b52;
  border-radius: 50%;
  font-size: 10px;
}

/* ---------- 学習記録 ---------- */
.rec-block {
  margin-top: 34px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.rec-block h2 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.02em; }
.rec-row {
  display: grid;
  grid-template-columns: 80px 1fr 130px 80px;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.rec-row:first-of-type { border-top: 0; }
.rec-row a { color: var(--pink-deep); font-weight: 800; text-decoration: none; }
.rec-row span { overflow: hidden; color: var(--muted); font-size: 12px;
  text-overflow: ellipsis; white-space: nowrap; }
.rec-row b { font-family: var(--mono); font-size: 12px; text-align: right; }

.io-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.file-label { cursor: pointer; }
.io-msg { margin: 12px 0 0; color: var(--pink-deep); font-size: 12px; font-weight: 800; }
.empty { margin: 0; padding: 18px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .page-wrap { padding: 20px 16px 72px; }
  .wrow { grid-template-columns: minmax(70px, auto) 1fr auto; }
  .wrow-ja { grid-column: 1 / -1; white-space: normal; }
  .rec-row { grid-template-columns: 1fr auto; gap: 6px; }
  .rec-row .pbar { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(34px, 12vw, 52px); }
}

/* トップバーのナビ */
.topnav { display: flex; flex-wrap: wrap; gap: 18px; }
.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.topnav a:hover { color: var(--pink-deep); }
@media (max-width: 620px) {
  .topnav { gap: 12px; }
  .topnav a { font-size: 12px; }
}

/* ============================================================
   Paid-first shell v1 — shared free/paid source + UTAGE embed
   ============================================================ */

.edition-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  color: var(--pink-deep);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.edition-pill.is-paid { background: var(--ink); border-color: var(--ink); color: #fff; }
.edition-pill.is-free { background: var(--pink-soft); }
.hero-v2 { position: relative; overflow: hidden; }
.hero-v2::after {
  content: "VERB";
  position: absolute;
  right: clamp(-18px, -1vw, 0px);
  bottom: -24px;
  color: rgba(222, 124, 161, .08);
  font-family: var(--font-display);
  font-size: clamp(88px, 18vw, 220px);
  font-weight: 900;
  line-height: .8;
  pointer-events: none;
}
.hero-v2 > * { position: relative; z-index: 1; }
.hero-v2 .eyebrow { margin-top: 18px; }
.hero-search {
  display: grid;
  width: min(620px, 100%);
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 24px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(33, 24, 22, .08);
}
.hero-search input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  color: var(--ink);
  outline: 0;
}
.hero-search button {
  min-width: 76px;
  min-height: 44px;
  padding: 0 20px;
  background: var(--pink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}
.hero-search button:hover { background: var(--pink-deep); }

.learning-flow {
  margin: 54px 0 12px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--ink);
  border-radius: 24px;
  color: #fff;
}
.section-kicker {
  color: var(--pink-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.learning-flow .section-kicker { color: var(--pink); }
.learning-flow h2,
.meaning-zone h2 { margin: 10px 0 24px; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.035em; }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
.flow-step { min-width: 0; padding: 18px 20px; border-left: 1px solid rgba(255,255,255,.16); }
.flow-step:first-child { border-left: 0; }
.flow-step > span { display: block; color: var(--pink); font-family: var(--mono); font-size: 10px; font-weight: 900; }
.flow-step strong { display: block; margin-top: 10px; font-size: 18px; }
.flow-step p { margin: 8px 0 0; color: #d6d0ce; font-size: 12px; line-height: 1.7; }

.lesson-shell { padding-top: 34px; }
/* UI v2: ページ内タブは固定しない。現在位置は aria-current で示す（§3）。 */
.lesson-rail {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 26px rgba(33, 24, 22, .08);
  backdrop-filter: blur(14px);
}
.lesson-rail button {
  min-height: 44px;
  padding: 0 15px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}
.lesson-rail button:hover { background: var(--pink-soft); color: var(--pink-deep); }
.lesson-rail [aria-current="true"] { background: var(--pink); color: #fff; }
.lesson-rail [aria-current="true"]:hover { background: var(--pink-deep); color: #fff; }
.lesson-shell:not(:has(.member-tools-slot:not(:empty))) .lesson-rail [data-scroll-to="member-tools-slot"] { display: none; }

.story-zone,
.pron-zone,
.verb-demo3d,
.meaning-zone { scroll-margin-top: 96px; }
.core-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
  margin-top: 14px;
}
.core-layout .verb-figure { margin: 0; }
.core-copy { min-width: 0; }
.core-copy .core-label { margin-top: 0; }
.core-copy .ipa-panel { margin-top: 28px; }
.core-copy .core-story,
.core-copy .audio-row { margin-top: 18px; }
.core-copy .audio-row { display: grid; padding: 18px 0; }
.core-copy .voice-buttons { width: 100%; grid-template-columns: 1fr; }

.meaning-zone {
  margin-top: 54px;
  padding-top: 40px;
  border-top: 2px solid var(--ink);
}
.sense-block {
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.sense-block + .sense-block { margin-top: 18px; }
.sense-topline { margin-bottom: 12px; color: var(--pink-deep); font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.sense-heading,
.sense-block:first-child .sense-heading { padding-top: 0; border-top: 0; }
.definition-en {
  margin: 0 0 12px 52px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
}
.meaning-bridge,
.example-why {
  margin: 14px 0 0 52px;
  padding: 14px 16px;
  background: var(--pink-soft);
  border-radius: 10px;
  color: #5f4650;
  font-size: 12px;
  line-height: 1.8;
}
.meaning-bridge strong,
.example-why strong { display: block; margin-bottom: 4px; color: var(--pink-deep); font-size: 10px; letter-spacing: .06em; }
.meaning-bridge p { margin: 0; }
.example-why { margin: 10px 0 0 36px; }
.member-tools-slot { scroll-margin-top: 96px; margin-top: 44px; }
.member-tools-slot:empty { display: none; }

/* UTAGE側のヘッダーと重複させず、埋め込み枠を最大限使う。 */
.is-utage-embed { background: transparent; }
.is-utage-embed .topbar { display: none; }
.is-utage-embed .page-wrap {
  max-width: none;
  padding: 12px max(0px, env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(0px, env(safe-area-inset-left));
}
.is-utage-embed .story-zone,
.is-utage-embed .pron-zone,
.is-utage-embed .verb-demo3d,
.is-utage-embed .meaning-zone,
.is-utage-embed .member-tools-slot { scroll-margin-top: 24px; }
.is-utage-lesson .crumb,
.is-utage-lesson .chapter-bar,
.is-utage-lesson .card-nav,
.is-utage-lesson .lesson-rail a[href="#/train"] { display: none; }
.is-utage-lesson .practice-card { margin-top: 0; }

@media (max-width: 860px) {
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .flow-step:nth-child(4) { border-top: 1px solid rgba(255,255,255,.16); }
  .core-layout { grid-template-columns: 1fr; }
  .core-copy .voice-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .hero-search { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-search button { width: 100%; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-step,
  .flow-step:nth-child(3),
  .flow-step:nth-child(4) { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .flow-step:first-child { border-top: 0; }
  .lesson-rail { overflow-x: auto; flex-wrap: nowrap; border-radius: 16px; }
  .lesson-rail button { flex: 0 0 auto; }
  .core-copy .voice-buttons { grid-template-columns: 1fr; }
  .sense-block { padding: 18px 14px; }
  .sense-core,
  .definition-en,
  .example,
  .meaning-bridge,
  .pending-note { margin-left: 0; }
  .example-why { margin-left: 0; }
  .is-utage-embed .lesson-rail { top: 6px; }
}

/* ============================================================
   動詞図鑑 目次 v1
   前置詞図鑑と同じ「白い紙・黒グレー・単色アクセント・破線・丸タブ」を使い、
   動詞巻は青緑で識別する。詳細ページを作り込む前のシリーズ基準面。
   ============================================================ */

.verb-index {
  width: min(820px, 100%);
  margin: 0 auto;
}

.verb-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 510px;
  padding: 20px min(34vw, 300px) 42px 0;
  border-bottom: 2px dashed var(--dash);
}
.verb-cover-art {
  position: absolute;
  right: 12px;
  bottom: 34px;
  z-index: 0;
  width: min(29vw, 244px);
  max-height: calc(100% - 68px);
  object-fit: contain;
  opacity: 1;
  border: 1px solid var(--pink-line);
  border-radius: 10px;
  box-shadow: 0 22px 42px rgba(33, 45, 43, .18);
  transform: rotate(1.2deg);
  pointer-events: none;
}
.verb-cover > :not(.verb-cover-art) { position: relative; z-index: 1; }
.verb-cover::after {
  content: "VERB";
  position: absolute;
  z-index: -1;
  right: -20px;
  bottom: 8px;
  color: rgba(67, 143, 134, .075);
  font-family: var(--font-display);
  font-size: clamp(92px, 22vw, 176px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.08em;
  pointer-events: none;
}
.verb-cover .chapter-bar {
  margin-left: 0;
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .14em;
}
.verb-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 22px;
}
.series-name {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}
.verb-cover h1 {
  display: grid;
  width: max-content;
  max-width: 100%;
  gap: .02em;
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.055em;
}
.verb-cover h1 .verb-title-line {
  display: block;
  white-space: nowrap;
}
.verb-cover h1 .verb-title-line--lead {
  margin-bottom: .08em;
  color: var(--pink-deep);
  font-size: .64em;
  line-height: 1;
  letter-spacing: .02em;
}
.verb-cover h1 .verb-title-line--name { font-size: .92em; }
.verb-cover-en {
  margin: 12px 0 0;
  color: var(--root-grey);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}
.verb-cover-lede {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 2;
}
.verb-cover-lede .mark {
  display: inline;
  margin-right: .35em;
  color: var(--ink-strong);
  font-weight: 800;
}
.verb-cover-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
}
.verb-cover-facts span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.verb-cover-facts b {
  margin-right: 5px;
  color: var(--pink-deep);
  font-size: 20px;
  letter-spacing: -.03em;
}

.verb-front-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 34px;
}
.verb-front-nav a {
  padding: 7px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.verb-front-nav a:hover {
  background: var(--pink-soft);
  border-color: var(--pink);
  color: var(--pink-deep);
}

.verb-index-progress {
  margin-bottom: 40px;
  padding: 18px 20px;
  background: var(--section-bg);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.verb-index-progress > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.verb-index-progress span,
.verb-index-progress b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
}
.verb-index-progress b { color: var(--pink-deep); font-size: 13px; }
.verb-index-progress p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.verb-index-guide {
  margin-bottom: 50px;
  padding: 28px 30px 30px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.verb-index-guide h2 {
  margin: 6px 0 22px;
  color: var(--ink-strong);
  font-size: clamp(21px, 3.4vw, 29px);
  letter-spacing: -.035em;
}
.verb-index-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.verb-index-guide li {
  min-width: 0;
  padding: 3px 20px 0;
  border-left: 1px dashed var(--dash);
}
.verb-index-guide li:first-child { padding-left: 0; border-left: 0; }
.verb-index-guide li:last-child { padding-right: 0; }
.verb-index-guide li b {
  display: block;
  margin-bottom: 7px;
  color: var(--pink-deep);
  font-size: 16px;
}
.verb-index-guide li span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.verb-index-sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 0 54px;
  padding: 24px 26px;
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius);
}
.verb-index-sample h2 {
  margin: 5px 0 8px;
  color: var(--ink-strong);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -.03em;
}
.verb-index-sample h2 span {
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-size: 1.18em;
}
.verb-index-sample p:last-child {
  margin: 0;
  color: #53635f;
  font-size: 12px;
  line-height: 1.8;
}
.verb-index-sample > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--pink);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.verb-index-sample > a:hover { background: var(--pink-deep); }

/* Short editorial layer. Columns intentionally remain lighter than a lesson:
   one idea, a small comparison, then links back into the actual verb pages. */
.verb-index-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 28px 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--pink);
  border-radius: 18px;
  background: #fff;
}
.verb-index-column h2 { margin: 7px 0 9px; color: var(--ink-strong); font-size: clamp(24px, 4vw, 34px); line-height: 1.25; }
.verb-index-column p:last-child { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.8; }
.verb-index-column > a, .column-card-meta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.verb-index-column > a:hover, .column-card-meta a:hover { background: var(--pink-deep); }
.columns-shell, .column-article { max-width: 860px; margin: 0 auto; }
.columns-lede { max-width: 620px; margin: 10px 0 28px; color: var(--muted); line-height: 1.8; }
.columns-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.column-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.column-card h2 { margin: 8px 0 10px; color: var(--ink-strong); font-size: 22px; line-height: 1.35; }
.column-card > p:not(.section-kicker) { margin: 0; color: var(--muted); line-height: 1.75; }
.column-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; }
.column-card-meta span, .column-read-time { color: var(--muted); font-size: 12px; font-weight: 700; }
.column-card-meta a { min-height: 38px; padding: 0 14px; }
.column-article { padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.column-article header { max-width: 720px; padding-bottom: 24px; border-bottom: 1px dashed var(--dash); }
.column-deck { margin: 14px 0 8px; color: var(--ink-strong); font-size: clamp(18px, 2.4vw, 23px); font-weight: 700; line-height: 1.65; }
.column-body { max-width: 720px; }
.column-body-copy { margin: 25px 0 0; color: var(--ink); font-size: 16px; line-height: 2; }
/* コラムの挿絵。lead の直後（本文の前）に1枚だけ置く。
 * 画像が未生成のコラムでは figure 自体が描画されないので余白も出ない。 */
.column-figure {
  margin: 26px 0 0;
  max-width: 720px;
}
.column-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
@media (max-width: 620px) {
  .column-figure { margin-top: 20px; }
  .column-figure img { border-radius: 12px; }
}
.column-compare { margin: 28px 0 0; border-top: 1px solid var(--line); }
.column-compare div { display: grid; grid-template-columns: minmax(96px, .28fr) 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.column-compare dt { color: var(--pink-deep); font-weight: 900; }
.column-compare dd { margin: 0; color: var(--ink); line-height: 1.8; }
.column-examples { display: grid; gap: 12px; margin-top: 30px; }
.column-examples > .section-kicker { margin-bottom: 2px; }
.column-examples article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--section-bg); }
.column-example-en { margin: 0; color: var(--ink-strong); font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.65; }
.column-example-ja { margin: 8px 0 0; color: var(--ink); line-height: 1.75; }
.column-example-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.column-example-note strong { display: block; margin-bottom: 3px; color: var(--pink-deep); font-size: 11px; letter-spacing: .08em; }
.column-try { margin-top: 30px; padding: 22px 24px; border-radius: 14px; background: var(--pink-soft); }
.column-try p:last-child { margin: 7px 0 0; color: var(--ink-strong); line-height: 1.8; }
.column-related { margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--dash); }
.column-related > div { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.column-related a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--pink-deep); font-family: var(--font-display); font-weight: 800; text-decoration: none; }
.column-related .btn-primary { border-color: var(--pink); color: #fff; font-family: inherit; }

/* The introduction uses the same paper-and-ink system as the cover, while
   keeping each section short enough to remain an entry point, not a textbook. */
.guide-intro { max-width: 900px; margin: 0 auto; }
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .36fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin: 12px 0 42px;
  padding: clamp(28px, 6vw, 56px);
  border-radius: 22px;
  background: var(--section-bg);
}
.guide-hero-copy h1 { max-width: 680px; margin: 8px 0 17px; color: var(--ink-strong); font-size: clamp(32px, 5vw, 56px); line-height: 1.22; letter-spacing: -.045em; }
.guide-lead { max-width: 650px; margin: 0; color: var(--ink); font-size: 16px; line-height: 2; }
.guide-cover-art { width: 100%; max-width: 260px; justify-self: center; border-radius: 15px; box-shadow: 0 18px 38px rgba(33, 24, 22, .16); }
.guide-section {
  margin-top: 18px;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.guide-section h2 { margin: 6px 0 22px; color: var(--ink-strong); font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; }
.guide-section > p:not(.section-kicker):not(.guide-tier-note) { max-width: 720px; margin: 0 0 18px; color: var(--ink); font-size: 16px; line-height: 2; }
.guide-section aside { max-width: 720px; margin: 26px 0 0; padding: 16px 19px; border-left: 4px solid var(--pink); border-radius: 0 12px 12px 0; background: var(--pink-soft); color: var(--ink-strong); font-weight: 800; line-height: 1.8; }
.guide-tier-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.guide-section .preview-sample-link { margin-top: 28px; }

.free-upgrade-card {
  display: grid;
  grid-template-columns: minmax(130px, .35fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  margin: 0 0 54px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--ink);
  border-radius: 18px;
  color: #fff;
}
.free-upgrade-card img {
  width: 100%;
  max-width: 190px;
  justify-self: center;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
}
.free-upgrade-card .section-kicker { color: #9fd5ce; }
.free-upgrade-card h2 { margin: 5px 0 8px; font-size: clamp(21px, 3vw, 30px); }
.free-upgrade-card p { max-width: 60ch; margin: 0; color: #dae7e4; font-size: 13px; line-height: 1.8; }
.free-upgrade-card .btn-primary { margin-top: 16px; background: var(--pink); border-color: var(--pink); }
.locked-card-art { width: min(148px, 40%); margin: 0 auto 18px; border-radius: 12px; box-shadow: 0 10px 24px rgba(33, 24, 22, .14); }

/* Build-generated headers still include this link.  The free product has no
   learning record surface, including direct navigation affordances. */
body[data-tier="free"] .topnav a[href="#/record"],
body[data-tier="free"] .topnav a[href="#/train"],
body[data-tier="free"] .topnav a[href="#/read-aloud"],
body[data-tier="free"] .topnav a[href="#/instant-composition"],
body[data-tier="free"] .topnav a[href="#/mock"],
body[data-tier="free"] .topnav a[href="#/newsletter"] { display: none; }

.lesson-rail a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.lesson-rail a:hover { background: var(--pink-soft); color: var(--pink-deep); }

.train-shell { max-width: 840px; margin: 0 auto; }
.train-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.train-heading .page-title { margin-bottom: 0; }
.train-heading > p { margin: 0 0 8px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.train-heading > p b { color: var(--pink-deep); font-size: 18px; }
.train-mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 16px; }
.train-mode-tabs button, .train-options button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}
.train-mode-tabs button { padding: 0 16px; color: var(--muted); }
.train-mode-tabs button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.train-question { padding: clamp(22px, 5vw, 42px); background: #f7faf9; border: 1px solid var(--pink-line); border-radius: 20px; }
.train-question > .section-kicker { margin: 0 0 14px; }
.train-core-copy { margin: 0; color: var(--ink-strong); font-family: var(--font-display); font-size: clamp(22px, 4vw, 34px); font-weight: 700; line-height: 1.45; }
.train-core-prompt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; background: #fff; border-left: 5px solid var(--pink); border-radius: 0 12px 12px 0; }
.train-core-prompt > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep); font-size: 26px; font-weight: 900; }
.train-situation-prompt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; background: #fff; border-left: 5px solid var(--pink); border-radius: 0 12px 12px 0; }
.train-situation-prompt > span { padding: 7px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.train-situation-prompt p { margin: 0; color: var(--ink-strong); font-family: var(--font-display); font-size: clamp(21px, 4vw, 32px); font-weight: 700; line-height: 1.55; }
.train-hint { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.train-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.train-options button { padding: 12px 16px; font-family: var(--font-display); font-size: 18px; }
.train-options button:hover:not(:disabled) { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); }
.train-options button:disabled { cursor: default; opacity: .6; }
.train-options button.is-correct:disabled { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); opacity: 1; }
.train-options button.is-wrong:disabled { border-color: #d8898d; background: #fff0f0; color: #a2383d; opacity: 1; }
.train-options button.is-muted:disabled { opacity: .45; }
.train-feedback { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 12px; padding: 14px 16px; border-radius: 12px; }
.train-feedback.is-correct { background: var(--pink-soft); color: var(--pink-deep); }
.train-feedback.is-wrong { background: #fff0f0; color: #a2383d; }
.train-feedback span { font-size: 13px; }
.train-reveal { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
/* 正解表示の絵は動画の先頭フレーム（poster 640x360）に変更したため 16:9。 */
.train-result-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.train-reveal-en { margin: 0 0 12px; color: var(--ink-strong); font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.55; }
.train-reveal-story { margin: 0; color: var(--muted); line-height: 1.75; }
.train-reveal-story b { display: block; margin-bottom: 4px; color: var(--pink-deep); font-size: 11px; letter-spacing: .08em; }
.train-audio { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 800; }
.train-audio:hover, .train-audio.is-playing { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); }
.train-answer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Paid finishing check: fixed, authored contrast practice. */
.mock-shell { max-width: 840px; margin: 0 auto; }
.mock-intro { margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.mock-question { margin-top: 18px; padding: clamp(22px, 5vw, 42px); background: #f7faf9; border: 1px solid var(--pink-line); border-radius: 20px; }
.mock-question > .section-kicker { margin: 0 0 14px; }
.mock-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.mock-option { min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.mock-option:hover:not(:disabled) { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); }
.mock-option:disabled { cursor: default; opacity: .55; }
.mock-option.is-correct:disabled { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); opacity: 1; }
.mock-option.is-wrong:disabled { border-color: #d8898d; background: #fff0f0; color: #a2383d; opacity: 1; }
.mock-sentence-prompt, .mock-core-prompt { padding: 24px; border-left: 5px solid var(--pink); border-radius: 0 12px 12px 0; background: #fff; }
.mock-sentence-prompt > .section-kicker { margin: 0 0 10px; }
.mock-sentence-prompt > p:last-child { margin: 0; color: var(--ink-strong); font-family: var(--font-display); font-size: clamp(19px, 3vw, 26px); font-weight: 750; line-height: 1.6; }
.mock-options.is-sentence { grid-template-columns: 1fr; }
.mock-options.is-sentence .mock-option { min-height: 64px; font-family: var(--font-body); font-size: clamp(15px, 2vw, 17px); font-weight: 700; line-height: 1.55; text-align: left; }
.mock-blank { display: inline-block; min-width: 5.5em; border-bottom: 2px solid var(--pink-deep); color: var(--pink-deep); letter-spacing: .08em; text-align: center; }
.mock-core-prompt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.mock-core-prompt > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep); font-size: 26px; font-weight: 900; }
.mock-core-prompt .section-kicker { margin: 0 0 6px; }
.mock-core-prompt p:last-child { margin: 0; color: var(--ink-strong); font-family: var(--font-display); font-size: clamp(20px, 3vw, 27px); font-weight: 700; line-height: 1.55; }
.mock-core-options { display: grid; gap: 10px; margin-top: 22px; }
.mock-core-option { min-height: 56px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 800; line-height: 1.55; text-align: left; }
.mock-core-option:hover:not(:disabled) { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); }
.mock-core-option:disabled { cursor: default; opacity: .55; }
.mock-core-option.is-correct:disabled { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); opacity: 1; }
.mock-core-option.is-wrong:disabled { border-color: #d8898d; background: #fff0f0; color: #a2383d; opacity: 1; }
.mock-feedback { margin-top: 20px; padding: 18px; border-radius: 14px; }
.mock-feedback.is-correct { background: var(--pink-soft); color: var(--pink-deep); }
.mock-feedback.is-wrong { background: #fff0f0; color: #802f34; }
.mock-feedback > p { margin: 8px 0 0; line-height: 1.7; }
.mock-feedback > p span { display: block; margin-top: 4px; color: var(--muted); }
.mock-feedback-example { color: var(--ink-strong); font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.mock-feedback > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mock-result { padding: clamp(22px, 5vw, 42px); border: 1px solid var(--pink-line); border-radius: 20px; background: #f7faf9; }
.mock-result .section-kicker { margin: 0 0 8px; }
.mock-result-score { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 8px; color: var(--pink-deep); }
.mock-result-score b { font-family: var(--font-display); font-size: clamp(48px, 12vw, 76px); line-height: 1; }
.mock-result-score span { font-weight: 800; }
.mock-result-lede { margin: 0; color: var(--muted); line-height: 1.75; }
.mock-missed { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mock-missed h2 { margin: 0 0 12px; font-size: 18px; }
.mock-missed-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mock-missed-list a { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 10px; background: #f7faf9; color: var(--ink); text-decoration: none; }
.mock-missed-list a:hover { background: var(--pink-soft); color: var(--pink-deep); }
.mock-missed-list span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.mock-perfect, .mock-history { margin: 0; color: var(--muted); line-height: 1.7; }
.mock-history { margin-top: 18px; font-size: 13px; }
.mock-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Paid-only guided practice.  These layouts reuse the training visual grammar
   while keeping each mode's learning action unmistakable. */
.practice-mode-shell { max-width: 900px; }
.practice-mode-word {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 12px;
}
.practice-mode-word a {
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
}
.practice-mode-word span { color: var(--muted); font-size: 13px; }
.practice-mode-card { background: #fff; }
.practice-instruction {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
}
.practice-example-en {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(23px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.55;
}
.practice-example-ja,
.practice-example-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.practice-example-note {
  padding: 16px 18px;
  background: #f7faf9;
  border-left: 4px solid var(--pink);
  border-radius: 0 10px 10px 0;
}
.practice-example-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--pink-deep);
  font-size: 11px;
  letter-spacing: .08em;
}
.practice-composition-prompt {
  margin: 0;
  padding: clamp(22px, 5vw, 34px);
  background: #f7faf9;
  border-left: 5px solid var(--pink);
  border-radius: 0 14px 14px 0;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.6;
}
.practice-reveal-button { margin-top: 22px; }
.practice-composition-answer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--dash);
}
.practice-mode-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.practice-mode-actions .train-audio { margin-top: 0; }
.practice-mode-actions .speed-control { margin: 0; }
.newsletter-scope-note {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .02em;
}
.newsletter-empty {
  grid-column: 1 / -1;
  padding: clamp(24px, 5vw, 40px);
  background: #fff;
  border: 1px solid var(--pink-line);
  border-radius: 16px;
}
.newsletter-empty h2 { margin: 8px 0 10px; color: var(--ink-strong); }
.newsletter-empty p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }
.newsletter-body h2,
.newsletter-body h3,
.newsletter-body h4 { margin: 2em 0 .6em; color: var(--ink-strong); }
.newsletter-body p,
.newsletter-body li { color: var(--ink); line-height: 1.95; }
.newsletter-body ul { padding-left: 1.4em; }

@media (max-width: 680px) {
  .verb-cover { min-height: 0; padding-right: 0; }
  .verb-cover-art {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: min(66%, 260px);
    max-height: none;
    margin: 28px auto 0;
    opacity: 1;
  }
  .free-upgrade-card { grid-template-columns: 1fr; }
  .free-upgrade-card img { max-width: 150px; }
  .train-heading { align-items: flex-start; flex-direction: column; }
  .train-options { grid-template-columns: 1fr; }
  .mock-options { grid-template-columns: 1fr; }
  .train-core-prompt, .train-situation-prompt { grid-template-columns: 1fr; padding: 20px; }
  .mock-core-prompt { grid-template-columns: 1fr; padding: 20px; }
  .mock-sentence-prompt { padding: 20px; }
  .mock-missed-list a { grid-template-columns: 1fr; }
  .train-reveal { grid-template-columns: 1fr; }
  .train-result-image { width: min(100%, 320px); margin: 0 auto; }
  .practice-mode-actions { align-items: stretch; flex-direction: column; }
  .practice-mode-actions > * { width: 100%; }
}

.verb-index-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.verb-index-heading h2 {
  margin: 4px 0 0;
  color: var(--ink-strong);
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -.04em;
}
.verb-index-heading > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.verb-index-search .hero-search {
  width: 100%;
  margin: 0 0 24px;
  box-shadow: none;
}

.verb-toc {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink-strong);
  list-style: none;
}
.verb-toc-row { border-bottom: 1px dashed var(--dash); }
.verb-toc-row a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 56px;
  gap: 12px;
  align-items: center;
  padding: 15px 6px;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease, padding .15s ease;
}
.verb-toc-row a:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: var(--pink-soft);
}
.verb-toc-no {
  color: var(--pink-deep);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}
.verb-toc-main { min-width: 0; }
.verb-toc-main b {
  display: block;
  overflow: hidden;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.verb-toc-row a:hover .verb-toc-main b { color: var(--pink-deep); }
.verb-toc-main small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.verb-toc-main .verb-toc-lead {
  margin-top: 5px;
  color: #4e615d;
  font-size: 11px;
  font-weight: 700;
}
.verb-toc-count,
.verb-toc-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.verb-toc-status { color: var(--pink-deep); text-align: right; }

/* ---- 単語ページ: 実際の3D意味デモ ---- */
.verb-demo3d {
  scroll-margin-top: 142px;
  margin-top: 38px;
  padding: clamp(20px, 4vw, 32px);
  background: #f7faf9;
  border: 1px solid var(--pink-line);
  border-radius: 18px;
}
.verb-demo-copy h3 {
  margin: 7px 0 10px;
  color: var(--ink-strong);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -.03em;
}
.verb-demo-copy > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: #53635f;
  font-size: 13px;
  line-height: 1.9;
}
.verb-demo-stage {
  position: relative;
  min-height: 300px;
  margin-top: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff 0, #edf5f3 72%, #e1ece9 100%);
  border: 1px solid var(--pink-line);
  border-radius: 14px;
}
.verb-demo-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
}
.verb-demo-stage canvas:active { cursor: grabbing; }
.verb-demo-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 4px 10px;
  transform: translate(-50%, -100%);
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.verb-demo-label.is-on { opacity: 1; }
.verb-demo-label.is-subject { margin-top: -32px; border-color: #438f86; color: #2c6f68; }
.verb-demo-label.is-person { margin-top: -32px; border-color: #438f86; color: #2c6f68; }
.verb-demo-label.is-object { margin-top: 16px; border-color: #8ca8a3; color: #394d49; }
.verb-demo-label.is-goal { margin-top: -8px; border-style: solid; color: #5f6967; }
.verb-demo-scene-title {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border-left: 4px solid var(--pink);
  border-radius: 5px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.verb-demo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.verb-demo-fallback[hidden] { display: none; }
.verb-demo-fallback span {
  display: grid;
  min-height: 84px;
  min-width: 110px;
  place-items: center;
  padding: 12px;
  border: 1px dashed var(--pink);
  border-radius: 50%;
}
.verb-demo-fallback .fallback-in { background: var(--pink-soft); }
.verb-demo-fallback i { font-size: 28px; font-style: normal; }
.verb-demo-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}
.verb-demo-modes button {
  min-height: 44px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  color: var(--pink-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.verb-demo-modes button:hover { background: var(--pink-soft); }
.verb-demo-modes button.is-active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.verb-demo-note {
  margin: 13px 0 0;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 700;
}
.verb-demo-help {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.is-utage-embed .verb-demo3d { scroll-margin-top: 68px; }

.is-utage-embed .verb-index { width: min(760px, 100%); }

@media (max-width: 680px) {
  .verb-cover { padding-top: 8px; }
  .verb-cover-top { align-items: flex-start; flex-direction: column; }
  .verb-cover h1 { font-size: clamp(44px, 14vw, 62px); }
  .verb-cover::after { right: -12px; bottom: 22px; font-size: 30vw; }
  .verb-index-guide { padding: 24px 20px; }
  .verb-index-guide ol { grid-template-columns: 1fr; }
  .verb-index-guide li,
  .verb-index-guide li:first-child,
  .verb-index-guide li:last-child {
    padding: 13px 0;
    border-top: 1px dashed var(--dash);
    border-left: 0;
  }
  .verb-index-guide li:first-child { border-top: 0; }
  .verb-index-sample { grid-template-columns: 1fr; gap: 16px; }
  .verb-index-sample > a { width: 100%; }
  .verb-index-column { grid-template-columns: 1fr; gap: 16px; }
  .verb-index-column > a { width: 100%; }
  .columns-grid { grid-template-columns: 1fr; }
  .column-article { padding: 25px 20px; }
  .column-compare div { grid-template-columns: 1fr; gap: 5px; }
  .guide-hero { grid-template-columns: 1fr; padding: 28px 23px; }
  .guide-cover-art { width: min(210px, 64%); }
  .guide-section { padding: 28px 23px; }
  .verb-demo3d { scroll-margin-top: 182px; }
  .is-utage-embed .verb-demo3d { scroll-margin-top: 76px; }
  .verb-toc-row a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .verb-toc-count { display: none; }
  .verb-toc-main b { font-size: 16px; }
}

@media (max-width: 420px) {
  .page-wrap { padding-right: 16px; padding-left: 16px; }
  .verb-cover-facts { gap: 8px 16px; }
  .verb-index-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .verb-toc-status { display: none; }
  .verb-toc-row a { grid-template-columns: 30px minmax(0, 1fr); }
}

/* ============================================================
   UI v2（2026-08-24 / docs/UI-V2-DESIGN.md）
   1画面1主役。音声操作はオーディオバー1箇所へ集約。
   ============================================================ */

/* ---------- 見出しの折り返し ---------- */
.headword-ja,
.core-tag,
.page-title,
.column-card h2,
.verb-toc-main b,
.sense-heading,
.story-zone h2,
.meaning-zone h2,
.learning-flow h2,
.verb-index-guide h2,
.guide-hero-copy h1,
.guide-section h2 {
  text-wrap: balance;
  line-break: strict;
  /* 日本語見出しは <wbr>（読点・「｜」の直後）でだけ折り返す。
   * overflow-wrap:anywhere だけだと語中で切れてしまうため keep-all を併用し、
   * anywhere は「1語が入りきらない」最後の手段としてだけ効かせる。 */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.tsep { color: var(--muted); font-weight: 400; padding: 0 .1em; }
.sp { display: none; }
@media (max-width: 620px) {
  .sp { display: inline; }
  /* 「｜」の直後で強制改行して、題を意味のまとまりで読ませる。
   * 改行してしまえば区切り記号の役目は終わるので、行末にぶら下がる「｜」の
   * 字面だけを消す（font-size:0）。要素自体は残すので ::after の改行は効く。 */
  .page-title .tsep,
  .column-card h2 .tsep,
  .guide-hero-copy h1 .tsep {
    font-size: 0;
    padding: 0;
  }
  .page-title .tsep::after,
  .column-card h2 .tsep::after,
  .guide-hero-copy h1 .tsep::after {
    content: "\A";
    font-size: 1rem;
    white-space: pre;
  }
}

/* ---------- 見出し語ブロック ---------- */
.lesson-head { margin-top: 6px; }
.lesson-head .card-meta { margin-bottom: 18px; }
.lesson-head .headword {
  margin: 0;
  font-size: clamp(38px, 8vw, 74px);
  line-height: 1.1;
}
.headword-ja {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.6;
}
.core-tag {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin: 18px 0 0;
  padding: 18px 20px;
  background: var(--pink-soft);
  border-left: 4px solid var(--pink);
  border-radius: 0 14px 14px 0;
}
.core-tag .core-tag-text {
  font-size: clamp(16px, 2.1vw, 21px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
}
@media (max-width: 620px) {
  .core-tag { grid-template-columns: 1fr; gap: 9px; padding: 15px 16px; }
  .core-tag .core-tag-text { font-size: 16px; }
}

/* ---------- 統一音声ボタン ---------- */
.a-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  color: var(--pink-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.a-play:hover:not(:disabled) { background: var(--pink-soft); border-color: var(--pink); }
.a-play:disabled { cursor: not-allowed; opacity: .45; }
.a-play.is-playing { background: var(--pink); border-color: var(--pink); color: #fff; }
.a-play .a-play-icon {
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px;
}
.a-play.is-playing .a-play-icon {
  width: 10px; height: 10px;
  border: 0;
  background: currentColor;
  border-radius: 2px;
  margin-left: 0;
}
.a-play .a-play-text { padding-right: 14px; }
.a-play:has(.a-play-text) { padding-left: 14px; }

/* 旧「コアイメージ画像」ブロック（.core-zone .verb-figure）は、
 * 教材サイトに静止画コアイメージを載せない裁定（2026-09-15）により撤去した。 */

/* ---------- コアの物語 ---------- */
.story-zone {
  margin-top: 44px;
  padding: 26px clamp(18px, 3vw, 30px);
  background: var(--story-bg);
  border-radius: 18px;
}
.story-zone h2 {
  margin: 6px 0 0;
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.story { margin-top: 20px; }
.story-part + .story-part { margin-top: 24px; }
.story-tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 800;
}
.story-part p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 2.0;
}
.story-core p + p { margin-top: 1em; }
/* ---------- 本文の装飾（rich() が出す3種） ----------
 * .mk       = **…**  黄マーカー。その段の核心文にだけ引く。
 * .em-core  = __…__  黒太字。コアの言い切り。
 * .em-verb  = ++…++  濃緑太字・非イタリック。動詞そのものを指す。 */
mark.mk,
.story-shift mark.mk {
  background: linear-gradient(transparent 42%, var(--marker) 42%);
  color: inherit;
  padding: 0 1px;
}
strong.em-core {
  color: var(--ink-strong);
  font-weight: 800;
}
em.em-verb {
  /* 動詞名は斜体にせず、濃緑の太字で立てる（Fable 裁定）。 */
  font-style: normal;
  font-weight: 700;
  color: var(--pink-deep);
}
.story-takeaway {
  padding: 18px 20px;
  background: #fff;
  border-left: 4px solid var(--pink);
  border-radius: 0 14px 14px 0;
}
.story-takeaway p { font-weight: 700; }
@media (max-width: 620px) {
  .story-zone { padding: 20px 16px; border-radius: 14px; }
  .story-part p { font-size: 15px; line-height: 1.95; }
}

/* ---------- 発音 ---------- */
.pron-zone { margin-top: 44px; }
.pron-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.pron-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-left: 4px solid var(--pink);
  border-radius: 12px;
}
.pron-item[aria-current="true"] { background: var(--pink-soft); }
.pron-item > b {
  display: inline-grid;
  min-width: 34px;
  min-height: 22px;
  place-items: center;
  background: var(--ink);
  border-radius: 5px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .06em;
}
.pron-val {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .pron-row { grid-template-columns: 1fr; }
}

/* ---------- 文単位IPA ---------- */
.ipa-line-group {
  display: none;
  margin: 4px 0 0 54px;
}
body.show-ipa .ipa-line-group { display: block; }
.ipa-line {
  color: var(--ipa);
  font-family: var(--font-ipa);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.ipa-line-group .ipa-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 2px 0 0;
}
.ipa-tag {
  flex: 0 0 auto;
  min-width: 24px;
  color: var(--pink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}
.ipa-val { overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .ipa-line-group { margin-left: 0; }
}

/* ---------- sense: ▶すべて ---------- */
.sense-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.seq-play {
  min-height: 32px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  color: var(--pink-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}
.seq-play:hover { background: var(--pink-soft); border-color: var(--pink); }
.seq-play.is-playing { background: var(--pink); border-color: var(--pink); color: #fff; }

/* 例文の ▶ は 44px なので、和訳・注記もその幅に合わせる */
.example-en { align-items: center; }
.example-ja { margin-left: 54px; }
@media (max-width: 899px) {
  .example-ja { margin-left: 0; }
}

/* ---------- コラム v2 ---------- */
.col-en {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: #f0eee7;
  border-left: 4px solid var(--pink);
  border-radius: 0 12px 12px 0;
}
.col-en-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.015em;
}
.col-en-line > span { min-width: 0; overflow-wrap: anywhere; }
.col-en-ja {
  margin: 8px 0 0 54px;
  color: #555d6d;
  font-size: 14px;
  line-height: 1.8;
}
.col-en-note {
  margin: 10px 0 0 54px;
  padding: 12px 14px;
  background: var(--pink-soft);
  border-radius: 10px;
  color: #4a5262;
  font-size: 12px;
  line-height: 1.8;
}
.col-en-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pink-deep);
  font-size: 10px;
  letter-spacing: .06em;
}
.col-en .ipa-line-group { margin-left: 54px; }
@media (max-width: 899px) {
  .col-en-ja, .col-en-note, .col-en .ipa-line-group { margin-left: 0; }
}

/* ---------- 3D: オーディオバーと重ならないようにする ---------- */
.verb-demo3d { margin-top: 44px; }
/* キャンバス下端とバーの間に余白を残す（ドラッグ操作の邪魔をしない）。 */
.verb-demo3d .verb-demo-help { margin-bottom: 16px; }
/* PC ではバーが右下（幅320px + 右余白24px）に浮くので、キャンバスの右端が
 * そこに掛からないよう、コンテンツ側で幅を譲る。OrbitControls のドラッグが
 * バーに吸われるのを防ぐのが目的（§3）。 */
@media (min-width: 900px) {
  /* バーは右下に width:320px + right:24px で浮く。3D セクションだけ右に
   * その幅ぶんの余白を作り、キャンバスがバーの下に潜り込まないようにする。 */
  .verb-demo3d { padding-right: 360px; }
  .verb-demo3d .verb-demo-stage { max-width: 100%; }
}

/* ============================================================
   オーディオバー（全ページ共通・fixed bottom）
   ============================================================ */
.audio-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  box-sizing: border-box;
  background: var(--bar-bg);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  padding-bottom: env(safe-area-inset-bottom);
}
.audio-bar[hidden] { display: none; }
.audio-bar-scrim {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(29, 42, 39, .38);
}
.audio-bar-scrim[hidden] { display: none; }

.ab-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 16px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.ab-dot {
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.audio-bar[data-state="playing"] .ab-dot { background: var(--pink); }
.ab-summary { display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto; }
.ab-summary b { color: var(--pink-deep); font-size: 13px; font-weight: 800; }
.ab-summary i { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.ab-now {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ab-chev {
  flex: 0 0 auto;
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 5px 0 5px;
  border-color: var(--muted) transparent transparent transparent;
  transition: transform .16s ease;
}
.audio-bar[data-open="true"] .ab-chev { transform: rotate(180deg); }

.ab-panel {
  display: none;
  box-sizing: border-box;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 16px 18px;
}
.audio-bar[data-open="true"] .ab-panel { display: block; }

.ab-group { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ab-label {
  flex: 0 0 40px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px;
  background: var(--section-bg);
  border-radius: 999px;
}
.seg button {
  min-height: 40px;
  padding: 0 6px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.seg button:hover { background: rgba(67, 143, 134, .12); }
.seg button[aria-checked="true"] { background: var(--pink); color: #fff; }

.ab-ipa {
  min-height: 40px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  color: var(--pink-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.ab-ipa[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }

.ab-stop {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.ab-stop:disabled { opacity: .45; cursor: not-allowed; }

/* バーの高さぶん、本文の下に余白を確保する */
body.has-audio-bar .page-wrap { padding-bottom: 128px; }

/* PC: 右下フローティングカード。常時パネル表示・トグルは出さない。
 * 900px 未満はタブレットでも本文が狭いため、モバイル同様のボトムバーのままにする。 */
@media (min-width: 900px) {
  .audio-bar {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 320px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(33, 24, 22, .16);
    padding-bottom: 0;
  }
  .audio-bar .ab-toggle { min-height: 46px; cursor: default; padding: 0 16px; }
  .audio-bar .ab-chev { display: none; }
  .audio-bar .ab-panel { display: block; max-height: none; padding: 0 16px 16px; }
  .audio-bar-scrim { display: none; }
  body.has-audio-bar .page-wrap { padding-bottom: 96px; }
}

@media (max-width: 899px) {
  .audio-bar[data-open="true"] {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -12px 40px rgba(33, 24, 22, .18);
  }
  body.has-audio-bar .page-wrap { padding-bottom: 108px; }
}

/* UTAGE 埋め込みでもバーは出す（iframe 内で完結させるため） */
.is-utage-embed .audio-bar { position: fixed; }
.is-utage-embed.has-audio-bar .page-wrap,
body.is-utage-embed.has-audio-bar .page-wrap { padding-bottom: 108px; }

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

/* ============================================================
   コアイメージ動画（SITE-VIDEO-EMBED-SPEC-V1.md §1）
   ============================================================ */
.verb-demo-video .verb-demo-stage {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #0e1513;
}
.verb-demo-video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  background: #0e1513;
}
.verb-demo-poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 動画では操作バー用の右余白は不要（バーはstage外）。 */
@media (min-width: 900px) {
  .verb-demo-video { padding-right: clamp(20px, 4vw, 32px); }
}

/* 販売ページ埋め込み用デモ（sales-demo）*/
.edition-pill.is-demo{background:#e6efed;color:#2f5d55;border-color:#b9d3cd}
.demo-badge{
  margin-left:auto;align-self:center;
  padding:4px 10px;border-radius:999px;
  background:#e6efed;color:#2f5d55;border:1px solid #b9d3cd;
  font-size:11px;font-weight:800;letter-spacing:.08em;
}
.demo-notice .demo-word-links{display:grid;gap:12px;margin-top:20px}
/* 内窓（iframe）では横スクロールを絶対に出さない */
html,body{max-width:100%;overflow-x:hidden}
