/* 国道ごとの独立ページ(route/<番号>/)用の見た目。色はアプリ本体(style.css)と同じ。 */
:root {
  --bg: #f3f5f9; --surface: #ffffff; --surface-2: #eef2f7; --text: #121c2b; --muted: #5d6b7e; --line: #e0e6ee;
  --accent: #0b5fb4; --accent-soft: #e4effb; --on-accent: #ffffff; --warn-bg: #fff4e5; --warn-text: #6b3d00; --warn-line: #f2c98a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#0b1119; --surface:#151f2b; --surface-2:#1c2938; --text:#eaf0f7; --muted:#9aa9bb; --line:#263548; --accent:#5aa9f5; --accent-soft:#183049; --on-accent:#06121f; --warn-bg:#2b2112; --warn-text:#f2d9ad; --warn-line:#5a4520; }
}
:root[data-theme="dark"] { --bg:#0b1119; --surface:#151f2b; --surface-2:#1c2938; --text:#eaf0f7; --muted:#9aa9bb; --line:#263548; --accent:#5aa9f5; --accent-soft:#183049; --on-accent:#06121f; --warn-bg:#2b2112; --warn-text:#f2d9ad; --warn-line:#5a4520; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif; }
a { color: var(--accent); }

.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.ph .brand svg.logo { width: 26px; height: auto; vertical-align: middle; margin-right: 8px; }
.ph .brand { font-weight: 800; text-decoration: none; color: var(--text); font-size: 17px; }
.ph .badge { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.ph nav { display: flex; gap: 14px; font-size: 14px; font-weight: 700; }
.ph nav a { text-decoration: none; }

.pm { max-width: 720px; margin: 0 auto; padding: 20px 16px 56px; }
.hero { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.hero .sign { width: 92px; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .22)); }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.25; }
.hero .tag { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.lead { margin: 0 0 16px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.stat span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.stat b { font-size: 24px; font-weight: 800; }
.stat small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }

.cta { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 800; padding: 12px 22px; border-radius: 999px; }

h2 { font-size: 15px; color: var(--muted); margin: 30px 0 10px; letter-spacing: .02em; }

.trivia { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tv { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tv-top b { font-size: 16px; }
.tv p { margin: 6px 0 4px; font-size: 15px; line-height: 1.7; }
.tv small { color: var(--muted); font-size: 12px; }
.kind { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: #fff; background: #6b7a8e; }
.kind[data-k="日本一"] { background: #d99a00; }
.kind[data-k="歴史"] { background: #6f7fd0; }
.kind[data-k="絶景"] { background: #17a2a2; }
.kind[data-k="珍しい"] { background: #a85bd6; }
.kind[data-k="観光"] { background: #2fa45a; }
.kind[data-k="峠"] { background: #c8693a; }
.kind[data-k="データ"] { background: #3f6f9f; }
.kind[data-k="通称"] { background: #b0407f; }
.kind[data-k="橋・トンネル"] { background: #7a6254; }
.kind[data-k="起点・終点"] { background: #c44a3d; }
.kind[data-k="海の道"] { background: #1f6fc0; }
.kind[data-k="ルート"] { background: #6b7d1f; }
.caution { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-line); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 12px 0 0; }
.caution b { display: block; margin-bottom: 2px; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.pt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.pt span { display: block; font-size: 12px; color: var(--muted); }
.pt b { font-size: 15px; line-height: 1.5; }
.arrow { align-self: center; color: var(--accent); font-weight: 800; }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } .arrow { justify-self: center; transform: rotate(90deg); } }

.prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.prefs span { background: var(--surface-2); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 600; }

.ov { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ov li { display: flex; gap: 10px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 14px; }
.ov .n { flex: none; font-weight: 800; color: var(--accent); min-width: 4.5em; }
.none, .note { color: var(--muted); font-size: 14px; }

.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.other { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; text-decoration: none; font-weight: 800; color: var(--text); }
.other small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

.src { margin-top: 32px; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* 「ここへ行くなら」(アフィリエイト用の枠) */
h2 .pr { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 0 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); margin-left: 6px; vertical-align: 1px; }
.go-note { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.go-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.go-i { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
a.go-i:hover { border-color: var(--accent); }
.go-ic { --k: #6b7a90; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px;
  background: color-mix(in srgb, var(--k) 22%, var(--surface)); color: color-mix(in srgb, var(--k) 70%, var(--text)); }
.go-ic[data-k="stay"] { --k: #6f7fd0; }
.go-ic[data-k="rent"] { --k: #17a2a2; }
.go-ic[data-k="gear"] { --k: #d99a00; }
.go-b b { display: block; font-size: 16px; line-height: 1.4; }
.go-b small { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.go-tag { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px dashed var(--muted); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.go-arrow { color: var(--accent); font-weight: 800; }

/* 出典・運営者情報ページ(about/) */
.lic-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 15px; line-height: 1.75; }
.lic { margin: 12px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.lic summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.lic pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.6; color: var(--muted); margin: 8px 0 4px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.mailbtn { font: inherit; font-weight: 800; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.tv small a { color: var(--muted); }

.rank-line { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
.route-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.route-index a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; text-decoration: none; color: var(--text); }
.route-index small { display: block; color: var(--muted); font-size: 12px; }
