/* Cottou.com 全ページ共通のスタイル（手書き）。正本: docs/DESIGN.md
   和紙の地に、染付の藍（押すところ・帯）、金継ぎの金（数の丸・いまの印）、朱（「新着」と「音」の印にだけ＝落款の色）。
   帯は、染付の青海波。枠は墨の実線・影はぼかさない（案内役の絵の線に合わせる）。語り手の札の13色は札と点にだけ使う。
   色は変数で持ち、暗い画面（html[data-theme="dark"]、または端末の設定）では下の「暗い画面」の組（夜の蔵）に入れ替わる。
   広い画面のプレーヤーの帯（.stage）は、明るい画面でも暗い組を使う。
   色を足す・替えるときは、pipeline/prerelease.py の色の比の検査（文字 4.5:1 以上）を通すこと。
   ⚠ プレーヤーの幕（.vp__curtain）は上に「覆う」だけ（pointer-events:none）。動画要素を visibility / display で隠さない（iPhone で自動再生が止まる・LSN-0239） */
:root {
  --bg: #f8f3e8; --card: #fffdf7; --soft: #efe7d6; --line: #e0d5bf; --line2: #b9aa8e;
  --ink: #2b2622; --ink2: #51483f; --ink3: #6c6156; --edge: #2b2622;
  --inv-bg: #2b2622; --inv-fg: #f8f3e8;
  --ai: #2b4c7e; --ai2: #223d66; --on-ai: #ffffff; --ai-ink: #2b4c7e;
  --sun: #d9ad33; --sun2: #c99b1f; --sun-soft: #f8ecc4; --sun-line: #8a6a12; --on-sun: #2b2622;
  --shu: #c5392a; --shu-ink: #a82f22; --on-shu: #ffffff;
  --link: #2b2622; --link-h: #223d66; --live: #c8261b;
  --tone-d: #9a3412; --tone-c: #be185d; --tone-a: #7c5a06; --tone-m: #1e40af; --tone-q: #0e7490; --tone-r: #6d28d9; --tone-u: #4338ca; --tone-f: #4d7c0f; --tone-b: #0f766e; --tone-x: #15803d; --tone-e: #475569; --tone-v: #a21caf; --tone-p: #57534e;
  --paper: #fff6e6;                      /* 絵の下に敷く色（絵の線が墨なので、暗い画面でも明るいまま） */
  --stage: #1b1917; --scrim: rgba(43, 38, 34, .6);
  --r: 16px; --r2: 12px; --pad: clamp(14px, 2.4vw, 28px); --max: 1380px; --hd: 66px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-d: "Outfit", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --font-h: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  /* 帯: 染付の青海波（藍の地に、生成りの線の波）。上に金の細い線 */
  --obi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Crect width='28' height='14' fill='%232b4c7e'/%3E%3Cg fill='%232b4c7e' stroke='%23f8f3e8' stroke-width='1.1' stroke-opacity='.8'%3E%3Ccircle cx='0' cy='7' r='14'/%3E%3Ccircle cx='0' cy='7' r='9.5'/%3E%3Ccircle cx='0' cy='7' r='5'/%3E%3Ccircle cx='28' cy='7' r='14'/%3E%3Ccircle cx='28' cy='7' r='9.5'/%3E%3Ccircle cx='28' cy='7' r='5'/%3E%3Ccircle cx='14' cy='14' r='14'/%3E%3Ccircle cx='14' cy='14' r='9.5'/%3E%3Ccircle cx='14' cy='14' r='5'/%3E%3Ccircle cx='0' cy='21' r='14'/%3E%3Ccircle cx='0' cy='21' r='9.5'/%3E%3Ccircle cx='28' cy='21' r='14'/%3E%3Ccircle cx='28' cy='21' r='9.5'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
/* ── 暗い画面の組（同じ中身を3か所に置く: 端末の設定・切り替えボタン・広い画面のプレーヤーの帯） ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1917; --card: #262220; --soft: #322c28; --line: #413932; --line2: #6a5d52;
    --ink: #f4ecdc; --ink2: #d3c7b5; --ink3: #a99d8d; --edge: #8a7a6a;
    --inv-bg: #f4ecdc; --inv-fg: #2b2622;
    --ai: #3d63a0; --ai2: #33558c; --ai-ink: #a9c4ee;
    --sun-soft: #3d3110; --sun-line: #e3b93f;
    --shu-ink: #ff9d8f;
    --link: #f4ecdc; --link-h: #f0c95a; --live: #ff8f85;
    --tone-d: #fdba74; --tone-c: #f9a8d4; --tone-a: #fcd34d; --tone-m: #93c5fd; --tone-q: #67e8f9; --tone-r: #c4b5fd; --tone-u: #a5b4fc; --tone-f: #bef264; --tone-b: #5eead4; --tone-x: #86efac; --tone-e: #cbd5e1; --tone-v: #f0abfc; --tone-p: #d6d3d1;
    --stage: #131110; --scrim: rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1917; --card: #262220; --soft: #322c28; --line: #413932; --line2: #6a5d52;
  --ink: #f4ecdc; --ink2: #d3c7b5; --ink3: #a99d8d; --edge: #8a7a6a;
  --inv-bg: #f4ecdc; --inv-fg: #2b2622;
  --ai: #3d63a0; --ai2: #33558c; --ai-ink: #a9c4ee;
  --sun-soft: #3d3110; --sun-line: #e3b93f;
  --shu-ink: #ff9d8f;
  --link: #f4ecdc; --link-h: #f0c95a; --live: #ff8f85;
  --tone-d: #fdba74; --tone-c: #f9a8d4; --tone-a: #fcd34d; --tone-m: #93c5fd; --tone-q: #67e8f9; --tone-r: #c4b5fd; --tone-u: #a5b4fc; --tone-f: #bef264; --tone-b: #5eead4; --tone-x: #86efac; --tone-e: #cbd5e1; --tone-v: #f0abfc; --tone-p: #d6d3d1;
  --stage: #131110; --scrim: rgba(0, 0, 0, .7);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.7 var(--font); overflow-wrap: anywhere; }
html[lang="ja"] [data-l="en"], html[lang="en"] [data-l="ja"] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-h); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun-line); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sun); color: var(--on-sun); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 900; }
/* 帯（染付の青海波）。main の中に置いたものは、画面の端まで伸ばす（左右に同じ絵を足して、横スクロールを作らない） */
.obi { height: 14px; background: var(--obi) center top / 28px 14px repeat-x; border-top: 3px solid var(--sun); }
main > .obi { position: relative; margin-top: 22px; background: none; border-top: 0;
  border-image: repeating-linear-gradient(90deg, #2b4c7e 0 5px, #f8f3e8 5px 6px, #2b4c7e 6px 13px, #c5392a 13px 14px) fill 0 / 0 / 0 100vw; }
main > .obi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sun); box-shadow: 0 0 0 100vmax var(--sun); clip-path: inset(0 -100vmax); }
.obi--foot { height: 14px; }
/* 案内役の絵は線が墨なので、どの画面でも明るい紙色を下に敷く */
.brand img, .chip img, .mood img, .shelf__head > img, .doc__head img, .ft__brand img, .now__msg img, .guide__empty img, .cats a img { background: var(--paper); border-radius: 28%; }

/* ── ヘッダー ── */
.hd { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 2px solid var(--edge); }
.hd + .obi { position: sticky; top: var(--hd); z-index: 39; height: 10px; border-top-width: 2px; }
.hd__in { display: flex; align-items: center; gap: 14px; min-height: var(--hd); padding: 6px var(--pad); max-width: calc(var(--max) + 40px); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 2px solid var(--edge); }
.brand__name { font: 800 26px/1 var(--font-d); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand__name b { font-weight: 600; color: var(--ink3); }
.brand__tag { font: 700 13px/1.2 var(--font-h); color: var(--on-ai); background: var(--ai); padding: 5px 11px; border-radius: 4px; white-space: nowrap; letter-spacing: .04em; }
.search { flex: 1 1 320px; max-width: 480px; margin-left: auto; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 40px; border-radius: 999px; border: 2px solid var(--line2); background: var(--soft) no-repeat 14px 50% / 17px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f7f6c' stroke-width='2.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E"); }
.search input::placeholder { color: var(--ink3); opacity: 1; }
.search input:focus { outline: none; border-color: var(--edge); background-color: var(--card); }
.hd__nav { display: flex; align-items: center; gap: 4px 14px; margin-left: auto; font-size: 14.5px; white-space: nowrap; }
.search + .hd__nav { margin-left: 0; }
.hd__nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.hd__nav a:hover { color: var(--link-h); }
.themesw { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid var(--edge); background: var(--card); display: grid; place-items: center; }
.themesw span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); transition: transform .25s; }
.themesw[aria-pressed="true"] span { transform: rotate(180deg); }
.langsw { display: inline-flex; border: 2px solid var(--edge); border-radius: 999px; overflow: hidden; flex: none; }
.langsw button { border: 0; background: var(--card); padding: 4px 12px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.langsw button[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); }

/* ── 共通の部品 ── */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 5px 15px; border-radius: 13px; border: 2px solid var(--edge);
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 var(--edge); transition: transform .08s, box-shadow .08s; }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.btn--main { background: var(--ai); color: var(--on-ai); }
.btn--main:hover { background: var(--ai2); color: var(--on-ai); }
.btn--glow { background: var(--shu); color: var(--on-shu); }
.btn--glow:hover { background: #ad3122; color: var(--on-shu); }
.btn--omakase { background: var(--sun); color: var(--on-sun); }
.btn--omakase:hover { background: var(--sun2); color: var(--on-sun); }
.btn--omakase::before { content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%; border: 2px solid var(--on-sun); background: radial-gradient(circle, var(--on-sun) 0 2px, transparent 2.5px), #fff6e6; }
.btn--icon { width: 42px; padding: 0; font-size: 19px; }
.btn--icon[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); }
.btn--sm { min-height: 34px; padding: 3px 12px; font-size: 13px; border-radius: 11px; box-shadow: 0 2px 0 var(--edge); }
.btn--more { display: flex; margin: 20px auto 0; min-width: 220px; }
.sec { margin-top: 46px; }
.sec__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 14px; }
.sec__head h2 { font: 700 clamp(23px, 2.6vw, 30px)/1.3 var(--font-h); padding-left: 24px; position: relative; }
/* 見出しの印: 落款（朱の角印に、白抜きの丸） */
.sec__head h2::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 3px; background: radial-gradient(circle, transparent 0 2.4px, var(--shu) 3px); transform: rotate(-4deg); }
.sec__note { margin: 0; font-size: 13px; color: var(--ink3); }
.sec__more { font-size: 14px; font-weight: 700; margin-left: auto; }
.sec__head .btn { margin-left: auto; align-self: center; }
.chip__n { font: 600 13px/1 var(--font-d); color: var(--ink3); margin-left: 4px; letter-spacing: .01em; }
.tone { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 3.5px 7px; border-radius: 6px; border: 1.5px solid currentColor; background: var(--card); white-space: nowrap; flex: none; }
.tone--d { color: var(--tone-d); } .tone--c { color: var(--tone-c); } .tone--a { color: var(--tone-a); } .tone--m { color: var(--tone-m); } .tone--q { color: var(--tone-q); } .tone--r { color: var(--tone-r); } .tone--u { color: var(--tone-u); } .tone--f { color: var(--tone-f); } .tone--b { color: var(--tone-b); } .tone--x { color: var(--tone-x); } .tone--e { color: var(--tone-e); } .tone--v { color: var(--tone-v); } .tone--p { color: var(--tone-p); }
.tone .ok { margin-left: 3px; font-weight: 900; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
.av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--soft); color: var(--ink2); font-weight: 700; flex: none; border: 1.5px solid var(--line2); }
.av--44 { width: 44px; height: 44px; font-size: 18px; } .av--40 { width: 40px; height: 40px; font-size: 16px; } .av--28 { width: 28px; height: 28px; font-size: 12px; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av img.is-broken { display: none; }

/* ── 舞台（プレーヤーと注目の新着） ── */
.stage__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.stage__main { min-width: 0; }
.vp { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; border: 2px solid var(--edge); }
#player-host, #player-host > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp__curtain { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); pointer-events: none; opacity: 0; transition: opacity .35s; }
.vp__curtain img { width: min(34%, 190px); height: auto; }
.vp[data-curtain="on"] .vp__curtain { opacity: 1; }
.vp[data-curtain="on"][data-state="tuning"] .vp__curtain img { animation: bob 1.1s ease-in-out infinite; }
.now { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); min-width: 0; }
.now__txt { display: grid; min-width: 0; flex: 1 1 auto; line-height: 1.4; }
.now__label { justify-self: start; font-size: 11.5px; font-weight: 700; color: var(--on-sun); background: var(--sun); padding: 1px 9px; border-radius: 999px; }
.now[data-state="live"] .now__label { background: #c8261b; color: #fff; }
.now[data-state="tuning"] .now__label, .now[data-state="error"] .now__label, .now[data-state="tap"] .now__label { background: var(--soft); color: var(--ink2); }
.now__name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now__title { font-size: 13.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now__act { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 3px; }
.now__msg { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 8px 14px; background: var(--sun-soft); border: 2px solid var(--sun-line); border-radius: var(--r2); font-size: 14.5px; color: var(--ink); }
.now__msg img { width: 48px; height: 48px; flex: none; }
.info { margin: 12px 4px 0; font-size: 14.5px; color: var(--ink2); }
.info p { margin: 0 0 6px; }
.info__tone { display: flex; gap: 8px; align-items: baseline; color: var(--ink); }
.info__tone .tone { transform: translateY(-1px); }
.info__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.info__links a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sun); }
.info__links a.is-topic { border-bottom-color: var(--shu); }
.info__links a.is-quiet { color: var(--ink3); font-weight: 500; border-bottom: 1px solid currentColor; }
.info__near { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.info__near > b { font-size: 12.5px; color: var(--ink3); margin-right: 2px; }
.nearch { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 700; }
.nearch span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearch:hover { border-color: var(--edge); color: var(--ink); }
.capnote { margin: 10px 4px 0; font-size: 13px; color: var(--ink2); }
.noscript { margin: 12px 0 0; padding: 12px 14px; border: 2px dashed var(--line2); border-radius: var(--r2); background: var(--card); }

.picks { min-width: 0; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 12px; }
.js .picks__fallback { display: none; }
.js .picks__fallback.is-shown { display: block; }
.picks__head { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px dashed var(--line); }
.picks__head h2 { font: 700 22px/1.3 var(--font-h); display: flex; align-items: center; gap: 8px; }
.picks__head h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--shu); border: 2px solid var(--edge); flex: none; }
.picks__rule { margin: 2px 0 0; font-size: 12.5px; color: var(--ink3); line-height: 1.45; }
.picks__list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-color: var(--line2) transparent; }
.picks__list > * { flex: 0 0 min(66vw, 240px); scroll-snap-align: start; }

/* 動画のカード（描くのは app.js。題名と絵は運営者のもの） */
.vc { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); padding: 6px; border-radius: var(--r2); border: 2px solid transparent; min-width: 0; }
.vc:hover { background: var(--soft); color: var(--ink); }
.vc[aria-current="true"] { background: var(--sun-soft); border-color: var(--sun-line); }
.vc__th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--soft); }
.vc__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc__th img.is-broken { visibility: hidden; }
.vc[aria-current="true"] .vc__th::after { content: "▶"; position: absolute; left: 6px; bottom: 6px; font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--sun); color: var(--on-sun); border: 1.5px solid #2b2622; }
.vc__b { display: grid; gap: 3px; min-width: 0; }
.vc__t { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc__m { font-size: 12px; color: var(--ink2); display: flex; gap: 6px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc__m .tone { font-size: 10.5px; padding: 3px 6px; }

/* チャンネルのカード */
.ch { position: relative; display: flex; align-items: center; min-width: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r2); }
.ch:hover { border-color: var(--edge); }
.ch[aria-current="true"] { border-color: var(--sun-line); background: var(--sun-soft); box-shadow: 0 0 0 1px var(--sun-line); }
.ch__a { position: relative; display: flex; align-items: center; gap: 11px; flex: 1 1 auto; min-width: 0; padding: 9px 4px 9px 11px; text-decoration: none; color: var(--ink); }
.ch__b { display: grid; gap: 4px; min-width: 0; }
.ch__n { font-weight: 700; font-size: 15px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch__m { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink2); min-width: 0; }
/* ことばの印（画面のことばと違うチャンネルにだけ）。語り手の札の隣に置き、幅が足りなくても切れない */
.lng { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 6px; background: var(--soft); color: var(--ink2); white-space: nowrap; flex: none; }
.ch__m > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ch__new { position: absolute; left: 4px; top: 3px; font: 700 10px/1 var(--font); padding: 2.5px 5px; border-radius: 999px; background: var(--shu); color: var(--on-shu); border: 1.5px solid #2b2622; }
.ch__fav { flex: none; width: 42px; height: 42px; border: 0; background: transparent; font-size: 19px; color: var(--line2); border-radius: 50%; }
.ch__fav:hover { color: var(--sun-line); }
.ch__fav[aria-pressed="true"] { color: var(--sun); -webkit-text-stroke: 1px var(--sun-line); }
.ch.is-dormant .ch__n { color: var(--ink2); }
.picks .ch { border-color: transparent; }
.picks .ch:hover { background: var(--soft); }

/* ── 届いたばかりの新着（帯）。壁に掛けた額が、ゆっくり流れる。同じ並びを2つ置いて、半分まで動いたら最初に戻る（つなぎ目が見えない）。
   マウスを載せる・キーボードで入る・「とめる」で止まり、横に送れる。触って使う画面と「動きを減らす」の端末では、最初から動かさない ── */
.lane { margin-top: 30px; }
.lane .sec__head { margin-bottom: 8px; }
/* 壁の上のほうに、額を吊る細い桟（さん）を1本 */
.lane__belt { position: relative; overflow: hidden; margin: 0 calc(var(--pad) * -1); padding: 20px 0 12px; background: linear-gradient(var(--line2) 0 0) 0 8px / 100% 3px no-repeat; }
.lane__track { position: relative; z-index: 1; display: flex; gap: 18px; width: max-content; padding: 0 var(--pad); animation: lane calc(var(--lane-n, 20) * 6s) linear infinite; }
.lane__belt:hover .lane__track, .lane__belt:focus-within .lane__track { animation-play-state: paused; }
@keyframes lane { to { transform: translateX(calc(-50% - 9px + var(--pad))); } }
.lane.is-paused .lane__belt, .lane.is-still .lane__belt { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--line2) transparent; }
.lane.is-paused .lane__track, .lane.is-still .lane__track { animation: none; }
.lane.is-paused .gaku[aria-hidden="true"] { display: none; }
.gaku { position: relative; flex: 0 0 196px; display: grid; justify-items: center; gap: 4px; padding: 0 2px 6px; text-align: center; border-radius: var(--r2); scroll-snap-align: start; }
.gaku:hover { background: none; }
/* 吊り紐（桟から額の上まで） */
.gaku::before { content: ""; position: absolute; left: 50%; top: -12px; width: 60px; height: 14px; margin-left: -30px; border: 1.5px solid var(--line2); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
/* 額: 墨の縁・金の細い内縁・生成りのマット */
.gaku__th { position: relative; width: 184px; aspect-ratio: 16 / 10.4; padding: 7px; background: var(--paper); border: 3px solid var(--edge); border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--sun), 0 5px 0 -1px var(--line2); transition: transform .18s; }
.gaku__th img { width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid var(--edge); }
.gaku__th img.is-broken { visibility: hidden; }
.gaku:hover .gaku__th, .gaku:focus-visible .gaku__th { transform: rotate(-1.6deg) translateY(-2px); }
.gaku[aria-current="true"] { background: none; border-color: transparent; }
.gaku[aria-current="true"] .gaku__th { box-shadow: inset 0 0 0 1.5px var(--sun), 0 0 0 4px var(--sun), 0 5px 0 3px var(--line2); }
/* 作品の札（キャプション）のように、関わり方を小さく */
.gaku__k { margin-top: 8px; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 8px 4px; border-radius: 3px; background: var(--card); border: 1.5px solid var(--line2); color: var(--ink2); white-space: nowrap; }
.gaku[data-k="antique"] .gaku__k, .gaku[data-k="market"] .gaku__k, .gaku[data-k="auction"] .gaku__k, .gaku[data-k="living"] .gaku__k { border-color: var(--tone-d); color: var(--tone-d); }
.gaku[data-k="craft"] .gaku__k, .gaku[data-k="culture"] .gaku__k { border-color: var(--tone-b); color: var(--tone-b); }
.gaku[data-k="museum"] .gaku__k, .gaku[data-k="arthistory"] .gaku__k { border-color: var(--tone-m); color: var(--tone-m); }
.gaku[data-k="japan"] .gaku__k, .gaku[data-k="world"] .gaku__k { border-color: var(--tone-r); color: var(--tone-r); }
.gaku[data-k="archaeology"] .gaku__k, .gaku[data-k="sites"] .gaku__k { border-color: var(--tone-x); color: var(--tone-x); }
.gaku__t { font-size: 13px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gaku__m { font-size: 11.5px; color: var(--ink2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── あいさつ（案内役・いまの時間なら・きょうの金継ぎ） ── */
.hello { margin-top: 30px; }
.hello__who { display: flex; align-items: center; gap: 16px; }
.tsugi { flex: none; border: 2px solid var(--edge); background: var(--paper); padding: 0; width: 128px; height: 128px; border-radius: 50%; overflow: hidden; box-shadow: 0 4px 0 var(--edge), 0 0 0 4px var(--bg), 0 0 0 6px var(--sun); }
.tsugi img { width: 100%; height: 100%; display: block; animation: bob 3.6s ease-in-out infinite; }   /* 押す的（ボタン）は動かさず、中の絵だけを動かす（LSN-0535） */
.tsugi.is-poked img { animation: hop .9s cubic-bezier(.3, .6, .4, 1); }
@keyframes bob { 0%, 100% { transform: translateY(2px) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
@keyframes hop { 0% { transform: translateY(0) scale(1, 1); } 18% { transform: translateY(6px) scale(1.08, .9); } 42% { transform: translateY(-18px) scale(.95, 1.07) rotate(-6deg); } 66% { transform: translateY(3px) scale(1.05, .94) rotate(4deg); } 84% { transform: translateY(-5px) scale(1, 1); } 100% { transform: translateY(0); } }
.bubble { position: relative; flex: 1 1 auto; min-width: 0; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 14px 18px; }
.bubble::before { content: ""; position: absolute; left: -10px; top: 40px; width: 16px; height: 16px; background: var(--card); border-left: 2px solid var(--edge); border-bottom: 2px solid var(--edge); transform: rotate(45deg); }
.bubble h2 { font: 700 clamp(21px, 2.5vw, 28px)/1.35 var(--font-h); word-break: auto-phrase; }
.bubble p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink2); }
.gonow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.gonow__l { display: contents; }
.gonow__t { font-size: 12.5px; font-weight: 700; color: var(--on-sun); background: var(--sun); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.gonow__t--2 { background: var(--soft); color: var(--ink2); margin-left: 6px; }
.gonow .chip { min-height: 38px; padding: 3px 13px; }
.kin { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 11px; padding-top: 10px; border-top: 2px dashed var(--line); font-size: 13px; }
.kin__t { font-weight: 700; }
.kin__bowls { display: inline-flex; align-items: flex-end; gap: 6px; }
/* 器のかけら: 下が丸い器に、ひびが1本。つながると、ひびが金の線になり、器に藍の色が入る */
.kin__bowls i { position: relative; width: 26px; height: 15px; border: 2px solid var(--edge); border-radius: 2px 2px 14px 14px; background: var(--card); overflow: hidden; transition: background .3s; }
.kin__bowls i::before { content: ""; position: absolute; left: 50%; top: -3px; width: 2.5px; height: 22px; background: var(--line2); transform: rotate(24deg); transform-origin: top; transition: background .3s, box-shadow .3s; }
.kin__bowls i:nth-child(2)::before { transform: rotate(-30deg); left: 40%; } .kin__bowls i:nth-child(3)::before { transform: rotate(38deg); left: 34%; } .kin__bowls i:nth-child(4)::before { transform: rotate(-18deg); left: 60%; }
.kin__bowls i.is-on { background: var(--ai); }
.kin__bowls i.is-on::before { background: var(--sun); box-shadow: 0 0 0 .6px var(--sun); }
.kin.is-bump .kin__bowls { animation: hop .7s; }
.kin__s { color: var(--ink2); }

/* ── 選ぶ（入口の札 → その入口の中身 → 一覧） ── */
.guide { scroll-margin-top: calc(var(--hd) + 16px); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--edge); margin-bottom: 14px; scrollbar-width: none; }
.tabs button { flex: none; border: 2px solid transparent; border-bottom: 0; background: none; padding: 8px 16px; font-weight: 700; font-size: 15px; color: var(--ink2); border-radius: 13px 13px 0 0; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--on-ai); background: var(--ai); border-color: var(--edge); }
/* JavaScript 無しでは、入口の札を切り替えられないので、全部の入口を続けて見せる */
html:not(.js) .tabs { display: none; }
html:not(.js) .entry[hidden]:not([data-entry="mine"]) { display: block !important; margin-top: 22px; }
.entry__note { margin: 0 0 12px; font-size: 14px; color: var(--ink2); max-width: 64em; }
/* 入口の絵札。右上の丸い数はチャンネルの数 */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 6px; padding-top: 8px; }
.tile { display: grid; justify-items: center; align-content: start; gap: 7px; padding: 4px 2px; text-decoration: none; color: var(--ink); border-radius: var(--r); }
.tile__i { position: relative; width: 92px; height: 92px; border-radius: 26px; border: 2px solid var(--edge); background: var(--paper); box-shadow: 0 4px 0 var(--edge); transition: transform .12s, box-shadow .12s; }
.tile:nth-child(4n+2) .tile__i { background: #f3e3b8; } .tile:nth-child(4n+3) .tile__i { background: #d9e3ef; } .tile:nth-child(4n) .tile__i { background: #f3d6cc; }
.tile__i img { width: 100%; height: 100%; border-radius: 24px; display: block; object-fit: cover; }
.tile__n { position: absolute; right: -9px; top: -9px; min-width: 27px; height: 27px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--sun); color: var(--on-sun); border: 2px solid #2b2622; font: 800 13px/1 var(--font-d); }
.tile__t { font-weight: 700; font-size: 13.5px; line-height: 1.35; text-align: center; word-break: auto-phrase; max-width: 9.5em; }
.tile:hover { color: var(--ink); }
.tile:hover .tile__i { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 7px 0 var(--edge); }
.tile:active .tile__i { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.tile[aria-pressed="true"] .tile__i { outline: 4px solid var(--ai); outline-offset: 2px; }
.more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.more-row__t { font-size: 12.5px; font-weight: 700; color: var(--ink3); margin-right: 2px; }
.moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 9px; }
.mood { display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; text-decoration: none; color: var(--ink); background: var(--card); border: 1.5px solid var(--line2); border-radius: 999px; }
.mood img { width: 52px; height: 52px; flex: none; border-radius: 50%; }
.mood__t { font-weight: 700; font-size: 14px; line-height: 1.35; flex: 1 1 auto; min-width: 0; word-break: auto-phrase; }
.mood__n { font: 600 14px/1 var(--font-d); color: var(--ink3); flex: none; white-space: nowrap; }
.mood:hover, .mood[aria-pressed="true"] { border-color: var(--edge); color: var(--ink); }
.mood[aria-pressed="true"] { background: var(--sun-soft); }
/* 時代・地域の入口: 年表のように、古い順に左から右へ。絵札を金の線（時の流れ）でつなぐ。1段目 = 日本・2段目 = 世界 */
.nenpyo { display: grid; gap: 18px; }
.nenpyo__row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 4px 8px; align-items: start; }
.nenpyo__h { margin-top: 44px; font: 700 15px/1.2 var(--font-h); color: var(--on-ai); background: var(--ai); padding: 6px 4px; border-radius: 4px; text-align: center; letter-spacing: .1em; }
.tiles--era { position: relative; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles--era::before { content: ""; position: absolute; left: 0; right: 0; top: 56px; height: 4px; border-radius: 2px; background: var(--sun); }
.tiles--era .tile { position: relative; }
/* 話題（品と技・美術と画家・日本の歴史・世界の歴史・場所と催し） */
.tgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px 22px; }
.tgrp { font-size: 12.5px; font-weight: 700; color: var(--ink3); margin: 0 0 7px; }
.chips--topic .chip { min-height: 36px; padding: 3px 12px; }
.chips--topic .chip::before { content: "#"; font: 800 14px/1 var(--font-d); color: var(--shu-ink); }
.chips--topic .chip[aria-pressed="true"]::before { color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 4px 13px 4px 6px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.chip img { width: 30px; height: 30px; flex: none; border-radius: 50%; }
.chip .dot { margin: 0 3px 0 8px; }
.chip:hover { border-color: var(--edge); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.chip[aria-pressed="true"] .chip__n { color: var(--inv-fg); opacity: .8; }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--inv-fg); }
.chips--foot { margin-top: 28px; }
.chips--foot .chip { padding-left: 14px; }
/* 一覧（選んだ入口の中身）。入口を選ぶと、ここまで画面が進む */
.shelf { margin-top: 24px; padding-top: 18px; border-top: 2px dashed var(--line2); scroll-margin-top: calc(var(--hd) + 20px); }
.shelf__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.shelf__head > img { width: 64px; height: 64px; flex: none; border: 2px solid var(--edge); }
.shelf__txt { flex: 1 1 240px; min-width: 0; }
.shelf__txt h3 { font: 700 23px/1.35 var(--font-h); }
.shelf__txt p { margin: 2px 0 0; font-size: 14px; color: var(--ink2); }
.shelf__n { font-size: 13.5px; color: var(--ink2); font-weight: 700; white-space: nowrap; }
.shelf__tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; }
.shelf__tools:has(> [hidden] + [hidden]) { display: none; }
.subs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 320px; }
.subs__t { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--ink3); margin-right: 4px; }
.subs__t i { font-style: normal; margin-left: 4px; }
.subs__t b { color: var(--ink2); }
/* 何で絞るかを替える小さな札（下線つきの字） */
.subax { border: 0; background: none; padding: 4px 6px; font-size: 12.5px; font-weight: 700; color: var(--ink3); border-bottom: 2px solid transparent; border-radius: 0; }
.subax:hover { color: var(--ink); }
.subax[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ai); }
.sub { border: 1.5px solid var(--line2); background: var(--card); border-radius: 9px; padding: 4px 10px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.sub:hover { border-color: var(--edge); color: var(--ink); }
.sub[aria-pressed="true"] { background: var(--sun); border-color: var(--edge); color: var(--on-sun); }
.sub .chip__n { font-size: 12.5px; }
.sub[aria-pressed="true"] .chip__n { color: var(--on-sun); opacity: .75; }
.sort { display: inline-flex; border: 1.5px solid var(--line2); border-radius: 999px; overflow: hidden; margin-left: auto; flex: none; }
.sort button { border: 0; background: var(--card); padding: 5px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.sort button[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.rail { margin: 0 0 16px; padding: 12px 12px 6px; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); }
.rail h4 { font-size: 15px; margin: 0 0 6px 4px; display: flex; align-items: center; gap: 7px; }
.rail h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--shu); border: 2px solid var(--edge); flex: none; }
.rail__l { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-color: var(--line2) transparent; }
.rail__l > * { flex: 0 0 min(64vw, 228px); scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 9px; }
.grid .grp { grid-column: 1 / -1; font-size: 15px; color: var(--ink2); margin: 12px 0 0; padding-top: 10px; border-top: 2px dashed var(--line); }
.grid .grp:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.guide__empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px dashed var(--line2); border-radius: var(--r); color: var(--ink2); margin: 0; background: var(--card); }
.guide__empty img { width: 96px; height: 96px; flex: none; }

/* ── 語り手の札 ── */
.tones__l { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.tonecard { display: grid; gap: 6px; align-content: start; padding: 13px 16px; background: var(--card); border: 1.5px solid var(--line2); border-left: 7px solid currentColor; border-radius: var(--r2); text-decoration: none; }
.tonecard__h { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.tonecard__h b { color: var(--ink); }
.tonecard__d { color: var(--ink2); font-size: 14px; line-height: 1.6; }
.tonecard:hover, .tonecard[aria-pressed="true"] { border-top-color: var(--edge); border-right-color: var(--edge); border-bottom-color: var(--edge); }

/* ── 読みもの ── */
.reads__l { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.read { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); padding: 14px; border-top: 6px solid var(--ai); }
.read img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); display: block; }
.read--start { border-top-color: var(--sun); background: var(--sun-soft); }
.reads__note { margin: -6px 0 10px; }
.read__t { font-weight: 700; line-height: 1.45; } .read__s { font-size: 13.5px; color: var(--ink2); } .read__d { font-size: 12px; color: var(--ink3); }
.read:hover { border-color: var(--edge); border-top-color: var(--ai); color: var(--ink); }

/* ── コメント（配置だけ。中身の見た目は中央のテーマ） ── */
.talk-tab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 2px solid #2b2622; background: var(--sun); color: var(--on-sun); font-weight: 700; box-shadow: 0 3px 0 #2b2622; }
.talk { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; height: min(78vh, 640px); display: flex; flex-direction: column; background: var(--card); border-top: 2px solid var(--edge); border-radius: var(--r) var(--r) 0 0; }
.talk__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.talk__title { font: 700 17px/1.3 var(--font-h); padding-left: 4px; }
.talk__tabs { display: inline-flex; border: 2px solid var(--edge); border-radius: 999px; overflow: hidden; }
.talk__tabs button { border: 0; background: var(--card); padding: 6px 14px; font-weight: 700; font-size: 14px; color: var(--ink2); }
.talk__tabs button[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.talk__slot { flex: 1 1 auto; overflow: auto; padding: 12px; }

/* ── キーボードの案内・トースト ── */
.keys { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--scrim); padding: 16px; }
.keys__in { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 20px 22px; max-width: 420px; width: 100%; box-shadow: 0 5px 0 var(--edge); }
.keys__in h2 { font: 700 22px/1.35 var(--font-h); }
.keys dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 18px; }
.keys dt { font: 600 16px/1.6 var(--font-d); background: var(--soft); border: 1.5px solid var(--line2); border-radius: 8px; padding: 0 9px; justify-self: start; }
.keys dd { margin: 0; color: var(--ink2); }
.toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 90; margin: 0; padding: 9px 18px; border-radius: 999px; background: var(--inv-bg); color: var(--inv-fg); font-weight: 700; font-size: 14px; max-width: calc(100vw - 28px); text-align: center; }

/* ── フッター（どちらの画面でも、深い藍の地） ── */
.ft { background: #1f3352; color: #f4ecdc; }
main + .obi { margin-top: 34px; }
.ft__in { max-width: var(--max); margin: 0 auto; padding: 26px var(--pad) calc(34px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.ft__brand { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15px; }
.ft__brand img { width: 64px; height: 64px; border-radius: 50%; }
.ft__note { margin: 0; font-size: 13.5px; color: #d6ccba; max-width: 70em; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 700; }
.ft__nav a { text-decoration: none; color: #f4ecdc; }
.ft__nav a:hover { color: #e9c456; }
.ft__bottom { margin: 0; font-size: 12.5px; color: #b9b0a2; }

/* ── 文書のページ（全チャンネル・品目・時代と地域・立場・話題ごと・このサイトについて・記事） ── */
.doc { max-width: 960px; padding-top: 22px; }
.doc--about { max-width: 820px; }
.crumb { margin: 0 0 8px; font-size: 14px; }
.doc__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.doc__head img { flex: none; border: 2px solid var(--edge); }
.doc__head h1 { font: 700 clamp(26px, 3.6vw, 35px)/1.3 var(--font-h); }
.doc__head p { margin: 4px 0 0; color: var(--ink2); }
.doc__n { font: 600 15px/1 var(--font-d); color: var(--ink3); margin-left: 6px; }
.doc h2 { font: 700 22px/1.35 var(--font-h); margin: 34px 0 10px; padding-left: 24px; position: relative; }
.doc h2::before { content: ""; position: absolute; left: 0; top: .3em; width: 15px; height: 15px; border-radius: 3px; background: radial-gradient(circle, transparent 0 2.2px, var(--shu) 2.8px); transform: rotate(-4deg); }
.doc h2.grp { font-size: 19px; margin-top: 26px; }
.doc h3.tgrp { margin-top: 16px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc__hero { display: block; width: 100%; border-radius: var(--r); border: 2px solid var(--edge); margin: 6px 0 12px; }
.doc__date { color: var(--ink3); font-size: 13px; margin-top: 30px; }
.doc__tones { display: grid; gap: 8px; padding: 0 !important; list-style: none; }
.doc__tones li { display: flex; gap: 10px; align-items: baseline; margin: 0; }
.rows { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.row { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r2); padding: 11px 13px; margin: 0 !important; scroll-margin-top: calc(var(--hd) + 18px); }
.row:target { border-color: var(--sun-line); background: var(--sun-soft); }
.row__h { display: flex; align-items: center; gap: 11px; }
.row__n { display: block; line-height: 1.4; }
.row__m { display: block; font-size: 12.5px; color: var(--ink2); }
.row__why { margin: 8px 0 4px; font-size: 14px; color: var(--ink2); }
.row__l { margin: 0; font-size: 14px; font-weight: 700; }
.cats { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.cats li { margin: 0; }
.cats a { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 2px 12px; align-items: center; padding: 12px; background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); text-decoration: none; color: var(--ink); height: 100%; }
.cats a img { grid-row: 1 / span 3; }
.cats a span { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.cats a .chip__n { font-size: 14px; }
.cats a:hover { border-color: var(--edge); }
.article { max-width: 760px; }
.article h1 { font: 700 clamp(26px, 3.8vw, 36px)/1.35 var(--font-h); margin: 6px 0 12px; }
.article .yt { position: relative; aspect-ratio: 16 / 9; margin: 18px 0; border-radius: var(--r); overflow: hidden; border: 2px solid var(--edge); }
.article .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article blockquote { margin: 16px 0; padding: 10px 16px; border-left: 5px solid var(--sun); background: var(--card); border-radius: 0 var(--r2) var(--r2) 0; }
.pr { font-size: 13px; color: var(--ink2); border: 1.5px solid var(--line2); border-radius: var(--r2); padding: 8px 12px; background: var(--card); }

/* ── 広い画面: 夜の蔵（明るい画面でも、この帯の中は暗い組の色） ── */
@media (min-width: 1040px) {
  .stage { padding: 22px 0 24px; background: var(--stage); box-shadow: 0 0 0 100vmax var(--stage); clip-path: inset(0 -100vmax);
    --bg: #1b1917; --card: #262220; --soft: #322c28; --line: #413932; --line2: #6a5d52;
    --ink: #f4ecdc; --ink2: #d3c7b5; --ink3: #a99d8d; --edge: #8a7a6a;
    --inv-bg: #f4ecdc; --inv-fg: #2b2622;
    --ai: #3d63a0; --ai2: #33558c; --ai-ink: #a9c4ee;
    --sun-soft: #3d3110; --sun-line: #e3b93f;
    --shu-ink: #ff9d8f;
    --link: #f4ecdc; --link-h: #f0c95a; --live: #ff8f85;
    --tone-d: #fdba74; --tone-c: #f9a8d4; --tone-a: #fcd34d; --tone-m: #93c5fd; --tone-q: #67e8f9; --tone-r: #c4b5fd; --tone-u: #a5b4fc; --tone-f: #bef264; --tone-b: #5eead4; --tone-x: #86efac; --tone-e: #cbd5e1; --tone-v: #f0abfc; --tone-p: #d6d3d1;
    --stage: #131110; --scrim: rgba(0, 0, 0, .7);
    color: var(--ink); }
  .stage__in { grid-template-columns: minmax(0, 1fr) 400px; }
  main > .obi { margin-top: 0; }
  .picks { position: relative; align-self: stretch; padding: 12px 6px 12px 12px; }
  .picks__live, .picks__fallback { position: absolute; inset: 12px 6px 12px 12px; display: flex; flex-direction: column; }
  .js .picks__fallback.is-shown { display: flex; }
  .picks__list { flex: 1 1 auto; flex-direction: column; gap: 4px; overflow: hidden auto; padding: 0 6px 0 0; scroll-snap-type: none; }
  .picks__list > * { flex: none; }
  .picks .vc { grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; }
  .picks .vc__t { -webkit-line-clamp: 3; font-size: 13.5px; }
  .talk { left: auto; top: 0; height: auto; width: min(420px, 100vw); border-top: 0; border-left: 2px solid var(--edge); border-radius: 0; }
  .talk-tab { right: 22px; bottom: 22px; }
}
/* ── 狭い画面: プレーヤーを上に貼り付ける（ヘッダーは流す） ── */
@media (max-width: 1039.98px) {
  .hd, .hd + .obi { position: static; }
  .hd__in { flex-wrap: wrap; gap: 8px 10px; padding-top: 6px; padding-bottom: 8px; min-height: 0; }
  .brand__tag { display: none; }
  .search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .search input { height: 40px; }
  .hd__nav { gap: 4px 11px; font-size: 13.5px; margin-left: auto; }
  /* .stage・.stage__in・.stage__main を「無いもの」にして、プレーヤーを main の直下に置いたのと同じにする。
     こうしないと、貼り付きが .stage の中でしか効かず、一覧まで繰るとプレーヤーが流れていく（姉妹サイトで 2026-11-24 に実測・LSN-0536） */
  .stage, .stage__in, .stage__main { display: contents; }
  .vp { position: sticky; top: 0; z-index: 30; border-radius: 0 0 var(--r2) var(--r2); border-width: 0 0 2px; margin: 0 calc(var(--pad) * -1); width: auto;
    aspect-ratio: auto; height: min(56.25vw, 46vh); }      /* 横向きの電話など背の低い画面では、高さを抑える（中の映像は YouTube が黒帯で合わせる） */
  .now { margin-top: 12px; flex-wrap: wrap; }
  .now__act { flex: 1 1 100%; justify-content: flex-start; }
  .now__msg, .info, .noscript, .picks { margin-top: 12px; }
  .guide, .shelf { scroll-margin-top: calc(min(56.25vw, 46vh) + 8px); }
  .row { scroll-margin-top: 12px; }
  .sec { margin-top: 34px; }
  .lane, .hello { margin-top: 26px; }
  .hello__who { align-items: flex-start; }
  .tsugi { width: 84px; height: 84px; }
  .bubble { padding: 12px 14px; }
  .bubble::before { top: 26px; }
  /* 近道は1段で横に送る */
  .gonow { flex-wrap: nowrap; overflow-x: auto; margin-right: -14px; padding: 0 14px 6px 0; scrollbar-width: none; }
  .gonow > *, .gonow__l > * { flex: none; }
  /* 入口の絵札は、電話のホーム画面のように2段で横に送る（縦に積むと、一覧まで遠くなる） */
  .tiles { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 98px; gap: 14px 2px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--pad);
    padding: 12px var(--pad) 10px; margin: 0 calc(var(--pad) * -1); scrollbar-color: var(--line2) transparent; }
  .tile { scroll-snap-align: start; }
  .tile__i { width: 74px; height: 74px; border-radius: 21px; }
  .tile__i img { border-radius: 19px; }
  .tile__t { font-size: 12px; }
  .moods { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 8px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-color: var(--line2) transparent; }
  .mood__t { white-space: nowrap; }
  .mood img { width: 44px; height: 44px; }
  .more-row { flex-wrap: nowrap; overflow-x: auto; margin: 10px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .more-row > * { flex: none; }
  .info__near { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: calc(var(--pad) * -1); scrollbar-width: none; }
  .info__near > * { flex: none; }
  .info__tone > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* 狭い画面では札の説明を2行までにして、注目の新着を上に寄せる */
  /* 話題の札は、グループごとに1段の横送り */
  .entry .chips { display: grid; grid-auto-flow: column; grid-template-rows: auto; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 8px;
    margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-color: var(--line2) transparent; }
  .tgroups { gap: 8px; }
  .tones__l { display: flex; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scroll-snap-type: x proximity; scrollbar-color: var(--line2) transparent; }
  .tonecard { flex: 0 0 min(78vw, 320px); scroll-snap-align: center; }
  .subs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 6px; flex-basis: 100%; scrollbar-width: none; }
  .subs > * { flex: none; }
  .sort { margin-left: 0; }
  .doc { padding-top: 16px; }
}
/* 年表は、幅が足りない画面では、段の見出しを上に置いて、絵札を1段で横に送る */
@media (max-width: 1039.98px) {
  .nenpyo__row { grid-template-columns: minmax(0, 1fr); }
  .nenpyo__h { margin-top: 0; justify-self: start; padding: 4px 12px; }
  .tiles--era { grid-template-rows: auto; }
  .tiles--era::before { top: 49px; left: var(--pad); right: auto; width: 620px; }
}
/* 触って使う画面では、新着の帯を動かさない（指で横に送る） */
@media (hover: none) {
  .lane__belt { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .lane__track { animation: none; }
  .lane .gaku[aria-hidden="true"] { display: none; }
}
@media (max-width: 520px) {
  /* 案内役を吹き出しの角に重ねて、吹き出しを画面の幅いっぱいに使う（横に並べると、字が細く折れる） */
  .hello__who { position: relative; display: block; padding-top: 16px; }
  .tsugi { position: absolute; left: 10px; top: 0; width: 70px; height: 70px; z-index: 1; box-shadow: 0 3px 0 var(--edge); }
  .bubble::before { display: none; }
  .bubble h2 { padding-left: 76px; min-height: 58px; display: flex; align-items: center; font-size: 20px; }
  .bubble p { font-size: 14px; }
  .brand { gap: 6px; }
  .brand__name { font-size: 21px; }
  .brand__name b { display: none; }                /* 狭い画面では「.com」を省いて、ヘッダーを2段に収める */
  .brand img { width: 38px; height: 38px; }
  .hd__nav { gap: 4px 8px; }
  .hd__nav a { font-size: 12.5px; }
  .hd__about, .hd__reads { display: none; }        /* 狭い画面ではフッターから（ヘッダーを2段に収めて、プレーヤーを上に寄せる。読みものは、トップの「読みもの」の節とフッターにもある） */
  .themesw { width: 30px; height: 30px; }
  .langsw button { padding: 4px 8px; font-size: 12.5px; }
  .now__act .btn { min-height: 38px; padding: 4px 11px; font-size: 13px; }
  .shelf__head > img { width: 52px; height: 52px; }
  .doc__head img { width: 60px; height: 60px; }
  .tabs button { padding: 8px 11px; font-size: 14px; }
  .gaku { flex-basis: 160px; }
  .gaku__th { width: 150px; padding: 6px; }
  .sec__head h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
