/* iZebra.com 全ページ共通のスタイル（手書き）。正本: docs/DESIGN.md
   しまうまの白と黒に、ひなたの黄色。押すところは黄色の塗りに墨の字。ミントは「新着」と「音」の印にだけ。
   帯のしま模様は、しまほのしま。枠は墨の実線・影はぼかさない（絵の線に合わせる）。語り手の札の7色は札と点にだけ使う。
   色は変数で持ち、暗い画面（html[data-theme="dark"]、または端末の設定）では下の「暗い画面」の組に入れ替わる。
   広い画面のプレーヤーの帯（.stage）は、明るい画面でも暗い組を使う。
   色を足す・替えるときは、pipeline/prerelease.py の色の比の検査（文字 4.5:1 以上）を通すこと。
   ⚠ プレーヤーの幕（.vp__curtain）は上に「覆う」だけ（pointer-events:none）。動画要素を visibility / display で隠さない（iPhone で自動再生が止まる・LSN-0239） */
:root {
  --bg: #fbf8f1; --card: #ffffff; --soft: #f2ede1; --line: #e2dccd; --line2: #b9b2a0;
  --ink: #17181c; --ink2: #4a4b52; --ink3: #66676e; --edge: #17181c;
  --inv-bg: #17181c; --inv-fg: #fbf8f1;
  --sun: #ffc928; --sun2: #ffb800; --sun-soft: #fff3c4; --sun-line: #b88400; --on-sun: #17181c;
  --mint: #3ccfa0; --mint-ink: #0b6e50; --on-mint: #06281d;
  --link: #17181c; --link-h: #8a5a00; --live: #c8261b;
  --tone-r: #b8400a; --tone-p: #1d4ed8; --tone-s: #a21caf; --tone-m: #475569; --tone-k: #0f766e; --tone-x: #15803d; --tone-u: #6d28d9;
  --za: #17181c; --zb: #fbf8f1;
  --paper: #fff8ea;                      /* 絵の下に敷く色（絵の線が墨なので、暗い画面でも明るいまま） */
  --stage: #17181c; --scrim: rgba(23, 24, 28, .6);
  --r: 18px; --r2: 13px; --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;
  --zebra: repeating-linear-gradient(115deg, var(--za) 0 13px, var(--zb) 13px 26px);
  color-scheme: light;
}
/* ── 暗い画面の組（同じ中身を3か所に置く: 端末の設定・切り替えボタン・広い画面のプレーヤーの帯） ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131416; --card: #1e2024; --soft: #282a2f; --line: #34373d; --line2: #5a5e67;
    --ink: #f4f1e8; --ink2: #c9c6bc; --ink3: #a09e95; --edge: #6f737d;
    --inv-bg: #f4f1e8; --inv-fg: #17181c;
    --sun-soft: #3b3212; --sun-line: #ffc928;
    --mint-ink: #6fe3bd;
    --link: #f4f1e8; --link-h: #ffd761; --live: #ff8f85;
    --tone-r: #fdba74; --tone-p: #93c5fd; --tone-s: #f0abfc; --tone-m: #cbd5e1; --tone-k: #5eead4; --tone-x: #86efac; --tone-u: #c4b5fd;
    --za: #f4f1e8; --zb: #131416; --stage: #0b0c0d; --scrim: rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131416; --card: #1e2024; --soft: #282a2f; --line: #34373d; --line2: #5a5e67;
  --ink: #f4f1e8; --ink2: #c9c6bc; --ink3: #a09e95; --edge: #6f737d;
  --inv-bg: #f4f1e8; --inv-fg: #17181c;
  --sun-soft: #3b3212; --sun-line: #ffc928;
  --mint-ink: #6fe3bd;
  --link: #f4f1e8; --link-h: #ffd761; --live: #ff8f85;
  --tone-r: #fdba74; --tone-p: #93c5fd; --tone-s: #f0abfc; --tone-m: #cbd5e1; --tone-k: #5eead4; --tone-x: #86efac; --tone-u: #c4b5fd;
  --za: #f4f1e8; --zb: #131416; --stage: #0b0c0d; --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 の中に置いたものは、画面の端まで伸ばす（border-image の外への張り出しは、横スクロールを作らない） */
.stripe { height: 12px; background: var(--zebra); }
main > .stripe { background: none; border-image: var(--zebra) fill 0 / 0 / 0 100vw; margin-top: 22px; }
/* 案内役の絵は線が墨なので、どの画面でも明るい紙色を下に敷く */
.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 + .stripe { position: sticky; top: var(--hd); z-index: 39; height: 8px; }
.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: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--edge); }
.brand__name { font: 800 25px/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-size: 12.5px; font-weight: 700; color: var(--on-sun); background: var(--sun); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.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='%238a8778' 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(--sun); color: var(--on-sun); }
.btn--main:hover { background: var(--sun2); color: var(--on-sun); }
.btn--glow { background: var(--mint); color: var(--on-mint); }
.btn--glow:hover { background: #5cdcb3; color: var(--on-mint); }
.btn--icon { width: 42px; padding: 0; font-size: 19px; }
.btn--icon[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); }
.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-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; padding-left: 20px; position: relative; }
.sec__head h2::before { content: ""; position: absolute; left: 0; top: .16em; width: 10px; height: 1.05em; border-radius: 5px; background: var(--sun); border: 2px solid var(--edge); }
.sec__note { margin: 0; font-size: 13px; color: var(--ink3); }
.sec__more { font-size: 14px; font-weight: 700; margin-left: auto; }
.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--r { color: var(--tone-r); } .tone--p { color: var(--tone-p); } .tone--s { color: var(--tone-s); } .tone--m { color: var(--tone-m); } .tone--k { color: var(--tone-k); } .tone--x { color: var(--tone-x); } .tone--u { color: var(--tone-u); }
.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(--mint); }
.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-size: 20px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.picks__head h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); 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 #17181c; }
.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(--mint); color: var(--on-mint); border: 1.5px solid #17181c; }
.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); }

/* ── あいさつ・あなたは？（アプリのアイコンのように並ぶ入口。右上の丸い数はチャンネルの数） ── */
.hello__who { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.shima { flex: none; border: 2px solid var(--edge); background: var(--paper); padding: 0; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; box-shadow: 0 4px 0 var(--edge); }
.shima img { width: 100%; height: 100%; display: block; animation: bob 3.6s ease-in-out infinite; }   /* 押す的（ボタン）は動かさず、中の絵だけを動かす（LSN-0535） */
.shima.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: 13px 18px; }
.bubble::before { content: ""; position: absolute; left: -10px; top: 36px; 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-size: clamp(19px, 2.3vw, 25px); word-break: auto-phrase; }
.bubble p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink2); }
.signal { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 10px; margin-top: 9px; padding-top: 9px; border-top: 2px dashed var(--line); font-size: 13px; }
.signal__t { font-weight: 700; }
.signal__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.signal__bars i { width: 7px; border-radius: 3px; border: 1.5px solid var(--edge); background: var(--card); }
.signal__bars i:nth-child(1) { height: 8px; } .signal__bars i:nth-child(2) { height: 12px; } .signal__bars i:nth-child(3) { height: 16px; } .signal__bars i:nth-child(4) { height: 20px; }
.signal__bars i.is-on { background: var(--sun); }
.signal.is-bump .signal__bars { animation: hop .7s; }
.signal__s { color: var(--ink2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px 6px; }
.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: 84px; height: 84px; border-radius: 24px; border: 2px solid var(--edge); background: var(--paper); box-shadow: 0 4px 0 var(--edge); transition: transform .12s, box-shadow .12s; }
.tile:nth-child(3n+2) .tile__i { background: #fff0b8; } .tile:nth-child(3n) .tile__i { background: #d8f6ea; }
.tile__i img { width: 100%; height: 100%; border-radius: 22px; 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 #17181c; font: 800 13px/1 var(--font-d); }
.tile__t { font-weight: 700; font-size: 13px; 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); 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(--sun); 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%, 230px), 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: 48px; height: 48px; 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); }
/* 話題（機種・回線・決済・困りごと） */
.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; }
.tgroup--tab { margin-bottom: 12px; }
.chips--topic .chip { min-height: 36px; padding: 3px 12px; }
.chips--topic .chip::before { content: "#"; font: 800 14px/1 var(--font-d); color: var(--mint-ink); }
.chips--topic .chip[aria-pressed="true"]::before { color: inherit; }

/* ── 選ぶ ── */
.guide { scroll-margin-top: calc(var(--hd) + 16px); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--edge); margin-bottom: 12px; 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(--inv-fg); background: var(--inv-bg); border-color: var(--inv-bg); }
.entry__note { margin: 0 0 10px; font-size: 14px; color: var(--ink2); }
.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: 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-size: 20px; }
.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 { font-size: 12.5px; font-weight: 700; color: var(--ink3); margin-right: 4px; }
.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(--mint); 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__lead { margin: 0 0 14px; color: var(--ink2); max-width: 62em; font-size: 15px; }
.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: 10px; }
.read img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 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); 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 #17181c; background: var(--sun); color: var(--on-sun); font-weight: 700; box-shadow: 0 3px 0 #17181c; }
.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__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-size: 20px; }
.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: #17181c; color: #f4f1e8; }
main + .stripe { 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: #c9c6bc; 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: #f4f1e8; }
.ft__nav a:hover { color: #ffc928; }
.ft__bottom { margin: 0; font-size: 12.5px; color: #a09e95; }

/* ── 文書のページ（全チャンネル・立場ごと・話題ごと・このサイトについて・記事） ── */
.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-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; }
.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-size: 20px; margin: 34px 0 10px; padding-left: 18px; position: relative; }
.doc h2::before { content: ""; position: absolute; left: 0; top: .2em; width: 9px; height: 1em; border-radius: 5px; background: var(--sun); border: 2px solid var(--edge); }
.doc h2.grp { font-size: 17px; 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-size: clamp(25px, 3.6vw, 34px); margin: 6px 0 12px; }
.article figure { margin: 18px 0; }
.article figure img { width: 100%; border-radius: var(--r); }
.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: #131416; --card: #1e2024; --soft: #282a2f; --line: #34373d; --line2: #5a5e67;
    --ink: #f4f1e8; --ink2: #c9c6bc; --ink3: #a09e95; --edge: #6f737d;
    --inv-bg: #f4f1e8; --inv-fg: #17181c;
    --sun-soft: #3b3212; --sun-line: #ffc928;
    --mint-ink: #6fe3bd;
    --link: #f4f1e8; --link-h: #ffd761; --live: #ff8f85;
    --tone-r: #fdba74; --tone-p: #93c5fd; --tone-s: #f0abfc; --tone-m: #cbd5e1; --tone-k: #5eead4; --tone-x: #86efac; --tone-u: #c4b5fd;
    color: var(--ink); }
  .stage__in { grid-template-columns: minmax(0, 1fr) 400px; }
  main > .stripe { 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 + .stripe { 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 { scroll-margin-top: calc(min(56.25vw, 46vh) + 8px); }
  .row { scroll-margin-top: 12px; }
  .sec { margin-top: 34px; }
  .hello__who { align-items: flex-start; }
  .shima { width: 84px; height: 84px; }
  .bubble::before { top: 26px; }
  /* 入口のアイコンは、電話のホーム画面のように2段で横に送る（縦に積むと、一覧まで遠くなる） */
  .tiles { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 96px; 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: 72px; height: 72px; border-radius: 21px; }
  .tile__i img { border-radius: 19px; }
  .tile__t { font-size: 12px; }
  .moods { display: flex; 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 { flex: 0 0 auto; }
  .mood__t { white-space: nowrap; }
  .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行までにして、注目の新着を上に寄せる */
  /* 入口のピルは2段の横送りにする（13〜18 個を縦に積むと、一覧まで遠くなる）。話題はグループごとに1段 */
  .entry .chips, .topicbar .chips { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 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; }
  .entry .chips--topic, .topicbar .chips { grid-template-rows: auto; }
  .tgroups { gap: 8px; }
  .sort { margin-left: 0; }
  .doc { padding-top: 16px; }
}
@media (max-width: 520px) {
  .brand { gap: 6px; }
  .brand__name { font-size: 20px; }
  .brand__name b { display: none; }                /* 狭い画面では「.com」を省いて、ヘッダーを2段に収める */
  .brand img { width: 36px; height: 36px; }
  .hd__nav { gap: 4px 8px; }
  .hd__nav a { font-size: 12.5px; }
  .hd__about { 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; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
