/* 朔から行く福井 ｜ 観光マップ
   色は「福井の風景」から取る。藍＝夜の庭と日本海の深み、琥珀＝恐竜の化石と灯り。
   ジャンル色は形（漢字1字）とセットで使い、色だけに頼らない。 */
:root {
  --ink: #16273a;
  --ink-soft: #3d4f61;
  --paper: #f5f7f6;
  --line: #d5dcd9;
  --amber: #d9a441;
  --c-shi: #7d4a35;   /* 柿渋 */
  --c-kei: #1f7186;   /* 日本海 */
  --c-ryu: #a87412;   /* 琥珀 */
  --c-taku: #5e4a8a;  /* 藍紫 */
  --c-machi: #4f7336; /* 苔 */
  --c-gohan: #a8345a; /* 紅梅 */
  --c-onsen: #bf5a2a; /* 湯の花の銅色 */
  --c-taiken: #3a60b4; /* 藍染 */
  --panel-w: 400px;
  --serif: "Shippori Mincho B1", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Yu Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); overflow: hidden; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

#map { position: fixed; inset: 0; background: #e8ecea; }
.leaflet-control-attribution { font-size: 10px; }
/* 地理院の淡色地図は等高線が濃いので、色を少し落としてピンを主役にする */
.leaflet-tile-pane { filter: saturate(.6) brightness(1.03); }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 2px 10px rgba(22,39,58,.2) !important; }
.leaflet-control-zoom a { color: var(--ink) !important; }

/* ---- 上部の見出し ---- */
.topbar {
  position: fixed; z-index: 500; top: max(12px, env(safe-area-inset-top)); left: 12px;
  display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 11px;
  background: var(--ink); color: #fff; border-radius: 999px; box-shadow: 0 3px 14px rgba(22,39,58,.35);
}
.topbar-title { font: 800 17px/1.2 var(--serif); letter-spacing: .06em; }
.basemap {
  position: fixed; z-index: 500; top: max(12px, env(safe-area-inset-top)); right: 60px;
  padding: 8px 13px; font-size: 13px; font-weight: 500; background: #fff; border: 0; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(22,39,58,.25);
}
.basemap[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---- パネル（スマホは下から、PCは左） ---- */
.panel {
  position: fixed; z-index: 600; left: 0; right: 0; bottom: 0; height: 232px;
  display: flex; flex-direction: column; background: var(--paper);
  border-radius: 18px 18px 0 0; box-shadow: 0 -6px 26px rgba(22,39,58,.22);
  transition: height .28s cubic-bezier(.3,.7,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.panel[data-state="half"] { height: 52vh; }
.panel[data-state="full"] { height: 86vh; }
.grip { flex: none; display: block; width: 100%; padding: 9px 0 5px; background: none; border: 0; }
.grip-bar { display: block; width: 44px; height: 5px; margin: 0 auto; background: var(--line); border-radius: 3px; }
.panel-body { flex: 1; overflow-y: auto; padding: 0 18px 24px; overscroll-behavior: contain; }

h2 { margin: 0; font: 600 15px/1.4 var(--serif); letter-spacing: .05em; }

/* 時間スライダー：この地図の中心になる操作 */
.time-label { display: block; font-size: 13px; color: var(--ink-soft); }
.time-label output { font: 800 24px/1 var(--serif); color: var(--ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
.time input[type="range"] { width: 100%; margin: 8px 0 0; accent-color: var(--ink); height: 28px; }
.time-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: -4px; }
.time-scale span:nth-child(2) { margin-left: 4%; }

.tiers { display: flex; margin-top: 12px; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.tiers button { flex: 1; padding: 8px 4px; font-size: 13px; font-weight: 500; background: transparent; border: 0; border-left: 1.5px solid var(--ink); }
.tiers button:first-child { border-left: 0; }
.tiers button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.chips { display: flex; gap: 7px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px;
  font-size: 13px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
}
.chip i {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font: 700 12px/1 var(--serif); font-style: normal; color: #fff; background: var(--cat);
}
.chip[aria-pressed="true"] { border-color: var(--cat); background: #fff; box-shadow: inset 0 0 0 1px var(--cat); font-weight: 700; }
.chip[aria-pressed="false"] { opacity: .55; }

.routes { margin-top: 20px; }
.route-list { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.route-list::-webkit-scrollbar { display: none; }
.route-btn { flex: none; width: 168px; padding: 10px 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.route-btn strong { display: block; font: 600 14px/1.4 var(--serif); }
.route-btn span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; }
.count { font-size: 12px; color: var(--ink-soft); }
.list { list-style: none; margin: 6px 0 0; padding: 0; }
.item {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%;
  padding: 11px 2px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
}
.item:hover { background: rgba(22,39,58,.04); }
.item .glyph { width: 36px; height: 36px; }
.item .name { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; }
.item .sub { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.item .min { font: 800 17px/1 var(--serif); font-variant-numeric: tabular-nums; text-align: right; }
.item .min small { display: block; margin-top: 3px; font: 400 11px var(--sans); color: var(--ink-soft); }
.empty { padding: 22px 0; font-size: 14px; color: var(--ink-soft); }

/* 漢字1字のしるし：丸＝三大・定番、四角＝地元 */
.glyph {
  display: grid; place-items: center; background: var(--cat); color: #fff; border-radius: 50%;
  font: 700 16px/1 var(--serif);
}
.glyph.is-must { background: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cat); }
.glyph.is-local { background: #fff; color: var(--cat); border: 2.5px solid var(--cat); border-radius: 9px; }

.legend { margin: 20px 0 0; font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); line-height: 1.7; }

/* ---- 詳細・ルート ---- */
.back { display: inline-block; margin: 2px 0 10px; padding: 6px 0; font-size: 13px; background: none; border: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.detail .kicker { font-size: 12px; color: var(--cat); font-weight: 700; }
.detail h2.name, .route-view h2 { margin-top: 2px; font: 800 24px/1.35 var(--serif); letter-spacing: .04em; }
.detail .meta { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.detail .summary, .route-view .note { margin: 14px 0 0; font-size: 15px; line-height: 1.85; max-width: 34em; }
.drive { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; padding: 12px 14px; background: #fff; border-left: 4px solid var(--cat, var(--ink)); }
.drive b { font: 800 28px/1 var(--serif); font-variant-numeric: tabular-nums; }
.drive span { font-size: 13px; color: var(--ink-soft); }
.actions { display: grid; gap: 8px; margin-top: 16px; }
.btn { display: block; padding: 13px 16px; text-align: center; font-size: 15px; font-weight: 700; text-decoration: none; border-radius: 12px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn.primary { background: var(--ink); color: #fff; }
.btn small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; opacity: .85; }

.steps { list-style: none; margin: 16px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.steps li > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px var(--serif); }
.steps small { font: 400 12px var(--sans); color: var(--ink-soft); }
.route-opts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; font-size: 13px; }
.route-opts select { font: inherit; padding: 4px 6px; margin-left: 4px; }
.tag-draft { display: inline-block; margin-left: 8px; padding: 1px 8px; font: 500 11px var(--sans); background: var(--amber); color: var(--ink); border-radius: 4px; vertical-align: 3px; letter-spacing: 0; }

/* ---- 地図上のピン ---- */
.leaflet-marker-icon.pin-wrap { background: none; border: 0; }
.pin { position: relative; width: 100%; height: 100%; }
/* ジャンル色：class に cat-○○ を付けた要素すべてで --cat が使える */
.cat-shi { --cat: var(--c-shi); } .cat-kei { --cat: var(--c-kei); } .cat-ryu { --cat: var(--c-ryu); }
.cat-taku { --cat: var(--c-taku); } .cat-machi { --cat: var(--c-machi); }
.cat-gohan { --cat: var(--c-gohan); } .cat-onsen { --cat: var(--c-onsen); } .cat-taiken { --cat: var(--c-taiken); }

.pin .body {
  display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #fff;
  background: var(--cat); color: #fff; border-radius: 50%; font: 700 15px/1 var(--serif);
  box-shadow: 0 2px 8px rgba(22,39,58,.4); transition: transform .15s;
}
.pin.is-must .body { background: var(--ink); border-width: 3px; font-size: 22px; box-shadow: 0 0 0 3px var(--cat), 0 3px 12px rgba(22,39,58,.5); }
.pin.is-local .body { background: #fff; color: var(--cat); border: 2.5px solid var(--cat); border-radius: 9px; font-size: 14px; }
.pin.is-saku .body { background: var(--ink); border-color: var(--amber); border-width: 3px; box-shadow: 0 0 0 5px rgba(217,164,65,.28), 0 3px 12px rgba(22,39,58,.5); }
.pin.is-saku img { width: 56%; height: 56%; }
.pin.is-sel .body { transform: scale(1.25); }
.pin.is-far { opacity: .32; filter: grayscale(.7); }
.pin.is-off { opacity: .18; filter: grayscale(1); pointer-events: none; }
.pin.is-step .body { background: var(--ink); color: #fff; border-color: var(--amber); border-radius: 50%; font-size: 15px; }

.pin .lb {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 5px; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.2;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff;
  display: none;
}
.pin .lb small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 11px; }
.pin.is-must .lb, .pin.is-saku .lb { display: block; font-size: 13px; }
/* 三大スポットと朔のラベルは丸の下に置き、近い丸どうしでも重なりにくくする */
.pin.is-must .lb, .pin.is-saku .lb { left: 50%; top: 100%; transform: translateX(-50%); margin: 4px 0 0; text-align: center; }
.pin.is-saku .lb small { display: none; }
.pin.lb-r .lb { left: 100%; top: 50%; transform: translateY(-50%); margin: 0 0 0 6px; text-align: left; }
.pin.lb-l .lb { left: auto; right: 100%; top: 50%; transform: translateY(-50%); margin: 0 6px 0 0; text-align: right; }
.z-mid .pin.is-major .lb, .z-high .pin.is-major .lb, .z-high .pin.is-local .lb, .pin.is-step .lb, .pin.is-sel .lb { display: block; }
.pin.is-saku .lb { color: var(--ink); }

@media (min-width: 900px) {
  .panel { left: 0; top: 0; bottom: 0; right: auto; width: var(--panel-w); height: auto !important; border-radius: 0; box-shadow: 4px 0 26px rgba(22,39,58,.18); padding-top: 70px; }
  .grip { display: none; }
  .panel-body { padding: 0 24px 28px; }
  .topbar { z-index: 700; left: 20px; top: 16px; }
  .basemap { right: 64px; }
  .leaflet-top.leaflet-left { left: var(--panel-w); }
}
@media (prefers-reduced-motion: reduce) {
  .panel, .pin .body { transition: none; }
}
.pin.lb-t .lb { left: 50%; top: auto; bottom: 100%; transform: translateX(-50%); margin: 0 0 4px; text-align: center; }

/* ---- 雨の日・室内の目印 ---- */
.rain-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 9px 14px;
  font-size: 14px; font-weight: 500; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
}
.rain-toggle .box { flex: none; width: 18px; height: 18px; border: 2px solid var(--ink-soft); border-radius: 5px; display: grid; place-items: center; font-size: 13px; line-height: 1; color: #fff; }
.rain-toggle small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.rain-toggle[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.rain-toggle[aria-pressed="true"] .box { background: var(--ink); border-color: var(--ink); }
.tag-rain { display: inline-block; margin-left: 6px; padding: 0 7px; font: 500 11px/1.7 var(--sans); color: var(--c-taiken); border: 1px solid var(--c-taiken); border-radius: 4px; vertical-align: 2px; letter-spacing: 0; }
.route-btn .tag-rain { margin: 0 0 4px; display: table; }
.indoor-line { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.indoor-line b { color: var(--c-taiken); }
.also { margin-left: 6px; font-size: 12px; color: var(--ink-soft); }

/* ---- 結果画面の見出し：入口で選んだテーマと時間を、そのまま続けて見せる ---- */
.result { padding-top: 2px; }
.result-road { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.result-road img { box-sizing: content-box; width: 14px; height: 14px; padding: 5px; background: var(--ink); border: 2.5px solid var(--amber); border-radius: 50%; }
.result-road .rule { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--amber), rgba(217, 164, 65, 0)); }
.result h2#list-h { font: 800 27px/1.3 var(--serif); letter-spacing: .05em; outline: none; }
.result-meta { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.result-meta #count { font-weight: 700; color: var(--ink); }
.result-meta output { font-weight: 500; }
.time { margin-top: 14px; }
.time input[type="range"] { accent-color: #c28a1f; }
.time-scale span:nth-child(2) { margin-left: 4%; }
.list { margin-top: 8px; }

details.more { margin-top: 18px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
details.more > summary { cursor: pointer; list-style: none; padding: 12px 14px; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "＋"; font-weight: 400; }
details.more[open] > summary::after { content: "－"; }
details.more > .tiers, details.more > .chips, details.more > .rain-toggle { margin: 0 14px 14px; width: calc(100% - 28px); }
details.more > .chips { margin-top: 0; }
.routes { margin-top: 24px; }
.routes-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
#routes-h { outline: none; }
.route-total { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.steps li small { text-align: right; }

/* ---- ジャンルの絵（ピクトグラム） ---- */
.pic { display: block; width: 64%; height: 64%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chip i .pic { width: 15px; height: 15px; }
.pin.is-must .body .pic { width: 58%; height: 58%; }
/* ---- 時間の範囲の円 ---- */
.ring-label { background: none; border: 0; }
.ring-label span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); padding: 3px 10px; white-space: nowrap; font: 700 12px/1.4 var(--sans); color: #fff; background: #b9841d; border-radius: 999px; box-shadow: 0 2px 8px rgba(22, 39, 58, .3); }

/* 食事のタイプ（食事を選んだときだけ）。ジャンルの下に紅梅色の丸いボタン */
.styles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 10px 12px; background: #fbf1f4; border-radius: 10px; }
.styles[hidden] { display: none; }
.styles-h { width: 100%; font-size: 12px; font-weight: 700; color: var(--c-gohan); }
.styles button { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--ink); background: #fff; border: 1.5px solid var(--c-gohan); border-radius: 999px; }
.styles button[aria-pressed="true"] { color: #fff; background: var(--c-gohan); }
.styles button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.route-btn .tag-kind { display: table; margin: 0 0 4px; padding: 0 7px; font: 700 11px/1.7 var(--sans); color: var(--ink); background: #f3e3bf; border-radius: 4px; }

/* ---- 絞り込み（2026-10-25）：ボタンから開くチェック欄。いくつでも選べる ---- */
.filters { margin-top: 16px; }
.fbar { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 32px 8px 14px; font: 700 14px/1.2 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; max-width: 100%; }
.fchip::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.fchip[aria-expanded="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fchip[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.fchip.is-on { color: #fff; background: var(--ink); border-color: var(--ink); }
.fchip.is-toggle { padding-right: 14px; }
.fchip.is-toggle::after { display: none; }
.fchip.is-toggle[aria-pressed="true"] { color: #fff; background: var(--c-taiken); border-color: var(--c-taiken); }
.fchip:focus-visible, .fopt input:focus-visible + i, .fpop button:focus-visible, .factive button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.fpop { margin-top: 10px; padding: 14px 14px 12px; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 12px 28px rgba(22, 39, 58, .14); }
.fpop[hidden] { display: none; }
.fpop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.fpop-head strong { font: 700 16px var(--serif); }
.fpop-head small { font-size: 12px; color: var(--ink-soft); }
.fopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.fopt { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.fopt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.fopt i { display: grid; place-items: center; width: 22px; height: 22px; color: var(--cat, var(--ink)); flex: none; }
.fopt i .pic { width: 18px; height: 18px; }
.fopt .fopt-l { flex: 1; line-height: 1.35; }
.fopt .fopt-n { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.fopt.is-on { border-color: var(--ink); background: #f3f6f5; font-weight: 700; }
.fopt.is-zero { opacity: .45; }
.fpop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.fpop-reset { padding: 8px 4px; font: 700 14px var(--sans); color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.fpop-done { padding: 10px 18px; font: 700 14px var(--sans); color: #fff; background: var(--ink); border: 0; border-radius: 10px; }
.factive { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.factive[hidden] { display: none; }
.factive button { padding: 2px 0; font: 700 12.5px var(--sans); color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 10px 0 0; font-size: 14px; }
.price-line span { font-size: 12px; color: var(--ink-soft); }
.price-line small { width: 100%; font-size: 11.5px; color: var(--ink-soft); }
@media (max-width: 420px) { .fopts { grid-template-columns: 1fr 1fr; } .fchip { font-size: 13px; } }
.sort { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.sort[hidden] { display: none; }
.sort span { margin-right: 2px; }
.sort button { padding: 6px 12px; font: 700 13px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; }
.sort button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.sort button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* しおり（保存）・全体ボタン（2026-10-25） */
.save-btn { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 7px 14px 7px 12px; font: 700 13px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--amber); border-radius: 999px; }
.save-btn::before { content: ""; width: 10px; height: 14px; background: var(--amber); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.save-btn[aria-pressed="true"] { background: #fbf1d9; }
.save-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.fchip.is-saved[aria-pressed="true"] { color: var(--ink); background: #f3d690; border-color: var(--amber); }
.fchip[hidden] { display: none; }
.saved-mark { display: inline-block; margin-left: 6px; padding: 0 6px; font: 700 10.5px/1.7 var(--sans); color: #7a5410; background: #fbf1d9; border-radius: 4px; vertical-align: 2px; }
.pin.is-saved .body { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--amber); }
.map-home { margin-top: 4px; padding: 6px 9px; font: 700 12px var(--sans); color: var(--ink); background: #fff; border: 2px solid rgba(0,0,0,.2); border-radius: 4px; cursor: pointer; }
.map-home:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ピンのまとめ（数字の丸） */
.cluster { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; font: 800 15px var(--sans); background: var(--ink); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), 0 6px 14px rgba(22, 39, 58, .35); cursor: pointer; }
.marker-cluster-anim .leaflet-marker-icon, .marker-cluster-anim .leaflet-marker-shadow { transition: transform .3s ease-out, opacity .3s ease-in; }
@media (prefers-reduced-motion: reduce) { .marker-cluster-anim .leaflet-marker-icon { transition: none; } }

.sort { flex-wrap: wrap; }
.sort button[hidden] { display: none; }
.sort-note { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.sort-note[hidden] { display: none; }

.steps .step-name { padding: 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; cursor: pointer; }
.steps .step-name:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

/* 読みやすさ（2026-10-25 審査） */
.list .sub { font-size: 13px; }
.fpop-head small, .factive, .sort { font-size: 13px; }
.fopt .fopt-n { font-size: 12.5px; }
.price-line small a { color: inherit; }
.detail .facts { margin: 12px 0 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }

.call-first { margin: 10px 0 0; padding: 8px 12px; font-size: 13px; line-height: 1.7; color: #6b4a0e; background: #fbf1d9; border-radius: 8px; }

/* まとめの印（2026-10-25 改）：数字だけの丸は意味が分かりにくいので、ピンが重なった束に「○か所」と付ける */
.cluster { position: relative; display: block; width: 44px; height: 36px; color: var(--ink); font: 800 12px var(--sans); background: none; border: 0; border-radius: 0; box-shadow: none; }
.cluster .cl-stack, .cluster .cl-stack::before, .cluster .cl-stack::after { position: absolute; width: 22px; height: 22px; background: #fff; border: 2px solid #8a96a3; border-radius: 6px; box-shadow: 0 2px 4px rgba(22, 39, 58, .25); content: ""; }
.cluster .cl-stack { left: 4px; top: 4px; }
.cluster .cl-stack::before { left: 5px; top: -5px; }
.cluster .cl-stack::after { left: 10px; top: -10px; }
.cluster .cl-n { position: absolute; right: -2px; bottom: 0; min-width: 22px; padding: 1px 6px; text-align: center; color: #fff; background: #5d6b78; border: 2px solid #fff; border-radius: 999px; line-height: 1.5; }
.cluster .cl-n::after { content: "か所"; font-size: 9.5px; font-weight: 700; margin-left: 1px; }

/* 飲食店の見せ方（2026-10-25） */
.list .grp { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 2px; padding: 4px 2px; font: 700 14px var(--serif); color: var(--c-gohan); border-bottom: 2px solid #f0d9e1; }
.list .grp small { font: 500 12px var(--sans); color: var(--ink-soft); }
.list .catch { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.price-top { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
.price-top b { font-size: 15px; color: var(--ink); }
.catch-top { margin: 8px 0 0; font: 700 15px/1.6 var(--sans); color: var(--ink); }
.sort button[hidden] { display: none; }
.price-src { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft); }
.price-src a { color: inherit; }
.routes-empty { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }

/* 福井駅・福井IC（旅の出発・到着） */
.pin.is-gate .body { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; font: 700 12px/1 var(--sans, sans-serif); display: grid; place-items: center; }
.pin.is-gate .lb { display: block; }

/* 完全予約制などの予約の要否 */
.reserve-top { margin: 8px 0 0; padding: 6px 10px; font-size: 13px; line-height: 1.6; color: #fff; background: var(--ink); border-radius: 8px; }
.reserve-top b { margin-right: .6em; color: #f2c66d; }

/* 体験の目安（所要時間・料金・予約） */
.exp-box { margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid #5e4a8a; background: rgba(94, 74, 138, .07); border-radius: 0 8px 8px 0; }
.exp-box b { display: block; font-size: 13px; color: #5e4a8a; }
.exp-box p { margin: 4px 0; font-size: 14px; line-height: 1.7; }
.exp-box small { font-size: 11px; color: var(--ink-soft, #5a6672); }

/* 滞在時間の目安（2026-11-01） */
.stay-chip { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: rgba(22, 39, 58, .07); white-space: nowrap; }
.stay-box { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; padding: 10px 14px; background: #fff; border-left: 4px solid var(--cat, var(--ink)); }
.stay-box b { font: 800 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
.stay-box span { font-size: 13px; color: var(--ink-soft); }
.stay-note { margin: 6px 0 0; font-size: 13px; line-height: 1.7; }
.stay-note span { display: block; }
.stay-note small { display: block; font-size: 11px; color: var(--ink-soft); }

/* 言語の切り替え「LANGUAGE ▾」（2026-11-01。朔のサイト・アクティビティマップと同じ形） */
html.is-lang-wait body { visibility: hidden; }
.lang-nav { position: relative; flex: none; }
.lang-nav[hidden] { display: none; }
.lang-toggle { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border: 0; background: none; color: inherit; font: 500 11px/1 "Cormorant Garamond", "Times New Roman", serif; letter-spacing: .22em; cursor: pointer; }
.lang-caret { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
.lang-nav.is-open .lang-caret { transform: translateY(2px) rotate(225deg); }
.lang-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1200; display: flex; flex-direction: column; min-width: 160px; padding: 6px 0; border: 1px solid #d9d6ca; background: rgba(246, 242, 234, .97); box-shadow: 0 18px 44px rgba(23, 20, 16, .16); border-radius: 6px; }
.lang-list[hidden] { display: none; }
.lang-list a { display: block; padding: 10px 16px; border-left: 2px solid transparent; color: #4a5560; font-size: 13px; letter-spacing: .06em; white-space: nowrap; text-decoration: none; }
.lang-list a:hover, .lang-list a:focus-visible { background: rgba(22, 39, 58, .06); color: #16273a; outline: none; }
.lang-list a[aria-current="page"] { border-left-color: #a8842c; color: #a8842c; font-weight: 700; }
.lang-nav.is-light { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.lang-nav.is-light .lang-list { left: 0; right: auto; text-shadow: none; }
.map-lang { position: fixed; z-index: 500; top: max(12px, env(safe-area-inset-top)); right: 156px; padding: 0 10px; background: #fff; border-radius: 999px; box-shadow: 0 2px 10px rgba(22, 39, 58, .25); color: #16273a; }
@media (max-width: 520px) { .map-lang { top: calc(max(12px, env(safe-area-inset-top)) + 44px); right: 60px; } }
/* 言語ごとの「○か所」（まとめの印）。日本語以外は短い言葉に */
html:lang(en) .cluster .cl-n::after { content: ""; }
html:lang(zh-Hans) .cluster .cl-n::after { content: "处"; }
html:lang(zh-Hant) .cluster .cl-n::after { content: "處"; }
html:lang(ko) .cluster .cl-n::after { content: "곳"; }
/* 小さい画面では、ページ内のナビの「LANGUAGE」は出さない（入口の左上にある） */
/* スマホでは上のメニューの LANGUAGE を地球の印だけにする（正面の LANGUAGE をなくしたので、ここで選べるように） */
@media (max-width: 640px) {
  #intro .snav .lang-toggle { font-size: 0; gap: 2px; padding: 8px 2px; letter-spacing: 0; }
  #intro .snav .lang-toggle::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; }
}
.name-ja { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.price-src span { display: block; }
/* スマホでは一覧の小さな字（場所の種類・値段・ひとこと）を少し大きく（2026-11-01） */
@media (max-width: 520px) {
  .item .sub, .price-line span, .item .min small, .route-btn span { font-size: 13px; }
}
