/* 書体: Zen Maru Gothic Bold(SIL Open Font License 1.1。fonts/OFL.txt)。トップ画面で使う文字だけに絞ってある。 */
@font-face { font-family: "Zen Maru Gothic"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ZenMaruGothic-Bold-subset.ttf") format("truetype"); }
/* 配色・文字はルートシミュレーターに合わせる(墨 #2A2A24 / 苔 #3E5A44 / 生成り #F4EFE3)。スマホ幅360px前後を基準にする。 */
:root {
  --ink: #2A2A24; --sub: #5A5A4E; --moss: #3E5A44; --moss-dark: #324a38; --card: #FFFDF7; --line: #D8D0BC; --bg: #F4EFE3;
  --moss-tint: #E3EBDD; --amber: #8A5A00; --amber-tint: #F6E3B4; --note-bg: #FFF4D6;
  --shadow: 0 1px 2px rgba(60,50,30,.08), 0 2px 8px rgba(60,50,30,.06);
  /* 新デザイン(トップ画面から。ほかの画面でも使えるよう、色・角・書体はここにまとめる) */
  --g-bright: #06C755; --g-on-bright: #0B2E19; --g-deep: #047A34; --g-mountain: #05A649;
  --navy: #2B4C8C; --yellow: #FFD23F; --yellow-ink: #3A2E00; --blue-tint: #E3E9F5; --blue-ink: #1F3A6E;
  --gray-bg: #F5F6F3; --gray-ink: #5B5E55;
  --r-tile: 22px; --r-box: 26px;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  --serif: Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif; font-size: 16px; margin: 0; line-height: 1.7; color: var(--ink); background: var(--bg); }
a { color: var(--moss); }
/* 枠は、キーボードで操作しているとき(html[data-kb])だけ。押したあとは出さない。入力欄は文字を打つので常に出す。 */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; }
html[data-kb] a:focus-visible, html[data-kb] button:focus-visible, html[data-kb] summary:focus-visible, input:focus-visible { outline: 3px solid var(--g-deep); outline-offset: 2px; }

header { background: var(--moss); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
header a { color: #fff; text-decoration: none; font-weight: bold; font-family: var(--serif); line-height: 1.3; }
#lang { display: flex; flex-shrink: 0; }
#lang button { font: inherit; font-size: .9rem; min-height: 44px; min-width: 44px; padding: 6px 10px; border: 1px solid #fff; background: transparent; color: #fff; cursor: pointer; }
#lang button:first-child { border-radius: 6px 0 0 6px; }
#lang button + button { border-left: 0; border-radius: 0 6px 6px 0; }
#lang button[aria-pressed="true"] { background: #fff; color: var(--moss); font-weight: bold; }

main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-family: var(--serif); font-size: 1.3rem; margin: 8px 0 16px; line-height: 1.4; }
h1 small, h2 small, h3 small { display: block; font-weight: normal; color: var(--sub); font-size: .9rem; }
h2 { font-family: var(--serif); font-size: 1.1rem; margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 4px 0 8px; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list a { display: block; min-height: 48px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.list small { display: block; color: var(--sub); font-size: .9rem; }
.note { margin: 6px 0 0; font-size: .9rem; color: var(--sub); }
.back { display: flex; align-items: center; width: fit-content; min-height: 48px; padding: 10px 18px 10px 14px; margin: 0 0 8px; background: var(--card); border: 1px solid var(--moss); border-radius: 10px; color: var(--moss); font-weight: bold; text-decoration: none; box-shadow: var(--shadow); }
.todo { background: var(--note-bg); border: 1px solid #E0C870; border-radius: 10px; padding: 12px; margin-top: 16px; }
.alt { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; box-shadow: var(--shadow); }
.alt summary { cursor: pointer; font-weight: bold; min-height: 44px; display: flex; align-items: center; }
.alt .table { margin-top: 12px; }
input[type=search] { width: 100%; min-height: 48px; padding: 12px; font-size: 1rem; border: 1px solid #8A8A7E; border-radius: 10px; margin-bottom: 8px; background: #fff; color: var(--ink); }
.button { display: inline-block; min-height: 48px; padding: 12px 18px; background: var(--moss); color: #fff; border-radius: 10px; text-decoration: none; font-weight: bold; box-shadow: var(--shadow); }
.button.big { display: block; text-align: center; font-size: 1.1rem; padding: 16px 18px; }

/* 結果ページ: 要点カード */
.summary { background: var(--card); border: 2px solid var(--moss); border-radius: 12px; box-shadow: var(--shadow); padding: 4px 14px; margin: 8px 0 16px; }
.summary .row { display: grid; grid-template-columns: 6.2em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary .row:last-child { border-bottom: 0; }
.summary .k { font-size: .85rem; color: var(--sub); padding-top: .25em; }
.summary .main { display: block; font-size: 1.15rem; font-weight: bold; line-height: 1.4; }
.summary .sub { display: block; font-size: .9rem; color: var(--sub); }
.summary .short { display: block; font-size: .9rem; margin-top: 2px; }
.routes { display: grid; gap: 6px; }
.routegroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-block; min-width: 2.6em; text-align: center; padding: 2px 10px; background: var(--moss); color: #fff; border-radius: 999px; font-weight: bold; font-size: 1.1rem; line-height: 1.5; }
.op { font-size: .95rem; }
.leg > .routes { margin-bottom: 8px; }
.legroutes { display: flex; align-items: flex-start; gap: 8px; }
.legroutes + .legroutes { margin-top: 8px; }
.legroutes .num { font-weight: bold; font-size: 1.1rem; line-height: 1.9; }

.pdf { margin: 0 0 20px; }
.pdf .note { text-align: center; }

/* 段ごとのカード */
.leg { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; margin: 0 0 12px; }
.boundary { font-weight: bold; margin: 12px 4px; padding-left: 10px; border-left: 4px solid var(--amber); }
.table { margin: 8px 0 16px; }

/* 表の見方の図 */
.diagram { margin: 8px 0; }
.diagram figcaption { font-size: .85rem; color: var(--sub); }
.dg { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 6px; font-size: .9rem; }
.dg th, .dg td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; vertical-align: middle; background: #fff; }
.dg .corner { background: var(--bg); color: var(--sub); line-height: 1.3; }
.dg .corner .main { font-size: .8rem; font-weight: bold; }
.dg .corner .line { display: block; white-space: nowrap; }
.dg .corner .sub { font-size: .75rem; }
.dg .stop { text-align: left; font-weight: normal; }
.dg .lbl { line-height: 1.3; }
.dg .lbl + .lbl { margin-top: 4px; }
.dg .main { display: block; font-weight: bold; overflow-wrap: anywhere; }
.dg .sub { display: block; font-size: .75rem; color: var(--sub); overflow-wrap: anywhere; }
.dg .mark { display: inline-block; font-size: .75rem; color: var(--amber); }
.dg .route { background: var(--moss-tint); color: var(--moss-dark); font-weight: bold; font-size: 1rem; }
.dg .gap { color: #8A8A7E; background: var(--bg); }
/* 型B: ⋮ の列は細く「⋮」だけ。残り3列は均等(固定レイアウトで幅の指定がない列は同じ幅になる)。文字は切らず、単語の切れ目で折り返す。 */
.dgB th, .dgB td { padding-left: 6px; padding-right: 6px; } /* 型Bは3列が狭いので、余白は少し小さく */
.dgB th.gap, .dgB td.gap { width: 7%; padding-left: 0; padding-right: 0; text-align: center; vertical-align: middle; } /* 上の段(.stop の左寄せ)も中央に */
.dgB th.stop .main { font-size: .85rem; }
/* 左に色の線がある枠(乗る・降りる停留所)は、線(4px)と文字の間にもすき間を空ける */
.dgA tr.from th, .dgA tr.to th { padding-left: 14px; }
.dgB th.from, .dgB th.to { padding-left: 12px; }
.dgB .corner .line { white-space: normal; }
.dgB .main, .dgB .sub { overflow-wrap: break-word; }
p.go { font-size: .75rem; color: var(--sub); margin: 4px 0 0; line-height: 1.3; }
.dg .go { word-break: keep-all; text-wrap: balance; display: block; font-size: .7rem; font-weight: normal; line-height: 1.3; color: var(--sub); overflow-wrap: anywhere; }
.dg .hit { font-weight: bold; color: #fff; }
.dg .from.hit, .dgA tr.from .hit { background: var(--moss); }
.dg .to.hit, .dgA tr.to .hit { background: var(--amber); }
.dgA tr.from th, .dgB th.from { background: var(--moss-tint); box-shadow: inset 4px 0 0 var(--moss); }
.dgA tr.to th, .dgB th.to { background: var(--amber-tint); box-shadow: inset 4px 0 0 var(--amber); }
.dgB td.hit.from { background: var(--moss); }
.dgB td.hit.to { background: var(--amber); }

/* 詳しい見方 */
.steps-box { margin-top: 8px; border-top: 1px solid var(--line); }
.steps-box summary { cursor: pointer; font-weight: bold; color: var(--moss); min-height: 48px; display: flex; align-items: center; gap: .5em; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; list-style: none; }
.steps-box summary::-webkit-details-marker { display: none; }
.steps-box summary::before { content: "▶"; font-size: .85em; }
.steps-box[open] summary::before { content: "▼"; }
.steps { padding-left: 1.6em; margin: 4px 0 8px; }
.steps li { margin: 6px 0; }

/* 公式の注記: 印をつけて目立たせる */
.official-notes .stopname { display: block; font-weight: bold; margin: 8px 0 4px; }
.official { background: var(--note-bg); border: 1px solid #E0C870; border-left: 6px solid var(--amber); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.official .badge { display: inline-block; background: var(--amber); color: #fff; font-size: .8rem; font-weight: bold; border-radius: 4px; padding: 0 8px; margin-right: 8px; }
.official .badge::before { content: "\0021 "; }
.official .txt { overflow-wrap: anywhere; }

footer { max-width: 640px; margin: 24px auto 0; padding: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--sub); }
footer p { margin: 6px 0; }

@media (min-width: 560px) { .summary .row { grid-template-columns: 8em 1fr; } }
.hint { margin: 8px 0; padding: 8px 12px; background: var(--note-bg); border-left: 6px solid var(--amber); border-radius: 8px; font-weight: bold; }

/* 3画面の流れの印 */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 12px; font-size: .9rem; }
.flow .step { color: var(--sub); }
.flow .cur { background: var(--moss); color: #fff; font-weight: bold; padding: 2px 12px; border-radius: 999px; }
.flow .arrow { color: var(--sub); }
.intro { margin: 0 0 16px; }

/* 開け閉めできる見出し(エリア・古道・行き先のエリア) */
.acc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin: 0 0 10px; }
.acc > summary { cursor: pointer; min-height: 52px; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; font-weight: bold; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "＋"; position: absolute; right: 14px; color: var(--moss); }
.acc { position: relative; scroll-margin-top: 8px; }
.acc[open] > summary::after { content: "－"; }
.acc > summary .main { font-size: 1.05rem; padding-right: 2em; }
.acc > summary .sub { font-weight: normal; font-size: .85rem; color: var(--sub); padding-right: 2em; }
.acc[open] > summary { border-bottom: 1px solid var(--line); }
.acc > .list { padding: 10px; }
.acc .list a { box-shadow: none; }
.group { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; list-style: none; }
.group .grouphead { font-weight: bold; padding: 2px 4px 4px; }
.group .note { margin: 0 4px 8px; }

/* 押したときの反応(短く)。色や枠は、押したものだけにつける。 */
.list a:active, .back:active { background: var(--moss-tint); border-color: var(--moss); }
.button:active { background: var(--moss-dark); }
/* hover はマウスのある端末だけ。画面が動いて、止まっているマウスの下にカードが来たときに色がつかないよう、スマホでは出さない */
@media (hover: hover) {
  html:is([data-screen="pick"],[data-screen="result"]) .list a:hover { background: #E6F9EE; border-color: var(--g-deep); }
  html:is([data-screen="pick"],[data-screen="result"]) .back:hover { background: #E6F9EE; }
  html:is([data-screen="pick"],[data-screen="result"]) .button:hover { background: #036029; }
  .tile:hover { box-shadow: 0 6px 16px rgba(11,46,25,.3); }
  .list a:hover { border-color: var(--moss); background: var(--moss-tint); }
  .back:hover { background: var(--moss-tint); }
  .fb-button:hover { background: #E6F9EE; }
  .button:hover { background: var(--moss-dark); }
}

/* ===== トップ画面の新デザイン(トップと①②の画面で共通。結果画面も同じ) ===== */
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) body { background: #fff; font-family: var(--font-body); }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) header { background: var(--g-bright); padding: 10px 16px; }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) header a { color: var(--g-on-bright); font-family: var(--font-round); font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 10px; min-height: 48px; }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) #home::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2E19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='3' width='15' height='14' rx='3'/%3E%3Cpath d='M4.5 10.5h15M6.5 17v3M17.5 17v3'/%3E%3Ccircle cx='8.5' cy='14' r='.8' fill='%230B2E19'/%3E%3Ccircle cx='15.5' cy='14' r='.8' fill='%230B2E19'/%3E%3C/svg%3E") center / 26px no-repeat; }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) h1 { font-family: var(--font-round); font-weight: 700; font-size: 1.7rem; margin: 12px 0 6px; }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) .intro { color: var(--gray-ink); margin: 0 0 18px; }

.hero { margin: 0 0 20px; }
.hero .tiles { list-style: none; margin: 0; padding: 14px 14px 24px; background: var(--g-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V22l40-16 30 14 45-18 40 20 50-16 45 18 40-14 45 14 25-8v20z' fill='%2305B24D'/%3E%3C/svg%3E") bottom / 100% 36px no-repeat; border-radius: var(--r-box); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; height: 100%; min-height: 200px; padding: 16px 8px 14px; background: #fff; border-radius: var(--r-tile); box-shadow: 0 4px 12px rgba(11,46,25,.22); color: var(--g-on-bright); text-decoration: none; text-align: center; }
.tile .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--g-deep) center / 36px no-repeat; }
.tile-now .ico { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.tile-plan .ico { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M8.5 15.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.tile .words { font-family: var(--font-round); font-weight: 700; font-size: 1.3rem; line-height: 1.35; }
.tile .words span { display: block; }
.tile .tag { word-break: keep-all; text-wrap: balance; display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: bold; line-height: 1.4; }
.tile-now .tag { background: var(--yellow); color: var(--yellow-ink); }
.tile-plan .tag { background: var(--blue-tint); color: var(--blue-ink); }

.steps3 h2 { font-family: var(--font-round); font-weight: 700; font-size: 1.15rem; border-bottom: 0; margin: 8px 0 10px; padding: 0; }
.steps3 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps3 li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: #fff; border: 1px solid #E3E5DF; border-radius: 16px; box-shadow: var(--shadow); }
.steps3 .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--g-deep); color: #fff; font-family: var(--font-round); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps3 .last .num { background: var(--yellow); color: var(--yellow-ink); }
.steps3 .lbl { font-weight: bold; }

html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) footer { max-width: none; margin: 28px 0 0; padding: 16px; background: var(--gray-bg); color: var(--gray-ink); border-top: 0; }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) footer a { color: var(--g-deep); }
.tile:active { transform: translateY(1px); }
@media (max-width: 340px) { .tile .words { font-size: 1.1rem; } .hero .tiles { padding: 10px; gap: 8px; } }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) #lang { gap: 2px; padding: 4px; background: rgba(255,255,255,.4); border-radius: 999px; }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) #lang button { border: 0; border-radius: 999px; background: transparent; color: var(--g-on-bright); min-height: 48px; min-width: 48px; padding: 6px 14px; }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) #lang button + button { border-left: 0; border-radius: 999px; }
html:is([data-screen="top"],[data-screen="pick"],[data-screen="result"]) #lang button[aria-pressed="true"] { background: #fff; color: var(--g-on-bright); font-weight: bold; }

/* ===== ①乗る・②降りる・結果の画面で共通 ===== */
html:is([data-screen="pick"],[data-screen="result"]) h1 { font-size: 1.5rem; margin: 8px 0 14px; }
html:is([data-screen="pick"],[data-screen="result"]) h1 small { font-family: var(--font-body); font-weight: normal; color: var(--gray-ink); }
html:is([data-screen="pick"],[data-screen="result"]) h2 { font-family: var(--font-round); font-weight: 700; font-size: 1.1rem; border-bottom: 0; margin: 24px 0 8px; padding: 0; }
html:is([data-screen="pick"],[data-screen="result"]) .note { color: var(--gray-ink); }

html:is([data-screen="pick"],[data-screen="result"]) .back { background: #fff; color: var(--g-on-bright); border: 1px solid #DADCD5; border-radius: 999px; box-shadow: none; min-height: 48px; }
html:is([data-screen="pick"],[data-screen="result"]) .flow { gap: 6px; margin: 4px 0 14px; }
html:is([data-screen="pick"],[data-screen="result"]) .flow .step, html:is([data-screen="pick"],[data-screen="result"]) .flow .cur { padding: 6px 14px; border-radius: 999px; min-height: 32px; display: inline-flex; align-items: center; }
html:is([data-screen="pick"],[data-screen="result"]) .flow .step { background: #E6F9EE; color: var(--g-on-bright); }
html:is([data-screen="pick"],[data-screen="result"]) .flow .cur { background: var(--g-deep); color: #fff; }
html:is([data-screen="pick"],[data-screen="result"]) .flow .arrow { color: var(--g-deep); }

/* 開け閉めする見出し(エリア・古道) */
html:is([data-screen="pick"],[data-screen="result"]) .acc { background: #fff; border: 1px solid #E3E5DF; border-radius: 18px; box-shadow: 0 2px 8px rgba(11,46,25,.1); overflow: hidden; }
html:is([data-screen="pick"],[data-screen="result"]) .acc > summary { position: relative; min-height: 60px; padding: 10px 56px 10px 62px; }
html:is([data-screen="pick"],[data-screen="result"]) .acc > summary::before { content: attr(data-n); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--g-deep) center / 22px no-repeat; color: #fff; font-family: var(--font-round); font-weight: 700; display: flex; align-items: center; justify-content: center; }
html:is([data-screen="pick"],[data-screen="result"]) .acc-trail > summary::before { content: ""; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M2 19l7-12 4 7 3-4 6 9z'/%3E%3C/svg%3E"); }
html:is([data-screen="pick"],[data-screen="result"]) .acc > summary::after { right: 18px; top: 50%; transform: translateY(-50%); color: var(--g-deep); font-weight: bold; font-size: 1.2rem; }
html:is([data-screen="pick"],[data-screen="result"]) .acc > summary .main { font-family: var(--font-round); font-weight: 700; font-size: 1.05rem; padding-right: 0; }
html:is([data-screen="pick"],[data-screen="result"]) .acc > summary .sub { font-family: var(--font-body); font-size: .8rem; color: var(--gray-ink); padding-right: 0; }
html:is([data-screen="pick"],[data-screen="result"]) .acc[open] > summary { background: #E6F9EE; border-bottom: 1px solid #CDEBD8; }

/* 停留所のカード */
html:is([data-screen="pick"],[data-screen="result"]) .list a { background: #fff; border: 1px solid #E3E5DF; border-radius: 14px; box-shadow: none; padding: 12px 14px; }
html:is([data-screen="pick"],[data-screen="result"]) .list a > span { font-weight: bold; }
html:is([data-screen="pick"],[data-screen="result"]) .list small { color: var(--gray-ink); font-size: .8rem; }
html:is([data-screen="pick"],[data-screen="result"]) .list a .note { display: block; margin: 6px 0 0; padding: 6px 10px; background: #FFF6D6; color: var(--yellow-ink); border-radius: 8px; font-size: .85rem; }
html:is([data-screen="pick"],[data-screen="result"]) .list a .note.side { display: inline-block; background: var(--yellow); font-weight: bold; border-radius: 999px; padding: 2px 12px; font-size: .8rem; }
html:is([data-screen="pick"],[data-screen="result"]) .list a .note.area { background: none; color: var(--gray-ink); padding: 0; margin-top: 2px; }
html:is([data-screen="pick"],[data-screen="result"]) .list a:active { background: #E6F9EE; border-color: var(--g-deep); }
html:is([data-screen="pick"],[data-screen="result"]) .group { background: #E6F9EE; border: 0; border-radius: 16px; padding: 10px; }
html:is([data-screen="pick"],[data-screen="result"]) .group .grouphead { font-family: var(--font-round); font-weight: 700; color: var(--g-on-bright); padding: 2px 4px 6px; }
html:is([data-screen="pick"],[data-screen="result"]) .group .note { margin: 0 4px 8px; }

/* 現場層: 検索と地図アプリのボタン */
html:is([data-screen="pick"],[data-screen="result"]) input[type=search] { border: 1px solid #C9CCC2; border-radius: 999px; min-height: 48px; padding: 12px 16px 12px 46px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047A34' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") 14px center / 22px no-repeat; }
html:is([data-screen="pick"],[data-screen="result"]) .button { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--g-deep); color: #fff; border-radius: 999px; min-height: 52px; padding: 14px 20px; font-size: 1.05rem; box-shadow: 0 3px 8px rgba(11,46,25,.2); }
html:is([data-screen="pick"],[data-screen="result"]) .button::before { content: ""; flex: none; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
html:is([data-screen="pick"],[data-screen="result"]) .button:active { background: #036029; }
html:is([data-screen="pick"],[data-screen="result"]) .alt { border-radius: 16px; border-color: #E3E5DF; }

/* ===== 停留所の看板アイコン(停留所名の前。文字の高さに合わせる) ===== */
.sn::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .35em; vertical-align: -.15em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047A34' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M12 14v8M9 22h6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ===== フォーカスの枠: キーボードで操作しているときだけ(深い緑) ===== */

/* ===== 結果ページ(html[data-screen="result"])。上の帯・戻る・段階の印・免責は①②と同じ ===== */
html[data-screen="result"] .summary { background: #fff; border: 1px solid #E3E5DF; border-radius: 20px; box-shadow: 0 2px 10px rgba(11,46,25,.12); padding: 6px 16px; }
html[data-screen="result"] .summary .row { border-bottom-color: #ECEEE8; }
html[data-screen="result"] .summary .k { color: var(--gray-ink); font-size: .8rem; }
html[data-screen="result"] .summary .main { font-weight: bold; }
html[data-screen="result"] .summary .sub, html[data-screen="result"] .summary .short { color: var(--gray-ink); }
html[data-screen="result"] .chip { background: var(--g-deep); color: #fff; }
html[data-screen="result"] .pdf .button.big { font-size: 1.05rem; }
html[data-screen="result"] .pdf .button.big::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
html[data-screen="result"] .pdf .note { font-size: .8rem; color: var(--gray-ink); }
html[data-screen="result"] .pdf .pdf-find { font-size: .9rem; color: var(--ink); }
html[data-screen="result"] .pdf .pdf-no { font-size: .95rem; font-weight: bold; color: var(--ink); }

html[data-screen="result"] .leg { background: #fff; border: 1px solid #E3E5DF; border-radius: 20px; box-shadow: 0 2px 10px rgba(11,46,25,.12); padding: 14px 16px; }
html[data-screen="result"] .leg h3, html[data-screen="result"] .table h3 { font-family: var(--font-round); font-weight: 700; }
html[data-screen="result"] .hint { background: #FFF6D6; color: var(--yellow-ink); border-left: 0; border-radius: 12px; }

/* 表の見方の図 */
html[data-screen="result"] .dg th, html[data-screen="result"] .dg td { border-color: #DADCD5; }
html[data-screen="result"] .dg .corner, html[data-screen="result"] .dg .route { background: #E6F9EE; color: var(--g-on-bright); }
html[data-screen="result"] .dg .corner .sub { color: var(--gray-ink); }
html[data-screen="result"] .dg .hit { color: #fff; font-weight: bold; }
html[data-screen="result"] .dg .from.hit, html[data-screen="result"] .dgA tr.from .hit, html[data-screen="result"] .dgB td.hit.from { background: var(--g-deep); }
html[data-screen="result"] .dg .to.hit, html[data-screen="result"] .dgA tr.to .hit, html[data-screen="result"] .dgB td.hit.to { background: var(--navy); }
html[data-screen="result"] .dgA tr.from th, html[data-screen="result"] .dgB th.from { background: #E6F9EE; box-shadow: inset 4px 0 0 var(--g-deep); }
html[data-screen="result"] .dgA tr.to th, html[data-screen="result"] .dgB th.to { background: var(--blue-tint); box-shadow: inset 4px 0 0 var(--navy); }
html[data-screen="result"] .dg .mark { color: var(--blue-ink); }

/* ▶ 詳しい見方: ①②の見出しと同じ雰囲気の開け閉めする行 */
html[data-screen="result"] .steps-box { margin-top: 10px; border: 1px solid #E3E5DF; border-radius: 14px; overflow: hidden; background: #fff; }
html[data-screen="result"] .steps-box summary { margin: 0; padding: 8px 14px; border-radius: 0; color: var(--g-on-bright); min-height: 52px; }
html[data-screen="result"] .steps-box summary::before { color: var(--g-deep); }
html[data-screen="result"] .steps-box[open] summary { background: #E6F9EE; border-bottom: 1px solid #CDEBD8; }
html[data-screen="result"] .steps { padding: 4px 16px 8px 2.4em; }

/* 段の間の文 */
html[data-screen="result"] .boundary { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; padding: 12px 14px; border-left: 0; background: #E6F9EE; color: var(--g-deep); border-radius: 14px; }
html[data-screen="result"] .boundary::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047A34' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 公式の注記 */
html[data-screen="result"] .official { background: #FFF6D6; color: var(--yellow-ink); border: 0; border-radius: 12px; }
html[data-screen="result"] .official .badge { background: var(--yellow); color: var(--yellow-ink); }

/* 注意書き・出典 */
html[data-screen="result"] .notice-card { background: #fff; border: 1px solid #E3E5DF; border-radius: 18px; padding: 4px 16px 12px; margin-top: 20px; font-size: .85rem; color: var(--gray-ink); }
html[data-screen="result"] .notice-card h2 { font-size: .95rem; margin: 12px 0 2px; }
html[data-screen="result"] .notice-card p { margin: 0; }
html[data-screen="result"] .dg .gap { background: var(--gray-bg); }

/* ご意見フォームのカード(結果ページ)と、下のリンク */
.feedback-card { background: #fff; border: 1px solid #E3E5DF; border-radius: 18px; padding: 14px 16px; margin-top: 20px; text-align: center; font-size: .9rem; }
.feedback-card .ask { margin: 0 0 10px; font-weight: bold; }
.feedback-card .note { margin: 8px 0 0; font-size: .8rem; color: var(--gray-ink); }
.fb-button { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; background: #fff; color: var(--g-deep); border: 2px solid var(--g-deep); border-radius: 999px; font-weight: bold; text-decoration: none; }
.fb-button:active { background: #E6F9EE; }
