/* そらファンズ 部品（正本：docs/DESIGN.md 5 章）。tokens.css の後に読む。
   本番では使う部品だけを HTML にインライン（14KB 以内）。 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
  font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- ヘッダー ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.hdr::after { content: ""; display: block; height: 2px; background: var(--dawn); }
.hdr-in { height: var(--h-header); display: flex; align-items: center; gap: var(--s2); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--font-latin);
  font-weight: 600; font-size: 19px; letter-spacing: .01em; margin-right: auto; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; position: relative; overflow: hidden;
  background: var(--ink); }
.logo-mark::before { content: ""; position: absolute; left: 3px; right: 3px; bottom: 7px; height: 1.5px; background: #fff; opacity: .9; }
.logo-mark::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 14px; border-radius: 14px 14px 0 0;
  border: 2px solid transparent; border-bottom: 0; background: var(--dawn) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.logo-img { display: block; height: 24px; width: auto; }
.logo small { white-space: nowrap; }
.logo small { font-family: var(--font-ja); font-size: 10px; color: var(--ink-3); font-weight: 500; letter-spacing: .08em; }
.hdr-nav { display: none; gap: var(--s5); font-size: 14px; }
.hdr-nav a { color: var(--ink-2); }
.hdr-nav a[aria-current] { color: var(--ink); font-weight: 700; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); border-radius: 12px; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
@media (min-width: 1024px) {
  .hdr-in { height: 60px; gap: var(--s4); }
  .hdr-nav { display: flex; }
}

/* ---------- PR・パンくず ---------- */
.crumb { display: flex; align-items: center; gap: 8px; height: 28px; font-size: var(--fs-note); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.crumb ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow: hidden; min-width: 0; }
.crumb li { overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.crumb li:last-child { flex-shrink: 1; }
.crumb li + li::before { content: "›"; margin-right: 4px; color: var(--line-strong); }
.crumb a { color: var(--ink-3); }
.pr { flex: none; font-family: var(--font-latin); font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; line-height: 16px; }

/* ---------- 見出し ---------- */
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; margin: 4px 0 0; letter-spacing: .005em; word-break: break-word; }
.h1.is-long { font-size: var(--fs-h1-long); }
.title-clamp { position: relative; }
.title-clamp.is-clamped .h1 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.title-clamp .more { display: none; position: absolute; right: 0; bottom: 0; padding-left: 48px; font-size: 13px; font-weight: 600;
  background: linear-gradient(90deg, transparent, var(--bg) 40%); border: 0; color: var(--sky); cursor: pointer; line-height: 1.6; }
.title-clamp.is-clamped .more { display: block; }
.sec { margin-top: var(--section); }
.eyebrow { display: block; font-family: var(--font-latin); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; margin: 0 0 var(--s3); }
.h2-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.h2-row .h2 { margin: 0; }
.h2-row a { font-size: 13px; white-space: nowrap; }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; margin: var(--s5) 0 var(--s2); }
.prose p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.note { font-size: var(--fs-note); color: var(--ink-3); line-height: 1.6; }

/* ---------- 人の行 ---------- */
.who { display: flex; align-items: center; gap: 8px; height: 28px; font-size: var(--fs-meta); color: var(--ink-2); margin-top: 6px; }
.who a { color: var(--ink); font-weight: 600; }
.ava { width: 22px; height: 22px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #F4C7B8, #C98FA6); }
.who .sep { color: var(--line-strong); }

/* ---------- 画像のプレースホルダ（本番は自前で切った AVIF） ---------- */
.ph { position: relative; overflow: hidden; background: #2A2F45; color: rgba(255,255,255,.78); }
.ph > i { position: absolute; left: 8px; top: 8px; font: 500 10px/1 var(--font-latin); letter-spacing: .04em; font-style: normal;
  background: rgba(0,0,0,.28); padding: 3px 5px; border-radius: 4px; }
.g1 { background: radial-gradient(120% 90% at 30% 35%, #F7D3C4 0%, #E0A091 38%, #8C4E5C 75%, #3B2236 100%); }
.g2 { background: radial-gradient(110% 100% at 70% 40%, #F2CDB9 0%, #D58C86 40%, #6E3E57 78%, #2B1F33 100%); }
.g3 { background: radial-gradient(120% 90% at 50% 30%, #FBE3D2 0%, #E7B39C 35%, #A0626B 70%, #452A3C 100%); }
.g4 { background: linear-gradient(160deg, #E9D7E8 0%, #C69BB7 40%, #6D4C73 80%, #2A2440 100%); }
.g5 { background: radial-gradient(100% 90% at 40% 60%, #F5C6B3 0%, #C77F7A 45%, #5B3550 85%); }
.g6 { background: linear-gradient(200deg, #D9E2F2 0%, #9EAFD2 40%, #4E5C86 80%, #1E2540 100%); }
.g7 { background: radial-gradient(120% 100% at 60% 30%, #FFE1CF 0%, #EFB49E 38%, #B26F75 70%, #4A2D41 100%); }
.g8 { background: linear-gradient(140deg, #CFE0EE 0%, #E7C6CF 45%, #B07A93 80%, #3E2C47 100%); }

/* ---------- 予告の枠（コマ送り） ---------- */
.hero { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-img); overflow: hidden; margin-top: 8px; background: #1B1F30; cursor: pointer; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-swap) linear; }
.hero .slide.on { opacity: 1; }
.hero .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px;
  background: var(--scrim); color: #fff; border-radius: var(--r-pill); padding: 8px 14px 8px 10px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.hero .play svg { width: 22px; height: 22px; }
.hero .badge-l, .hero .badge-r { position: absolute; bottom: 8px; background: var(--scrim); color: #fff; font: 600 11px/1 var(--font-latin);
  padding: 5px 7px; border-radius: 6px; letter-spacing: .02em; }
.hero .badge-l { left: 8px; font-family: var(--font); }
.hero .badge-r { right: 8px; }
.okuri { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; gap: 4px; }
.okuri span { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.okuri span b { display: block; height: 100%; width: 0; background: var(--dawn); }
.okuri span.done b { width: 100%; }
.okuri span.run b { animation: okuri .8s linear forwards; }
@keyframes okuri { to { width: 100%; } }

/* ---------- 事実の行 ---------- */
.facts { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 28px; margin-top: 8px; font-size: var(--fs-meta); color: var(--ink-2); }
.facts .price { font: 800 var(--fs-price)/1 var(--font-latin); color: var(--ink); font-variant-numeric: tabular-nums; }
.facts .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.tag-plan { font-size: 11px; font-weight: 600; color: var(--cta-press); background: var(--cta-soft); padding: 2px 7px; border-radius: 6px; }
:root[data-theme="dark"] .tag-plan { color: #D2B8FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-plan { color: #D2B8FF; } }

/* ---------- 送客ボタン（--cta はここだけ） ---------- */
.buy { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--h-buy); padding: 8px 18px;
  background: var(--cta) linear-gradient(100deg, #6E5BFF 0%, #8B2CF5 45%, #D23CC8 100%); color: var(--cta-ink); border-radius: var(--r-btn); text-align: center; box-shadow: var(--glow);
  transition: transform var(--t-press) var(--ease), background var(--t-press) linear; }
.buy:hover { text-decoration: none; background: var(--cta-press); }
.buy:active { transform: scale(.98); background: var(--cta-press); }
.buy .l1 { display: block; font-size: var(--fs-btn); font-weight: 700; line-height: 1.25; }
.buy .l2 { display: block; font-size: var(--fs-btn-sub); font-weight: 500; opacity: .92; line-height: 1.3; margin-top: 2px; }
.buy .l2 .num { font-weight: 700; }
.buy .arrow { width: 18px; height: 18px; flex: none; opacity: .9; }
.buy-note { margin: 6px 0 0; font-size: var(--fs-note); color: var(--ink-3); text-align: center; line-height: 1.5; }
.buy-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid var(--cta); color: var(--cta); font-size: 14px; font-weight: 700; background: transparent; white-space: nowrap; }
.buy-ghost:hover { text-decoration: none; background: var(--cta-soft); }
:root[data-theme="dark"] .buy-ghost { color: #D2B8FF; border-color: #D2B8FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .buy-ghost { color: #D2B8FF; border-color: #D2B8FF; } }
.buy-ghost svg { width: 14px; height: 14px; }

/* ---------- 言い切り ---------- */
.lead { margin: 12px 0 0; font-size: 16px; line-height: 1.75; }
.lead b { font-weight: 700; }

/* ---------- 定額の箱 ---------- */
.plan-box { margin-top: 14px; background: var(--cta-soft); border-radius: var(--r-card); padding: 12px 12px 12px 14px;
  display: flex; align-items: center; gap: 12px; }
.plan-box p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink); flex: 1; }
.plan-box p b { font-family: var(--font-latin); }

/* ---------- 基本情報 ---------- */
.spec { margin: 16px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 14px; }
.spec div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 9px 0; font-size: 14px; line-height: 1.6; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { color: var(--ink-3); font-size: 13px; }
.spec dd { margin: 0; }
.spec .chips { margin-top: 2px; }

/* ---------- チップ ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: var(--h-chip); padding: 0 12px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; border: 0; position: relative; cursor: pointer; font-family: var(--font); }
.chip:hover { text-decoration: none; background: var(--sky-soft); }
.chip .n { font: 500 12px/1 var(--font-latin); color: var(--ink-3); }
.chip[aria-current], .chip[aria-pressed="true"] { background: var(--surface); }
.chip[aria-current]::before, .chip[aria-pressed="true"]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--dawn); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.axis { flex: none; display: inline-flex; align-items: center; height: var(--h-chip); font-size: 11px; color: var(--ink-3); font-weight: 600; padding-right: 2px; }
.chip-row { padding: 5px 0; } /* 34px の的を上下の余白で 44px に */

/* ---------- 場面（1＋2 の組） ---------- */
.scene { margin-top: var(--s5); }
.scene .h3 { margin-top: 0; display: flex; gap: 8px; align-items: baseline; }
.scene .h3 .t { font: 600 12px/1 var(--font-latin); color: var(--ink-3); letter-spacing: .04em; }
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scene-grid .f { border-radius: 8px; aspect-ratio: 16 / 9; cursor: zoom-in; }
.scene-grid .f.wide { grid-column: 1 / -1; }
.scene p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; }
.scene-cta { margin-top: var(--s5); }

/* ---------- 値段の表 ---------- */
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; font-size: 14px; }
.ptable th, .ptable td { padding: 10px 12px; text-align: left; vertical-align: top; }
.ptable thead th { font-size: 12px; color: var(--ink-3); font-weight: 600; background: var(--surface-2); }
.ptable tbody tr + tr th, .ptable tbody tr + tr td { border-top: 1px solid var(--line); }
.ptable tbody th { color: var(--ink-3); font-weight: 500; font-size: 13px; width: 30%; }
.ptable .big { font: 800 17px/1.2 var(--font-latin); font-variant-numeric: tabular-nums; }
.steps { margin: 12px 0 16px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; font-size: 14px; }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; }
.steps li::before { content: counter(s); font: 700 12px/20px var(--font-latin); width: 20px; height: 20px; text-align: center; border-radius: 50%; background: var(--surface-2); flex: none; }

/* ---------- コメント欄の反応 ---------- */
.voices { display: grid; gap: 14px; }
.voice-top { display: grid; gap: 4px; }
.voice-top .row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.voice-top .row .num { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--ink); border-radius: 6px; opacity: .85; }
.quote { margin: 4px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-strong); font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.scene-voice { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.scene-voice .ph { width: 56px; height: 32px; border-radius: 6px; flex: none; }

/* ---------- 回のカード（サイトで 1 種類） ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
.card { display: block; color: var(--ink); border-radius: var(--r-card); }
.card:hover { text-decoration: none; }
.card:hover .card-t { color: var(--sky); }
.card .thumb { aspect-ratio: 16 / 9; border-radius: var(--r-img); position: relative; }
.card .len { position: absolute; right: 6px; bottom: 6px; background: var(--scrim); color: #fff; font: 600 11px/1 var(--font-latin); padding: 4px 6px; border-radius: 5px; }
.card .mark { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 5px; background: var(--surface); }
.card .mark.new { color: var(--new); }
.card .mark.up { color: var(--up); }
.card-t { margin: 7px 0 0; font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-m { margin-top: 3px; font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; }
.card-m .who-n { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-m .num { font-weight: 700; color: var(--ink); font-size: 13px; }
.card-m .pl { font-size: 11px; color: var(--ink-3); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; } .v-main .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 横長の行（ランキング 4 位以下・新着） ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 28px 128px 1fr; gap: 10px; align-items: start; padding: 12px 0; color: var(--ink); }
.row:hover { text-decoration: none; }
.row:hover .row-t { color: var(--sky); }
.row .rk { font: 700 18px/72px var(--font-latin); text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row .thumb { width: 128px; aspect-ratio: 16 / 9; border-radius: 8px; position: relative; }
.row-t { font-size: 14px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.row-m { margin-top: 4px; font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-m .num { font-weight: 700; color: var(--ink); font-size: 13px; }
.mv { font-size: 11px; font-weight: 700; }
.mv.new { color: var(--new); }
.mv.up { color: var(--up); }

/* ---------- ランキングの 1〜3 位 ---------- */
.podium { display: grid; gap: 22px; }
.pod { position: relative; }
.pod a.body { display: block; color: var(--ink); }
.pod a.body:hover { text-decoration: none; }
.pod a.body:hover .pod-t { color: var(--sky); }
.pod .thumb { aspect-ratio: 16 / 9; border-radius: var(--r-img); position: relative; }
.pod .rk { position: absolute; left: 10px; top: 6px; font: 700 44px/1 var(--font-latin); letter-spacing: -.02em;
  background: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.pod-t { margin: 8px 0 0; font-size: 16px; line-height: 1.5; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pod-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pod-f .m { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pod-f .m .num { font-weight: 800; color: var(--ink); font-size: 15px; }
@media (min-width: 1024px) { .podium { grid-template-columns: repeat(3, 1fr); gap: 20px; } .pod:first-child { grid-column: 1 / -1; } .pod:first-child .pod-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; } }

/* ---------- タブ ---------- */
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.tabs a { flex: 1; text-align: center; height: 36px; line-height: 36px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(12,20,39,.08); }

/* ---------- FAQ（開いたまま） ---------- */
.faq { display: grid; gap: 4px; }
.faq .q { margin: 14px 0 4px; font-size: var(--fs-h3); font-weight: 700; line-height: 1.55; display: flex; gap: 8px; }
.faq .q::before { content: "Q"; font: 700 14px/1.75 var(--font-latin); color: var(--sky); flex: none; }
.faq .a { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); padding-left: 18px; }

/* ---------- 追従の帯（スマホ） ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-bar); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px;
  transform: translateY(110%); transition: transform var(--t-bar) var(--ease); }
.buybar.on { transform: none; }
.buybar .ph { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.buybar .bt { flex: 1; min-width: 0; font-size: 12px; line-height: 1.35; }
.buybar .bt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .bt span { color: var(--ink-3); font-family: var(--font-latin); }
.buybar .buy { width: auto; min-height: 48px; padding: 0 16px; flex: none; border-radius: 12px; }
.buybar .buy .l1 { font-size: 15px; }
@media (min-width: 1024px) { .buybar { display: none; } }

/* ---------- 全画面のビューア（押したあとだけ。横にめくる） ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: #05070D; color: #fff; display: none; flex-direction: column; }
.viewer.on { display: flex; }
.viewer-box { display: contents; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; font: 500 13px var(--font-latin); }
.viewer-top .icon-btn { color: #fff; }
.viewer-top .icon-btn:hover { background: rgba(255,255,255,.1); }
.viewer-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-track .ph { flex: none; width: 100%; scroll-snap-align: center; aspect-ratio: auto; margin: auto 0; height: auto; min-height: 0; }
.viewer-track .ph .inner { aspect-ratio: 16/9; width: 100%; }
.viewer-bot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.viewer-bot p { margin: 0; font-size: 13px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) {
  .viewer { background: rgba(5,7,13,.86); align-items: center; justify-content: center; }
  .viewer.on { display: flex; }
  .viewer-box { width: min(960px, 92vw); background: #0B0E18; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
}

/* ---------- 回のページ ---------- */
/* 2026-11-23：PC の右の買う欄 (.v-aside、placement side) を外し、PC も 1 段で本文の fv_main を出す (1 ページの投稿リンクを 3 本までにするため) */
.v-layout { display: block; }
@media (min-width: 1024px) {
  .v-layout { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; }
}
.side-t { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 検索窓 ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 8px 0 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; }
.search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--font); color: var(--ink); outline: none; }
.search input::placeholder { color: var(--ink-3); }
.search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }

/* ---------- 並べ替え ---------- */
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; font-size: 13px; color: var(--ink-2); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; font: 600 13px var(--font); color: var(--ink-2); height: 32px; padding: 0 10px; border-radius: 8px; cursor: pointer; min-width: 44px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(12,20,39,.08); }

/* ---------- ページ送り ---------- */
.more-btn { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 15px; margin-top: 20px; background: var(--surface); }
.more-btn:hover { text-decoration: none; border-color: var(--ink-3); }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 12px; font: 600 14px var(--font-latin); }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); }
.pager [aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- 再訪の帯 ---------- */
.revisit { display: none; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); color: var(--ink); }
.revisit.on { display: flex; }
.revisit:hover { text-decoration: none; border-color: var(--line-strong); }
.revisit .ph { width: 96px; aspect-ratio: 16/9; border-radius: 8px; flex: none; }
.revisit small { display: block; font-size: 11px; color: var(--new); font-weight: 700; }
.revisit b { font-size: 13px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 足 ---------- */
.foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 24px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.foot a { color: var(--ink-2); }
.foot .theme { margin-top: 12px; display: inline-flex; }
@media (min-width: 1024px) { .foot { padding-bottom: 40px; } }

/* ---------- 動きを減らす ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 追記：予告の枠の中の札はコマ送りの線の下へ ---------- */
.hero .ph > i { top: 16px; }

/* ---------- ランキング：1 位は幅いっぱい、2・3 位はスマホで 2 列 ---------- */
.podium { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
.pod:first-child { grid-column: 1 / -1; }
.pod:not(:first-child) .rk { font-size: 32px; left: 8px; }
.pod:not(:first-child) .pod-t { font-size: 14px; line-height: 1.45; }
.pod:not(:first-child) .pod-f { flex-direction: column; align-items: stretch; gap: 8px; }
.pod:not(:first-child) .pod-f .m { font-size: 12px; gap: 6px; }
.pod:not(:first-child) .pod-f .m .num { font-size: 13px; }
.pod:not(:first-child) .buy-ghost { width: 100%; }
@media (min-width: 1024px) {
  .podium { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pod:not(:first-child) .rk { font-size: 40px; }
  .pod:not(:first-child) .pod-f { flex-direction: row; align-items: center; }
  .pod:not(:first-child) .buy-ghost { width: auto; }
}
/* PC：1〜3 位を横に 3 つ並べる（1 位の右が空かないように） */
@media (min-width: 1024px) {
  .podium { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pod:first-child { grid-column: auto; }
  .pod:first-child .pod-wrap { display: block; }
  .pod .rk, .pod:not(:first-child) .rk { font-size: 44px; }
  .pod .pod-t, .pod:not(:first-child) .pod-t { font-size: 15px; }
  .pod .pod-f, .pod:not(:first-child) .pod-f { flex-direction: row; align-items: center; }
}

/* =====================================================================
   第 2 審査（2026-11-13）で足した部品。正本：DESIGN.md 5-1・5-4・5-5・5-7a〜5-25
   ===================================================================== */

/* ---------- ロゴ：ダークは白の版（字だけ白、記号の夜明けは残す） ---------- */
:root[data-theme="dark"] .logo { color: #fff; }
:root[data-theme="dark"] .logo-mark { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo { color: #fff; }
  :root:not([data-theme="light"]) .logo-mark { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
}

/* ---------- 人の行：表示名＋小さい @handle＋公開・更新 ---------- */
.who .nm { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.who .hd { font: 500 12px/1 var(--font-latin); color: var(--ink-3); flex: none; }
.who .dt { margin-left: auto; flex: none; font-size: 12px; color: var(--ink-3); }

/* ---------- カード：題名 3 行（格子は 13px） ---------- */
.card-t { -webkit-line-clamp: 3; font-size: 13px; }
@media (min-width: 1024px) { .card-t { font-size: var(--fs-card); } }
/* 一覧のスマホは横長の行（同じ .card の HTML を並べ替えるだけ） */
@media (max-width: 719px) {
  .cards.as-rows { grid-template-columns: 1fr; gap: 0; }
  .cards.as-rows .card { display: grid; grid-template-columns: 128px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; padding: 12px 0; border-radius: 0; }
  .cards.as-rows .card + .card { border-top: 1px solid var(--line); }
  .cards.as-rows .card .thumb { grid-row: 1 / 3; width: 128px; border-radius: 8px; align-self: start; }
  .cards.as-rows .card-t { margin: 0; font-size: 14px; }
  .cards.as-rows .card-m { margin-top: 4px; align-self: start; flex-wrap: wrap; white-space: normal; }
}
.card-m .ln { font: 500 12px/1 var(--font-latin); color: var(--ink-3); }

/* ---------- 横長の行：題名 3 行・右端の ↗（4〜30 位） ---------- */
.row-t { -webkit-line-clamp: 3; }
.rrow { display: flex; align-items: center; gap: 8px; }
.rrow .row { flex: 1; min-width: 0; }
.row-out { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--cta); }
.row-out:hover { text-decoration: none; border-color: var(--cta); background: var(--cta-soft); }
.row-out svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .row-out { color: #D2B8FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .row-out { color: #D2B8FF; } }
.rows-more[hidden] { display: none; }

/* ---------- 声の 1 行・飛び先のチップ ---------- */
.voice-line { display: flex; gap: 6px; align-items: baseline; margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.voice-line svg { width: 14px; height: 14px; flex: none; transform: translateY(2px); color: var(--ink-3); }
.voice-line a { color: var(--ink-2); }
.voice-line b { color: var(--ink); }
.jump { display: flex; gap: 6px; padding: 7px 0; margin-top: 2px; overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; height: 30px; line-height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.jump a:hover { text-decoration: none; background: var(--sky-soft); }
.jump a .num { color: var(--ink-3); font-weight: 500; margin-left: 4px; }

/* ---------- 送客ボタンの状態：販売終了（JS で替える。リンクでない） ---------- */
.buy.is-ended { background: var(--surface-2); color: var(--ink-3); cursor: default; }
.buy.is-ended:hover { background: var(--surface-2); }
.ended-note { margin: 6px 0 0; font-size: 13px; text-align: center; }

/* ---------- 予告の枠：縦 3 連 ---------- */
.hero.is-tall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #0B0E18; }
.hero.is-tall .tf { position: relative; }
.hero.is-tall .tf > i { top: 8px; }
.hero .xmark { position: absolute; right: 8px; top: 16px; background: var(--scrim); color: #fff; font: 600 10px/1 var(--font-latin); padding: 4px 6px; border-radius: 5px; letter-spacing: .04em; }

/* ---------- 場面：縦 3 枚 1 列 ---------- */
.scene-grid.is-tall { grid-template-columns: repeat(3, 1fr); }
.scene-grid.is-tall .f { aspect-ratio: 9 / 16; }

/* ---------- 基本情報：消し線・切り口の中で ---------- */
.spec s { color: var(--ink-3); font-family: var(--font-latin); margin-right: 4px; }
.in-tag { margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.in-tag b { color: var(--ink); font-family: var(--font-latin); }

/* ---------- 本人の説明 ---------- */
.desc { position: relative; margin: 0; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-img); font-size: 15px; line-height: 1.8; }
.desc p { margin: 0 0 .6em; }
.desc.is-clamped .body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.desc .more { display: none; border: 0; background: none; color: var(--sky); font: 600 13px var(--font); padding: 4px 0 0; cursor: pointer; }
.desc.is-clamped .more { display: block; }
.desc-src { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }

/* ---------- X の声（埋め込みではなく文字の引用） ---------- */
.xvoice { display: grid; gap: 14px; }
.xv-k { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.xv-q { margin: 4px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-strong); font-size: 15px; line-height: 1.75; }
.xv-m { margin-top: 4px; font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; }

/* ---------- 英語の要約 ---------- */
.en { margin-top: var(--section); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); font-family: var(--font-latin); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.en .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.en p { margin: 4px 0 0; }
.en .t { color: var(--ink); font-weight: 600; font-size: 14px; }

/* ---------- 空の一覧 ---------- */
.empty { padding: 20px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); text-align: center; background: var(--surface); }
.empty p { margin: 0 0 12px; font-size: 15px; }
.empty .chips { justify-content: center; margin-top: 12px; }
.btn-line { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 14px var(--font); cursor: pointer; }

/* ---------- 年齢確認の帯（出すと決まったときだけ） ---------- */
.agegate { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-bar); padding: 14px 16px; display: grid; gap: 10px; }
.agegate p { margin: 0; font-size: 14px; font-weight: 600; }
.agegate .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agegate .yes { height: 44px; border: 0; border-radius: 10px; background: var(--ink); color: var(--bg); font: 700 14px var(--font); }
.agegate .no { height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: none; color: var(--ink-2); font: 600 14px var(--font); }

/* ---------- ビューア：X の予告の 1 枚目 ---------- */
.viewer-track .xslide { flex: none; width: 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 16px; }
.viewer-track .xslide .xbox { width: min(360px, 100%); aspect-ratio: 9 / 16; max-height: 70vh; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; display: grid; place-items: center; text-align: center; font-size: 13px; color: rgba(255,255,255,.75); padding: 16px; background: #10131F; }

/* ---------- 状態違いの見本（states.html だけ） ---------- */
.st-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 16px; background: var(--bg); min-width: 0; }
.st > .st-k { display: inline-block; font: 600 11px/1 var(--font-latin); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.st > .st-d { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.st .h1 { font-size: 18px; }
.hero button.play { font: 600 13px var(--font); cursor: pointer; }
.more-btn[hidden], .pager[hidden], .empty[hidden], [data-js-only][hidden] { display: none; }
.hero .play { white-space: nowrap; }

/* 2026-11-13 宵：地は白。ロゴの字は黒、プランの印は灰で送客の紫と分ける */
.logo { color: var(--ink); }
.tag-plan { color: var(--ink-2); background: var(--surface-2); }
.buy-ghost { color: var(--ink); border-color: var(--line-strong); }
.row-out { color: var(--cta); }

/* 年齢確認の窓 (2026-11-13、審査の前に。本文の DOM は残し、localStorage と cookie で 1 年) */
.agegate{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:rgba(11,10,18,.55);backdrop-filter:blur(22px) saturate(.6);-webkit-backdrop-filter:blur(22px) saturate(.6)}
.agegate[hidden]{display:none}
.ag-on body{overflow:hidden}
.ag-on .buybar{display:none!important}
.ag-box{width:min(420px,100%);background:var(--surface);color:var(--ink);border-radius:20px;padding:28px 22px 20px;text-align:center;box-shadow:0 20px 60px rgba(11,10,18,.25)}
.ag-box img{display:block;margin:0 auto;height:20px;width:auto}
.ag-t{margin:14px 0 6px;font-size:20px;font-weight:700;line-height:1.5}
.ag-s{margin:0 0 18px;font-size:14px;line-height:1.8;color:var(--ink-2)}
.ag-b{display:grid;gap:10px}
.ag-yes{all:unset;cursor:pointer;min-height:52px;display:grid;place-items:center;border-radius:999px;background:var(--cta);color:var(--cta-ink);font-weight:700;font-size:16px}
.ag-yes:focus-visible,.ag-no:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.ag-no{min-height:46px;display:grid;place-items:center;border-radius:999px;border:1.5px solid var(--line-strong);color:var(--ink);text-decoration:none;font-weight:600;font-size:15px}
.ag-f{margin:14px 0 0;font-size:11px;color:var(--ink-3)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
