/* TourSeek — 全ページ共通の唯一の CSS（v2「トリッピと旅する」・2026-10-01）
   正本: docs/DESIGN.md v2（トークンはそこから機械的に起こす。食い違ったら文書が勝つ）
   契約: 幕（.viewport::after）は「覆う」だけ。動画要素を visibility:hidden / display:none / opacity:0 で隠さない（LSN-0239）。
   v2 の影は「ぼかし 0 のずらし影（ステッカー影）」だけ。ぼかし影・グラデーションは使わない（prerelease.py が検査）。
   記事（content/）・予約・比較のページ（jp/）・mini/ はこの CSS を読まない。 */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg: #fff8ec;            /* Cream — ページ地 */
  --surface-1: #fffdf8;     /* Paper White — パネル・カード */
  --surface-2: #fdf0d9;     /* Biscuit — ホバー・非選択のピル */
  --surface-3: #dff1f8;     /* Sky Tint — 選択中の行 */
  --line: rgba(47, 54, 64, .14);
  --line-strong: rgba(47, 54, 64, .32);
  --ink: #2f3640;           /* 線と見出し（紺ねずみ。純黒にしない） */
  --ink-2: #48505a;
  --ink-3: #5f6771;         /* メタ情報（Cream の上で 5.43:1） */
  --ink-4: #b3b7bc;         /* 無効状態のみ */
  --accent: #0a6d80;        /* Ocean — 押せる・選ばれている（リンク文字） */
  --sky: #bfe6f5;           /* 空 — トリッピの巻き羽 */
  --sea: #5fb3c2;           /* 海 — トリッピのリュック */
  --sun: #ffe08a;           /* おひさま — 押されている面の地 */
  --peach: #ffd3dc;         /* もも — チーク・やわらかい強調 */
  --mint: #c8ebd9;          /* ミント — 地球の陸 */
  --orange: #ffb866;        /* みかん — くちばし */
  --live: #d9222f;          /* 生配信中の表示だけ */
  --player-bg: #000;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-latin: "Nunito", "Zen Maru Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 9999px;
  --stk: 3px 3px 0 var(--ink);        /* ステッカー影 */
  --stk-sm: 2px 2px 0 var(--ink);
  --hd-h: 60px;
  --row-h: 58px;
  --max: 1280px;
  --side: 384px;
  --gutter: clamp(16px, 3vw, 32px);
  --t: 160ms ease;
  --bounce: 260ms cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; color: var(--ink-2);
  background-color: var(--bg);
  /* 地: クリームに、ごく淡い水玉（SVG。グラデーションは使わない） */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='3' cy='3' r='1.3' fill='%232f3640' fill-opacity='.07'/%3E%3Ccircle cx='17' cy='17' r='1.3' fill='%232f3640' fill-opacity='.05'/%3E%3C/svg%3E");
  font-family: var(--font-round);
  font-size: 15px; line-height: 1.75; letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-latin); letter-spacing: 0.005em; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.4; margin: 0; letter-spacing: 0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--surface-1); border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
.num, .n { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }

/* 言語切替: data-l の対で書く。JS が無くても JA が読める。EN は「隠す」だけを !important で（LSN-0243） */
[data-l="en"] { display: none !important; }
html[lang="en"] [data-l="ja"] { display: none !important; }
html[lang="en"] [data-l="en"] { display: revert !important; }

/* ── Type roles ──────────────────────────────────────────── */
.t-caption { font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.t-label { font-size: 13px; line-height: 1.4; font-weight: 500; }
.t-body-sm { font-size: 14px; }
.t-title-sm { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.t-title { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.t-page { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--ink); line-height: 1.3; }

/* ── Header ──────────────────────────────────────────────── */
.hd { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 2px solid var(--ink); }
.hd__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--hd-h); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-latin); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: 0.01em; white-space: nowrap; }
.brand__ic { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sky); object-fit: cover; transition: transform var(--bounce); }
.brand:hover .brand__ic { transform: rotate(-10deg) scale(1.06); }
.brand b { color: var(--accent); font-weight: 800; }
.brand-tag { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background var(--t), color var(--t); white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sun); font-weight: 700; }
.hd__tools { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 2px; background: var(--surface-1); }
.lang button { height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-family: var(--font-latin); font-size: 12px; font-weight: 800; color: var(--ink-3); transition: background var(--t), color var(--t); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--surface-1); }
.menu { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); font-size: 20px; color: var(--ink); }
.menu:hover { background: var(--surface-2); }
.drawer { display: none; background: var(--bg); border-bottom: 2px solid var(--ink); }
.drawer[data-open="true"] { display: block; }
.drawer ul { list-style: none; margin: 0; padding: 8px var(--gutter) 12px; }
.drawer a { display: block; padding: 12px 10px; color: var(--ink); font-size: 16px; font-weight: 500; border-radius: var(--r); }
.drawer a:hover { background: var(--surface-2); }

/* ── Buttons / Inputs / Pills / Chips ────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-pill); font-size: 15px; font-weight: 700; white-space: nowrap; transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t); }
.btn--primary { background: var(--sun); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--stk-sm); }
.btn--primary:hover { transform: translate(-1px, -1px); box-shadow: var(--stk); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: none; }
.btn--ghost { border: 2px solid var(--ink); color: var(--ink); background: var(--surface-1); box-shadow: var(--stk-sm); }
.btn--ghost:hover { background: var(--surface-2); transform: translate(-1px, -1px); box-shadow: var(--stk); }
.btn--ghost:active { transform: translate(2px, 2px); box-shadow: none; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.input { width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: var(--r-pill); background: var(--surface-1); border: 2px solid var(--ink); color: var(--ink); outline: 0; transition: border-color var(--t), box-shadow var(--t); }
.input::placeholder { color: var(--ink-3); }
.input:focus { box-shadow: 0 0 0 3px var(--sky); }
.search { position: relative; }
.search::before { content: ""; position: absolute; left: 15px; top: 50%; width: 15px; height: 15px; margin-top: -8px; border-radius: 50%; border: 2.5px solid var(--ink); box-sizing: border-box; }
.search::after { content: ""; position: absolute; left: 26px; top: 50%; width: 7px; height: 2.5px; margin-top: 4px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 12px; border-radius: var(--r-pill); background: var(--surface-1); border: 1.5px solid var(--line-strong); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t); }
.pill:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink); }
.pill[aria-pressed="true"], .pill.is-on { background: var(--sun); color: var(--ink); border: 2px solid var(--ink); font-weight: 700; box-shadow: var(--stk-sm); }
.pill .n { font-weight: 700; opacity: .65; font-size: 12px; }
.pill__ic { width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; object-fit: cover; background: var(--bg); flex: 0 0 auto; }
.seg { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 2px; background: var(--surface-1); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 28px; padding: 0 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: background var(--t), color var(--t); }
.seg button:hover { color: var(--ink); background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface-1); font-weight: 700; }
.seg__label { font-size: 12px; color: var(--ink-3); margin: 0 6px 0 8px; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip--live { background: var(--surface-1); color: var(--live); border: 1.5px solid var(--live); }

/* ── Avatar（頭文字タイルが下、取れた画像が上） ────────── */
.av { position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--ink); overflow: hidden; display: grid; place-items: center; }
.av__i { font-family: var(--font-latin), var(--font-round); font-weight: 800; font-size: 13px; color: var(--ink-2); letter-spacing: 0; line-height: 1; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av img.is-broken { display: none; }
.av--24 { width: 26px; height: 26px; }
.av--24 .av__i { font-size: 10px; }
.av--48 { width: 54px; height: 54px; border-width: 2px; }
.av--48 .av__i { font-size: 17px; }
.av--36 { width: 38px; height: 38px; }

/* ── Home ────────────────────────────────────────────────── */
.home { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 48px; }
.home__grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 22px 26px; align-items: start; }
.stage { min-width: 0; }

/* あいさつの帯（トリッピ・こんなとき・地球儀）— 短く、機能を持たせる。プレーヤーを下へ押しやらない */
.hello { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) 196px; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; background: var(--surface-1); border: 2px solid var(--ink); border-radius: var(--r-lg); }
.hello__pal { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pal { position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; background: var(--sky); border: 2px solid var(--ink); overflow: hidden; transition: transform var(--bounce); }
.pal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32) translateY(3%); transition: opacity var(--t); }
.pal:hover { transform: rotate(-6deg) scale(1.04); }
.pal.is-hop { animation: hop 520ms cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-10px) rotate(-6deg); } 70% { transform: translateY(0) rotate(3deg); } 100% { transform: none; } }
.bubble { position: relative; margin-left: 12px; padding: 10px 14px; min-height: 48px; display: flex; align-items: center; background: var(--bg); border: 2px solid var(--ink); border-radius: 18px; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.55; }
.bubble::before { content: ""; position: absolute; left: -11px; top: 50%; margin-top: -8px; width: 16px; height: 16px; background: var(--bg); border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); border-radius: 0 0 0 4px; }
.bubble.is-new { animation: pop 300ms cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pop { 0% { transform: scale(.94); } 100% { transform: none; } }
.hello__modes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.hello__lab { position: absolute; left: 10px; top: -23px; padding: 0 8px; background: var(--surface-1); font-size: 11.5px; font-weight: 700; color: var(--ink-2); line-height: 1.5; white-space: nowrap; }
.mcard { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; align-content: center; padding: 6px 10px 6px 6px; min-height: 66px; border-radius: var(--r); background: var(--bg); border: 2px solid var(--ink); text-align: left; transition: transform var(--t), background var(--t), box-shadow var(--t); min-width: 0; }
.mcard img { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-1); transition: transform var(--bounce); }
.mcard__t { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; align-self: end; }
.mcard__s { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; align-self: start; }
.mcard:hover { transform: translate(-1px, -2px); box-shadow: var(--stk-sm); background: var(--surface-1); }
.mcard:hover img { transform: rotate(-6deg) scale(1.06); }
.mcard[aria-pressed="true"] { background: var(--sun); box-shadow: var(--stk-sm); }
.mcard[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 4px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--sun); font-size: 12px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.hello__globe { position: relative; display: flex; flex-direction: column; align-items: center; }
.globe { position: relative; width: 196px; height: 98px; }
.globe canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.globe__flat { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -40px 0 0 -42px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--sky) url("../img/globe-land.webp") 62% 40% / 300% 100% no-repeat; }
.globe.is-3d .globe__flat { display: none; }
.globe__cap { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-1); font-size: 11px; font-weight: 700; color: var(--ink-2); line-height: 1.4; text-align: center; white-space: nowrap; }
.globe:not(.is-3d) + .globe__cap { display: none; }

/* 舞台。幕は ::after のオーバーレイで、動画要素は隠さない */
.viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--player-bg); border-radius: var(--r-lg); overflow: hidden; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.viewport iframe, .viewport #ts-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* 幕: 空色の地に、双眼鏡で探しているトリッピ（覆うだけ・操作を奪わない） */
.viewport::after { content: ""; position: absolute; inset: 0; background: var(--bg) url("../img/trippi/s-looking-256.webp") center / clamp(110px, 30%, 230px) no-repeat; opacity: 0; pointer-events: none; transition: opacity var(--t); }
.viewport[data-curtain="on"]::after { opacity: 1; }

.now { display: flex; align-items: center; gap: 10px 12px; min-height: var(--row-h); padding: 12px 4px 10px; flex-wrap: wrap; }
.now__state { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.now__state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.now[data-state="live"] .now__state { color: var(--live); background: var(--surface-1); border: 1.5px solid var(--live); }
.now[data-state="live"] .dot { background: var(--live); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.now[data-state="latest"] .now__state { background: var(--mint); color: var(--ink); }
.now[data-state="latest"] .dot { background: var(--accent); }
.now[data-state="tap"] .now__state { color: var(--ink); background: var(--sun); }
.now[data-state="tap"] .dot { background: var(--ink); }
.now[data-state="error"] .now__state { color: var(--ink-3); }
.now[data-state="tuning"] .dot { background: var(--ink-4); }
.now__name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.now__title { flex: 1 1 160px; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now__actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.now__official { font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.now__official:hover { color: var(--accent); text-decoration: underline; }
.now__next { background: var(--sun); }
.now__next:hover { background: var(--sun); }
/* 案内の一文: 状態に合わせて小さなトリッピが添う */
.now__msg { display: flex; align-items: center; gap: 10px; margin: 0 4px; padding: 8px 12px; border-radius: var(--r); background: var(--surface-1); border: 1.5px dashed var(--line-strong); font-size: 13px; color: var(--ink-2); }
.now__msg::before { content: ""; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--sky) url("../img/trippi/trippi-128.webp") center / 130% no-repeat; border: 1.5px solid var(--ink); }
.now[data-state="error"] + .now__msg::before { background-image: url("../img/trippi/s-sleep-128.webp"); }
.now[data-state="tap"] + .now__msg::before { background-image: url("../img/trippi/s-looking-128.webp"); }
.now__msg[hidden] { display: none; }

.info { display: flex; gap: 16px; margin-top: 12px; padding: 16px 18px; background: var(--surface-1); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); }
.info__body { min-width: 0; flex: 1; }
.info__name { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.info__meta { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.info__why { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.info__note { margin-top: 8px; font-size: 13px; color: var(--ink-3); max-width: 70ch; }
.info__foot { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: var(--ink-3); }
.info__foot a { color: var(--accent); font-weight: 500; }
.info__foot a:hover { text-decoration: underline; }
.info__foot a.is-quiet { color: var(--ink-3); }
.info__foot a.is-quiet:hover { color: var(--ink); text-decoration: none; }
.info__tools { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed var(--line-strong); font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.info__tools .t { color: var(--ink-3); margin-right: 2px; }
.info__tools a { color: var(--ink-2); white-space: nowrap; padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-2); }
.info__tools a:hover { color: var(--ink); background: var(--sky); }
.info__tools a.is-main { color: var(--accent); background: transparent; font-weight: 700; }
.info__toggle { display: none; }   /* SP だけ（下の @media で出す） */

/* ── Browser panel（PC 右列） ─────────────────────────────── */
.browser { position: sticky; top: calc(var(--hd-h) + 16px); max-height: calc(100vh - var(--hd-h) - 32px); display: flex; flex-direction: column; min-width: 0; background: var(--surface-1); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--stk); overflow: hidden; }
.browser__top { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.browser__hd { padding: 0 2px; }
.browser__hd .t { font-size: 15px; font-weight: 700; color: var(--ink); }
.browser__hd .s { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 1px; line-height: 1.65; }
.browser__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.browser__cats .pill { height: 34px; font-size: 12.5px; }
.browser__cats.is-collapsed { max-height: 76px; overflow: hidden; }   /* PC: 2段まで。JS が溢れを見て「他のカテゴリも表示」を出す */
.cats-more { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent); padding: 0 2px; }
.cats-more:hover { text-decoration: underline; }
.cats-more[hidden] { display: none; }
.browser__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 2px; }
.home .browser #ts-modes { display: none; }   /* トップでは「こんなとき」はあいさつの帯のカードで選ぶ（状態は共有） */
.browser__list { overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 8px; flex: 1 1 auto; min-height: 0; border-top: 2px solid var(--ink); background: var(--surface-1); }
.browser__foot { padding: 10px 14px 12px; border-top: 2px solid var(--ink); background: var(--bg); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.browser__foot a { color: var(--accent); font-weight: 700; }
.browser__foot a:hover { text-decoration: underline; }
.browser__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 12px; font-size: 14px; color: var(--ink-2); text-align: center; }
.browser__empty::before { content: ""; width: 112px; height: 112px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg) url("../img/trippi/s-lost-256.webp") center / 128% no-repeat; }
.grp { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; background: var(--surface-1); padding: 12px 8px 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.grp__ic { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); object-fit: cover; background: var(--bg); }
.grp .n { margin-left: 2px; color: var(--ink-3); font-weight: 700; font-size: 12px; }
.grp .s { flex-basis: 100%; display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.grp--region { position: static; padding: 8px 10px 2px; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.grp--region::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--ink); vertical-align: 1px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--row-h); padding: 7px 10px; border-radius: var(--r); text-align: left; color: var(--ink); transition: background var(--t), transform var(--t); }
.row:hover { background: var(--surface-2); }
.row:hover .av { transform: rotate(-5deg); }
.row .av { transition: transform var(--bounce); }
.row[aria-selected="true"] { background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--ink); }
.row[aria-selected="true"] .row__meta::after { content: " · 再生中"; color: var(--accent); font-weight: 700; }
html[lang="en"] .row[aria-selected="true"] .row__meta::after { content: " · Playing"; }
.row__body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.row__name { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.is-dormant .row__name { color: var(--ink-3); font-weight: 500; }
.row__tag { flex: 0 0 auto; }
.row[hidden], .grp[hidden] { display: none; }

/* ── コメント（中央の SDK が来たときだけ現れる） ───────── */
.talk { margin-top: 28px; padding: 18px; background: var(--surface-1); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); }
.talk__hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.talk__hd .t { font-size: 20px; font-weight: 700; color: var(--ink); margin-right: 4px; }
.talk__hd .s { font-size: 13px; color: var(--ink-3); }
.talk__tabs { display: inline-flex; gap: 6px; margin-left: auto; }
.talk__tabs .pill { height: 30px; padding: 0 12px; font-size: 12.5px; }
.talk__write { margin-left: 4px; }
.talk__slot[hidden] { display: none; }
.talk:not(.is-composing) [data-cmt-form] { display: none; }

/* ── 記事一覧（トップ最下部・2列のカード） ───────────────── */
.articles { margin-top: 44px; }
.articles__hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.articles__hd h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; }
.articles__hd h2::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sky) url("../img/trippi/m-learn-128.webp") center / 120% no-repeat; }
.articles__hd .s { font-size: 13px; color: var(--ink-3); }
.articles__hd .more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent); }
.articles__hd .more:hover { text-decoration: underline; }
.alist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.aline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; border-radius: var(--r); background: var(--surface-1); border: 1.5px solid var(--line-strong); transition: background var(--t), transform var(--t), border-color var(--t), box-shadow var(--t); min-width: 0; }
.aline:hover { background: var(--surface-1); border-color: var(--ink); transform: translate(-1px, -1px); box-shadow: var(--stk-sm); }
.aline .cat { justify-self: start; font-size: 11.5px; font-weight: 700; color: var(--ink-2); padding: 0 8px; border-radius: var(--r-pill); background: var(--mint); }
.aline .t { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.55; }

/* ── SEO 段落（小さく・一覧の下） ────────────────────────── */
.seo { margin-top: 40px; padding-top: 20px; border-top: 2px dashed var(--line-strong); max-width: 80ch; }
.seo h2 { font-size: 15px; color: var(--ink); }
.seo p { margin-top: 6px; font-size: 13px; color: var(--ink-3); }

/* ── Page（下層） ─────────────────────────────────────────── */
.page { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 64px; }
.page__hd { max-width: 76ch; }
.page__hd--pal { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; max-width: 960px; }
.page__pal { width: 120px; height: 120px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--sky); overflow: hidden; box-shadow: var(--stk); }
.page__pal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25) translateY(3%); }
.page__hd .lead { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.page__hd .t-caption { margin-top: 8px; }
.section { margin-top: 48px; }
.section__hd { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--r-lg); background: var(--surface-1); box-shadow: var(--stk-sm); }
.section__ic { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--bg); }
.section__hd h2 { font-size: 20px; }
.section__hd .n { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.section__hd .s { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.section__ic + h2 + .n + .s { flex-basis: auto; flex: 1 1 100%; }
.subhd { margin: 22px 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.subhd::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--ink); vertical-align: 1px; }

/* 全チャンネル一覧（静的・JS 無しで読める） */
.filters { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding: 16px; background: var(--surface-1); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--stk); }
.filters .search { max-width: 440px; }
.filters__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.crow { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 4px 14px; align-items: start; padding: 14px 8px; border-bottom: 1.5px dashed var(--line-strong); }
.crow__av { grid-column: 1; grid-row: 1 / span 3; }
.crow__top { grid-column: 2; grid-row: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.crow__name { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.crow__name:hover { color: var(--accent); text-decoration: underline; }
.crow__meta { font-size: 12px; color: var(--ink-3); }
.crow__ext { grid-column: 3; grid-row: 1 / span 3; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; padding-top: 2px; }
.crow__ext:hover { color: var(--accent); }
.crow__why { grid-column: 2; grid-row: 2; font-size: 13.5px; color: var(--ink-2); }
.crow__sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.crow__faces { grid-column: 2; grid-row: 3; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.crow__faces a { color: var(--accent); }
.crow__faces a:hover { text-decoration: underline; }
.crow.is-dormant .crow__name { color: var(--ink-3); font-weight: 500; }
.crow:target { background: var(--sun); border-radius: var(--r); }
.crow[hidden] { display: none; }
.section[hidden] { display: none; }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 8px; border-bottom: 1.5px dashed var(--line-strong); }
.arow__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.arow__meta { font-size: 12px; color: var(--ink-3); }
.arow__why { grid-column: 1 / span 2; font-size: 13px; color: var(--ink-2); }
.arow__ext { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.arow__ext:hover { color: var(--accent); }

/* このサイトについて */
.doc { max-width: 74ch; }
.doc h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 40px 0 12px; }
.doc h2::before { content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--sea); border: 2px solid var(--ink); }
.doc h3 { font-size: 15px; color: var(--ink); margin: 20px 0 6px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc p { color: var(--ink-2); margin: 0 0 1em; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc ul, .doc ol { margin: 0 0 1.2em 1.2em; padding: 0; color: var(--ink-2); }
.doc li { margin-bottom: .45em; }
.doc a { color: var(--accent); font-weight: 500; }
.doc a:hover { text-decoration: underline; }
.doc blockquote { margin: 1em 0 1.2em; padding: 12px 16px; border-left: 4px solid var(--sky); background: var(--surface-1); border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); font-size: 14px; }
.doc blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: var(--ink-3); word-break: break-all; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0 0 1.2em; }
.doc th { text-align: left; color: var(--ink); font-weight: 700; padding: 10px 12px 10px 0; vertical-align: top; white-space: nowrap; border-bottom: 1.5px dashed var(--line-strong); }
.doc td { padding: 10px 0; color: var(--ink-2); border-bottom: 1.5px dashed var(--line-strong); }
.notice { padding: 14px 16px; border-radius: var(--r); background: var(--surface-1); border: 2px solid var(--ink); margin: 1.2em 0; }
.notice p { margin: 0; font-size: 14px; }
/* トリッピの紹介（about） */
.meet { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; max-width: 960px; margin: 28px 0 8px; padding: 16px 20px; background: var(--surface-1); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--stk); }
.meet > img { width: 180px; height: 180px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--bg); }
.meet h2 { margin: 0 0 6px; font-size: 20px; }
.meet p { color: var(--ink-2); overflow-wrap: anywhere; }
.meet h2::before { display: none; }
.meet p { margin: 0 0 .6em; }
.meet__gallery { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.meet__gallery img { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); object-fit: cover; background: var(--bg); }
.hero-art { margin: 24px 0 0; border: 2.5px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--stk); background: var(--sky); }
.hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ── Footer ──────────────────────────────────────────────── */
.ft { position: relative; border-top: 2px solid var(--ink); margin-top: 72px; background: var(--surface-1); }
.ft::before { content: ""; position: absolute; right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); top: -58px; width: 72px; height: 72px; background: url("../img/trippi/s-sleep-128.webp") center / contain no-repeat; }
.ft__in { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 13px; color: var(--ink-3); }
.ft__col { display: flex; flex-direction: column; gap: 6px; }
.ft__col .brand { font-size: 17px; }
.ft__col a { color: var(--ink-2); }
.ft__col a:hover { color: var(--accent); }
.ft__bottom { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 32px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hello { grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) 150px; }
  .globe { width: 150px; height: 100px; }
  .mcard { grid-template-columns: 44px minmax(0, 1fr); }
  .mcard img { width: 44px; height: 44px; }
  .mcard__s { display: none; }
}
@media (max-width: 1023px) {
  .home__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hello { grid-template-columns: minmax(0, 1fr) 150px; }
  .hello__modes { grid-column: 1 / -1; grid-row: 2; }
  .browser { position: static; max-height: none; box-shadow: none; }
  .browser__cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 4px; }
  .browser__cats::-webkit-scrollbar { display: none; }
  .browser__filters { flex-wrap: wrap; }
  .browser__list { overflow: visible; }
  .grp { position: static; }
}
@media (max-width: 767px) {
  :root { --hd-h: 54px; }
  .brand-tag, .nav { display: none; }
  .brand { font-size: 19px; }
  .brand__ic { width: 34px; height: 34px; }
  .menu { display: inline-flex; align-items: center; justify-content: center; }
  .home { padding: 0 0 40px; }
  .home__grid { gap: 0; }
  /* あいさつの帯: トリッピ＋吹き出し＋小さな地球儀の1段と、「こんなとき」の横並び1段 */
  .hello { order: 1; margin: 18px var(--gutter) 0; grid-template-columns: minmax(0, 1fr) 72px; gap: 14px 4px; padding: 6px 8px 8px; border-radius: 18px; }
  .pal { width: 52px; height: 52px; }
  .bubble { margin-left: 10px; padding: 7px 10px; min-height: 0; font-size: 12.5px; border-radius: 14px; }
  .bubble::before { left: -9px; width: 13px; height: 13px; margin-top: -7px; }
  .globe { width: 72px; height: 60px; }
  .globe__flat { width: 52px; height: 52px; margin: -24px 0 0 -26px; }
  .globe__cap { display: none; }
  .hello__modes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .hello__lab { top: -19px; left: 4px; font-size: 11px; }
  .mcard { display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 0; padding: 4px 2px 5px; border-radius: var(--r); text-align: center; }
  .mcard img { width: 34px; height: 34px; }
  .mcard__s { display: none; }
  .mcard__t { font-size: 12.5px; white-space: nowrap; align-self: center; }
  .mcard[aria-pressed="true"]::after { display: none; }
  /* SP: プレーヤーはヘッダー直下に固定し、その下が縦に流れる。sticky は親の高さの中でしか効かないので .stage の箱を消して .home__grid を親にする */
  .stage { display: contents; }
  .stage__sticky { position: sticky; top: var(--hd-h); z-index: 30; background: var(--bg); padding: 6px var(--gutter) 6px; }
  .viewport { border-radius: 16px; border-width: 2.5px; box-shadow: 3px 3px 0 var(--ink); }
  .now { padding: 6px var(--gutter) 4px; }
  .now__name { max-width: 55%; }
  .now__actions { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .now__official { margin-right: auto; font-size: 12.5px; }
  .now__actions .btn--sm { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .now__msg { margin: 0 var(--gutter); }
  .info { order: 2; margin: 12px var(--gutter) 0; padding: 12px 14px; }
  .info__why, .info__note, .info__tools, .info__foot { display: none; }
  .info.is-open .info__why, .info.is-open .info__note { display: block; }
  .info.is-open .info__tools, .info.is-open .info__foot { display: flex; }
  .info__toggle { display: inline-flex; align-items: center; height: 32px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
  .info__foot a.is-quiet { display: none; }
  .browser { margin: 16px var(--gutter) 0; order: 5; border-radius: 18px; }
  .browser__hd .s { display: none; }
  .talk { margin: 24px var(--gutter) 0; order: 6; }
  .articles, .seo { margin-left: var(--gutter); margin-right: var(--gutter); }
  .alist { grid-template-columns: minmax(0, 1fr); }
  .ft__in { grid-template-columns: minmax(0, 1fr); }
  .ft::before { width: 56px; height: 56px; top: -46px; }
  .page__hd--pal { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .page__pal { width: 76px; height: 76px; box-shadow: var(--stk-sm); }
  .meet { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: left; }
  .meet > img { width: 140px; height: 140px; }
  .section__ic { width: 48px; height: 48px; }
  .crow { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .crow__av { grid-row: 1 / span 4; }
  .crow .av--48 { width: 44px; height: 44px; }
  .crow__ext { grid-column: 2; grid-row: 4; padding-top: 0; }
}
@media (min-width: 768px) { .info__toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
