/* ============================================================
   トラベルスケール UI 部品（2026-10-15 作り直し・全ページ共通）
   ゴルフスケールの作法に揃える: 白いカード基調・左バーの見出し・1 位の見せ方・数字を大きく。
   文字の羅列（dl と素の table）をやめ、「数字の見出し」「事実つきカード」「比較表 v2」「ランキングカード」で組む。
   色はシェル（gs-shell.css）のトークンだけを使う。ページ固有の装飾はここに足さず、部品を増やす。
   ============================================================ */

/* ---- 共通の寸法 ---- */
.ui { --ui-radius: 14px; --ui-gap: 14px; }

/* ==== 1. 数字のヒーロー（一覧・比較・ランキングの頭）==== */
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.hero2.has-vis { grid-template-columns: minmax(0, 1fr) minmax(220px, 34%); }
.hero2-pill { display: inline-block; margin: 0 0 8px; padding: .15rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--g); background: var(--tint); }
.hero2-h1 { margin: 0; font-size: 2rem; line-height: 1.25; font-weight: 800; color: var(--ink); letter-spacing: .01em; text-wrap: balance; }
.hero2-h1 small { display: block; margin-top: 4px; font-size: .95rem; font-weight: 600; color: var(--mute); }
.hero2-vis { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--ui-radius); background: var(--soft); }
.hero2-vis img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero2-vis.is-fig img { object-fit: contain; padding: 10px; }
.hero2-vis-link { display: block; height: 100%; }
.hero2-vis a.cap, .hero2-vis a.cap:hover { color: #fff; text-decoration: underline dotted; }
.hero2-vis .cap { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 1px 8px; border-radius: 6px; background: rgba(16, 36, 43, .62); color: #fff; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 数字の並び（件数・社数・円）。数字が主役、ラベルは小さく */
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; }
.stat { display: flex; flex-direction: column; min-width: 4em; }
.stat-n { font-size: 1.55rem; line-height: 1.15; font-weight: 800; color: var(--g); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-n small { font-size: .8rem; font-weight: 700; color: var(--mute); margin-left: .15em; }
.stat-l { font-size: .74rem; font-weight: 700; color: var(--mute); }
.stat.is-s .stat-n { color: var(--s-ink); }
.stat.is-y .stat-n { color: var(--y-deep); }

/* ==== 2. 見出し行（左バー）・移動チップ ==== */
.sec { margin: 0 0 32px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; }
.sec-h::before { content: ""; width: 4px; height: 22px; border-radius: 3px; background: var(--brand); flex-shrink: 0; }
.sec-h h2, .sec-h h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.sec-h .n { font-size: .78rem; font-weight: 700; color: var(--mute); }
.sec-h .more { margin-left: auto; font-size: .84rem; font-weight: 700; color: var(--g); text-decoration: none; white-space: nowrap; }
.sec-h .more:hover { text-decoration: underline; }
.sub-h { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.sub-h a { color: inherit; text-decoration: none; }
.sub-h a:hover { color: var(--g); }
.sub-h .n { font-size: .76rem; font-weight: 700; color: var(--mute); }

.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font: inherit; font-size: .84rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.seg a:hover, .seg button:hover { border-color: var(--g); color: var(--g); }
.seg a[aria-current], .seg button[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: #fff; }
.seg .n { font-size: .74rem; font-weight: 700; opacity: .75; }

/* ==== 3. 事実つきカード（一覧の 1 件）==== */
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--ui-gap); align-items: stretch; }
.cd-grid.is-wide { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cd { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--ui-radius);
  color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.cd:hover { border-color: var(--g); box-shadow: 0 6px 18px -8px rgba(3, 105, 161, .35); transform: translateY(-2px); color: inherit; }
.cd-media { position: relative; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.cd-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cd-media.is-icon { display: flex; align-items: center; justify-content: center; background: var(--tint); }
.cd-media.is-icon img { width: 56px; height: 56px; object-fit: contain; }
.cd-media.is-flag { display: flex; align-items: center; justify-content: center; background: var(--soft); }
.cd-media.is-flag img { width: 44%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.cd-media .cd-code { position: absolute; left: 10px; top: 10px; }
.cd-credit { position: absolute; right: 0; bottom: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 6px; background: rgba(0, 0, 0, .5); color: #fff; font-size: .6rem; line-height: 1.5; border-top-left-radius: 6px; }
/* 写真の無いカードの枠: 同じ一覧に写真のあるカードがあるときだけ同じ大きさで出す（無い一覧では文字だけのカード）。中身はコードか種別 */
.cd-media.is-blank { display: none; align-items: center; justify-content: center; padding: 12px; background: linear-gradient(135deg, var(--tint), var(--soft)); }
.cd-grid:has(.cd-media:not(.is-blank)) .cd-media.is-blank { display: flex; }
.cd-grid:has(.cd-media:not(.is-blank)) .cd-body > .cd-code.is-soft { display: none; }
.cd-blank { display: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 800; letter-spacing: .04em; color: var(--mute); }
.cd-blank.is-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.9rem; letter-spacing: .08em; color: var(--g); opacity: .75; }
.cd-media.is-blank .cd-blank { display: block; }
.cd-media.is-blank .cd-credit { display: none; }
/* 高さを揃える: 同じ行のカードは同じ高さ・名前は 2 行ぶん・事実と札は 1 行で切る・札はいちばん下 */
.cd-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.cd-code { display: inline-block; align-self: flex-start; padding: 1px 8px; border-radius: 6px; background: var(--g); color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.cd-code.is-soft { background: var(--tint); color: var(--g); font-size: .84rem; padding: 2px 10px; }
.cd-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.cd-head { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cd-grid .cd-head { min-height: 2.7rem; }                                   /* 名前 2 行ぶん（1 行の名前でも事実の段が揃う） */
.cd-grid .cd-head:has(.cd-sub) { min-height: calc(2.7rem + 1.1rem + 3px); }
.cd-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--mute); line-height: 1.4; }
.cd-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0; padding: 0; list-style: none; }
.cd-facts li { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.cd-facts b, .cd-facts small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-facts b { font-size: .98rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.cd-facts b.is-s { color: var(--s-ink); }
.cd-facts small { font-size: .7rem; font-weight: 700; color: var(--mute); }
.cd-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.cd .cd-tags { max-height: 28px; overflow: hidden; margin-top: auto; padding-top: 6px; }
.cd-tags li { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 1px 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .72rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cd-tags li.is-g { background: var(--y-soft); border-color: transparent; color: var(--y-deep); }
.cd-tags li.is-s { background: var(--s-soft); border-color: transparent; color: var(--s-ink); }
.cd-tags li.is-b { background: var(--tint); border-color: transparent; color: var(--g); }
.cd-tags li.is-l0 { background: var(--y-soft); border-color: transparent; color: var(--y-deep); }
.cd-tags li.is-l1 { background: #FEF9C3; border-color: transparent; color: #854D0E; }
.cd-tags li.is-l2 { background: #FFEDD5; border-color: transparent; color: #9A3412; }
.cd-tags li.is-l3 { background: #FEE2E2; border-color: transparent; color: #B91C1C; }
.cd-tags li.is-l4 { background: #7F1D1D; border-color: transparent; color: #fff; }
.hero2 .srch { display: flex; max-width: 620px; margin-top: 14px; overflow: hidden; border: 2px solid var(--g); border-radius: 999px; background: var(--card); }
.hero2 .srch input { flex: 1; min-width: 0; padding: 11px 18px; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.hero2 .srch button { flex: 0 0 auto; padding: 0 24px; border: 0; background: var(--g); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.src-line { margin: 4px 0 0; font-size: .78rem; color: var(--mute); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.pager a, .pager span { display: inline-flex; min-width: 2.2em; justify-content: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: .86rem; font-weight: 700; }
.pager span[aria-current] { background: var(--g); border-color: var(--g); color: #fff; }
.cd.is-row { flex-direction: row; align-items: stretch; }
.cd.is-row .cd-media { flex: 0 0 120px; aspect-ratio: auto; }
.cd.is-row .cd-body { flex: 1; }

/* ==== 4. ランキングカード（1 位を見せる）==== */
.rk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--ui-gap); }
.rkc { --rk: var(--brand); display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 14px 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--rk);
  border-radius: 10px; color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
a.rkc:hover { box-shadow: 0 6px 18px -8px rgba(16, 36, 43, .35); transform: translateY(-2px); color: inherit; }
.rkc.is-country { --rk: var(--brand); }
.rkc.is-airport { --rk: var(--y-deep); }
.rkc.is-airline { --rk: var(--s); }
.rkc.is-pref { --rk: #5B21B6; }
.rkc.is-spot { --rk: #DB2777; }
.rkc.is-card { --rk: #0F766E; }
.rkc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rkc-t { font-size: .98rem; font-weight: 800; color: var(--ink); line-height: 1.35; }
.rkc-cta { flex-shrink: 0; font-size: .76rem; font-weight: 700; color: var(--g); white-space: nowrap; }
.rkc-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center; }
.rkc-media { width: 64px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--soft); overflow: hidden; }
.rkc-media img { width: 100%; height: 100%; object-fit: cover; }
.rkc-media.is-flag img { width: 56px; height: 42px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.rkc-media.is-num { font-size: 1.3rem; font-weight: 900; color: var(--rk); background: transparent; }
.rkc-no { font-size: .7rem; font-weight: 800; color: var(--mute); letter-spacing: .04em; }
.rkc-name { font-size: 1.02rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.rkc-val { font-size: 1.25rem; font-weight: 900; color: var(--s-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.rkc-val small { font-size: .74rem; font-weight: 700; color: var(--mute); margin-left: .3em; }
.rkc-rest { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; border-top: 1px dashed var(--line); padding-top: 8px; }
.rkc-rest li { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: .82rem; color: var(--ink); }
.rkc-rest .r { flex: 0 0 1.4em; font-weight: 800; color: var(--mute); font-variant-numeric: tabular-nums; }
.rkc-rest .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rkc-rest .v { flex: 0 1 auto; max-width: 48%; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rkc-foot { font-size: .74rem; color: var(--mute); }

/* 順位の丸（表の 1〜3 位） */
.rank-no { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.9em; padding: 0 .3em; border-radius: 999px; background: var(--soft); color: var(--ink);
  font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-no.is-1 { background: var(--s-ink); color: #fff; }
.rank-no.is-2 { background: var(--s); color: #fff; }
.rank-no.is-3 { background: var(--y-deep); color: #fff; }

/* ==== 5. 比較表 v2 ==== */
.cmp-wrap { position: relative; overflow: auto; max-width: 100%; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.cmp th, .cmp td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.cmp th { position: sticky; top: 0; z-index: 2; background: var(--soft); font-size: .76rem; font-weight: 800; color: var(--mute); }
.cmp th[data-sort] { cursor: pointer; user-select: none; }
.cmp th[data-sort]::after { content: "⇅"; margin-left: .35em; opacity: .4; font-size: .8em; }
.cmp th[aria-sort="descending"]::after { content: "↓"; opacity: 1; color: var(--g); }
.cmp th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; color: var(--g); }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); white-space: normal; min-width: 11em; box-shadow: 1px 0 0 var(--line); }
.cmp th:first-child { z-index: 3; background: var(--soft); }
.cmp tbody tr:nth-child(even) td { background: #fafcfe; }
.cmp tbody tr:hover td { background: var(--tint); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td a { font-weight: 700; }
.cmp .num { text-align: right; font-variant-numeric: tabular-nums; }
.cmp td.num b, .cmp td b { color: var(--ink); }
.cmp td.wrap { white-space: normal; min-width: 14em; }
.cmp .sub { display: block; max-width: 16em; font-size: .72rem; font-weight: 500; color: var(--mute); white-space: normal; overflow-wrap: anywhere; }
.cmp td:first-child { overflow-wrap: anywhere; }
.cmp td.best, .cmp .best { color: var(--s-ink); font-weight: 800; }
.cmp .sub a { font-weight: inherit; color: inherit; }
.cmp .dim { color: var(--gs-soft-mute); }
.cmp tr[hidden] { display: none; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; font-size: .78rem; font-weight: 900; }
.mark.yes { background: var(--y-soft); color: var(--y-deep); }
.mark.no { background: var(--soft); color: var(--gs-soft-mute); }
.mark.na { color: var(--gs-soft-mute); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.pill.is-auto { background: var(--y-soft); color: var(--y-deep); }
.pill.is-usage { background: var(--soft); color: var(--mute); border: 1px solid var(--line); }
.pill.is-s { background: var(--s-soft); color: var(--s-ink); }
.pill.is-b { background: var(--tint); color: var(--g); }
.bar { display: inline-grid; grid-template-columns: 56px auto; align-items: center; gap: 8px; }
.bar i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--g)); width: calc(var(--w, 0) * 1%); min-width: 2px; }
.bar.is-s i { background: linear-gradient(90deg, var(--s), var(--s-ink)); }
.bar b { font-variant-numeric: tabular-nums; }
.cmp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8rem; color: var(--mute); }
.btn-more { padding: 8px 18px; border: 1px solid var(--g); border-radius: 999px; background: var(--card); color: var(--g); font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.btn-more:hover { background: var(--tint); }

/* 絞り込みの道具 */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.toolbar .seg { margin: 0; }
.toolbar .count { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.toolbar .lbl { font-size: .78rem; font-weight: 800; color: var(--mute); }

/* 外務省の危険情報レベル（0〜4） */
.lvl { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.lvl.is-0 { background: var(--y-soft); color: var(--y-deep); }
.lvl.is-1 { background: #FEF9C3; color: #854D0E; }
.lvl.is-2 { background: #FFEDD5; color: #9A3412; }
.lvl.is-3 { background: #FEE2E2; color: #B91C1C; }
.lvl.is-4 { background: #7F1D1D; color: #fff; }

/* ==== 6. 詳細ページの重要事実パネル ==== */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 20px; }
.kv-i { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.kv-i .k { font-size: .72rem; font-weight: 800; color: var(--mute); letter-spacing: .02em; }
.kv-i .v { font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kv-i .v small { display: block; font-size: .76rem; font-weight: 600; color: var(--mute); }
.kv-i.is-s .v { color: var(--s-ink); }
.kv-i.is-wide { grid-column: 1 / -1; }
.kv-i.is-text .v { font-size: .92rem; font-weight: 500; line-height: 1.55; }
.kv-i .v ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .9rem; font-weight: 500; }
.kv-i .v ul.is-inline { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.kv-i .v .pill, .kv-i .v .lvl { vertical-align: middle; }
.kv-i .v a { color: var(--g); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.ui .ent-fig { margin: 0 0 20px; }

/* 2 列（本文 ＋ 右の図・補足） */
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(260px, 36%); align-items: start; } }

/* 地理（都道府県の目的地: 地図 ＋ 数字の見出し ＋ 事実の札、目玉の観光地は地図の番号と同じ丸） */
.geo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0 0 16px; }
@media (min-width: 900px) { .geo-grid { grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); align-items: start; } }
.geo-map svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
@media (max-width: 767px) { .geo-map { overflow-x: auto; -webkit-overflow-scrolling: touch; } .geo-map svg { min-width: 680px; } }
.geo-stats { margin: 0 0 14px; }
.geo-kv { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.geo-spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 14px; margin: 0 0 10px; padding: 0; list-style: none; }
.geo-spots li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.geo-spots .num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #F59E0B; color: var(--ink); font-weight: 800; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.geo-spots a { font-weight: 800; color: var(--ink); text-decoration: none; }
.geo-spots a:hover { text-decoration: underline; }
.geo-spots small { display: block; font-size: .76rem; font-weight: 600; color: var(--mute); }
.rail-sw { display: inline-block; width: 22px; height: 0; margin-right: 8px; vertical-align: middle; border-top: 3px solid #2F3A45; }
.rail-sw.is-shinkansen { border-top-style: dashed; }
.rail-sw.is-tx { border-top-color: #C2410C; }
.rail-sw.is-other { border-top-width: 2px; border-top-style: dashed; }
.geo-lines th[scope="row"] { font-weight: 800; color: var(--ink); }

/* 楽天トラベルの評価（楽天のブロックの中） */
.rv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 28px; margin: 0 0 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 720px) { .rv { grid-template-columns: auto minmax(0, 1fr); align-items: center; } }
.rv-score { display: flex; flex-direction: column; gap: 2px; }
.rv-score b { font-size: 2.2rem; line-height: 1; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.rv-stars::before { content: "★★★★★"; font-size: 1.15rem; letter-spacing: .08em;
  background: linear-gradient(90deg, #F59E0B calc(var(--v, 0) / 5 * 100%), var(--line) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-score small { font-size: .76rem; font-weight: 700; color: var(--mute); }
.rv-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.rv-items li { display: grid; grid-template-columns: 9em minmax(0, 1fr); align-items: center; gap: 8px; font-size: .84rem; }
.rv-items li > span { color: var(--mute); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-items .bar { grid-template-columns: minmax(40px, 1fr) auto; }

/* 写真のモザイク（ヒーローの右） */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--ui-radius); background: var(--soft); }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mosaic a:first-child { grid-row: 1 / 3; }
.mosaic a { display: block; overflow: hidden; }

/* ==== スマホ ==== */
@media (max-width: 767px) {
  .hero2, .hero2.has-vis { grid-template-columns: 1fr; gap: 12px; padding: 12px 0 14px; }
  .hero2-h1 { font-size: 1.45rem; }
  .stat-n { font-size: 1.3rem; }
  .cd-grid, .cd-grid.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cd-body { padding: 10px 11px 12px; gap: 4px; }
  .cd-name { font-size: .92rem; }
  .cd.is-row .cd-media { flex-basis: 96px; }
  .rk-grid { grid-template-columns: 1fr; }
  .cmp { font-size: .8rem; }
  .cmp th, .cmp td { padding: 7px 8px; }
  .cmp th:first-child, .cmp td:first-child { min-width: 9em; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kv-i .v { font-size: .95rem; }
}

/* ==== 7. タブ（詳細ページの切り替え。スマホで現地に持って行く前提・JS が無ければ全部縦に並ぶ）==== */
.tabs { position: sticky; top: 74px; z-index: 5; display: flex; gap: 0; margin: 0 0 22px; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; background: var(--card); border-bottom: 2px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs li { flex: 1 0 auto; }
.tabs a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent; font-size: .95rem; font-weight: 800; color: var(--mute); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--g); }
.tabs a[aria-selected="true"] { color: var(--g); border-bottom-color: var(--brand); }
.tabs .n { padding: 0 7px; border-radius: 999px; background: var(--soft); font-size: .72rem; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.tabs a[aria-selected="true"] .n { background: var(--tint); color: var(--g); }
.tab-panel[hidden] { display: none; }

/* ==== 8. 目的地ガイド（表紙・行く理由・モデルプラン・名物・季節。旅行雑誌の 1 ページ）==== */
.cover { position: relative; margin: 8px 0 18px; aspect-ratio: 16 / 7; min-height: 300px; overflow: hidden; border-radius: 18px; background: var(--soft); color: #fff; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 40, 0) 30%, rgba(10, 30, 40, .55) 70%, rgba(10, 30, 40, .82) 100%); }
.cover-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 32px 26px; }
.cover-pill { display: inline-block; margin: 0 0 10px; padding: .15rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.cover-h1 { margin: 0; font-size: 2.6rem; line-height: 1.15; font-weight: 900; letter-spacing: .01em; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); text-wrap: balance; }
.cover-h1 small { display: block; margin-top: 4px; font-size: .95rem; font-weight: 600; letter-spacing: .08em; opacity: .9; }
.cover-lead { margin: 12px 0 0; max-width: 40em; font-size: 1.08rem; line-height: 1.7; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); text-wrap: pretty; }
.cover-credit { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 1px 8px; border-radius: 6px; background: rgba(16, 36, 43, .55); color: #fff; font-size: .66rem; }
.gd-lead { margin: -6px 0 18px; font-size: 1.1rem; line-height: 1.75; font-weight: 700; color: var(--ink); text-wrap: pretty; }

.ed-h { margin: 0 0 18px; }
.ed-eyebrow { display: inline-block; margin: 0 0 4px; font-size: .72rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--s-ink); }
.ed-h h2 { margin: 0; font-size: 1.55rem; line-height: 1.3; font-weight: 900; color: var(--ink); letter-spacing: .01em; text-wrap: balance; }

/* 行く理由: 番号つきの特集（写真と文を左右に・1 本ごとに入れ替える） */
.feat-list { display: grid; gap: 22px; }
.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--ui-radius); }
.feat.is-rev .feat-media { order: 2; }
.feat.no-media { grid-template-columns: minmax(0, 1fr); }
.feat-media { position: relative; min-height: 260px; background: var(--soft); }
.feat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-media .cap { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 1px 8px; border-radius: 6px; background: rgba(16, 36, 43, .62); color: #fff; font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px 28px; }
.feat-no { font-size: 2.2rem; line-height: 1; font-weight: 900; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.feat-t { margin: 0; font-size: 1.3rem; line-height: 1.4; font-weight: 900; color: var(--ink); text-wrap: balance; }
.feat-p { margin: 0; font-size: 1rem; line-height: 1.85; color: var(--ink); }
.cd-tags.is-links li { padding: 0; }
.cd-tags.is-links a { display: inline-block; padding: 2px 10px; color: inherit; text-decoration: none; }
.cd-tags.is-links a:hover { text-decoration: underline; }

/* モデルプラン: 切り替えチップ ＋ 縦の道のり（時刻・写真・名前・一言） */
.plan-tabs { margin-bottom: 14px; }
.plan-t { margin: 0 0 14px; font-size: 1.15rem; font-weight: 900; color: var(--ink); }
.route { position: relative; margin: 0; padding: 0 0 0 86px; list-style: none; display: grid; gap: 14px; }
.route::before { content: ""; position: absolute; left: 70px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--g)); }
.stop { position: relative; }
.stop::before { content: ""; position: absolute; left: -22px; top: 16px; width: 13px; height: 13px; border-radius: 50%; background: var(--card); border: 3px solid var(--brand); }
.stop-time { position: absolute; left: -86px; top: 12px; width: 54px; text-align: right; font-size: .9rem; font-weight: 900; color: var(--g); font-variant-numeric: tabular-nums; }
.stop-card { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.stop.has-media .stop-card { grid-template-columns: 150px minmax(0, 1fr); }
.stop-media { display: block; position: relative; min-height: 100px; background: var(--soft); }
.stop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stop-body { padding: 12px 16px 13px; display: flex; flex-direction: column; gap: 4px; }
.stop-name { font-size: 1.02rem; font-weight: 800; color: var(--ink); text-decoration: none; }
a.stop-name:hover { color: var(--g); }
.stop-note { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--ink); }

/* 名物 */
.food-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ui-gap); }
.food { display: flex; flex-direction: column; margin: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--ui-radius); }
.food-media { position: relative; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.food-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.food-media .cap { position: absolute; left: 8px; bottom: 8px; padding: 1px 8px; border-radius: 6px; background: rgba(16, 36, 43, .62); color: #fff; font-size: .66rem; }
.food-body { padding: 14px 16px 15px; }
.food-n { display: block; font-size: 1.1rem; font-weight: 900; color: var(--ink); line-height: 1.35; }
.food-a { display: inline-block; margin: 4px 0 8px; padding: 0 8px; border-radius: 999px; background: var(--s-soft); color: var(--s-ink); font-size: .72rem; font-weight: 800; }
.food p { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--ink); }

/* ベストシーズン */
.season { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: var(--ui-radius); background: var(--tint); }
.season p { margin: 0; font-size: 1.02rem; line-height: 1.75; font-weight: 700; color: var(--ink); }
.links-row { margin: 4px 0 28px; }
.links-row .btn-more { text-decoration: none; }

@media (max-width: 767px) {
  .tabs { top: 62px; margin: 0 -18px 16px; padding: 0 6px; }
  .tabs a { padding: 11px 12px; font-size: .9rem; }
  .cover { margin: 4px -18px 16px; aspect-ratio: 4 / 5; min-height: 0; border-radius: 0; }
  .cover-body { padding: 18px 18px 20px; }
  .cover-h1 { font-size: 1.9rem; }
  .cover-lead { font-size: .98rem; margin-top: 8px; }
  .gd-lead { font-size: 1rem; margin-top: -2px; }
  .ed-h h2 { font-size: 1.3rem; }
  .feat, .feat.no-media { grid-template-columns: 1fr; }
  .feat.is-rev .feat-media { order: 0; }
  .feat-media { aspect-ratio: 16 / 10; min-height: 0; }
  .feat-body { padding: 16px 16px 18px; gap: 8px; }
  .feat-no { font-size: 1.7rem; }
  .feat-t { font-size: 1.12rem; }
  .feat-p { font-size: .95rem; line-height: 1.75; }
  .route { padding-left: 64px; }
  .route::before { left: 50px; }
  .stop-time { left: -64px; width: 40px; font-size: .8rem; }
  .stop::before { left: -20px; width: 11px; height: 11px; }
  .stop.has-media .stop-card { grid-template-columns: 96px minmax(0, 1fr); }
  .stop-body { padding: 10px 12px 11px; }
  .food-grid { grid-template-columns: 1fr; }
}

/* ── 航空券（macros/flight.html・2026-10-21）: 行き先別の最安の表・月別の棒・月別の表 ── */
.fare-filters { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fare-filters .seg { margin-bottom: 12px; }
.fare-place { display: flex; flex-direction: column; gap: 1px; }
.fare-place small { color: var(--mute); font-size: .76rem; font-weight: 500; }
.fare-price { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.fare-price small { margin-left: 2px; font-size: .74rem; font-weight: 700; color: var(--mute); }
.fare-table .sub { display: block; margin-top: 2px; font-size: .76rem; color: var(--mute); white-space: nowrap; }
.fare-table .sub a { font-weight: 600; }
.fare-from a { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .03em; }
.fare-go { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--s-ink); color: #fff !important; font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.fare-go:hover { background: #9A3412; }
.mchart { margin: 0 0 18px; }
.mchart-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(30px, 1fr)); align-items: end; gap: 6px; height: 180px; margin: 0; padding: 0 0 2px; list-style: none; border-bottom: 1px solid var(--line); }
.mchart-bars li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.mchart-bars i { display: block; width: min(100%, 28px); height: calc(var(--h, 0) * 1% * .82); min-height: 3px; border-radius: 4px 4px 0 0; background: var(--g); }
.mchart-bars li.is-min i { background: var(--s-ink); }
.mchart-bars li:hover i { filter: brightness(1.15); }
.mchart-v { min-height: 1.3em; font-size: .74rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mchart-m { margin-top: 4px; font-size: .72rem; color: var(--mute); }
.mchart figcaption { margin-top: 8px; font-size: .78rem; color: var(--mute); }
.cmp.mheat tbody td.num { background: color-mix(in srgb, var(--brand) calc(var(--t, 0) * .28%), var(--card)); font-variant-numeric: tabular-nums; }
.mheat td.num small { margin-left: 1px; font-size: .7rem; color: var(--mute); }
.cmp.mheat tbody td.is-min { background: var(--s-soft); color: var(--s-ink); font-weight: 800; }
.mheat th small { display: block; font-size: .66rem; font-weight: 600; color: var(--mute); }
@media (max-width: 767px) {
  .mchart-bars { gap: 3px; height: 150px; }
  .mchart-m { font-size: .64rem; }
}

/* ふるさと納税のカード（partials/_furusato_cards.html）: カード全体はトラベルスケールのページ、楽天へは「楽天で見る」のボタンだけ */
.fu-cd .fu-page { color: inherit; text-decoration: none; }
.fu-cd .fu-page::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fu-cd:has(.fu-page):hover { border-color: var(--g); }
.fu-cd .fu-rk { position: relative; z-index: 2; align-self: flex-start; margin-top: auto; padding: .4rem .85rem; border-radius: 8px; background: #bf0000; color: #fff; font-weight: 700; font-size: .82rem; text-decoration: none; }
.fu-cd .fu-rk:hover { background: #a00000; color: #fff; }
