/* 海外ドライブ迷わないメモ　第6版
   一般的な日本語のWeb媒体（旅行ガイド、自動車クラブの案内）と同じ作りにそろえる。
   本文＋右の案内欄の2段組、見出しは左の帯、表は薄い罫線、リンクは青。 */
:root {
  --bg: #FFFFFF;
  --ink: #333333;
  --muted: #6B6F6B;
  --rule: #DDDFDA;
  --soft: #F4F6F3;
  --brand: #0B7A3B;
  --brand-dark: #085C2C;
  --brand-tint: #E6F2EA;
  --link: #0D5BBF;
  --warn-bg: #FFF8DC;
  --warn-line: #E6B422;
  --red: #C0392B;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1C1E; --ink: #E6E6E2; --muted: #A3A7A1; --rule: #3A3E42; --soft: #24272A;
    --brand: #2E9E63; --brand-dark: #3DB874; --brand-tint: #1F2F26; --link: #7FB2F0;
    --warn-bg: #3A3414; --warn-line: #C9A227; --red: #E57368;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1C1E; --ink: #E6E6E2; --muted: #A3A7A1; --rule: #3A3E42; --soft: #24272A;
  --brand: #2E9E63; --brand-dark: #3DB874; --brand-tint: #1F2F26; --link: #7FB2F0;
  --warn-bg: #3A3414; --warn-line: #C9A227; --red: #E57368;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.9; line-break: strict; overflow-wrap: anywhere; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; z-index: 30; padding: 4px 10px; background: var(--bg); }
.page { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
[id] { scroll-margin-top: 70px; }
@media (min-width: 960px) { [id] { scroll-margin-top: 16px; } }

/* ---------- ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; }
.site-name { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; line-height: 1.25; }
.site-name b { font-size: 1.12rem; font-weight: 700; letter-spacing: 0.01em; }
.site-name small { display: none; color: var(--muted); font-size: 0.72rem; }
.site-name img { display: none; }
.topnav { display: none; }
.menu > summary { list-style: none; cursor: pointer; padding: 4px 12px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); font-size: 0.88rem; line-height: 1.6; white-space: nowrap; -webkit-user-select: none; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .opened { display: none; }
.menu[open] .opened { display: inline; }
.menu[open] .closed { display: none; }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 3px solid var(--brand); }
@media (min-width: 960px) {
  .site-header { position: static; border-bottom: 0; }
  .header-row { min-height: 72px; }
  .site-name small { display: block; }
  .menu { display: none; }
  .topnav { display: block; background: var(--brand); }
  .topnav .page { display: flex; flex-wrap: wrap; gap: 0; }
  .topnav a { display: block; padding: 10px 18px 10px 0; color: #FFFFFF; font-size: 0.95rem; font-weight: 700; text-decoration: none; }
  .topnav a:hover, .topnav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
}
.header-search { display: none; }
@media (min-width: 960px) { .header-search { display: block; width: 300px; } .header-search .search { margin: 0; padding: 0; background: none; } .header-search label { display: none; } .header-search input { padding: 8px 10px; font-size: 0.9rem; } .header-search .examples { display: none; } }

/* スマホの目次（メニュー） */
.toc-title { margin: 16px 0 2px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.toc-title:first-child { margin-top: 0; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list > li { border-bottom: 1px solid var(--rule); }
.toc-list a, .toc-list span { display: block; padding: 7px 2px; color: var(--ink); text-decoration: none; line-height: 1.5; }
.toc-list a:hover { text-decoration: underline; color: var(--link); }
.toc-list a[aria-current="page"] { font-weight: 700; color: var(--brand-dark); }
.toc-list ul { list-style: none; margin: 0 0 8px 4px; padding: 0 0 0 10px; border-left: 3px solid var(--brand); }
.toc-list ul a { padding: 3px 6px; color: var(--muted); font-size: 0.86rem; }
.toc-list small { color: var(--muted); font-size: 0.8rem; }
.toc-region { border-bottom: 1px solid var(--rule); }
.toc-region > summary { cursor: pointer; padding: 7px 2px; list-style: none; }
.toc-region > summary::-webkit-details-marker { display: none; }
.toc-region > summary::before { content: "＋"; display: inline-block; width: 1.4em; color: var(--muted); }
.toc-region[open] > summary::before { content: "−"; }
.toc-region .toc-list { margin: 0 0 6px 1.4em; }
.toc-region .toc-list > li:last-child { border-bottom: 0; }
.menu-panel .search { margin: 0 0 12px; padding: 0; background: none; }
.menu-panel .search label { font-size: 0.8rem; }

/* ---------- 2段組 */
.layout { display: block; }
main { display: block; min-width: 0; padding: 20px 0 48px; }
.sidebar { display: none; }
@media (min-width: 960px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
  main { padding: 28px 0 64px; }
  .sidebar { display: block; padding: 28px 0 40px; font-size: 0.9rem; }
  .sidebar .search { margin: 0; padding: 10px 12px; background: none; }
  .sidebar .search label { font-size: 0.86rem; }
  .sidebar .search input { padding: 7px 10px; font-size: 0.95rem; }
  .sidebar .results { font-size: 0.86rem; }
}
.side-box { margin: 0 0 22px; border: 1px solid var(--rule); }
.side-box .toc-title { margin: 0; padding: 8px 12px; background: var(--soft); color: var(--ink); font-size: 0.86rem; font-weight: 700; border-bottom: 1px solid var(--rule); }
.side-box .toc-list { padding: 4px 12px; }
.side-box .toc-list > li:last-child { border-bottom: 0; }
.side-box .toc-region { padding: 0 12px; }
.side-box .toc-region:last-child { border-bottom: 0; }

/* ---------- 文字 */
h1 { margin: 0 0 10px; font-size: 1.55rem; line-height: 1.5; font-weight: 700; word-break: auto-phrase; }
@media (min-width: 960px) { h1 { font-size: 1.85rem; } }
h1.phrase-break { word-break: keep-all; }
h2 { margin: 44px 0 14px; padding: 8px 12px; border-left: 6px solid var(--brand); background: var(--soft); font-size: 1.25rem; line-height: 1.5; font-weight: 700; word-break: auto-phrase; }
h3 { margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); font-size: 1.08rem; line-height: 1.6; font-weight: 700; word-break: auto-phrase; }
p { margin: 0 0 14px; }
main > ul:not([class]), main > ol:not([class]) { margin: 0 0 14px; padding-left: 1.5em; }
main > ul:not([class]) li, main > ol:not([class]) li { margin-bottom: 4px; }
.lead { font-size: 1.02rem; }
.meta { margin: 0 0 16px; color: var(--muted); font-size: 0.84rem; }
.meta span + span::before { content: "｜"; margin: 0 4px; color: var(--rule); }
.crumbs { margin: 0 0 10px; color: var(--muted); font-size: 0.8rem; }
.crumbs a { color: var(--muted); }
.sub { color: var(--muted); }
.small { font-size: 0.86rem; }
.nw { white-space: nowrap; }
.inline-links a { display: inline-block; }
.cat { display: inline-block; padding: 0 8px; border: 1px solid var(--brand); color: var(--brand-dark); font-size: 0.78rem; line-height: 1.7; border-radius: 2px; margin-bottom: 8px; }

/* 目次の箱、ポイントの箱、注意の箱 */
.jump, .toc-box { margin: 16px 0 24px; padding: 12px 16px; border: 1px solid var(--rule); background: var(--soft); }
.jump-title { margin: 0 0 4px; font-size: 0.9rem; font-weight: 700; }
.jump ol { margin: 0; padding-left: 1.5em; }
.jump li { margin: 2px 0; }
.jumpline { margin: 16px 0 24px; padding: 12px 16px; border: 1px solid var(--rule); background: var(--soft); font-size: 0.9rem; line-height: 2; }
.jumpline a { display: inline-block; margin-right: 1em; }
.first { margin: 18px 0 8px; padding: 12px 16px; border: 2px solid var(--brand); border-radius: 4px; }
.first p { margin: 0 0 4px; color: var(--brand-dark); font-weight: 700; }
.first ol { margin: 0; padding-left: 1.5em; }
.first li { margin: 2px 0; }
.caution, .myna { margin: 12px 0 18px; padding: 12px 16px; border: 1px solid var(--warn-line); background: var(--warn-bg); }
.caution p:last-child, .myna p:last-child { margin-bottom: 0; }
.caution ul { margin: 0 0 10px; padding-left: 1.4em; font-size: 0.92rem; }
.myna p { margin: 0 0 6px; }
.tag { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid var(--red); border-radius: 2px; color: var(--red); font-size: 0.75rem; font-weight: 700; line-height: 1.6; vertical-align: 1px; }
.ad-tag { border-color: var(--muted); color: var(--muted); font-weight: 400; }
.nolink { color: var(--muted); }
.next { margin: 36px 0 0; padding: 12px 16px; border: 1px solid var(--rule); font-size: 0.92rem; }
.signs { display: none; }

/* ---------- 基本情報の表（早見表） */
.quick { margin: 8px 0 12px; border-top: 2px solid var(--brand); }
.quick .row { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 0 12px; padding: 9px 4px; border-bottom: 1px solid var(--rule); }
.quick .row:nth-child(even) { background: var(--soft); }
.quick dt { margin: 0; font-weight: 700; font-size: 0.92rem; padding-top: 1px; }
.quick dd { margin: 0; min-width: 0; }
.quick .v { font-weight: 700; }
.quick .nt { display: block; color: var(--muted); font-size: 0.88rem; }
.fn { color: var(--muted); font-size: 0.72rem; font-weight: 400; text-decoration: none; margin-left: 4px; vertical-align: super; line-height: 1; }
.fn:hover { text-decoration: underline; }
h3 .fn, h4 .fn { font-size: 0.7rem; }
.quick .more { margin-left: 6px; font-size: 0.86rem; white-space: nowrap; }
@media (max-width: 420px) { .quick .row { grid-template-columns: 6.5em minmax(0, 1fr); } }

/* ---------- 注意点・トラブル・体験談 */
.item, .trouble, .report { padding: 4px 0 10px; border-bottom: 1px solid var(--rule); }
.item:last-of-type { border-bottom: 0; }
.item h3 .no { display: inline-block; min-width: 1.6em; margin-right: 4px; color: var(--brand-dark); }
.kind { margin: 0 0 6px; color: var(--muted); font-size: 0.82rem; }
.fine { margin: 0 0 10px; padding: 8px 12px; background: var(--soft); font-size: 0.9rem; }
.fine b { margin-right: 0.5em; }
.fine .num { font-weight: 700; }
.src { margin: 0 0 10px; color: var(--muted); font-size: 0.8rem; }
.src a { color: var(--muted); }
.item ul { margin: 0 0 12px; padding-left: 1.4em; }
.item li { margin-bottom: 4px; }
.back { margin: 6px 0 0; font-size: 0.86rem; }
.item-index { margin: 0 0 8px; padding-left: 1.6em; font-size: 0.94rem; }
.item-index li { margin: 2px 0; }
.group-label { margin: 26px 0 0; padding: 4px 0; color: var(--brand-dark); font-size: 0.92rem; font-weight: 700; }
.prevent { margin: 0 0 10px; padding: 8px 12px; background: var(--brand-tint); font-size: 0.92rem; }
.prevent b { margin-right: 0.5em; color: var(--brand-dark); }
.match { font-size: 0.86rem; }
.to-reports { margin: 16px 0 0; font-size: 0.92rem; }
.sources { margin: 0 0 12px; padding-left: 1.8em; font-size: 0.84rem; }
.sources li { margin: 3px 0; scroll-margin-top: 70px; }
.sources .dom { color: var(--muted); font-size: 0.78rem; }

/* ---------- 一覧 */
.list { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--rule); }
.list li { padding: 10px 4px; border-bottom: 1px solid var(--rule); line-height: 1.6; }
.list a { font-weight: 700; }
.list .note { display: block; margin-top: 2px; color: var(--muted); font-size: 0.84rem; }
.dest { margin: 0 0 14px; }
.dest dt { margin: 14px 0 6px; padding-left: 8px; border-left: 4px solid var(--brand); font-weight: 700; }
.dest dd { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.dest dd a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; line-height: 1.4; }
.dest dd a:hover { border-color: var(--brand); color: var(--brand-dark); }
.dest dd a .flag { flex: 0 0 auto; }
.scenes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.scenes li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 0 8px; padding: 10px 4px; border-bottom: 1px solid var(--rule); }
.scenes b { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.scenes a { display: inline-block; margin-right: 0.8em; }
.voice { margin: 0 0 16px; padding: 12px 16px; background: var(--soft); }
.hero { margin: 0 0 8px; display: flex; flex-direction: column; }
.hero h1 { font-size: 1.5rem; }
.hero-art { order: -1; margin: 6px 0 12px; }
.hero-art img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; }
  .hero h1 { font-size: 1.7rem; word-break: keep-all; }
  .hero-art { order: 0; margin: 0; }
}

/* ---------- 画像：アイキャッチ・国旗・アイコン */
.eyecatch { position: relative; margin: 14px 0 18px; }
.eyecatch > img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
@media (max-width: 599px) { .eyecatch > img { aspect-ratio: 2 / 1; object-fit: cover; } }
.flag-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; background: rgba(255,255,255,0.92); border: 1px solid var(--rule); border-radius: 4px; color: #333; font-size: 0.95rem; line-height: 1.4; }
.flag-badge .flag { margin: 0; width: 40px; height: 30px; }
.flag { display: inline-block; vertical-align: -0.2em; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); border-radius: 2px; background: #fff; }
.toc-list .flag, .side-box .flag { vertical-align: -0.25em; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: 0 0 auto; }
.ic-h2 { width: 1.15em; height: 1.15em; margin-right: 8px; color: var(--brand); vertical-align: -0.2em; }
.ic-dt { width: 1.05em; height: 1.05em; margin-right: 4px; color: var(--brand); vertical-align: -0.2em; }
.ic-scene { width: 1.25em; height: 1.25em; color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyecatch img, :root:not([data-theme="light"]) .hero-art img { filter: brightness(0.88); } }
:root[data-theme="dark"] .eyecatch img, :root[data-theme="dark"] .hero-art img { filter: brightness(0.88); }

/* ---------- 道路標識 */
.sign-row { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 10px 0 6px; }
figure.sign { margin: 0; width: 96px; text-align: center; }
figure.sign .sg { width: 76px; height: 76px; display: block; margin: 0 auto 4px; }
figure.sign figcaption { font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
.sign-list { margin: 8px 0 12px; }
.sign-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.sign-item:last-child { border-bottom: 1px solid var(--rule); }
.sign-item .sg { width: 84px; height: 84px; }
.sign-item h4 { margin: 0 0 4px; font-size: 1rem; line-height: 1.5; }
.sign-item h4 .local { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.sign-item p { margin: 2px 0; font-size: 0.95rem; }
.sign-item .prevent { margin-top: 6px; padding: 8px 10px; background: var(--brand-tint); border-left: 4px solid var(--brand); }
.sign-item .fine { color: var(--muted); font-size: 0.88rem; }
table.words td { min-width: 6.5em; }
table.words td:first-child { min-width: 7em; overflow-wrap: anywhere; }
.signs-table th[scope="row"], .signs-table thead th { white-space: nowrap; }
.signs-table th[scope="row"] .flag { vertical-align: -0.2em; }
.sg-cell { white-space: nowrap; }
.sg-cell .sg { width: 44px; height: 44px; vertical-align: middle; margin-right: 6px; }
.sg-cell span { vertical-align: middle; }
.inline-list { list-style: none; margin: 0; padding: 0; }
.inline-list li { display: inline-block; margin: 0 14px 4px 0; }

table.neighbors tr.me th, table.neighbors tr.me td { background: var(--brand-tint); }
@media (max-width: 599px) { .sign-item { grid-template-columns: 64px minmax(0, 1fr); gap: 0 10px; } .sign-item .sg { width: 64px; height: 64px; } }
.sign-item.nofig { grid-template-columns: minmax(0, 1fr); }
@media print { .sign-row, figure.sign { break-inside: avoid; } }

/* ---------- 検索 */
.search { margin: 18px 0 10px; padding: 14px 16px; background: var(--soft); }
.search label { display: block; margin-bottom: 4px; font-size: 0.9rem; font-weight: 700; }
.search input { display: block; width: 100%; padding: 9px 12px; border: 1px solid #999; border-radius: 3px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.examples { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; }
.examples button { margin: 0 2px; padding: 2px 4px; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.count { margin: 12px 0 0; color: var(--muted); font-size: 0.86rem; }
.count:empty { display: none; }
.results { list-style: none; margin: 4px 0 0; padding: 0; }
.results:empty { display: none; }
.results li { padding: 8px 0; border-bottom: 1px solid var(--rule); line-height: 1.6; }
.results li:last-child { border-bottom: 0; }
.results a { font-weight: 700; }
.results span { display: block; color: var(--muted); font-size: 0.8rem; }

/* ---------- 表 */
.table-wrap { margin: 8px 0 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.7; }
th, td { padding: 8px 10px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { background: var(--brand-tint); font-size: 0.86rem; }
tbody th { width: 36%; background: var(--soft); font-weight: 700; word-break: keep-all; }
@media (min-width: 600px) { tbody th { width: 11em; } }
.scene td a { display: inline-block; }
.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money td.up { color: var(--red); font-weight: 700; }
.money tr.sum td { border-top: 2px solid var(--ink); font-weight: 700; }
.cmp th[scope="row"] { width: 9em; word-break: keep-all; overflow-wrap: normal; }
.cmp td { font-size: 0.88rem; }
.cmp td .nt { display: block; color: var(--muted); font-size: 0.8rem; }
.cmp-3 td { white-space: nowrap; }
.cmp-3 td .nt { white-space: normal; min-width: 11em; }
.signs-table td, .neighbors td { white-space: normal; }
.neighbors th[scope="row"], .neighbors td:nth-child(4), .neighbors td:last-child { white-space: nowrap; }
.neighbors thead th { white-space: nowrap; }
.cmp .region-row th { background: var(--bg); border-left: 0; border-right: 0; padding-top: 16px; font-size: 0.86rem; color: var(--brand-dark); }
.cmp th { overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 599px) {
  .cmp th[scope="row"] { width: auto; }
  .cmp th, .cmp td { padding: 7px 6px; }
  .cmp td { font-size: 0.88rem; }
  .cmp-3 thead { display: none; }
  .cmp-3 tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .cmp-3 tr.region-row { border-bottom: 0; padding-bottom: 0; }
  .cmp-3 th, .cmp-3 td { display: block; border: 0; padding: 2px 0; white-space: normal; background: none; }
  .cmp-3 td::before { content: attr(data-l) "　"; color: var(--muted); font-size: 0.82rem; }
}

/* ---------- カウンターの記事、チェックリスト */
.checklist { margin: 8px 0 10px; padding-left: 0; list-style: none; }
.checklist li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.checklist label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--brand); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.ck .why { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; font-weight: 400; }
.ck .ck-links { display: block; margin: 4px 0 0 30px; font-size: 0.82rem; }
.phrase { margin: 8px 0 12px; padding: 14px 16px; border: 1px solid var(--rule); background: var(--soft); }
.phrase .en { margin: 0 0 6px; font-size: 1.12rem; font-weight: 700; line-height: 1.6; overflow-wrap: normal; }
.phrase .ja { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; }
.btn { padding: 6px 14px; border: 1px solid var(--brand); border-radius: 3px; background: var(--bg); color: var(--brand-dark); font: inherit; font-size: 0.9rem; cursor: pointer; }
.btn:hover { background: var(--brand-tint); }
.notice { margin: 32px 0 0; padding: 12px 14px; border: 1px solid var(--rule); background: var(--soft); font-size: 0.92rem; }

/* ---------- 返却の逆算 */
.answer { margin: 12px 0 16px; padding: 12px 16px; border: 2px solid var(--brand); }
.answer .label { color: var(--muted); font-size: 0.86rem; }
.answer .time { font-size: 2.4rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.answer .time small { margin-right: 8px; color: var(--red); font-size: 0.45em; }
.answer .span { font-size: 0.9rem; }
.calc { display: grid; gap: 14px; margin: 8px 0; }
@media (min-width: 600px) { .calc { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.field label { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.field input, .maps select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #999; border-radius: 3px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1.05rem; }
.stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; }
.stepper input { border-radius: 0; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { border: 1px solid #999; background: var(--soft); color: var(--ink); font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.stepper button:first-child { border-right: 0; border-radius: 3px 0 0 3px; }
.stepper button:last-child { border-left: 0; border-radius: 0 3px 3px 0; }
.example { padding: 0 5px; border: 1px solid var(--muted); border-radius: 3px; color: var(--muted); font-size: 0.8rem; }
.timeline td:first-child { width: 7em; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline .day { margin-right: 4px; color: var(--red); font-size: 0.75rem; font-weight: 400; }
.timeline .why { display: block; color: var(--muted); font-size: 0.8rem; }
.timeline tr.key td { background: var(--warn-bg); }
.maps { margin: 8px 0 12px; padding: 14px 16px; border: 1px solid var(--rule); }
.maps .field { margin-bottom: 12px; }
.map-links { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 600px) { .map-links { grid-template-columns: 1fr 1fr; } }
#ret-items { display: grid; gap: 8px; }
.ret-info { margin: 4px 0 8px; padding: 10px 12px; background: var(--soft); border-left: 4px solid var(--brand); font-size: 0.9rem; }
.ret-info p { margin: 2px 0; }
.maplink { display: block; padding: 9px 12px; border: 1px solid var(--brand); border-radius: 3px; color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.maplink:hover { background: var(--brand-tint); }
.maplink[aria-disabled="true"] { border-color: var(--rule); color: var(--muted); font-weight: 400; cursor: default; }

/* ---------- 手順 */
.steps-detail { margin: 8px 0 12px; padding-left: 1.6em; }
.steps-detail > li { padding: 8px 0 6px; border-bottom: 1px solid var(--rule); }
.steps-detail > li::marker { font-weight: 700; color: var(--brand-dark); }
.steps-detail h3 { margin: 0 0 6px; border-bottom: 0; }
.steps-detail p { margin-bottom: 8px; }
.cover-box { margin: 10px 0 12px; padding: 12px 14px; border: 1px solid var(--rule); }
.cover-box h3 { margin: 0 0 8px; border-bottom: 0; }
.cover-box dl { margin: 0; }
.cover-box dt { margin-top: 8px; font-size: 0.86rem; font-weight: 700; color: var(--muted); }
.cover-box dt:first-child { margin-top: 0; }
.cover-box dd { margin: 2px 0 0; }
@media (min-width: 720px) { .cover-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ---------- 連絡先 */
.contacts { margin: 8px 0 8px; border-top: 2px solid var(--brand); }
.contacts dt { padding: 10px 4px 2px; color: var(--brand-dark); font-size: 0.88rem; font-weight: 700; }
.contacts dd { margin: 0; padding: 0 4px 10px; border-bottom: 1px solid var(--rule); }
.contact { padding: 4px 0; line-height: 1.6; }
.contact + .contact { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--rule); }
.contact .nt { display: block; color: var(--muted); font-size: 0.86rem; }
.contact .tel-line { display: block; }
.contact .num { font-weight: 700; }
.contact .where { margin-left: 0.6em; color: var(--muted); font-size: 0.84rem; white-space: nowrap; }
a.tel { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.contact .tel-line a.tel { font-size: 1.1rem; }
.cc { padding: 4px 0 8px; }
.cc h3 { margin-top: 8px; }
.cc-more { margin: 0 0 8px; }
.print-only { display: none; }
.print-btn { margin-top: 4px; }

/* ---------- 免許の一覧 */
.st { display: inline-block; margin-right: 8px; padding: 0 6px; border: 1px solid var(--brand); border-radius: 2px; color: var(--brand-dark); font-size: 0.78rem; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: 1px; }
.st-not_valid { border-color: var(--red); color: var(--red); }
.st-japan_ok { border-color: var(--brand); color: var(--brand-dark); }
.st-unknown { border-color: var(--muted); color: var(--muted); }
.world td .nt { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; }
.world td .refs { display: block; margin-top: 2px; color: var(--muted); font-size: 0.74rem; }
.world td .refs a { color: var(--muted); }

/* ---------- フッター */
.site-footer { margin-top: 24px; background: var(--soft); border-top: 3px solid var(--brand); }
.footer-inner { padding-top: 20px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.84rem; }
.footer-cols { display: grid; gap: 12px 32px; margin: 0 0 16px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols p { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 2px 0; }
.footer-inner a { color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
.footer-inner .legal { margin: 0 0 4px; }

/* ---------- 印刷・PDFで保存 */
@media print {
  .skip, .site-header, .topnav, .sidebar, .site-footer, .search, .jump, .jumpline, .notice, .print-btn, .back, .next, .cc-more, .crumbs, .signs, .first, .eyecatch, .hero-art { display: none !important; }
  .ic { display: none !important; }
  .layout { display: block !important; }
  body { background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .print-only { display: block; margin: 0 0 6px; font-size: 0.8rem; }
  .contact .nt, .src { color: #333 !important; }
  .cc, .contact, .steps-detail > li, .trouble, .item { break-inside: avoid; }
  body.print-one main > :not(.print-target) { display: none !important; }
  body.print-one .print-target { display: block !important; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
