:root {
  /* 地と文字 */
  --bg: #f3f1ed; --surface: #ffffff; --surface-2: #f4f3f0; --text: #1a1f1d; --muted: #5c6662; --line: #e4e1db; --field-line: #c9cdc9;
  /* 入力欄の枠(白 3.5:1・地 3.1:1。四捨五入で 3:1 を割らないよう少し余裕を持たせる。E-13・レビュー M-6) */
  --input-line: #838b87;
  --shadow: 0 1px 2px rgba(40, 32, 20, .06), 0 2px 10px rgba(40, 32, 20, .06);
  /* ロゴの紺(電車の顔の色。主なボタン・リンクだけに使う) */
  --accent: #1f3d49; --accent-ink: #ffffff; --accent-soft: #e3edf0;
  /* 次の便(ロゴの行き先表示の黄色) */
  --next-bg: #fff4d6; --next-edge: #f5c242;
  /* 残り時間: まもなく(3分以内)・もうすぐ(10分以内)・それより先 */
  --soon-bg: #c2410c; --soon-ink: #ffffff;
  --near-bg: #ffe6cc; --near-ink: #8a3a00;
  --later-bg: #ecebe7; --later-ink: #3d4643;
  /* 次の便の「あと○分」(10分より先でも色を付けて目立たせる) */
  --next-until-bg: #1f3d49; --next-until-ink: #ffffff;
  /* 終電が30分以内 */
  --warn: #9a3a00; --warn-soft: #fff0e0;
  --past: #6b7571;
  /* 遅れの文字(次の便の黄色の帯・カード・地の上でAA) */
  --late: #9a3a00;
  /* 札の地(路線の札の色は .route.line-* で決める) */
  --route-bg: #2b3438; --route-ink: #ffffff;
  /* 方面の色(Okabe–Ito を白文字4.5:1以上になるよう暗めに調整) */
  --pole-0: #0067a5; --pole-1: #b84a00; --pole-2: #00775c; --pole-3: #a63d7a;
  --pole-4: #8a6200; --pole-5: #5b4ba8; --pole-6: #7a5230; --pole-7: #4a5358; --pole-ink: #ffffff;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1312; --surface: #1a201f; --surface-2: #232a29; --text: #eef2f0; --muted: #a7b1ad; --line: #2c3533; --field-line: #46514e; --input-line: #6b7773;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    --accent: #9cc3d4; --accent-ink: #0b1a20; --accent-soft: #1d3540;
    --next-bg: #3a3016; --next-edge: #f5c242;
    --soon-bg: #ff8a5c; --soon-ink: #1a0800;
    --near-bg: #47280f; --near-ink: #ffc48a;
    --later-bg: #2c3432; --later-ink: #d0d8d5;
    --next-until-bg: #9cc3d4; --next-until-ink: #0b1a20;
    --warn: #fdba74; --warn-soft: #3a2416;
    --past: #8a9591;
    --late: #fdba74;
    --route-bg: #46545b; --route-ink: #ffffff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* iOS の「文字サイズ」設定(Dynamic Type)に合わせる(iOS だけ。Mac の Safari は -apple-system-body が13pxなので当てない)。
   標準の設定では17pxになるので、index.html の小さなスクリプトで 16/17 をかけ、今までと同じ16pxを基準にする(E レビュー M-4) */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: 1rem; line-height: 1.6; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* 文字の大きさは rem(端末・ブラウザの文字サイズの設定に合わせて大きくなる。E-8)。小さい文字も、ふつうの文は14px、札は13px以上 */
/* .say: 読み上げにだけ添える言葉(「7時42分」「発」「系統」など。common.js の say・timeSay) */
.visually-hidden, .say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bar { position: sticky; top: 0; z-index: 1000; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.brand { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.0625rem; }
/* 横長のロゴ。描く高さは最大 40px(PC と同じ)。幅が足りない画面では、空いている幅いっぱいまで小さく描く(object-fit: contain)。
   上の帯の高さは前と同じにするため、ロゴの枠(前のロゴの高さ。375px 前後で 36px・360px 以下で 28px・480px 以上で 40px)から
   はみ出す分を、負の margin で上下の余白に重ねる。ヘッダーの「非公式」の札は 2026-10-26 に外した(依頼者の決定。つぎバスと同じ。
   「非公式」は題名・ホームの説明の一文・下部の説明に出す)。日本語以外の画面も同じ大きさ(前は札と言語のボタンを1行に収めるため小さくしていた) */
/* --brand-h・--brand-h-narrow は、地域ごとの枠の高さ(名古屋 34px・25px。theme.css。ヘッダーの高さを前と同じにするため)。仙台・京都・福岡は書かないので既定の高さ */
.brand img { display: block; height: 40px; margin-block: calc((var(--brand-h, 36px) - 40px) / 2); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.brand picture { display: block; min-width: 0; max-width: 100%; }
@media (max-width: 360px) { .brand img { margin-block: calc((var(--brand-h-narrow, 28px) - 40px) / 2); } }
@media (min-width: 480px) { .brand img { margin-block: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { max-width: 640px; margin: 0 auto; padding: 16px; }
/* iPad 横・枠なしの PC など広い画面(1000px 以上)では、バス停の画面と1日の時刻表だけ本文を広げる(F-12)。
   バス停ののりばのカードは2列に、時刻表は1行に並ぶ便を増やす。見出し・切り替え・説明の文は読みやすい幅(640px)のまま */
@media (min-width: 1000px) {
  main:has(> .view-wide) { max-width: 1000px; }
  .view-wide > :not(.cards):not(.tt-section) { max-width: 640px; }
  .view-wide .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; align-items: start; }
  .view-wide .cards > :not(.card) { grid-column: 1 / -1; }
}
section { margin: 0 0 24px; }
h1 { font-size: 1.5rem; font-weight: 800; margin: 4px 0; line-height: 1.3; letter-spacing: .01em; }
h2 { font-size: 1.125rem; font-weight: 800; margin: 0 0 10px; line-height: 1.4; }
h3 { font-size: 1.0625rem; font-weight: 700; margin: 0; line-height: 1.4; }
.hint { color: var(--muted); font-size: .875rem; margin: 6px 0 0; }
.back { display: inline-flex; align-items: center; min-height: 44px; }
/* バス停・区間の画面の「← ホーム」。押せる高さ(44px)は保ち、上下の余白に重ねて見出しとの間を詰める */
a.back[href="#/"] { margin: -12px 0 -8px; }

input[type=search]::placeholder { text-overflow: ellipsis; }
/* iPhone は16px未満の入力欄を押すと画面を拡大し、戻さない(右が見切れる)。端末の文字サイズを小さくしていても16px以上に */
input[type=search], select { width: 100%; font-size: max(16px, 1.0625rem); padding: 12px 14px; border: 1px solid var(--input-line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--field-line); background: var(--surface); color: var(--text); font-size: .9375rem; text-decoration: none; cursor: pointer; }
.btn-block { width: 100%; font-size: 1rem; font-weight: 600; }
.near { margin-top: 12px; }
.od-label { display: block; margin: 0 0 6px; font-weight: 700; }
.od-row { display: flex; gap: 8px; align-items: stretch; }
.od-row input { flex: 1 1 auto; min-width: 0; }
.od-near { flex: none; gap: 4px; padding: 8px 10px; font-weight: 600; white-space: nowrap; }
.od-near.is-busy { opacity: .6; cursor: progress; }
.od-err { margin: 6px 0 0; color: var(--warn); font-weight: 600; }
.od-field + .od-field { margin-top: 14px; }
.od-go { margin-top: 14px; }
.od-reg { margin-top: 10px; }
.od-reg-note { margin: 10px 0 0; }
/* ホームの「いつもの区間に登録」で登録したカードは、しばらく枠で示す */
.route-card.is-new { box-shadow: 0 0 0 3px var(--accent); }
.route-card { transition: box-shadow .6s; }
@media (prefers-reduced-motion: reduce) { .route-card { transition: none; } }
.od-note { margin: 8px 0 0; }
.searches { margin-top: 18px; }
.searches-head h3 { margin: 0; font-size: 1rem; min-width: 0; }
.searches-list li { display: flex; align-items: center; }
.searches-list a { flex: 1 1 auto; min-width: 0; min-height: 44px; align-items: center; justify-content: flex-start; }
.searches-list .chip-remove { flex: none; margin: 0 10px 0 0; }
.btn-wide { width: 100%; font-size: 1rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn[aria-pressed=true], .btn.is-on { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: default; }
/* 便の行は、「もっと見る」の後にフォーカスを移すことがある(tabindex=-1)。キーボードで操作しているときだけ枠を出す */
.dep:focus:not(:focus-visible) { outline: none; }
.dep:focus-visible { outline-offset: -3px; }

.list { list-style: none; margin: 8px 0 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list:empty { display: none; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.near-next { display: block; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.near-next:empty { display: none; }
.list .meta { color: var(--muted); font-size: .875rem; text-align: right; }
.list .empty { padding: 12px 14px; color: var(--muted); }
/* 角を丸めるために overflow:hidden にしている一覧では、フォーカスの枠が外側だと切れるので内側に描く */
.list a:focus-visible, .list button:focus-visible, .suggest button:focus-visible, .suggest a:focus-visible { outline-offset: -3px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--field-line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; }
/* 訳した駅名に日本語の名前を添えると長いので、外国語の画面だけ、札の幅を画面に収めて中で折り返す(日本語の画面には効かない) */
html:not(:lang(ja)) .chips li { min-width: 0; max-width: 100%; }
html:not(:lang(ja)) .chips a { max-width: 100%; flex-wrap: wrap; }
/* 訳の画面の札(設計書 2026-10-21 の B-6): 日本語の名前を訳の下の行に置くので2行になる。丸すぎないよう角は控えめに(日本語の画面は今までどおり) */
html:not(:lang(ja)) .chips a { border-radius: var(--radius); }
html:not(:lang(ja)) .chip-name { display: block; min-width: 0; }
html:not(:lang(ja)) .chip-name .ja-name { display: block; margin: 0; }
/* 欄の見出しと、その右の「編集」(いつもの区間・最近見たバス停) */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.sec-head h2 { margin: 0; min-width: 0; }
.sec-edit { flex: none; min-width: 72px; padding: 6px 14px; font-weight: 600; }
.sec-edit[hidden] { display: none; }
/* 外す・消すボタン(編集中だけ出す) */
.btn-remove { color: var(--warn); border-color: var(--warn); font-weight: 600; }
.route-remove { margin: 4px 0 6px; }
.chips-edit { column-gap: 14px; }
.chips-edit li { display: inline-flex; align-items: center; gap: 4px; }
.chip-remove { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--warn); border-radius: 999px; background: var(--surface); color: var(--warn); font-size: 1.375rem; line-height: 1; cursor: pointer; }
/* 外した・消した直後の「元に戻す」 */
.undo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; margin: 0 0 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent); }
.undo-bar p { flex: 1 1 12em; margin: 0; overflow-wrap: anywhere; }
.undo-bar .btn { flex: none; font-weight: 700; }
.recent .undo-bar { margin: 10px 0 0; }
/* 「元に戻す」の欄の ✕(閉じる。つぎバスと同じ。設計書 B-4)。右上の角に置き、文と「元に戻す」はその左の幅で折り返す(✕ だけが次の行に回らないように)。
   どの欄にも ✕ があるので :has() に頼らない(古い Safari) */
.undo-bar { position: relative; padding-right: 50px; }
.undo-bar .undo-close { position: absolute; top: 2px; right: 2px; width: 44px; padding: 0; font-weight: 400; font-size: 1rem; color: var(--muted); background: transparent; border-color: transparent; }
.plain { list-style: none; padding: 0; margin: 6px 0 0; }
.plain li { padding: 4px 0; }

.card { display: block; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; scroll-margin-top: 64px; color: var(--text); text-decoration: none; }
/* 近道一覧から移った先の方面(少しの間ふちどる) */
.card.is-target { box-shadow: 0 0 0 3px var(--next-edge), var(--shadow); }
.card h2:focus { outline: none; }
/* 画面を移ったときにフォーカスを移す見出し・画面の欄(main.js の focusTitle)。キーボードで操作しているときだけ枠を出す */
h1:focus:not(:focus-visible), .view:focus:not(:focus-visible) { outline: none; }
/* 見出しは Tab では止まらず(tabindex=-1)、フォーカスはプログラムで移すだけ。キーボードで開いた後(:focus-visible と判定される)でも枠を出さない */
h1[tabindex="-1"]:focus, .view[tabindex="-1"]:focus { outline: none; }
.card h2:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fav-head { display: flex; align-items: center; gap: 10px; }
.fav-next { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; margin: 10px -14px -14px; padding: 10px 14px 12px; background: var(--next-bg); border-radius: 0 0 var(--radius) var(--radius); box-shadow: inset 0 3px 0 var(--next-edge); }
.fav-next strong { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fav-next .fav-rest { flex-basis: 100%; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
/* ホームのお気に入りのカードの終電の1行(出している電車の中に終電が無いとき。黄色の帯の下) */
.card .fav-last { margin: 14px 0 0; padding-top: 10px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.notice { padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); margin: 0 0 12px; }
.notice-warn { background: var(--warn-soft); }
.notice-stale { border: 2px solid var(--warn); }
.notice-stale p { margin: 4px 0 0; }
.cache-note .btn { display: flex; width: fit-content; margin-top: 8px; }

.dia { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.filters { display: grid; gap: 8px; margin: 12px 0; }
/* 畳んだ欄(絞り込み・方面の一覧・全駅)。見出しの行だけを出し、押すと開く */
.fold { margin: 6px 0; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--surface); }
.fold > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; cursor: pointer; font-size: .9375rem; font-weight: 600; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
@media (max-width: 360px) { .fold { margin: 4px 0; } }
.fold > summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 2px; }
.fold[open] > summary::before { transform: rotate(45deg); }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold > .filters { margin: 0; padding: 12px; }
.pole-nav-list { margin: 0; padding: 4px 0; }
.pole-nav-list li { padding: 0; }
.pole-nav-list li + li { border-top: 1px solid var(--line); }
.pole-nav-list button { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px; border: none; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pole-nav-name { font-weight: 700; }
.pole-nav-tt { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; }
.filter-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.suggest { list-style: none; margin: 0; padding: 0; border-radius: var(--radius); overflow: hidden; }
.suggest li { border: 1px solid var(--field-line); border-top: none; }
.suggest li:first-child { border-top: 1px solid var(--field-line); }
.suggest button, .suggest a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; box-sizing: border-box; width: 100%; min-height: 44px; text-align: left; padding: 10px 12px; border: none; background: var(--surface); color: var(--text); font-size: 1rem; cursor: pointer; text-decoration: none; }
/* ほかの路線の駅に添える「仙台で乗り換え」 */
.suggest .meta { flex: none; color: var(--muted); font-size: .875rem; text-align: right; }
.suggest .empty { padding: 10px 12px; color: var(--muted); font-size: .875rem; background: var(--surface); }

.pole-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pole-title { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.pole-head h2 { margin: 0; word-break: keep-all; overflow-wrap: anywhere; } /* 「1番のりば」を途中で折り返さない */
.dir { display: block; font-size: .875rem; font-weight: 400; color: var(--muted); text-wrap: pretty; }
.star { flex: none; gap: 4px; padding: 6px 10px; font-size: .875rem; white-space: nowrap; }
.star span[aria-hidden] { font-size: 1.25rem; line-height: 1; color: var(--accent); }
/* 幅の狭い画面では記号と文字を縦に並べ、方面の文字が細く折り返さないようにする */
@media (max-width: 360px) { .star { flex-direction: column; gap: 2px; padding: 4px 8px; font-size: .8125rem; line-height: 1.2; } }
/* のりばの丸い札(色は番号から。番号の文字でも区別できる) */
.pole-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--pc, var(--pole-7)); color: var(--pole-ink); font-size: .9375rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pole-head .pole-badge { margin-top: 0; }
.pc-0 { --pc: var(--pole-0); } .pc-1 { --pc: var(--pole-1); } .pc-2 { --pc: var(--pole-2); } .pc-3 { --pc: var(--pole-3); }
.pc-4 { --pc: var(--pole-4); } .pc-5 { --pc: var(--pole-5); } .pc-6 { --pc: var(--pole-6); } .pc-7 { --pc: var(--pole-7); }

.dep { display: grid; grid-template-columns: 2.9rem auto 1fr; align-items: center; column-gap: 10px; row-gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); margin-top: 0; }
/* フランス語・スペイン語・ベトナム語・ポルトガル語・タイ語・ミャンマー語は「Prochain」「Siguiente」「Chuyến」「Primeiro trem」「เที่ยวถัดไป」「နောက်တစ်စီး」など札の語が長く、2.9rem では時刻に重なるので、札の列だけ広げる(日本語・ほかの言語は変わらない。
   :where で詳しさを .dep と同じにし、下の狭い画面の決まりが勝つように) */
:where(html:lang(fr), html:lang(es), html:lang(vi), html:lang(id), html:lang(pt), html:lang(th), html:lang(my)) .dep { grid-template-columns: 4.25rem auto 1fr; }
/* インドネシア語の「Berikutnya」「Setelahnya」は 4.25rem でも重なるので、さらに広げる。ミャンマー語の「နောက်တစ်စီး」(次)も 4.25rem では語の途中で2行に割れるので同じ幅に */
:where(html:lang(id), html:lang(my)) .dep { grid-template-columns: 5.5rem auto 1fr; }
/* 区間の行(フランス語・スペイン語・ベトナム語・インドネシア語・ポルトガル語・タイ語・ミャンマー語・ネパール語・中国語)は、時刻の欄を 1fr・札の列を auto に(駅の行と逆)。
   時刻の欄は「7:30 berangkat」「8:02 đến」など折り返せない塊の幅より狭くならず、札は入りきるときは1行・入りきらないときだけ札の中で語の間で折り返す。
   前は時刻の欄が auto(min-width: 0)・札が 1fr(1行のまま)で、長い札(「48 menit lagi」「còn 5 phút」「还有5小时10分钟」)に押された時刻の字が
   札の下に 1〜85px 重なった(375〜414px。2026-10-27)。入りきるときの見た目は前と同じ。日本語・英語・韓国語は重ならなかったので今のまま
   (全部の言語に当てると、英語の次の電車の「Arriving soon」が 375px で2行になった)。360px 以下は今のまま(重なりは無かった)。
   :where で詳しさを .dep と同じにし、下の狭い画面・文字の大きいときの決まりが勝つように */
@media (min-width: 361px) {
  :where(html:lang(ne), html:lang(zh-hans), html:lang(zh-hant)) .dep-route { grid-template-columns: 2.9rem 1fr auto; }
  :where(html:lang(fr), html:lang(es), html:lang(vi), html:lang(id), html:lang(pt), html:lang(th), html:lang(my)) .dep-route { grid-template-columns: 4.25rem 1fr auto; }
  :where(html:lang(id), html:lang(my)) .dep-route { grid-template-columns: 5.5rem 1fr auto; }
}
/* 360px 以下では札の列を取ると時刻が入らないので、札・時刻・残り時間を縦に並べる(300px 以下のフランス語などと同じ形)。
   区間の行は 374px まで(361〜374px で札が行の外へ 3〜5px 出た。2026-10-27。駅の行は出なかったので 360px までのまま) */
@media (max-width: 360px) {
  :where(html:lang(id), html:lang(my)) .dep { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
  :where(html:lang(id), html:lang(my)) .dep > * { grid-column: 1 / -1; }
}
@media (max-width: 374px) {
  :where(html:lang(id), html:lang(my)) .dep-route { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
  :where(html:lang(id), html:lang(my)) .dep-route > * { grid-column: 1 / -1; }
}
.pole-head + .dep, .pole-head + .dep-list { margin-top: 10px; }
.dep-label { color: var(--muted); font-size: .875rem; }
.dep-time { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.dep-until { justify-self: end; text-align: right; }
.dep-info { grid-column: 2 / -1; font-size: .9375rem; overflow-wrap: anywhere; }
.dep-arrline { grid-column: 2 / -1; font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 仙台で乗り換える行の2行目「仙台 8:20着 → 乗り換え 6分 → 8:26発 [東西線] 荒井行」 */
.dep-xfer { display: block; grid-column: 2 / -1; font-size: .9rem; color: var(--muted); margin-top: .15rem; overflow-wrap: anywhere; }
.dep-xfer strong { color: var(--text); }
.dep-xfer .xfer-seg { white-space: nowrap; }
html:not([lang="ja"]) .dep-xfer .xfer-seg, html:not([lang="ja"]) .dep-dur { white-space: normal; } /* 外国語は文が長いので、狭い画面では折り返す */
/* 仙台駅での乗り換え時間の選択(区間の画面) */
.xfer-pick { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; border: 0; padding: 0; margin: .5rem 0; min-width: 0; }
.xfer-pick legend { font-weight: 600; margin-bottom: .25rem; padding: 0; }
/* 押されている時間の見た目は、下の「今日・平日・土休日」と同じ .btn[aria-pressed=true] を使う */
.xfer-pick .hint { flex-basis: 100%; margin: .25rem 0 0; }
.filter-sum { margin: 0 0 10px; }
/* 行き先の注意(京都のびわ湖浜大津行。headnote.js)。小さな字でも見落とさないよう、本文の色で左に線 */
.head-note { color: var(--text); border-left: 3px solid var(--warn); padding-left: 8px; }
.card > .head-note { margin: 10px 0 8px; }
/* 遅れ・接近情報: 「7:42 → 7:45ごろ」と「約3分遅れ ・ 2つ前のバス停」 */
.dep-sched { font-size: max(.55em, .875rem); font-weight: 600; color: var(--muted); }
.dep-arrow { font-size: .55em; color: var(--muted); margin: 0 .2em; }
.dep-pred { white-space: nowrap; } /* 「22:06ごろ」を途中で折り返さない */
.dep-goro { font-size: .6em; font-weight: 700; margin-left: .1em; }
.dep-rt { grid-column: 2 / -1; font-size: .875rem; font-weight: 600; color: var(--muted); }
.dep-rt.is-late, .fav-rt.is-late, .dep-rt.is-early, .fav-rt.is-early { color: var(--late); }
.fav-rt { font-size: .875rem; font-weight: 600; color: var(--muted); }
.rt-note { margin: 8px 0; font-size: .875rem; }
/* ホームの遅れの情報の行と「更新」 */
.rt-home { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.rt-home[hidden] { display: none; }
.rt-home .rt-note { margin: 0; }
.rt-home .btn { flex: none; min-height: 40px; padding: 6px 12px; font-size: .875rem; }
.rt-note.is-fail { color: var(--late); }
.rt-paren { display: inline-block; }
.rt-skew { color: var(--late); font-weight: 600; }
/* 次の便(ほかの日は最初の便): 黄色の帯と大きな時刻 */
.dep-first { margin-inline: -14px; padding: 10px 14px 12px; background: var(--next-bg); border-top: none; box-shadow: inset 4px 0 0 var(--next-edge); }
.dep-first + .dep { border-top: none; }
.dep-first .dep-label { color: var(--text); font-size: .9375rem; font-weight: 800; }
.dep-first .dep-time { font-size: 2.125rem; font-weight: 800; }
.dep-first .dep-info { font-size: 1rem; }
/* 次の便の「あと○分」は大きく。10分より先(灰色の札)でも、次の便は色を付ける(文字でも「あと○分」と書いてある) */
.dep-first .until { padding: 5px 14px; border-radius: 999px; font-size: 1.25rem; font-weight: 800; }
.dep-first .until-later { background: var(--next-until-bg); color: var(--next-until-ink); }
.fav-next .until { font-size: 1.125rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.fav-next .until-later { background: var(--next-until-bg); color: var(--next-until-ink); }
/* 遅れている便: 予想の時刻に「ごろ」。時刻表の時刻は下の一行のかっこ内(行を増やさない) */
.dep.is-delayed .dep-goro { font-size: .55em; }
/* 残り時間の札(色と文字の両方で伝える) */
.until { display: inline-block; padding: 3px 10px; border-radius: 14px; font-size: .875rem; font-weight: 700; line-height: 1.4; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.until:has(> span) { white-space: normal; }
.until > span { white-space: nowrap; }
/* 訳した画面の残り時間の札は長くなる(「1 jam 20 menit lagi」「còn 1 giờ 20 phút」)。行に入りきらないときだけ札の中で語の間で折り返す(区間の行は下の行の言語だけ)
   (375px のインドネシア語で、最初の電車の前や昼の「2 menit lagi」の時刻に駅の画面が 3〜50px 横にはみ出した。check_ui の時刻の掃き出し)。
   入りきるときは1行のまま(見た目は変わらない)。区間の行(.dep-route)は、時刻の欄を 1fr・札の列を auto にしてから同じく折り返せる
   (前は時刻の欄が auto で先に幅を取り、入りきる札まで2行になった。2026-10-26 の check_pixels。列の決まりは上の .dep-route)。
   :where で詳しさを .until と同じにし、後の決まりが勝つように。日本語は今のまま */
:where(html:not(:lang(ja)) .dep:not(.dep-route)) .until { white-space: normal; }
@media (min-width: 361px) { :where(html:lang(fr), html:lang(es), html:lang(vi), html:lang(id), html:lang(pt), html:lang(th), html:lang(my), html:lang(ne), html:lang(zh-hans), html:lang(zh-hant)) :where(.dep-route) .until { white-space: normal; } }
/* タイ語・ミャンマー語・中国語の札(句ごとの span。common.js の untilPill)は、駅・区間の行の外(ホームのカード)では今までどおり1行。駅・区間の行では句の間で折り返せる */
.until.until-words { white-space: nowrap; }
:where(html:not(:lang(ja)) .dep:not(.dep-route)) .until.until-words { white-space: normal; }
@media (min-width: 361px) { :where(html:lang(fr), html:lang(es), html:lang(vi), html:lang(id), html:lang(pt), html:lang(th), html:lang(my), html:lang(ne), html:lang(zh-hans), html:lang(zh-hant)) :where(.dep-route) .until.until-words { white-space: normal; } }
@media (max-width: 360px) { .dep-first .dep-time { font-size: 1.875rem; } .dep { column-gap: 8px; } }

.until-soon { background: var(--soon-bg); color: var(--soon-ink); }
.until-near { background: var(--near-bg); color: var(--near-ink); }
.until-passed { background: transparent; color: var(--muted); border: 1px solid var(--field-line); padding: 2px 9px; }
.until-later { background: var(--later-bg); color: var(--later-ink); font-weight: 600; }
.route { display: inline-block; min-width: 2.6em; text-align: center; font-size: .8125rem; font-weight: 700; line-height: 1.5; padding: 0 6px; border-radius: 4px; background: var(--route-bg); color: var(--route-ink); margin-right: 6px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.via { display: block; color: var(--muted); font-size: .875rem; }
/* 終バス: 区切り線と薄い灰色の帯 */
.dep-last { margin: 10px -14px 0; padding: 8px 14px; background: var(--surface-2); border-top: 1px solid var(--line); }
.dep-last .dep-label { color: var(--text); font-weight: 700; }
.dep-last .dep-time { font-size: 1.25rem; }
.dep-last.is-warn { background: var(--warn-soft); }
.dep-last.is-warn .dep-label, .dep-last.is-warn .dep-time { color: var(--warn); }
.dep-last.is-warn .until { background: var(--near-bg); color: var(--near-ink); }
/* 運休の便: 「運休」の札と取り消し線(色だけに頼らない)。次・その次には数えず、残り時間も出さない */
/* 時刻を過ぎた位置情報なしの便(発車したか遅れて来るか分からない便): 「次」の行のすぐ後に、まとめて小さな1行で控えめに。
   1本ずつは途中で折り返さず、幅が足りなければ便の区切りで次の行へ(ホームのお気に入りの1行も同じ形) */
.dep-overdue { padding: 5px 0 7px; font-size: .8125rem; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.fav-overdue, .fav-next .fav-overdue { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-label { font-weight: 600; }
.ov-item { display: inline-block; max-width: 100%; }
.dep-canceled .dep-label { justify-self: start; padding: 0 5px; border: 1px solid var(--warn); border-radius: 4px; color: var(--warn); font-size: .8125rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.dep-canceled .dep-time { font-size: 1.125rem; font-weight: 600; color: var(--muted); }
.dep-canceled s { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--warn); }
.dep-canceled .dep-info { color: var(--muted); font-size: .875rem; }
.dep-canceled .route { background: var(--later-bg); color: var(--later-ink); }
.dep-canceled .route-time small { font-size: .7em; }
.canceled-hint { font-size: .875rem; margin: 4px 0 0; }
.fav-canceled { display: inline-block; white-space: nowrap; }
/* 区間の画面: ⇄・☆、便の行「7:42発 → 8:03着」(狭いときは「→ 8:03着」で折り返す)、「早く着く」の札 */
.route-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.route-tools .btn span[aria-hidden] { font-size: 1.125rem; line-height: 1; }
.route-star span[aria-hidden] { color: var(--accent); }
.route-time { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .25em; min-width: 0; }
@media (min-width: 361px) { :where(html:lang(fr), html:lang(es), html:lang(vi), html:lang(id), html:lang(pt), html:lang(th), html:lang(my), html:lang(ne), html:lang(zh-hans), html:lang(zh-hant)) .route-time { min-width: auto; } } /* 訳した画面は折り返せない塊の幅より狭くしない(上の .dep-route の列の決まり) */
.route-time small { font-size: max(.55em, .875rem); font-weight: 700; margin-left: .1em; }
.route-time > .dep-arrow { font-size: .6em; }
.dep-part, .dep-arr { white-space: nowrap; }
/* 外国語の「0:18 (hari berikutnya) berangkat」のように翌日の印が付く発車の時刻(.dep-next。common.js の routeTimes)だけは折り返す
   (375px のインドネシア語で横にはみ出した。福岡の終電 0:18 発)。翌日でない「7:30 dep.」は今までどおり1行
   (.dep-part 全体を折り返せるようにしたら、英語の「次」の大きい時刻が「7:30」と「dep.」の2行に分かれた。2026-10-23 京都・名古屋の en の check_pixels)。
   日本語(翌0:18発)は今のまま */
html:not(:lang(ja)) .dep-part.dep-next { white-space: normal; }
/* 着く時刻も同じ: 翌日に着く便(「0:07 (día siguiente) lleg.」。common.js の routeTimes が dep-next を付ける)だけ折り返す
   (23時台の区間の画面が 375px の es・id・pt などで 27〜73px 横にはみ出した。2026-10-26) */
html:not(:lang(ja)) .dep-arr.dep-next { white-space: normal; }
/* 翌日の印が付く行(区間の発・着、駅の画面の時刻。common.js の nextDayClass)は時刻の欄が長いので、残り時間の札は時刻の下の行へ回す
   (区間の画面では、折り返した「(día siguiente)」に札が重なった。時刻の欄は min-width: 0 なので札に押されて狭くなる。
   駅の画面の次の電車では、大きい字の「berikutnya)」と札が1行に入らず 35〜48px はみ出した。2026-10-26)。
   374px 以下の区間の次の電車と同じ置き方。カードが広いとき(30em より広い。パソコンなど)・翌日でない行・日本語は今のまま */
@container (max-width: 30em) {
  /* :where で詳しさを .dep-until と同じにし、後ろの狭い画面・文字の大きいときの決まり(札を行の左端から)が今までどおり勝つように */
  /* 空の札(終電の行など)は動かさない(下の行へ回すと空の行の分だけ高さが変わる) */
  :where(html:not(:lang(ja)) .dep:has(.dep-next)) .dep-until:not(:empty) { grid-column: 2 / -1; justify-self: start; text-align: left; }
  /* 区間の次の電車(大きい字)は、インドネシア語・ミャンマー語では札の列が広く、フランス語・スペイン語・ポルトガル語では「À l’approche」「Llegando」「Chegando」が1語で、
     「7:30 berangkat」の横に札が入りきらず行の外へ 12〜37px 出た(375px。2026-10-27)。札は時刻の下の行へ(374px 以下と同じ置き方)。
     詳しさは .dep-until と同じにし、後ろの狭い画面・文字の大きいときの決まり(札を行の左端から)が勝つように */
  :where(html:lang(fr), html:lang(es), html:lang(id), html:lang(pt), html:lang(my)) :where(.dep-route.dep-first) .dep-until:where(:not(:empty)) { grid-column: 2 / -1; justify-self: start; text-align: left; }
}
/* 遅れているときの翌日の予想時刻(「0:07 (día siguiente)ごろ」。.dep-pred は nowrap)も、翌日の行だけ折り返せるように(手元では遅れの情報を出せず、画面では確かめていない) */
:where(html:not(:lang(ja))) .dep-next .dep-pred { white-space: normal; }
.dep-arr { font-size: .8em; }
.dep-dur { font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.dep-arr-none { font-size: .875rem; font-weight: 600; color: var(--muted); }
.route-pole { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; vertical-align: middle; }
.route-pole .pole-badge { min-width: 24px; height: 24px; font-size: .8125rem; padding: 0 5px; }
.last-tag { display: inline-block; font-size: .8125rem; font-weight: 700; line-height: 1.5; padding: 0 6px; margin-right: 6px; border-radius: 4px; border: 1px solid var(--text); white-space: nowrap; }
.last-tag.is-warn { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.faster { display: inline-block; font-size: .8125rem; font-weight: 700; line-height: 1.5; padding: 0 6px; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
/* ホームの「いつもの区間」のカード(見出しのリンクと ⇄)、区間の追加の手順 */
.route-card-head { display: flex; align-items: center; gap: 10px; }
.route-card-head h3 { flex: 1; min-width: 0; }
.route-card-head h3 a { display: inline-block; padding: 8px 0; color: var(--text); overflow-wrap: anywhere; }
.route-card-swap { flex: none; min-width: 44px; padding: 8px 10px; gap: 4px; font-size: .875rem; white-space: nowrap; }
.route-hint { margin: 0 0 4px; font-size: .875rem; }
.route-card-swap span[aria-hidden] { font-size: 1.25rem; line-height: 1; }
.steps { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; counter-reset: step; }
.steps li { counter-increment: step; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--field-line); color: var(--muted); font-size: .875rem; }
.steps li::before { content: counter(step) ". "; }
/* 済んだ手順は「✓」と文字の色で示す(E-16) */
.steps li.is-done { color: var(--text); }
.steps li.is-done::before { content: "✓ " counter(step) ". "; }
.steps li.is-current { border-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 700; }
.route-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.list button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: none; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.route-register { display: grid; gap: 4px; justify-items: start; }
.route-register .hint:empty { display: none; }
.ended { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
/* 乗り換えの方面の駅(行き先の select の下。狭い画面では折り返す) */
.xfer-stations { display: grid; gap: 6px; }
.xfer-stations p { margin: 0; }
.xfer-stations-title { font-weight: 700; }
/* 行き先を指で選んだ後にフォーカスを移す先(tabindex=-1。h1 と同じく枠は出さない) */
.xfer-stations-title:focus { outline: none; }
.xfer-stations-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.btn.more { width: 100%; margin: 8px 0 0; color: var(--accent); font-weight: 600; }
details.lasts { margin-top: 8px; }
details.lasts summary { cursor: pointer; color: var(--accent); min-height: 44px; display: flex; align-items: center; }


.tt { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.tt-row { display: grid; grid-template-columns: 3em minmax(0, 1fr); border-top: 1px solid var(--line); }
.tt-row:first-child { border-top: none; }
/* 列の見出し「時｜分（小さい数字は系統番号）」(F-10) */
.tt-head { background: var(--surface-2); color: var(--muted); font-size: .8125rem; font-weight: 700; }
.tt-head > div { padding: 4px 10px; }
.tt-head > div:first-child { padding: 4px 0; text-align: center; }
.tt-hour { margin: 0; padding: 8px 0; text-align: center; font-size: 1rem; font-weight: 800; line-height: 1.6; background: var(--surface-2); font-variant-numeric: tabular-nums; scroll-margin-top: 8px; }
.tt-hour:focus:not(:focus-visible) { outline: none; }
.tt-jump { margin: 10px 0 0; }
/* 「次の便」「発車済み」の見分け方(F-8) */
.tt-keys { margin: 8px 0 0; font-size: .875rem; color: var(--muted); }
.tt-key { margin-right: 2px; }
.tt-key.is-next { padding: 0 4px; border-radius: 4px; background: var(--next-bg); box-shadow: inset 0 -3px 0 var(--next-edge); color: var(--text); font-weight: 700; }
.tt-key.is-past { color: var(--past); font-weight: 700; }
/* のりばを指定しない時刻表: のりばごとに分ける(F-6) */
.tt-section + .tt-section { margin-top: 24px; padding-top: 4px; border-top: 2px solid var(--line); }
.tt-section-head { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 4px; scroll-margin-top: 8px; }
.tt-section-head:focus:not(:focus-visible) { outline: none; }
.tt-section-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.tt-mins { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 10px; font-variant-numeric: tabular-nums; font-size: 1.125rem; }
.tt-mins > span { min-width: 0; overflow-wrap: anywhere; }
.tt-mins small { font-size: .8125rem; color: var(--muted); margin-left: 2px; }
.tt-mins .is-past { color: var(--past); }
.tt-mins .is-past small { color: var(--past); }
.tt-mins .is-next { font-weight: 800; color: var(--text); background: var(--next-bg); box-shadow: inset 0 -3px 0 var(--next-edge); border-radius: 4px; padding: 0 4px; margin: 0 -4px; }
/* 時刻表の「いま」の区切り(次の便の前。ここより前は発車済み) */
.tt-now { display: inline-block; margin-right: 6px; padding: 0 6px 0 4px; border-right: 3px solid var(--next-edge); color: var(--text); font-size: .8125rem; font-weight: 700; }
/* 降りるバス停を指定した時刻表: 分の下に着く時刻「→7:45」(F-2) */
.tt-mins.has-arr > span { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.tt-arr { font-size: .875rem; color: var(--muted); }
.tt-mins .is-past .tt-arr { color: var(--past); }
.tt-mins.has-arr .tt-now { margin: 0 0 2px; border-right: none; border-bottom: 3px solid var(--next-edge); }
.tt-pole { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 700; }
/* 系統と行き先の凡例(表の上の畳める欄。F-4) */
.legend { margin-top: 12px; }
.legend > ul, .legend > p { margin: 0; padding: 8px 14px; font-size: .9375rem; }
.legend > ul + p { padding-top: 0; }
.legend li { padding: 3px 0; }
.legend .route { margin-bottom: 2px; }

.foot { max-width: 640px; margin: 24px auto 0; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.foot p { margin: 4px 0; }
/* 下部のリンクは文の中にあって小さいので、上下に余白を足して押せる範囲を広げる(行の高さは変えない。E-16) */
.foot a { padding: 4px 0; }
/* ご意見・誤りの報告(ui/feedback.js。つぎバスの app.css と同じ。リンクの色は --accent)。フッターの1行のボタンはリンクと同じ見た目(押せる高さは 44px)。日本語の画面の今の要素には当てない */
.link-like { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.foot .fb-line { margin: 0; }
/* ご意見・誤りの報告の欄(フッターの下の #fb-slot。その場で開く) */
.fb-panel { max-width: 640px; margin: 0 auto; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow-wrap: anywhere; scroll-margin-top: 72px; }
.fb-panel h2 { margin: 0 0 8px; font-size: 1.125rem; }
.fb-panel h3 { margin: 18px 0 6px; font-size: 1rem; }
.fb-lead { margin: 0 0 14px; }
.fb-kinds, .fb-tr-cands fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fb-kinds legend, .fb-tr-cands legend { margin-bottom: 6px; padding: 0; font-weight: 700; }
.fb-kind-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kind { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; }
.fb-kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.fb-kind input, .fb-tr-cand input, .fb-attach input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.fb-kind-hint { margin: 8px 0 0; }
.fb-kind-hint:empty, .fb-err:empty { display: none; }
.fb-err { margin: 6px 0 0; color: var(--warn); font-weight: 600; }
.fb-field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; }
.fb-field label { font-weight: 700; }
.fb-panel textarea, .fb-panel input[type=text], .fb-panel input[type=email] { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--input-line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: max(16px, 1rem); }
.fb-panel textarea { resize: vertical; }
.fb-panel [aria-invalid=true] { border-color: var(--warn); }
#fb-email-note { margin: 6px 0 0; }
.fb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 0; font-size: .875rem; }
.fb-info dt { color: var(--muted); }
.fb-info dd { margin: 0; }
.fb-attach { margin: 8px 0 0; }
.fb-attach label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.fb-privacy { margin: 12px 0 0; }
.fb-actions { margin: 16px 0 0; }
.fb-status:focus { outline: none; }
.fb-status .notice { margin: 12px 0 0; }
.fb-retry-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 0 0; }
.fb-offline p { margin: 0 0 4px; }
.fb-thanks { margin: 0; font-weight: 700; }
.fb-reply-note { margin: 6px 0 0; }
.fb-close-row { margin: 12px 0 0; }
.fb-tr-cands { margin: 10px 0 0; }
.fb-tr-cand { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.fb-tr-cand input { margin-top: 2px; }
.fb-tr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fb-tr-ja { color: var(--muted); font-size: .875rem; }
/* ホームの評価の欄(ui/rating.js)。「このアプリを人に教える」の下。★は選んだ数まで塗り、形(★/☆)も変える(色だけに頼らない) */
.rate-box { margin: 16px 0 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rate-head h2 { margin: 10px 0 0; font-size: 1rem; }
.rate-close { flex: none; width: 44px; padding: 0; }
.rate-lead { margin: 4px 0 8px; }
.rate-stars { min-width: 0; margin: 0; padding: 0; border: 0; }
.rate-stars legend { margin: 0 0 4px; padding: 0; font-size: .875rem; font-weight: 600; }
.rate-row { display: flex; gap: 4px; }
.rate-opt { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); color: var(--accent); cursor: pointer; }
.rate-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rate-opt:has(.rate-input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.rate-star { font-size: 2rem; line-height: 1; }
.rate-ends { display: flex; justify-content: space-between; width: 256px; max-width: 100%; margin: 2px 0 0; color: var(--muted); font-size: .8125rem; }
.rate-more .fb-field { margin-top: 10px; }
.rate-box textarea { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--input-line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: max(16px, 1rem); resize: vertical; }
.rate-actions { margin: 10px 0 0; }
.rate-status { margin: 8px 0 0; color: var(--warn); font-weight: 600; }
.rate-status:empty { display: none; }
.rate-thanks { margin: 8px 0 0; font-weight: 700; }
/* ホームの短い説明(区間・お気に入りが無いときだけ) */
.intro { margin: 0 0 16px; }
.intro-lead { margin: 0; font-size: .9375rem; }
.intro-more { margin-top: 2px; font-size: .875rem; color: var(--muted); }
/* 開閉できることが分かるよう、畳んだ欄(.fold)と同じ向きの印を付ける(下線だとリンクに見えるので付けない) */
.intro-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; }
.intro-more > summary::-webkit-details-marker { display: none; }
.intro-more > summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-left: 2px; }
.intro-more[open] > summary::before { transform: rotate(45deg); }
.intro-more ul { margin: 0 0 4px; padding-left: 1.2em; line-height: 1.7; }
/* 初めてでない人の、一番下の「このツールについて」(上の説明と同じ文を畳んで置く。設計書 B-3) */
.about-more { margin: 16px 0 0; }
.about-more > .intro-lead { margin: 4px 0 6px; color: var(--text); }
/* ホームの一番下の「このアプリを人に教える」(ui/share.js。設計書 B-2・つぎバスと同じ)。目立つように黄色の地に濃い文字(明るい・暗い表示とも同じ色)。
   押すとその場で欄を開く */
.share { margin-top: 16px; }
.share-toggle { width: 100%; min-height: 52px; font-size: 1rem; font-weight: 700; color: #1f2937; background: #f4c95d; border-color: #d9a93a; }
.share-toggle:hover { background: #efbd45; }
.share-toggle::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; }
.share-toggle[aria-expanded=true]::after { transform: rotate(-135deg); margin-top: 3px; }
.share-panel { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.share-panel[hidden] { display: none; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions .btn { flex: 1 1 10em; }
.share-msg { margin: 10px 0 0; }
.share-msg:empty { display: none; }
.share-url { margin: 12px 0 0; font-size: .875rem; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.share-field { width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; font-size: max(16px, 1rem); color: var(--text); background: var(--surface); border: 1px solid var(--input-line); border-radius: var(--radius); }
.share-qr { margin: 12px 0 0; display: flex; align-items: center; gap: 12px; }
.share-qr img { flex: none; width: 128px; height: 128px; padding: 6px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.share-qr figcaption { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.filter-hint { margin: 0; }
.credits { margin: 4px 0; padding-left: 1.2em; }
.credits li { margin: 2px 0; }
/* 交通局の公式サイトへのボタン: 下に小さく「（交通局の公式サイトが開きます）」 */
.btn-ext { flex-direction: column; gap: 0; text-align: center; }
.ext-note { font-size: .875rem; color: var(--muted); font-weight: normal; }
/* 新しいタブで開くリンクの印(読み上げには「（新しいタブで開きます）」を添える。common.js の newTabMark) */
.ext-mark { display: inline-block; margin-left: .2em; font-size: .85em; font-weight: normal; text-decoration: none; }
/* ダイヤの切り替え: ボタンの下に押すと出る日付。ほかの日を表示中は帯で目立たせる */
.dia .btn { flex: 1 1 0; min-width: 0; max-width: 6rem; flex-direction: column; gap: 0; padding: 4px; line-height: 1.25; }
.dia-date { font-size: .8125rem; color: var(--muted); font-weight: normal; overflow-wrap: anywhere; } /* 文字を大きくしたときは日付を2行に */
.dia .btn[aria-pressed="true"] .dia-date { color: inherit; }
.dia-other { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--warn-soft); font-size: .875rem; font-weight: 600; }
.dep-rt-none { font-weight: normal; font-size: .875rem; }
.rt-legend { margin: 6px 0 0; }
/* 区間の行で遅れているとき: 発・着それぞれの時刻の前に小さく「時刻表」「予想」 */
/* 遅れの一行に添える時刻表の時刻「（時刻表 7:31）」。かっこ内は途中で折り返さない */
.dep-was { display: inline-block; font-weight: 600; }
.dep-pos { display: inline-block; }
/* 遅れている区間の次の便は「7:35ごろ発 → 7:45ごろ着」が長くなるので、少しだけ小さく */
.dep-first.is-delayed .route-time { font-size: 1.75rem; }
/* とても狭い幅(375pxの画面を2倍に拡大したときなど)や、文字を大きくしたとき(カードの幅が16文字分に満たないとき。E-8):
   残り時間の札は時刻の下の行へ回し、区間の発・着も折り返せるようにする(横にはみ出したり、札が時刻に重なったりしないように) */
.cards .card, .route-card { container-type: inline-size; }
@media (max-width: 300px) {
  .dep { grid-template-columns: 2.9rem minmax(0, 1fr); }
  .dep-until { grid-column: 2 / -1; justify-self: start; text-align: left; }
  .dep-until:empty { display: none; }
  .dep-part, .dep-arr { white-space: normal; }
  /* フランス語・スペイン語・ベトナム語は札の語が長く、とても狭い幅では札の列を取ると時刻が入らないので、札・時刻・残り時間を縦に並べる */
  :where(html:lang(fr), html:lang(es), html:lang(vi), html:lang(id), html:lang(pt), html:lang(th), html:lang(my)) .dep { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
  :where(html:lang(fr), html:lang(es), html:lang(vi), html:lang(id), html:lang(pt), html:lang(th), html:lang(my)) .dep > * { grid-column: 1 / -1; }
}
/* 訳した画面の「あと○分」の札は長いことがある(ベトナム語「còn 2 phút」)ので、とても狭い幅では区間の次の電車の札を行の左端から置く(日本語の画面には効かない) */
@media (max-width: 300px) { html:not(:lang(ja)) .dep-route.dep-first .dep-until { grid-column: 1 / -1; } }
@container (max-width: 16em) {
  /* 文字がとても大きいときは、ラベルの列を内容の幅にして、時刻や「あと○分」の幅を確保する */
  .dep { grid-template-columns: auto minmax(0, 1fr); }
  .dep-until { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .dep-until:empty { display: none; }
  .dep-part, .dep-arr { white-space: normal; }
  .star { flex-direction: column; gap: 2px; padding: 4px 8px; line-height: 1.2; }
}
/* ダーク表示では、方面の丸の色がカードの地に溶けやすいので、薄い縁を付ける(番号の文字でも区別できる。E-14) */
@media (prefers-color-scheme: dark) {
  .pole-badge { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
}
/* 動きを減らす設定がオンなら、スクロールや変化の動きを付けない(E-15) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== 基調の色 =====
   ロゴの紺を薄めて、欄の見出しの帯・カードの上端・主なボタンの塗りに使う(地・面の色は市営バス版のまま)。
   「次」の電車の黄色の帯はそのまま */
:root {
  --bg: #edf3f1; --surface: #ffffff; --surface-2: #f0f6f4; --muted: #4f5e5a; --line: #d6e3df; --field-line: #a9c4be;
  --accent-soft: #e3edf0;
  /* 欄の見出しの帯と、その文字・左の線 */
  --band-bg: #dde8ec; --band-ink: #1f3d49; --band-edge: #1f3d49;
  /* カードの上端の線 */
  --card-top: #4f7a8a;
  --later-bg: #e4eeeb; --later-ink: #2f4a46;
  --route-bg: #24423f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1513; --surface: #17201e; --surface-2: #1d2926; --muted: #a9b9b4; --line: #2a3a37; --field-line: #3f5753;
    --accent-soft: #1d3540;
    --band-bg: #1d3540; --band-ink: #cfe3ec; --band-edge: #9cc3d4;
    --card-top: #5f8fa3;
    --later-bg: #22302d; --later-ink: #d0dfdb;
    --route-bg: #3d5753;
  }
}
.bar { border-bottom: 3px solid var(--band-edge); }
/* 欄の見出し(いつもの区間・お気に入り・駅を探す など)を、薄い青の帯にする */
section:not(.card) > h2, section:not(.card) > .sec-head { margin: 0 0 10px; padding: 6px 12px; border-radius: 8px; background: var(--band-bg); color: var(--band-ink); box-shadow: inset 4px 0 0 var(--band-edge); }
section:not(.card) > h2 { padding-block: 10px; }
section:not(.card) > .sec-head h2 { color: var(--band-ink); }
/* カードの上端に青の線 */
.card { border-top: 4px solid var(--card-top); }
/* 主なボタンは青の塗り、ふつうのボタンは枠 */
.btn { border-color: var(--field-line); }
.btn-wide, .near .btn, .btn-block { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fold { border-color: var(--field-line); }
.fold > summary::before { color: var(--accent); }
.chips a { border-color: var(--field-line); }
.pole-head { padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* ===== 地下鉄版で足したもの ===== */
/* 路線の札(南北線・東西線。すべての行に出す)。色はロゴの帯の緑と青を、白い文字で 4.5:1 以上になるよう濃くしたもの
   (ロゴのままの #77a23d・#278ec7 は白い文字で 2.99・3.63 のため)。ダーク表示では明るくして濃い文字 */
.route.line-n { background: #5c7f2c; color: #fff; }
.route.line-t { background: #1d6f9e; color: #fff; }
@media (prefers-color-scheme: dark) {
  .route.line-n { background: #9cc34f; color: #10200a; }
  .route.line-t { background: #6cb8e6; color: #04192a; }
}
/* 経由(地下鉄のデータには無い。仙石線版の名残)。行き先の後ろに同じ行で添える */
.dep-info .via { display: inline; margin-left: 6px; }
/* 駅の見出しの下の駅番号と路線の札(「N10・T07 南北線 東西線」) */
.station-codes { margin: 0 0 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.station-codes .route { margin: 0 0 0 6px; }
/* ホームの路線ごとの駅のチップの駅番号(「N01」) */
.chip-code { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .4em; } /* チップは flex なので、間の空白は詰まる。余白で離す */
.chip-code.line-n { color: #4f7026; }
.chip-code.line-t { color: #1a6590; }
@media (prefers-color-scheme: dark) {
  .chip-code.line-n { color: #a8cf5c; }
  .chip-code.line-t { color: #7cc4ee; }
}
/* 「Google マップで駅を開く」 */
.station-map { margin: 4px 0 12px; }
/* かっこ書きを途中で折り返さない(方面の見出しの「（東北本線ホーム）」) */
.nowrap { white-space: nowrap; }
@media (max-width: 240px) { .nowrap { white-space: normal; } } /* 画面が極端に狭いときは「（東北本線ホーム）」も折り返し、横にはみ出さない */
/* 1日の時刻表の凡例の印(「快」「ア」など。表の分の横の小さな字と同じ) */
.tt-mark { display: inline-block; min-width: 2.6em; margin-right: 6px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: .8125rem; font-weight: 700; }
/* ホームの「南北線の駅（17駅）」「東西線の駅（13駅）」 */
.all-stations { margin-top: 12px; }
.all-stations > .chips { padding: 12px; margin: 0; }
/* 電車は間が空くことがあるので、次の電車の札が「あと1時間28分」のように長くなる。狭い画面(320px)では少し小さくし、
   入りきらないときは札の中で折り返す(横にはみ出さないように) */
/* 区間の次の電車の行は「7:32発 → 8:00着」で時刻の列が広く、札が1文字ずつ折り返してしまう。札は時刻の下の行へ回し、1行で出す。
   360px までだったのを 374px までに(361〜374px で、日本語の夜の「あと5時間25分」に「5:35発」が触れ、英語の「Arriving soon」が行の外へ 3px 出た。2026-10-27) */
@media (max-width: 374px) {
  .dep-route.dep-first .dep-until { grid-column: 2 / -1; justify-self: start; text-align: left; }
  .dep-route.dep-first .dep-until:empty { display: none; }
  .dep-route.dep-first .until { white-space: nowrap; }
  .dep-route.dep-first .until:has(> span) { white-space: normal; }
}
@media (max-width: 360px) {
  .dep-first .until { font-size: 1.0625rem; padding: 4px 10px; white-space: normal; }
  /* フランス語・スペイン語・ベトナム語は札の列が広いので、2本目からの「dans 46 min」「còn 46 phút」も札の中で折り返す(「0:01 (lendemain)」の時刻の幅を残す) */
  :where(html:lang(fr), html:lang(es), html:lang(vi), html:lang(id), html:lang(pt), html:lang(th), html:lang(my)) .dep .until { white-space: normal; }
}

/* 訳した駅名・方面に添える日本語の名前(ui/labels.js。日本語の画面には出ない) */
.ja-name { display: inline-block; margin-left: .4em; font-size: .8em; font-weight: 400; color: var(--muted); white-space: normal; word-break: keep-all; overflow-wrap: anywhere; max-width: 100%; } /* 日本語の名前は途中で切らないが、画面より長いときだけ折り返す(文字を2倍にしたとき) */
h1 > .tr-name:only-child .ja-name { display: block; margin: 2px 0 0; font-size: .875rem; }
h1 .ja-name { font-size: .55em; }
.chips .ja-name, .xfer-stations-list .ja-name { font-size: .75em; }
/* 中国語・韓国語の画面の「駅名は参考訳」の一文(main.js が画面の上に置く) */
.ref-note { margin: 0 0 8px; color: var(--muted); font-size: .8125rem; }

/* ヘッダーの言語のボタン(ui/langswitch.js。右端)。ロゴと重ならないよう、ヘッダーを横並びにする(ロゴは残りの幅の中央)。
   日本語の画面は、ロゴの大きさ・ヘッダーの高さを多言語化の前と同じにする(320px 51px・375px 59px。文字150%でも。tools/check_ui.mjs・check_pixels.mjs が確かめる)。
   そのため、ボタンは押しやすい 44px の高さのまま上下の余白に少しはみ出させ、幅でボタンの中身を出し分ける:
   日本語は 450px 以上で「🌐 日本語」、それより狭いと 🌐 だけ(360px 未満はボタンを右の余白へ少し寄せる)。
   ほかの言語は「🌐 EN」など(360px 以下はロゴを小さくし、🌐 と略称のまま)。見えない名前(.lang-cur)は読み上げの名前に残す */
.bar { display: flex; align-items: center; gap: 6px; }
.bar .brand { flex: 1 1 auto; min-width: 0; }
.lang-switch { position: relative; flex: 0 0 auto; margin: -8px 0; }
.lang-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-height: 44px; min-width: 44px; padding: 0 8px; border: 1px solid var(--field-line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.lang-btn[aria-expanded="true"] { border-color: var(--accent); }
.lang-globe { font-size: 1rem; line-height: 1; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 1001; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 10em; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 1rem; text-align: left; white-space: nowrap; cursor: pointer; }
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button[aria-current="true"] { font-weight: 700; color: var(--accent); }
.lang-menu button[aria-current="true"]::after { content: " ✓"; content: " ✓" / ""; }
@media (max-width: 449px) {
  html:lang(ja) .lang-btn { padding: 0; }
  html:lang(ja) .lang-btn .lang-cur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) { html:lang(ja) .lang-switch { margin-right: -8px; } }
/* ほかの言語: 360px 以下では、左右の余白と言語のボタンを少し詰めて、ロゴを大きく描ける幅を空ける(日本語の画面には効かない) */
@media (max-width: 360px) {
  html:not(:lang(ja)) .bar { padding-left: 12px; padding-right: 12px; }
  html:not(:lang(ja)) .brand { gap: 4px 6px; }
  html:not(:lang(ja)) .lang-btn { padding: 0 6px; gap: 2px; font-size: .8125rem; }
}
/* 中国語・韓国語・ネパール語・ベトナム語の画面は、その言語の書体を先に(日本語の字形にならないように)。
   日本語の名前(lang="ja"。ui/labels.js の .ja-name・下部の原文)は日本語の書体のまま */
:lang(zh-Hans), .lang-menu button:lang(zh-Hans) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-Hant), .lang-menu button:lang(zh-Hant) { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:lang(ko), .lang-menu button:lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
/* ネパール語はデーヴァナーガリーの書体を先に、ベトナム語は声調記号が欠けない書体(system-ui の後に Noto Sans)。設計書13章 */
:lang(ne), .lang-menu button:lang(ne) { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", sans-serif; }
:lang(vi), .lang-menu button:lang(vi) { font-family: system-ui, -apple-system, "Noto Sans", "Segoe UI", sans-serif; }
/* タイ語は端末ごとに入っているタイ文字の書体の順(駅のページの STATION_TH_CSS・乗り方の TH_CSS と同じ並び。つぎバスと同じ)。字の上下の記号のため見出しの行を少し高く。
   名前(アプリ名・都市名)は途中で折り返さない(js/ui/dom.js の setKeepWhole が <span class="th-nw"> で囲む)。word-break の keep-all・break-all はタイ語に当てない */
:lang(th), .lang-menu button:lang(th) { font-family: system-ui, -apple-system, "Thonburi", "Sukhumvit Set", "Noto Sans Thai", "Noto Sans Thai UI", "Leelawadee UI", "Tahoma", "Hiragino Sans", "Noto Sans JP", sans-serif; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.5; }
html:lang(th) .th-nw { white-space: nowrap; }
/* ミャンマー語(Unicode)は端末ごとに入っているミャンマー文字の書体の順(iOS・macOS の Myanmar Sangam MN、Android・PC の Noto Sans Myanmar、Windows の Myanmar Text など。
   駅のページの STATION_MY_CSS・乗り方の MY_CSS と同じ並び)。字が上下に大きい(重ねた子音・上下の母音記号)ので、本文・見出しとも行を高く。
   単語の間に空白が無いので、名前(アプリ名・都市名)は途中で折り返さない(タイ語と同じ th-nw)。word-break の keep-all・break-all は当てない */
:lang(my), .lang-menu button:lang(my) { font-family: system-ui, -apple-system, "Myanmar Sangam MN", "Myanmar MN", "Noto Sans Myanmar", "Noto Sans Myanmar UI", "Myanmar Text", "Padauk", "Pyidaungsu", "Hiragino Sans", "Noto Sans JP", sans-serif; }
html:lang(my) body { line-height: 1.9; }
:lang(my) h1, :lang(my) h2, :lang(my) h3 { line-height: 1.7; }
html:lang(my) .th-nw { white-space: nowrap; }
/* 韓国語は語(空白で区切った単位)の途中で折り返さない(駅のページ・乗り方と同じ)。添えた日本語の名前などは今までどおり(.ja-name は自分で keep-all) */
html:lang(ko) body { word-break: keep-all; }
:where(html:lang(ko)) :where([lang="ja"]) { word-break: normal; }
html:not([lang="ja"]) [lang="ja"], html:not([lang="ja"]) .ja-name { font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
/* 駅の画面の「出入口」の欄(js/ui/exits.js。area.json の exits が true の地域だけ。仙台)。地図は欄を開いたときだけ作る(js/ui/map.js) */
.exits { margin: 24px 0 0; }
.exits h2 { margin: 0 0 6px; }
.exit-fold > .hint { margin: 0; padding: 8px 12px 0; }
.exit-map { height: 280px; isolation: isolate; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.exit-map.map-msg { display: flex; align-items: center; justify-content: center; height: auto; min-height: 80px; padding: 12px 14px; color: var(--muted); font-size: .875rem; text-align: center; }
.exit-map.map-failed { flex-direction: column; gap: 8px; }
.exit-map:focus:not(:focus-visible) { outline: none; }
.exit-map:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.exit-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 1.375rem; }
/* 出入口の印: どれも同じ丸(番号は出さない。2026-10-26 依頼者の決定)。駅は四角 */
.exit-pin span { display: block; box-sizing: border-box; width: 100%; height: 100%; border-radius: 50%; background: #b84a00; border: 3px solid #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.exit-pin:focus { outline: none; }
.exit-pin:focus-visible span { outline: 3px solid #1f3d49; outline-offset: 2px; }
.station-pin span { display: block; width: 18px; height: 18px; background: #1f3d49; border: 3px solid #ffffff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.exit-credit { margin: 12px; font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.exit-note { margin: 6px 0 0; }
@media (prefers-color-scheme: dark) {
  .exit-map .leaflet-tile-pane { filter: brightness(.72) contrast(1.08); }
  .exit-map.leaflet-container { background: #2a2f2e; }
  .exit-pin:focus-visible span { outline-color: #9cc3d4; }
}

/* PC の広い画面(計画 docs/superpowers/plans/2026-11-21-pc-layout.md。つぎバスと同じ形。templates/index.html の nav.pc-crumb と aside.pc-side)。
   上に帯「つぎチカ › 仙台（仙台市地下鉄）」、ホームだけ右に説明の欄。スマホ・タブレットの見た目は変えないため、
   この下の @media の外に書くのは「隠す」1行だけ。PC 条件(幅 1100px 以上・マウス操作・タッチなし)を解さない古いブラウザは今の1列のまま */
.pc-crumb, .pc-side { display: none; }
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) and (not (any-pointer: coarse)) {
  .pc-crumb { display: block; padding: 6px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.5; }
  .pc-crumb a { color: var(--accent); }
  .pc-crumb-here { color: var(--text); }
  /* ホーム(main.js の body[data-screen])では、アプリ(640px のまま)と欄(320px)を間 28px で中央に並べる。
     帯・ヘッダーは全幅の行、下部・ご意見の欄はアプリと同じ列。駅・時刻表などの画面は今の広げ方(1000px)のまま */
  body[data-screen="home"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px) 28px 320px minmax(0, 1fr); align-items: start; }
  body[data-screen="home"] > * { grid-column: 1 / -1; }
  /* 列2の要素は margin: 0 auto のままだと中身の幅に縮んで中央へ寄るので、左右の余白を 0 にして列の幅いっぱいに */
  body[data-screen="home"] > :is(main, .foot, #fb-slot) { grid-column: 2; margin-inline: 0; }
  body[data-screen="home"] > .pc-side { display: block; grid-column: 4; }
  /* 欄はヘッダー(上に貼り付く。高さ約 63px)の下に止める。画面より高いときは欄の中で動かせる */
  .pc-side { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; margin: 16px 0; font-size: .9375rem; line-height: 1.65; }
  .pc-side > section { margin: 0 0 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .pc-side > section > h2 { margin: 0 0 8px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text); font-size: 1.05rem; line-height: 1.5; }
  .pc-side p { margin: 0 0 8px; }
  .pc-side ul { margin: 0; padding-left: 1.2em; }
  .pc-side li + li { margin-top: 6px; }
  .pc-phone-row { display: flex; align-items: center; gap: 14px; }
  /* QR の画像は白い地と余白を持つ(暗い表示でも読み取れる) */
  .pc-phone-row img { flex: none; width: 112px; height: 112px; border: 1px solid var(--line); border-radius: 8px; }
  .pc-phone-row p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
  .pc-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0 4px; }
  /* 押せる高さは 44px。flex にすると「 ›」の前の空白が消えるので inline-block で上下に余白 */
  .pc-links a, .pc-links .link-like { display: inline-block; min-height: 0; padding: 10px 0; line-height: 24px; }
}
