/* アクティビティマップ（トップ画面）。笏谷石の青緑灰を地に、ルートの線だけを鮮やかに見せる。 */
.journey-page {
  --stone:#4e6964; --stone-deep:#2c3d3a; --stone-pale:#e6ebe8; --paper:#f8faf8;
  --ink:#1c2523; --muted:#56645f; --rule:#d3dcd8; --signal:#e0a526; --caution:#fff3d6; --caution-ink:#5b4410;
  margin:0; height:100%; background:var(--paper); color:var(--ink);
  font-family:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif; font-size:15px; line-height:1.6;
}
html:has(.journey-page) { height:100%; }
.journey-page :focus-visible { outline:3px solid var(--signal); outline-offset:2px; }
.journey-page button { font:inherit; color:inherit; cursor:pointer; }
.journey-page [hidden] { display:none !important; }

.atlas { display:grid; grid-template-columns:400px minmax(0,1fr); height:100vh; height:100dvh; }
.atlas-rail { display:flex; flex-direction:column; min-height:0; background:var(--paper); border-right:1px solid var(--rule); z-index:2; }

/* 見出しと拠点 */
.atlas-top { padding:18px 22px 14px; background:var(--stone-deep); color:#fff; }
.atlas-brand { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.atlas-brand h1 { margin:0; font-size:18px; font-weight:900; letter-spacing:.01em; line-height:1.4; white-space:nowrap; }
.atlas-brand h1 span { display:block; font-size:12px; font-weight:500; opacity:.78; letter-spacing:.02em; }
.atlas-brand nav a { display:inline-block; color:#fff; text-decoration:none; font-size:13px; font-weight:700; border:1px solid #ffffff55; border-radius:999px; padding:4px 12px; white-space:nowrap; }
.atlas-brand nav a:hover { background:#ffffff1f; }
.atlas-stay { display:flex; align-items:center; gap:9px; margin:12px 0 0; font-size:13px; background:#ffffff14; border-radius:8px; padding:8px 10px; }
.atlas-stay b { font-weight:700; }
.atlas-stay-dot { flex:none; width:10px; height:10px; border-radius:50%; background:var(--signal); box-shadow:0 0 0 3px #e0a52640; }
.atlas-handle { display:none; }

/* 種類の絞り込み：色は小さな印だけ */
.atlas-filters { display:flex; gap:6px; overflow-x:auto; padding:12px 22px; border-bottom:1px solid var(--rule); scrollbar-width:none; }
.atlas-filters::-webkit-scrollbar { display:none; }
.atlas-ask { display:none; }
.atlas-chip { flex:none; display:inline-flex; align-items:center; gap:7px; min-height:36px; border:1px solid var(--rule); background:#fff; border-radius:999px; padding:5px 14px; font-size:13.5px; font-weight:500; }
.atlas-chip i { width:9px; height:9px; border-radius:50%; background:var(--k); }
.atlas-chip[data-category="ALL"] i { display:none; }
.atlas-chip small { font-size:11px; color:var(--muted); }
.atlas-chip:hover { border-color:var(--stone); }
.atlas-chip[aria-pressed="true"] { background:var(--stone-deep); border-color:var(--stone-deep); color:#fff; }
.atlas-chip[aria-pressed="true"] small { color:#ffffffbb; }
.atlas-chip.is-soon:not([aria-pressed="true"]) { color:var(--muted); background:transparent; border-style:dashed; }

/* 一覧：1コース＝1枚のカード */
.atlas-scroll,.atlas-detail { flex:1; overflow:auto; padding:14px 22px 28px; }
.atlas-detail { display:none; }
.atlas.is-detail .atlas-detail { display:block; }
.atlas.is-detail .atlas-scroll { display:none; }
.atlas-rows { list-style:none; margin:0 0 14px; padding:0; display:flex; flex-direction:column; gap:8px; }
.atlas-row { display:grid; grid-template-columns:60px minmax(0,1fr); gap:12px; align-items:center; width:100%; padding:10px 12px; border:1px solid var(--rule); border-radius:12px; background:#fff; text-align:left; }
.atlas-row:hover { border-color:var(--stone); }
.atlas-row[aria-current="true"] { border-color:var(--k); box-shadow:inset 4px 0 0 var(--k); }
.atlas-shape { width:60px; height:46px; display:grid; place-items:center; background:var(--paper); border-radius:8px; }
.atlas-shape svg { width:56px; height:40px; }
.atlas-row-body { min-width:0; }
.atlas-kind { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.atlas-kind i { width:8px; height:8px; border-radius:50%; background:var(--k); }
.atlas-kind em { font-style:normal; font-size:10.5px; background:var(--caution); color:var(--caution-ink); border-radius:4px; padding:0 5px; }
.atlas-row-body strong { display:block; font-size:15px; font-weight:700; line-height:1.4; }
.atlas-meta { display:flex; flex-wrap:wrap; gap:2px 10px; font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.atlas-meta span:first-child { color:var(--ink); font-weight:700; }
.atlas-more { display:none; }
.atlas-empty { border:1.5px dashed var(--rule); border-radius:10px; padding:16px; font-size:13.5px; background:#fff; }
.atlas-empty p { margin:4px 0 10px; color:var(--muted); }
.atlas-empty button,.atlas-back { border:0; background:none; padding:0; color:var(--stone); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.atlas-safety { margin-top:4px; padding-top:14px; border-top:1px solid var(--rule); }
.atlas-safety h2 { font-size:13px; color:var(--muted); margin:0 0 4px; }
.atlas-safety p { margin:0; font-size:12.5px; line-height:1.75; color:var(--muted); }

/* 詳細 */
.atlas-back { margin-bottom:12px; text-decoration:none; }
.atlas-back::before { content:"‹ "; }
.atlas-detail-kind { margin:0; font-size:13px; font-weight:700; color:var(--stone); }
.atlas-detail h2 { margin:2px 0 6px; font-size:23px; font-weight:900; line-height:1.35; }
.atlas-detail h2:focus { outline:none; }
.atlas-detail-intro { margin:0; font-size:14px; line-height:1.8; }
.atlas-facts { display:grid; grid-template-columns:repeat(3,1fr); margin:16px 0 12px; border:1px solid var(--rule); border-radius:10px; overflow:hidden; }
.atlas-facts div { padding:9px 12px; border-left:1px solid var(--rule); }
.atlas-facts div:first-child { border-left:0; }
.atlas-facts dt { font-size:11.5px; color:var(--muted); }
.atlas-facts dd { margin:0; font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; }
.atlas-caution { margin:0; font-size:12.5px; line-height:1.7; background:var(--caution); color:var(--caution-ink); border-radius:8px; padding:9px 11px; }
.atlas-caution.is-ok { background:#e2f0e6; color:#24533a; }
.atlas-detail h3 { margin:18px 0 6px; font-size:13px; color:var(--muted); }
.atlas-spots { list-style:none; margin:0; padding:0; font-size:14px; }
.atlas-spots li { padding:7px 0; border-bottom:1px solid var(--rule); }
.atlas-spots a { color:var(--stone-deep); text-underline-offset:3px; }
.atlas-muted { margin:0; font-size:13px; color:var(--muted); }
.atlas-actions { display:flex; gap:8px; margin-top:18px; }
.atlas-btn { flex:1; display:inline-flex; justify-content:center; align-items:center; min-height:44px; border-radius:8px; border:1px solid var(--stone-deep); background:#fff; color:var(--stone-deep); font-weight:700; text-decoration:none; padding:8px 10px; text-align:center; }
.atlas-btn.is-primary { background:var(--stone-deep); color:#fff; }
.atlas-btn:hover { filter:brightness(1.1); }

.atlas-highlights { list-style:none; margin:0; padding:0; }
.atlas-highlights li { padding:8px 0; border-bottom:1px solid var(--rule); }
.atlas-highlights button,.atlas-highlights strong { border:0; background:none; padding:0; font-size:14.5px; font-weight:700; color:var(--stone-deep); text-align:left; }
.atlas-highlights button { text-decoration:underline; text-decoration-color:var(--rule); text-underline-offset:4px; }
.atlas-highlights button:hover { text-decoration-color:var(--stone); }
.atlas-highlights p { margin:2px 0 0; font-size:12.5px; line-height:1.7; color:var(--muted); }
.atlas-source { margin:8px 0 0; font-size:11.5px; line-height:1.7; color:var(--muted); }
.atlas-source a { color:var(--stone-deep); }
.atlas-sight-pin { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:#fff; border:2px solid var(--stone); box-shadow:0 1px 3px #0004; font-size:11px; font-weight:900; color:var(--stone-deep); }
.atlas-start-pin { width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:#fff; border:2.5px solid var(--ink); box-shadow:0 1px 3px #0004; font-size:11px; font-weight:900; color:var(--ink); }
.atlas-num { display:inline-grid; place-items:center; width:20px; height:20px; margin-right:8px; border-radius:50%; border:2px solid var(--stone); font-size:11px; font-weight:900; text-decoration:none; vertical-align:1px; }

.atlas-profile { position:relative; margin:0; }
.atlas-profile svg { display:block; width:100%; height:auto; touch-action:pan-y; }
.atlas-profile-grid line { stroke:#e1e7e4; stroke-width:1; }
.atlas-profile-grid text { font-size:9px; fill:var(--muted); font-family:inherit; }
.atlas-profile-area { fill:#4e6964; opacity:.14; }
.atlas-profile-line polyline { fill:none; stroke:#2c3d3a; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.atlas-profile-line polyline.is-fill { stroke:#8a9a95; stroke-dasharray:4 3; }
.atlas-profile-cursor { stroke:var(--ink); stroke-width:1; opacity:.5; }
.atlas-profile-dot { fill:#2c3d3a; stroke:#fff; stroke-width:2; }
.atlas-profile-tip { position:absolute; top:-6px; transform:translateX(-50%); margin:0; padding:3px 8px; border-radius:6px; background:var(--ink); color:#fff; font-size:11.5px; white-space:nowrap; pointer-events:none; opacity:0; }
.atlas-profile-tip.is-on { opacity:1; }

.atlas-shop-pin { display:grid; place-items:center; width:20px; height:20px; border-radius:5px; background:#fff; border:1.5px solid #8a6d4b; font-size:10px; font-weight:900; color:#6d5335; }

.atlas-walk-note { display:flex; align-items:center; gap:10px; margin:0 0 14px; font-size:12.5px; color:var(--muted); }
.atlas-walk-key { flex:none; width:30px; height:0; border-top:3px dotted #a94327; }

/* 地図 */
.atlas-map { position:relative; min-width:0; }
.atlas-map #map { position:absolute; inset:0; background:#dfe5e1; }
.atlas-map .leaflet-tile-pane { filter:saturate(.25) brightness(1.05) contrast(.94); }
.atlas-map .leaflet-control-attribution { background:#ffffffe6; }
.atlas-map-tools { position:absolute; left:14px; top:14px; z-index:500; display:flex; gap:8px; flex-wrap:wrap; }
.atlas-map-tools button { min-height:40px; border:0; border-radius:999px; background:#fff; padding:8px 15px; font-size:13px; font-weight:700; color:var(--stone-deep); box-shadow:0 1px 4px #0003; }
.atlas-map-tools button[aria-pressed="true"] { background:var(--stone-deep); color:#fff; }
.atlas-map-tools #locate-me[aria-pressed="true"] { background:#176f9e; }
.atlas-location-status { position:absolute; left:14px; top:62px; z-index:500; max-width:min(360px,calc(100% - 28px)); margin:0; font-size:12px; background:#ffffffe6; border-radius:8px; padding:5px 10px; color:var(--muted); }
.atlas-location-status:empty { display:none; }
.atlas-stay-pin { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:var(--signal); border:3px solid #fff; box-shadow:0 1px 4px #0005; font-size:13px; font-weight:900; color:var(--ink); }

/* スマホ：地図を全面に。最初は種類の大きなボタン、選ぶと横にめくるカード */
@media (max-width:760px) {
  .atlas { display:block; position:relative; height:100vh; height:100dvh; overflow:hidden; }
  .atlas-map { position:absolute; inset:0; }
  .atlas-top { position:fixed; top:0; left:0; right:0; z-index:700; padding:10px 14px 20px; background:linear-gradient(var(--stone-deep),var(--stone-deep) 72%,#2c3d3a00); }
  .atlas-brand h1 { font-size:16px; }
  .atlas-brand h1 span { display:none; }
  .atlas-stay { display:none; }
  .atlas-rail { position:absolute; left:0; right:0; bottom:0; z-index:600; border:0; background:transparent; pointer-events:none; padding-bottom:env(safe-area-inset-bottom); }
  .atlas-rail > * { pointer-events:auto; }
  .atlas-filters { padding:0 12px 8px; border:0; }
  .atlas-chip { box-shadow:0 1px 4px #0003; border-color:transparent; min-height:34px; }
  .atlas-scroll { flex:none; overflow:visible; padding:0; }
  .atlas.is-detail .atlas-scroll { display:block; }
  .atlas-rows { flex-direction:row; gap:10px; margin:0; padding:0 12px 10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
  .atlas-rows::-webkit-scrollbar { display:none; }
  .atlas-rows li { flex:0 0 84%; scroll-snap-align:center; }
  .atlas-row { min-height:92px; border-color:transparent; box-shadow:0 2px 10px #0003; }
  .atlas-row[aria-current="true"] { border-color:var(--k); }
  .atlas-empty { margin:0 12px 10px; box-shadow:0 2px 10px #0003; border-style:solid; }
  .journey-page .atlas-more { display:block; width:calc(100% - 24px); margin:0 12px 12px; min-height:44px; border:0; border-radius:10px; background:var(--stone-deep); color:#fff; font-weight:700; box-shadow:0 2px 10px #0003; }
  .journey-page .atlas-more[hidden] { display:none; }
  .atlas-safety { display:none; }
  /* くわしく：地図に重ねるシート */
  .atlas.is-detail .atlas-detail { display:none; }
  .atlas.is-sheet .atlas-detail { display:block; position:fixed; left:0; right:0; bottom:0; top:18%; z-index:800; flex:none; overflow:auto; padding:16px 16px calc(28px + env(safe-area-inset-bottom)); background:var(--paper); border-radius:16px 16px 0 0; box-shadow:0 -6px 24px #0004; }
  .atlas-detail h2 { font-size:20px; }
  /* 入口：種類の大きなボタン */
  .atlas[data-entry="kinds"] .atlas-filters { flex-wrap:wrap; overflow:visible; gap:10px; padding:16px 14px 18px; background:var(--paper); border-radius:16px 16px 0 0; box-shadow:0 -4px 18px #0003; }
  .atlas[data-entry="kinds"] .atlas-ask { display:block; flex:1 1 100%; margin:0; font-size:15px; font-weight:700; }
  .atlas[data-entry="kinds"] .atlas-scroll { display:none; }
  .atlas-chip.is-big { flex:1 1 calc(50% - 5px); flex-direction:column; align-items:flex-start; gap:2px; min-height:74px; padding:12px 14px; border:1px solid var(--rule); border-radius:14px; font-size:16px; font-weight:700; box-shadow:inset 0 -4px 0 var(--k); }
  .atlas-chip.is-big i { display:none; }
  .atlas-chip.is-big small { font-size:12px; font-weight:400; color:var(--muted); }
  .atlas-map .leaflet-top { top:52px; }
  .atlas-map { z-index:0; }
  /* 下はカードで隠れるので、出典は右上（拡大ボタンの下）に置く */
  .atlas-map .leaflet-control-attribution { font-size:9px; max-width:70vw; margin:0; }
  .atlas-map-tools { left:10px; right:60px; top:58px; bottom:auto; flex-wrap:wrap; gap:6px; }
  .atlas-map-tools button { min-height:34px; padding:5px 11px; font-size:12px; }
  .atlas-location-status { top:98px; bottom:auto; left:10px; max-width:calc(100% - 70px); }
}
@media (prefers-reduced-motion:reduce) { .atlas-rail { transition:none; } }

/* 旅程ページの色合わせ */
.visit-page .site-header { color:#fff; background:#2c3d3a; border-bottom:0; }
.visit-page .brand { color:#fff; }
.visit-page .activity-name { color:#ffffffcc; }
.visit-page .route-card { background:rgba(248,250,248,.97); border-top-color:#2c3d3a; }
.visit-page .leaflet-tile-pane { filter:saturate(.4) brightness(1.03) contrast(.97); }
.visit-page .eyebrow { color:#4e6964; }

/* 個別ルートページ（トップと同じ笏谷石の配色。PCは左に説明・右に地図、スマホは地図の下に説明） */
body[data-activity] {
  --stone:#4e6964; --stone-deep:#2c3d3a; --stone-pale:#e6ebe8; --paper:#f8faf8; --ink:#1c2523; --muted:#56645f; --rule:#d3dcd8; --signal:#e0a526;
  background:var(--paper); color:var(--ink);
  font-family:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;
}
body[data-activity] :focus-visible { outline:3px solid var(--signal); outline-offset:2px; }
body[data-activity] .page-shell { grid-template-rows:60px minmax(0,1fr); background:var(--paper); }
body[data-activity] .site-header { min-height:60px; padding:0 22px; background:var(--stone-deep); color:#fff; letter-spacing:.02em; }
body[data-activity] .brand { font-family:inherit; font-size:16px; font-weight:900; letter-spacing:.02em; color:#fff; }
body[data-activity] .brand::before { content:"‹"; margin-right:8px; font-weight:400; opacity:.8; }
body[data-activity] .activity-name { font-family:inherit; font-size:14px; color:#ffffffcc; }
body[data-activity] .activity-name small { font-family:inherit; letter-spacing:.08em; }
body[data-activity] .map-stage { min-height:calc(100svh - 60px); }
body[data-activity] #map { left:400px; }
body[data-activity] #map::after { display:none; }
body[data-activity] .leaflet-tile-pane { filter:saturate(.4) brightness(1.03) contrast(.97); }
body[data-activity] .route-card { top:0; left:0; bottom:0; width:400px; max-height:none; padding:24px 24px 32px; background:var(--paper); border-top:0; border-right:1px solid var(--rule); box-shadow:none; backdrop-filter:none; }
body[data-activity] .eyebrow { margin:0 0 6px; color:var(--stone); font-size:13px; font-weight:700; letter-spacing:.04em; }
body[data-activity] h1 { font-family:inherit; font-size:24px; font-weight:900; line-height:1.4; letter-spacing:.02em; }
body[data-activity] .intro { margin:10px 0 16px; font-family:inherit; font-size:14px; line-height:1.85; }
body[data-activity] .route-facts { grid-template-columns:repeat(auto-fit,minmax(78px,1fr)); border:1px solid var(--rule); border-radius:10px; padding:0; overflow:hidden; }
body[data-activity] .route-facts div { padding:9px 12px; }
body[data-activity] .route-facts div + div { padding-left:12px; border-left:1px solid var(--rule); }
body[data-activity] .route-facts dt { margin-bottom:2px; color:var(--muted); font-size:11.5px; letter-spacing:0; }
body[data-activity] .route-facts dd { font-family:inherit; font-size:15px; font-weight:700; white-space:normal; font-variant-numeric:tabular-nums; }
body[data-activity] .route-facts dd span { font-family:inherit; }
body[data-activity] .route-actions { margin-top:16px; gap:8px; }
body[data-activity] .route-actions button { min-height:44px; border-radius:8px; border-color:var(--stone-deep); background:var(--stone-deep); font-weight:700; }
body[data-activity] .route-actions button:hover { background:var(--stone); border-color:var(--stone); }
body[data-activity] .route-actions .secondary { background:#fff; color:var(--stone-deep); }
body[data-activity] .route-actions .secondary:hover { color:#fff; }
body[data-activity] .stop-list li::before { color:var(--stone); }
body[data-activity] .google-link,body[data-activity] .map-index-link { color:var(--stone-deep); }
body[data-activity] .location-button { border-radius:8px; background:#176f9e; }
body[data-activity] .status-note { border-top:0; padding:9px 11px; border-radius:8px; background:#fff3d6; color:#5b4410; font-size:12.5px; }
body[data-activity] .map-note { border-radius:8px; }
@media (max-width:760px) {
  body[data-activity] .page-shell { display:block; }
  body[data-activity] .site-header { position:sticky; top:0; padding:0 14px; }
  body[data-activity] .brand { font-size:15px; white-space:nowrap; }
  body[data-activity] .activity-name { display:none; }
  body[data-activity] .map-stage { display:flex; flex-direction:column; min-height:0; overflow:visible; }
  body[data-activity] #map { position:relative; left:0; height:56svh; min-height:320px; }
  body[data-activity] .route-card { position:static; width:auto; border-right:0; padding:18px 16px 28px; }
  body[data-activity] .map-note { display:none; }
}

/* 往復区間の向きの矢印（北向きの三角形を進む向きへ回す） */
.route-arrow { display:block; width:0; height:0; margin:0 auto; border-left:6px solid transparent; border-right:6px solid transparent; border-bottom:12px solid #3a2a22; filter:drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
/* 公式アプリの案内 */
.atlas-app,body[data-activity] .guide-app { margin-top:14px; padding:10px 12px; border:1px solid #d3dcd8; border-radius:8px; background:#fff; font-size:12.5px; line-height:1.7; }
.atlas-app strong,body[data-activity] .guide-app strong { display:block; font-size:13px; color:#2c3d3a; }
.atlas-app p,body[data-activity] .guide-app p { margin:2px 0 4px; color:#56645f; }
.atlas-app a,body[data-activity] .guide-app a { color:#2c3d3a; font-weight:700; text-underline-offset:3px; }

/* 見どころの名前（拡大したときだけ）と写真、行き・帰りの矢印 */
.atlas-sight-label { background:#ffffffe8; border:0; border-radius:4px; box-shadow:0 1px 3px #0003; padding:1px 6px; font:700 11.5px/1.5 "Zen Kaku Gothic New",sans-serif; color:#1c2523; }
.atlas-sight-label::before { display:none; }
#map.is-far .atlas-sight-label { display:none; }
.atlas-sight-photo { display:block; width:100%; max-height:150px; object-fit:cover; border-radius:6px; margin-bottom:6px; }
.route-way { display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.route-way svg { width:26px; height:26px; fill:#1c2523; stroke:#fff; stroke-width:1.6; paint-order:stroke; filter:drop-shadow(0 1px 1.5px #0005); }
.route-way b { background:#1c2523; color:#fff; border-radius:4px; padding:0 5px; font-size:11px; line-height:1.6; }

/* ===== 仕上げ（2026-10-04）：文字・余白・動きを整える。情報は増やさない ===== */
.journey-page { --serif:"Shippori Mincho","Hiragino Mincho ProN","Yu Mincho",serif; --ease:cubic-bezier(.2,.7,.2,1); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.journey-page ::selection { background:#e0a52655; }
.journey-page * { -webkit-tap-highlight-color:transparent; }

/* 題名 */
.atlas-top { padding:22px 24px 18px; background:linear-gradient(160deg,#2c3d3a,#24322f); }
.atlas-brand h1 { font-family:var(--serif); font-size:27px; font-weight:700; letter-spacing:.08em; line-height:1.25; }
.atlas-brand h1 small { display:block; margin-bottom:5px; font-family:"Zen Kaku Gothic New",sans-serif; font-size:10.5px; font-weight:700; letter-spacing:.34em; color:var(--signal); }
.atlas-brand h1 span { margin-top:5px; font-family:"Zen Kaku Gothic New",sans-serif; font-size:12px; letter-spacing:.14em; opacity:.7; }
.atlas-stay { margin-top:14px; background:none; padding:10px 0 0; border-top:1px solid #ffffff1f; border-radius:0; font-size:12.5px; color:#ffffffcc; }
.atlas-stay b { color:#fff; }

/* 種類ボタン */
.atlas-filters { padding:14px 24px; gap:8px; }
.atlas-chip { transition:background .2s,border-color .2s,color .2s,transform .15s var(--ease); }
.atlas-chip:active { transform:scale(.96); }
.atlas-glyph { width:26px; height:26px; fill:none; stroke:var(--k); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* カード */
.atlas-scroll,.atlas-detail { padding:16px 24px 32px; scrollbar-width:thin; scrollbar-color:var(--rule) transparent; }
.atlas-rows { gap:10px; }
.atlas-row { padding:12px 14px; border-radius:14px; transition:border-color .2s,box-shadow .25s,transform .25s var(--ease); }
.atlas-row:hover { transform:translateY(-1px); box-shadow:0 6px 18px -8px #1c252340; }
.atlas-row[aria-current="true"] { box-shadow:inset 4px 0 0 var(--k),0 6px 18px -8px #1c252340; }
.atlas-shape { width:64px; height:50px; border-radius:10px; background:var(--stone-pale); }
.atlas-row:hover .atlas-shape svg polyline,.atlas-row[aria-current="true"] .atlas-shape svg polyline { stroke-width:3.2; }
.atlas-row-body strong { font-size:15.5px; letter-spacing:.02em; margin:1px 0 2px; }
.atlas-rows.is-enter li { animation:atlas-rise .5s var(--ease) both; animation-delay:calc(var(--i,0) * 45ms); }
.atlas-rows.is-enter li:nth-child(n) { --i:0; }
.atlas-rows.is-enter li:nth-child(2) { --i:1; } .atlas-rows.is-enter li:nth-child(3) { --i:2; } .atlas-rows.is-enter li:nth-child(4) { --i:3; }
.atlas-rows.is-enter li:nth-child(5) { --i:4; } .atlas-rows.is-enter li:nth-child(6) { --i:5; } .atlas-rows.is-enter li:nth-child(n+7) { --i:6; }
@keyframes atlas-rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* 詳細 */
.atlas.is-detail .atlas-detail { animation:atlas-rise .45s var(--ease) both; }
.atlas-detail-kind { display:flex; align-items:center; gap:7px; color:var(--muted); letter-spacing:.06em; }
.atlas-detail-kind i { width:9px; height:9px; border-radius:50%; background:var(--k); }
.atlas-detail h2 { font-family:var(--serif); font-size:26px; font-weight:700; letter-spacing:.04em; line-height:1.4; margin:4px 0 10px; }
.atlas-detail-intro { font-size:14.5px; line-height:1.95; color:#2a3532; }
.atlas-facts { margin:20px 0 14px; border:0; border-top:1px solid var(--ink); border-bottom:1px solid var(--rule); border-radius:0; }
.atlas-facts div { padding:12px 12px 12px 0; border-left:0; }
.atlas-facts dt { font-size:11px; letter-spacing:.08em; }
.atlas-facts dd { font-size:19px; letter-spacing:.01em; }
.atlas-caution { border-radius:10px; padding:11px 13px; }
.atlas-detail h3 { margin:26px 0 8px; font-size:12px; letter-spacing:.14em; color:var(--muted); display:flex; align-items:center; gap:10px; }
.atlas-detail h3::after { content:""; flex:1; height:1px; background:var(--rule); }
.atlas-profile-area { fill:var(--k); opacity:.13; }
.atlas-profile-line polyline { stroke:var(--k); }
.atlas-profile-dot { fill:var(--k); }
.atlas-highlights li { padding:11px 0; }
.atlas-highlights p { font-size:13px; line-height:1.8; padding-left:28px; }
.atlas-num { transition:background .2s,color .2s; }
.atlas-highlights button:hover .atlas-num { background:var(--stone); color:#fff; }
.atlas-btn { border-radius:10px; transition:filter .2s,transform .15s var(--ease); }
.atlas-btn:active { transform:scale(.98); }
.atlas-back { font-size:13px; color:var(--muted); letter-spacing:.04em; }
.atlas-back:hover { color:var(--ink); }

/* 地図：開いたときにふわっと現れる。道具は半透明のガラス */
.atlas-map::after { content:""; position:absolute; inset:0; z-index:650; background:var(--paper); pointer-events:none; animation:atlas-veil .9s .15s ease both; }
@keyframes atlas-veil { to { opacity:0; visibility:hidden; } }
.atlas-map-tools button { background:#ffffffd9; -webkit-backdrop-filter:blur(10px) saturate(1.4); backdrop-filter:blur(10px) saturate(1.4); box-shadow:0 1px 2px #0002,0 4px 14px -6px #0004; transition:background .2s,color .2s,transform .15s var(--ease); }
.atlas-map-tools button:hover { background:#fff; }
.atlas-map-tools button:active { transform:scale(.96); }
.atlas-map-tools button[aria-pressed="true"],.atlas-map-tools button[aria-pressed="true"]:hover { background:var(--stone-deep); }
.atlas-map-tools #locate-me[aria-pressed="true"],.atlas-map-tools #locate-me[aria-pressed="true"]:hover { background:#176f9e; }
.journey-page .leaflet-control-zoom { border:0; border-radius:12px; overflow:hidden; box-shadow:0 1px 2px #0002,0 4px 14px -6px #0004; }
.journey-page .leaflet-control-zoom a { width:38px; height:38px; line-height:38px; color:var(--stone-deep); border-color:var(--rule); border-radius:0 !important; }
.journey-page .leaflet-popup-content-wrapper,.journey-page .leaflet-popup-tip { background:#fff; color:var(--ink); box-shadow:0 10px 30px -10px #1c252366; }
.journey-page .leaflet-popup-content-wrapper { border-radius:14px; }
.journey-page .leaflet-popup-content { margin:14px 16px; font-size:13px; line-height:1.75; }
.journey-page .leaflet-popup-content strong { font-size:14.5px; }
.journey-page .leaflet-popup-content small { color:var(--muted); }
.journey-page .leaflet-popup-content a { color:var(--stone-deep); font-weight:700; }
.journey-page .leaflet-container a.leaflet-popup-close-button { color:var(--muted); top:6px; right:6px; }
.atlas-sight-pin,.atlas-start-pin { animation:atlas-pop .4s var(--ease) both; transition:transform .2s var(--ease),background .2s,color .2s; }
.atlas-sight-pin:hover { transform:scale(1.15); background:var(--stone-deep); color:#fff; border-color:#fff; }
@keyframes atlas-pop { from { opacity:0; transform:scale(.4); } to { opacity:1; transform:none; } }
.atlas-stay-pin { position:relative; }
.atlas-stay-pin::after { content:""; position:absolute; inset:-3px; border-radius:50%; border:2px solid var(--signal); animation:atlas-pulse 2.6s ease-out infinite; }
@keyframes atlas-pulse { from { opacity:.7; transform:scale(1); } to { opacity:0; transform:scale(2.1); } }

@media (max-width:760px) {
  .atlas-top { padding:12px 16px 22px; background:linear-gradient(#2c3d3a,#2c3d3a 68%,#2c3d3a00); }
  .atlas-brand h1 { font-size:19px; letter-spacing:.1em; display:flex; align-items:baseline; gap:10px; }
  .atlas-brand h1 small { margin:0; font-size:9.5px; order:2; }
  .atlas-filters { padding:0 12px 8px; }
  .atlas-scroll { padding:0; }
  .atlas-row { padding:12px 14px; border-radius:16px; box-shadow:0 8px 24px -10px #1c252380; }
  .atlas-row:hover { transform:none; }
  .atlas-row[aria-current="true"] { box-shadow:inset 4px 0 0 var(--k),0 8px 24px -10px #1c252380; }
  .atlas-chip { box-shadow:0 2px 8px -2px #1c252350; }
  .atlas-rows.is-enter li { animation-name:atlas-slide; }
  .journey-page .atlas-more { border-radius:14px; min-height:48px; letter-spacing:.08em; box-shadow:0 8px 24px -10px #1c2523a0; animation:atlas-rise .4s var(--ease) both; }
  /* 入口 */
  .atlas[data-entry="kinds"] .atlas-filters { padding:22px 16px 20px; gap:10px; border-radius:22px 22px 0 0; box-shadow:0 -10px 40px -12px #1c252366; animation:atlas-sheet .6s var(--ease) both; }
  .atlas[data-entry="kinds"] .atlas-ask { font-family:var(--serif); font-size:20px; letter-spacing:.08em; margin-bottom:4px; }
  .atlas-chip.is-big { position:relative; min-height:92px; padding:14px 16px; border-radius:16px; font-size:16px; letter-spacing:.04em; box-shadow:none; background:#fff; justify-content:flex-end; animation:atlas-rise .5s var(--ease) both; }
  .atlas-chip.is-big:nth-of-type(1) { animation-delay:.12s; } .atlas-chip.is-big:nth-of-type(2) { animation-delay:.18s; }
  .atlas-chip.is-big:nth-of-type(3) { animation-delay:.24s; } .atlas-chip.is-big:nth-of-type(4) { animation-delay:.3s; } .atlas-chip.is-big:nth-of-type(n+5) { animation-delay:.36s; }
  .atlas-chip.is-big .atlas-glyph { position:absolute; top:12px; right:14px; width:30px; height:30px; }
  .atlas-chip.is-big::after { content:""; position:absolute; left:16px; bottom:0; width:28px; height:3px; border-radius:3px 3px 0 0; background:var(--k); }
  /* くわしく */
  .atlas.is-sheet .atlas-detail { top:14%; border-radius:22px 22px 0 0; padding:26px 18px calc(32px + env(safe-area-inset-bottom)); box-shadow:0 -10px 40px -12px #1c252380,0 0 0 100vmax #1c252338; animation:atlas-sheet .45s var(--ease) both; }
  .atlas.is-sheet .atlas-detail::before { content:""; position:absolute; top:9px; left:50%; width:38px; height:4px; margin-left:-19px; border-radius:4px; background:var(--rule); }
  .atlas-detail h2 { font-size:22px; }
  .atlas-map-tools button { min-height:36px; }
}
@keyframes atlas-slide { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:none; } }
@keyframes atlas-sheet { from { opacity:.6; transform:translateY(40px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) {
  .journey-page *,.journey-page *::before,.journey-page *::after { animation:none !important; transition:none !important; }
}

/* ===== 仕上げ 2回目：形を主役に、操作を確かに ===== */
.atlas { grid-template-columns:clamp(360px,31vw,430px) minmax(0,1fr); }
.atlas-filters { flex-wrap:wrap; overflow:visible; }
.atlas-shape { width:68px; height:52px; background:none; border-radius:0; }
.atlas-shape svg { width:68px; height:50px; overflow:visible; }
.atlas-row { grid-template-columns:68px minmax(0,1fr); gap:14px; padding:14px 16px; }
.atlas-facts dd { font-size:16.5px; white-space:nowrap; }
.atlas-caution.is-map { background:var(--stone-pale); color:#33423e; }
.atlas-chip.is-return { color:var(--muted); }
.atlas-chip.is-return::before { content:"‹"; margin-right:-2px; }
@media (max-width:760px) {
  .atlas { display:block; }
  .atlas-filters { flex-wrap:nowrap; overflow-x:auto; }
  .atlas[data-entry="kinds"] .atlas-filters { flex-wrap:wrap; overflow:visible; }
  .atlas-chip { min-height:40px; }
  .atlas-chip.is-big { min-height:92px; }
  .atlas-map-tools button { min-height:40px; padding:6px 13px; }
  .atlas-location-status { top:108px; }
  .atlas.is-sheet .atlas-detail { overscroll-behavior:contain; }
  .atlas-row { grid-template-columns:64px minmax(0,1fr); padding:13px 15px; }
  .atlas-rows { scroll-padding:0 8%; overscroll-behavior-x:contain; }
}

/* ===== 仕上げ 3回目：動きは控えめに、操作は確実に ===== */
.atlas-backdrop { display:none; }
.atlas-stay-pin::after { animation-iteration-count:3; }
.atlas-facts { grid-template-columns:repeat(3,minmax(0,1fr)); }
.atlas-source { font-size:11px; color:#6b7873; }
@media (max-width:760px) {
  .atlas.is-sheet .atlas-backdrop { display:block; position:fixed; inset:0; z-index:790; background:#1c252352; animation:atlas-fade .3s ease both; pointer-events:auto; }
  .atlas.is-sheet .atlas-detail { box-shadow:0 -10px 40px -12px #1c252380; }
}
@media (max-width:359px) { .atlas-facts dd { font-size:15px; white-space:normal; overflow-wrap:anywhere; } }
@keyframes atlas-fade { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .atlas-map::after { display:none; } }

/* ===== 独自性（2026-10-04）：日の入りの一言・コースの形・季節・写真の列 ===== */
.atlas-now { margin:0 0 12px; font-size:12.5px; line-height:1.7; color:var(--muted); letter-spacing:.02em; }
.atlas-now::before { content:""; display:inline-block; width:9px; height:9px; margin-right:8px; border-radius:50%; background:linear-gradient(180deg,var(--signal) 50%,transparent 50%); border:1px solid var(--signal); vertical-align:-1px; }
.atlas-kind em.is-late { background:#e9eef0; color:#3c4b55; }
.atlas-hero-shape { float:right; width:118px; height:84px; margin:-6px -6px 4px 10px; opacity:.9; }
.atlas-hero-shape svg { width:100%; height:100%; overflow:visible; }
.atlas-hero-shape polyline { stroke-width:1.7; }
.atlas-hero-shape polyline.is-solid { stroke-dasharray:1; stroke-dashoffset:1; animation:atlas-trace 1.6s .15s cubic-bezier(.45,0,.15,1) forwards; }
@keyframes atlas-trace { to { stroke-dashoffset:0; } }
.atlas-season { flex:none; width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--signal); border-radius:50%; font-family:var(--serif); font-size:15px; color:var(--signal); }
.atlas-photos { display:flex; gap:10px; margin:0 -24px 12px; padding:0 24px 4px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.atlas-photos::-webkit-scrollbar { display:none; }
.atlas-photo { flex:0 0 72%; scroll-snap-align:center; position:relative; padding:0; border:0; border-radius:12px; overflow:hidden; background:var(--stone-pale); aspect-ratio:4/3; }
.atlas-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.atlas-photo span { position:absolute; left:0; right:0; bottom:0; padding:22px 12px 9px; background:linear-gradient(#0000,#000a); color:#fff; font-size:13px; font-weight:700; text-align:left; }
.atlas-photo b { display:inline-grid; place-items:center; width:19px; height:19px; margin-right:7px; border:1.5px solid #fff; border-radius:50%; font-size:10.5px; }
/* 季節：差し色と地図の色みを少しだけ変える */
body[data-season="spring"] { --signal:#e79ab2; }
body[data-season="summer"] { --signal:#56b89a; }
body[data-season="autumn"] { --signal:#e0a526; }
body[data-season="winter"] { --signal:#a9c3d6; }
body[data-season="spring"] .atlas-map .leaflet-tile-pane { filter:saturate(.3) brightness(1.06) contrast(.94) hue-rotate(-8deg); }
body[data-season="summer"] .atlas-map .leaflet-tile-pane { filter:saturate(.38) brightness(1.04) contrast(.95); }
body[data-season="autumn"] .atlas-map .leaflet-tile-pane { filter:saturate(.25) brightness(1.05) contrast(.94) sepia(.12); }
body[data-season="winter"] .atlas-map .leaflet-tile-pane { filter:saturate(.1) brightness(1.09) contrast(.92); }
@media (max-width:760px) {
  .atlas-list > .atlas-now { display:none; }
  .atlas[data-entry="kinds"] .atlas-now { flex:1 1 100%; margin:-4px 0 4px; }
  .atlas-now { display:none; }
  .atlas[data-entry="kinds"] .atlas-now { display:block; }
  .atlas-season { width:28px; height:28px; font-size:13px; }
  .atlas-hero-shape { width:96px; height:70px; }
  .atlas-photos { margin:0 -18px 12px; padding:0 18px 4px; }
}
/* 形は最初から見える状態を基本にし、動く環境でだけ描く動きを足す。題名は形の下から始める */
.atlas-hero-shape { width:104px; height:66px; margin:-4px -4px 0 10px; }
.atlas-hero-shape polyline.is-solid { stroke-dashoffset:0; animation:atlas-trace2 1.6s .15s cubic-bezier(.45,0,.15,1) backwards; }
@keyframes atlas-trace2 { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
.atlas-detail h2 { clear:both; }

/* A／B の切り替え（朝倉氏遺跡ルート）。選んでいないほうは地図に点線で出る。トップ画面とコースのページで共通 */
.atlas-variant { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0 8px; }
.journey-page .atlas-variant button,body[data-activity] .atlas-variant button { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:8px; row-gap:1px; align-items:baseline; align-content:center; min-height:58px; padding:8px 12px; border:1px solid var(--rule); border-radius:10px; background:#fff; color:var(--ink); text-align:left; font:inherit; cursor:pointer; transition:border-color .2s,box-shadow .2s,background .2s; }
.atlas-variant button b { grid-area:1 / 1; font-size:15px; font-weight:900; white-space:nowrap; }
.atlas-variant button small { grid-area:1 / 2; justify-self:end; font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.atlas-variant button span { grid-area:2 / 1 / 3 / 3; font-size:12px; line-height:1.45; color:var(--muted); }
.journey-page .atlas-variant button[aria-pressed="true"],body[data-activity] .atlas-variant button[aria-pressed="true"] { border-color:var(--k,var(--stone-deep)); box-shadow:inset 0 0 0 1.5px var(--k,var(--stone-deep)); background:#fff; }
.atlas-variant button[aria-pressed="true"] b { color:var(--k,var(--stone-deep)); }
.atlas-variant-note { display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:12px; color:var(--muted); }
.atlas-variant-note i { flex:none; width:36px; height:0; border-top:4px dotted var(--k,var(--stone)); }
.atlas-variant + .atlas-variant-note + .atlas-detail-intro { margin-bottom:2px; font-size:13.5px; }
.atlas-variants { display:none; }
@media (max-width:760px) {
  .atlas-variants:not([hidden]) { display:block; padding:0 12px 10px; }
  /* 横にめくるカードの高さをそろえる（題名の長いカードがあっても、下にすき間ができないように） */
  .atlas-rows li { display:flex; }
  .atlas-variants .atlas-variant { margin:0; }
  .journey-page .atlas-variants .atlas-variant button { min-height:50px; border-color:transparent; box-shadow:0 2px 10px #0003; }
  .journey-page .atlas-variants .atlas-variant button[aria-pressed="true"] { border-color:var(--k); box-shadow:0 2px 10px #0003,inset 0 0 0 1.5px var(--k); }
}

/* 見どころの台帳（sights.js）の小さなピン。選んだコースの見どころは、これまでどおり番号つきのピンになる */
.atlas-sight-dot { display:block; width:16px; height:16px; border-radius:50%; background:#fff; border:2px solid var(--stone); box-shadow:0 1px 3px #0004; position:relative; }
.atlas-sight-dot::after { content:""; position:absolute; inset:3px; border-radius:50%; background:var(--stone); }
.atlas-sight-label.is-minor { font-weight:500; font-size:11px; color:#3a4744; background:#ffffffd9; }
#map.is-mid .atlas-sight-label.is-minor { display:none; }
#map.is-small .atlas-sight-dot { transform:scale(.6); box-shadow:none; }
#map.is-tiny .atlas-sight-dot { display:none; }

/* 時間から選ぶ（2026-10-10） */
.atlas-plan { margin:0 0 14px; padding:12px 14px; border:1px solid var(--rule); border-radius:12px; background:#fff; }
.atlas-plan-title { margin:0 0 8px; font-size:13px; font-weight:700; color:var(--stone-deep); }
.atlas-plan-title.is-kinds { display:none; }
.atlas-plan-chips { display:flex; flex-wrap:wrap; gap:6px; }
.atlas-plan-chips .atlas-chip { min-height:34px; padding:4px 13px; box-shadow:none; border-color:var(--rule); }
.atlas-plan-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-top:10px; font-size:13px; }
.atlas-plan-row label { display:inline-flex; align-items:center; gap:6px; }
.atlas-plan-row input[type="time"] { font:inherit; padding:4px 6px; border:1px solid var(--rule); border-radius:6px; background:#fff; color:var(--ink); }
.atlas-plan-row input[type="checkbox"] { width:18px; height:18px; accent-color:var(--stone-deep); }
.journey-page .atlas-plan-clear { margin-left:auto; border:0; background:none; padding:0; color:var(--stone); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.atlas-plan-note { margin:0 0 12px; font-size:12px; line-height:1.7; color:var(--muted); }
.atlas-kind em.is-pick { background:var(--stone-deep); color:#fff; }
.atlas-why { display:block; margin-top:3px; font-size:12px; line-height:1.55; color:var(--stone-deep); }
.atlas-reach { margin:4px 0 14px; padding:12px 14px; border:1px dashed var(--rule); border-radius:12px; background:#fff; }
.atlas-reach-title { margin:0 0 8px; font-size:13px; font-weight:700; color:var(--stone-deep); }
.atlas-reach ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.journey-page .atlas-reach button { display:inline-flex; align-items:baseline; gap:6px; border:1px solid var(--rule); border-radius:999px; background:var(--paper); padding:5px 12px; font-size:13px; font-weight:700; color:var(--ink); }
.atlas-reach button small { font-size:11px; font-weight:400; color:var(--muted); }
.atlas-plan-fit { margin:0 0 8px; font-size:12.5px; line-height:1.7; background:#e8eef0; color:#23414d; border-radius:8px; padding:9px 11px; }
.atlas-plan-fit.is-out { background:var(--caution); color:var(--caution-ink); }
.atlas-mount { margin:8px 0 0; font-size:12.5px; line-height:1.7; background:#f6e9e4; color:#6b2a1c; border-radius:8px; padding:9px 11px; }
.atlas-compare select { width:100%; font:inherit; font-size:13.5px; padding:9px 10px; border:1px solid var(--rule); border-radius:8px; background:#fff; color:var(--ink); }
.atlas-compare table { width:100%; margin-top:10px; border-collapse:collapse; font-size:12.5px; table-layout:fixed; }
.atlas-compare th,.atlas-compare td { padding:7px 6px; border-bottom:1px solid var(--rule); text-align:left; vertical-align:top; line-height:1.5; }
.atlas-compare thead th { font-size:12.5px; font-weight:700; }
.atlas-compare thead th i { display:inline-block; width:8px; height:8px; margin-right:5px; border-radius:50%; background:var(--k); }
.atlas-compare tbody th { width:5.5em; font-weight:500; color:var(--muted); }
.atlas-pop-walk { display:inline-block; margin-top:4px; font-size:12px; color:#23414d; }
.atlas-pop-routes { margin:8px 0 6px; display:flex; flex-direction:column; gap:4px; }
.atlas-pop-routes b { font-size:12px; color:#56645f; }
.atlas-pop-routes button { border:1px solid #d3dcd8; border-radius:8px; background:#f8faf8; padding:6px 9px; font:inherit; font-size:12.5px; font-weight:700; color:#1c2523; text-align:left; cursor:pointer; }
@media (max-width:760px) {
  .atlas[data-entry="kinds"] .atlas-plan { flex:1 1 100%; margin:0; padding:10px 12px; }
  .atlas[data-entry="kinds"] .atlas-plan-chips { flex-wrap:nowrap; gap:5px; }
  .atlas[data-entry="kinds"] .atlas-plan-chips .atlas-chip { flex:1 1 0; min-width:0; min-height:36px; padding:4px 2px; justify-content:center; font-size:13.5px; white-space:nowrap; }
  .atlas[data-entry="kinds"] .atlas-plan-row { margin-top:8px; gap:6px 14px; }
  .atlas[data-entry="kinds"] .atlas-filters { max-height:calc(100dvh - 150px); overflow-y:auto; overscroll-behavior:contain; }
  .atlas[data-entry="kinds"] .atlas-plan-title.is-kinds { display:block; flex:1 1 100%; margin:4px 0 -2px; }
  .atlas-chip.is-plan { background:var(--stone-deep); color:#fff; }
  .atlas-rows li.is-reach .atlas-reach { flex:1; margin:0; padding:10px 12px; border:1px solid var(--rule); border-radius:14px; box-shadow:0 2px 10px #0002; }
  .atlas-reach-title small { display:block; margin-top:1px; font-size:11.5px; font-weight:400; color:var(--muted); }
  .atlas-rows li.is-reach ul { flex-direction:column; flex-wrap:nowrap; gap:0; }
  .atlas-rows li.is-reach ul li { flex:none; display:block; }
  .journey-page .atlas-rows li.is-reach button { display:flex; width:100%; justify-content:space-between; gap:10px; border:0; border-top:1px solid var(--rule); border-radius:0; background:none; padding:5px 0; font-size:13px; text-align:left; }
  .atlas-rows li.is-reach button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .atlas-rows li.is-reach button small { flex:none; }
  .atlas-rows li.is-reach .atlas-source { margin:6px 0 0; font-size:11px; line-height:1.5; }
  .atlas-plan-note { margin:0 12px 8px; background:#ffffffe6; border-radius:8px; padding:6px 10px; }
}

/* トイレ・休憩所の印、お知らせ、今の見頃（2026-10-10） */
.atlas-fac { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:5px; background:#fff; border:1.5px solid #4e6964; color:#22302c; font:700 9px/1 var(--sans); letter-spacing:0; box-shadow:0 1px 3px #0003; }
.atlas-fac.is-rest { font-size:11px; border-color:#8a6a3c; color:#5a431f; }
#map.is-small .atlas-fac { display:none; }
.atlas-fac-note { display:flex; align-items:flex-start; gap:8px; margin:10px 0 0; font-size:12.5px; line-height:1.7; color:var(--muted); }
.atlas-fac-note .atlas-fac { flex:none; margin-top:1px; box-shadow:none; }
.atlas-alert { margin:0 0 12px; padding:10px 12px; border-left:4px solid #b4532a; border-radius:0 8px 8px 0; background:#fbeee6; color:#5b2a14; font-size:13px; line-height:1.7; }
.atlas-alert b { margin-right:8px; font-size:11.5px; letter-spacing:.1em; color:#b4532a; }
.atlas-alert small { display:block; margin-top:2px; font-size:11.5px; color:#8a5a45; }
.journey-page .atlas-migoro { display:flex; align-items:stretch; gap:12px; width:100%; margin:0 0 14px; padding:0; border:1px solid var(--rule); border-radius:12px; background:#fff; overflow:hidden; text-align:left; font-size:12.5px; line-height:1.65; color:var(--ink); }
.atlas-migoro img { flex:none; width:88px; object-fit:cover; }
.atlas-migoro > span { display:block; padding:10px 12px 10px 0; }
.atlas-migoro img + span { padding-left:0; }
.atlas-migoro > span:first-child { padding-left:14px; }
.atlas-migoro b { display:block; font-size:11px; letter-spacing:.14em; color:#a8432f; }
.atlas-migoro strong { display:block; font-family:var(--serif); font-size:15px; letter-spacing:.04em; margin:1px 0 2px; }
.atlas-migoro small { display:block; margin-top:3px; font-size:11px; color:var(--muted); }
.atlas-tel { display:block; margin:14px 0 0; padding:11px 14px; border:1px solid var(--rule); border-radius:10px; background:#fff; color:var(--ink); font-size:13px; text-decoration:none; }
.atlas-tel b { margin-left:10px; font-size:16px; letter-spacing:.04em; }
@media (max-width:760px) {
  .atlas[data-entry="kinds"] .atlas-alert, .atlas[data-entry="kinds"] .atlas-migoro { flex:1 1 100%; margin:0; }
  .atlas-migoro strong { font-size:14px; }
}

/* 操作の言葉を英語にする切り替え（2026-10-10） */
.atlas-lang { flex:none; margin-left:auto; margin-right:10px; padding:3px 10px; border:1px solid #ffffff55; border-radius:999px; color:#e9efe9; font-size:11.5px; letter-spacing:.08em; text-decoration:none; }
.atlas-lang:hover { background:#ffffff1f; }
.atlas-plan-notice { margin:8px 0 0; font-size:12px; line-height:1.6; color:#8a4a24; }

/* 名所の絵のピン、写真つきの説明、言語の切り替え（2026-10-10 2回目） */
.atlas-art { position:absolute; left:0; top:0; width:var(--art,76px); transform:translate(-50%,-100%); display:block; cursor:pointer; }
.leaflet-container .leaflet-marker-pane .atlas-art img { display:block; width:100%; height:auto; filter:drop-shadow(0 2px 3px #0004); transition:transform .2s var(--ease); }
.atlas-art:hover img { transform:scale(1.06); }
.atlas-art b { position:absolute; left:-4px; top:-4px; display:grid; place-items:center; min-width:20px; height:20px; padding:0 4px; border-radius:10px; background:#fff; border:2px solid var(--stone); font:700 11px/1 var(--sans); color:var(--ink); box-shadow:0 1px 3px #0004; }
.atlas-art i { display:none; }
#map.is-mid .atlas-art { --art:54px; }
#map.is-small .atlas-art { --art:34px; }
#map.is-small .atlas-art b { display:none; }
#map.is-small .atlas-art.is-minor { width:10px; height:10px; transform:translate(-50%,-50%); }
#map.is-small .atlas-art.is-minor img { display:none; }
#map.is-small .atlas-art.is-minor i { display:block; width:10px; height:10px; border-radius:50%; background:#fff; border:2px solid var(--stone); box-shadow:0 1px 2px #0004; }
#map.is-tiny .atlas-art { display:none; }
.atlas-sight-label.is-art { font-family:var(--serif); font-size:12px; letter-spacing:.04em; background:#fffaf0f0; }
.sight-photo { display:block; margin:0 0 8px; }
.sight-photo img { display:block; width:100%; height:150px; object-fit:cover; border-radius:6px; background:#e9e4d8; }
.sight-photo small { display:block; margin-top:2px; font-size:10.5px; color:#6b756f; text-align:right; }
.sight-photo small a { color:inherit; }
.journey-page .atlas-migoro { display:flex; }
.atlas-migoro-acts { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:6px; }
.journey-page .atlas-migoro-acts button, .atlas-migoro-acts a { border:0; background:none; padding:0; font:inherit; font-size:12px; font-weight:700; color:var(--stone-deep); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.atlas-lang { flex:none; display:inline-flex; margin-left:auto; margin-right:10px; padding:0; border:1px solid #ffffff55; border-radius:999px; overflow:hidden; }
.atlas-brand nav.atlas-lang a { display:block; padding:3px 8px; border:0; border-radius:0; color:#d6e0da; font-size:11px; font-weight:500; letter-spacing:.08em; text-decoration:none; }
.atlas-brand nav.atlas-lang a[aria-current="true"] { background:#ffffff26; color:#fff; font-weight:700; }
/* 専用地図（木版）のまわりに見える OpenStreetMap は、紙の色に寄せて、古い地図のように見せる */
.atlas-map .leaflet-tile-pane, body[data-activity] .leaflet-tile-pane { filter:sepia(.42) saturate(.42) brightness(1.05) contrast(.9); }
@media (max-width:420px) { .atlas-brand h1 small { display:none; } .atlas-lang { margin-right:6px; } }
.status-note.is-own-risk { border-left:4px solid #a8432f; background:#f6e9e4; color:#5b2a14; padding:10px 12px; border-radius:0 8px 8px 0; }

/* 名前の札を、縮尺15から出す。重なる札は間引く。目印の名前（2026-10-13） */
#map.is-mid .atlas-sight-label.is-minor { display:block; }
#map.is-far .atlas-sight-label, #map.is-far .atlas-sight-label.is-minor { display:none; }
.atlas-sight-label.is-crowded, .atlas-place-label.is-crowded { visibility:hidden; }
.atlas-place-dot { display:block; width:8px; height:8px; border-radius:2px; background:#6b6253; border:1.5px solid #fffaf0; box-shadow:0 0 0 1px #6b625355; }
.leaflet-tooltip.atlas-place-label { background:none; border:0; box-shadow:none; padding:0; font:600 11.5px/1.4 var(--serif); letter-spacing:.04em; color:#4a4336; text-shadow:0 0 2px #fffaf0,0 0 2px #fffaf0,0 0 3px #fffaf0,0 0 4px #fffaf0; }
.atlas-place-label::before { display:none; }
#map.is-far .atlas-place-label, #map.is-far .atlas-place-dot { display:none; }
.atlas-fac.is-both { width:44px; font-size:9px; letter-spacing:0; }
.leaflet-popup-content hr { border:0; border-top:1px solid #d9d2bf; margin:8px 0; }

/* 遺構のしるし（大きく拡大したときだけ）、登城口の道標、Googleマップで開く（2026-10-13 2回目） */
.atlas-remain { position:absolute; left:0; top:0; display:block; transform:translate(-50%,-50%); cursor:pointer; }
.leaflet-container .leaflet-marker-pane .atlas-remain img { display:block; height:var(--remain,22px); width:auto; opacity:.9; filter:saturate(.82) drop-shadow(0 1px 1px #4a3d2333); }
.leaflet-tooltip.atlas-remain-label { background:none; border:0; box-shadow:none; padding:0; font:500 10.5px/1.3 var(--serif); letter-spacing:.03em; color:#5a5142; text-shadow:0 0 2px #fffaf0,0 0 2px #fffaf0,0 0 3px #fffaf0; }
.atlas-remain-label::before { display:none; }
.atlas-remain-label.is-crowded { visibility:hidden; }
.atlas-art.is-mark { --art:44px; }
#map.is-mid .atlas-art.is-mark { --art:36px; }
#map.is-small .atlas-art.is-mark { display:none; }
.atlas-gmap { display:block; margin:6px 0 4px; font-size:12px; font-weight:700; color:#2f5d7c; }

/* 見頃は終わりました（2026-10-14） */
.atlas-migoro-ended { margin:-6px 0 14px; padding:8px 12px; border:1px dashed var(--rule); border-radius:10px; font-size:12px; line-height:1.6; color:var(--muted); }
.atlas-migoro-ended b { display:block; font-size:10.5px; letter-spacing:.14em; color:#8a7a62; margin-bottom:2px; }
.atlas-migoro-ended img { float:left; width:40px; height:40px; object-fit:cover; border-radius:6px; margin:2px 8px 0 0; filter:grayscale(.35); }
.atlas-migoro-ended span { display:block; overflow:hidden; }
.atlas-migoro-ended strong { margin-right:6px; color:var(--ink); }

/* コースの1枚地図（2026-10-14） */
.journey-page .atlas-card-btn { margin-top:8px; background:#fff; color:var(--ink); border:1px solid var(--rule); }
.atlas-card-note { margin:6px 0 0; font-size:11.5px; line-height:1.6; color:var(--muted); }
.atlas-actions { flex-wrap:wrap; }
.atlas-card-note { flex:1 1 100%; }

/* 楽しみ方の切り替え（同じ道を、散歩・ランニング・サイクリングで。2026-10-16） */
.atlas-variant.atlas-mode { grid-template-columns:repeat(3,minmax(0,1fr)); margin:12px 0 6px; }
.journey-page .atlas-mode button,body[data-activity] .atlas-mode button { grid-template-columns:minmax(0,1fr); min-height:52px; padding:7px 10px; }
.atlas-mode button b { grid-area:auto; font-size:13.5px; }
.atlas-mode button span { grid-area:auto; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.atlas-mode + .atlas-detail-intro { margin-top:4px; }
.atlas-variants .atlas-mode { margin:0 0 8px; }
.atlas-kind.is-modes { gap:4px; }
.atlas-kind.is-modes i + i { margin-left:-2px; }

/* 見どころの吹き出し（写真つきで長いときは中を送る）と、地区の名前（2026-10-16） */
.atlas-sight-pop .leaflet-popup-content { max-height:min(60vh, 460px); overflow-y:auto; overscroll-behavior:contain; }
@media (max-width:760px) { .atlas-sight-pop .leaflet-popup-content { max-height:46vh; } }
.atlas-area-label { position:absolute; transform:translate(-50%, -50%); white-space:nowrap; font-size:11px; letter-spacing:.32em; color:#5d5446; font-weight:700;
  text-shadow:0 0 3px #f4efe2, 0 0 3px #f4efe2, 0 0 6px #f4efe2; pointer-events:none; }

/* 散策中モード（2026-10-16）。一覧をたたんで、地図と「つぎの見どころ」だけにする */
.atlas-stroll { margin:14px 0 6px; }
.atlas-stroll .atlas-btn { width:100%; min-height:48px; font-size:15.5px; letter-spacing:.08em; }
.atlas-stroll p { margin:6px 2px 0; font-size:11.5px; line-height:1.6; color:var(--muted); }
.atlas-go-row { display:flex; gap:8px; margin-top:8px; }
.atlas-go-row button { flex:1; min-height:46px; border-radius:12px; font-weight:700; letter-spacing:.06em; box-shadow:0 2px 10px #0003; }
.atlas-go-more { border:1px solid var(--stone-deep); background:#fff; color:var(--stone-deep); }
.atlas-go { border:0; background:var(--stone-deep); color:#fff; }
body.is-strolling .atlas { grid-template-columns:minmax(0,1fr); }
body.is-strolling .atlas-rail, body.is-strolling .atlas-map-tools, body.is-strolling .atlas-location-status { display:none !important; }
body.is-strolling .atlas-map .leaflet-top { top:66px; }
.stroll { position:absolute; inset:0; z-index:900; pointer-events:none; }
.stroll > * { pointer-events:auto; }
.stroll-top { position:absolute; left:12px; right:12px; top:12px; max-width:560px; margin:0 auto; display:flex; align-items:center; gap:10px; padding:7px 7px 7px 16px; border-radius:999px; background:#27403af2; color:#fff; box-shadow:0 4px 14px #0004; }
.stroll-live { flex:none; width:9px; height:9px; border-radius:50%; background:#f0c24a; animation:stroll-pulse 1.8s infinite; }
@keyframes stroll-pulse { 0% { box-shadow:0 0 0 0 #f0c24acc; } 100% { box-shadow:0 0 0 10px #f0c24a00; } }
.stroll-top b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:"Shippori Mincho",serif; font-size:14.5px; letter-spacing:.05em; }
.stroll-top small { display:block; font-family:"Zen Kaku Gothic New",sans-serif; font-size:10.5px; letter-spacing:.16em; color:#cfe0d6; }
.stroll-top button { flex:none; min-height:36px; padding:6px 16px; border:1px solid #fff8; border-radius:999px; background:none; color:#fff; font-size:13px; font-weight:700; }
.stroll-banner { position:absolute; left:12px; right:64px; top:70px; max-width:520px; padding:9px 12px; border-radius:12px; font-size:12.5px; line-height:1.6; box-shadow:0 4px 14px #0003; background:#eef0ee; color:#3a4541; border-left:4px solid #8b9792; }
.stroll-banner b { display:block; font-size:13px; }
.stroll-banner.is-off { background:#fbeee6; color:#5b2a14; border-left-color:#b4532a; }
.stroll-banner.is-denied { background:#f6efe1; color:#4d3b18; border-left-color:#b88a2e; }
.stroll-banner button { margin-top:6px; padding:5px 12px; border:1px solid currentColor; border-radius:999px; background:#fff; color:inherit; font-size:12px; font-weight:700; }
.stroll-card { position:absolute; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); max-width:560px; margin:0 auto; border-radius:22px; background:#fffdf6f7; box-shadow:0 -6px 30px -8px #0006; }
.stroll-follow { position:absolute; left:50%; bottom:calc(100% + 10px); transform:translateX(-50%); padding:8px 16px; border:0; border-radius:999px; background:#2f7fd1; color:#fff; font-size:13px; font-weight:700; box-shadow:0 3px 12px #0004; white-space:nowrap; }
.stroll-next { display:flex; gap:12px; align-items:center; padding:14px 16px 8px; }
.stroll-next img { flex:none; width:64px; height:auto; }
.stroll-next div { flex:1; min-width:0; }
.stroll-next small { display:block; font-size:10.5px; letter-spacing:.2em; color:var(--k,#a3402e); font-weight:700; }
.stroll-next strong { display:block; font-family:"Shippori Mincho",serif; font-size:20px; line-height:1.35; letter-spacing:.04em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stroll-next span { font-size:15px; font-weight:700; color:var(--stone-deep); }
.stroll-next em { font-style:normal; font-size:26px; margin:0 2px 0 6px; }
.stroll-text { margin:0; padding:0 16px 10px; font-size:13px; line-height:1.75; color:#3b4640; max-height:28vh; overflow:auto; }
.stroll-manual { display:flex; gap:8px; padding:0 16px 12px; }
.stroll-manual button { flex:1; min-height:42px; border-radius:10px; border:1px solid var(--rule); background:#fff; font-size:13.5px; font-weight:700; }
.stroll-manual .is-go { background:var(--stone-deep); border-color:var(--stone-deep); color:#fff; }
.stroll-bar { margin:0 16px; height:5px; border-radius:3px; background:#e4dcc8; overflow:hidden; }
.stroll-bar i { display:block; height:100%; width:0; background:var(--k,var(--stone-deep)); border-radius:3px; transition:width .4s; }
.stroll-stat { display:flex; justify-content:space-between; gap:8px; padding:7px 16px 10px; font-size:11.5px; color:var(--muted); }
.stroll-stat b { color:var(--ink); font-size:13px; font-variant-numeric:tabular-nums; }
.stroll-acts { display:grid; grid-template-columns:1fr 1fr 1fr; border-top:1px solid var(--rule); }
.stroll-acts button { min-height:52px; padding:8px 4px; border:0; border-right:1px solid var(--rule); background:none; font-size:11px; line-height:1.4; color:#55605b; }
.stroll-acts button:last-child { border-right:0; }
.stroll-acts b { display:block; font-size:13px; color:var(--ink); font-variant-numeric:tabular-nums; }
.stroll-me { display:block; width:20px; height:20px; border-radius:50%; background:#2f7fd1; border:3px solid #fff; box-shadow:0 0 0 3px #2f7fd140, 0 2px 6px #0006; }
@media (prefers-reduced-motion:reduce) { .stroll-live { animation:none; } .stroll-bar i { transition:none; } }

/* スマホでの使いやすさ（2026-10-16 一坂氏の確認から） */
/* 出典：短く、小さく、1行。スマホは拡大ボタンの下 */
.atlas-map .leaflet-control-attribution { font-size:9.5px; line-height:1.6; padding:0 6px; white-space:nowrap; background:#ffffffb8; color:#55605b; }
.atlas-map .leaflet-control-attribution a { color:inherit; }
.atlas-map .leaflet-top .leaflet-control-attribution { clear:both; margin:6px 10px 0 0; border-radius:6px; }
/* 最初の画面のつまみ（スマホだけ） */
.atlas-fold { display:none; }
.atlas-status-close { flex:none; margin:-2px -4px 0 4px; padding:0 4px; border:0; background:none; color:inherit; font-size:15px; line-height:1.2; cursor:pointer; opacity:.7; }
.atlas-location-status:not(:empty) { display:flex; align-items:flex-start; }
@media (max-width:760px) {
  .atlas[data-entry="kinds"] .atlas-fold { display:block; flex:1 1 100%; height:20px; margin:-14px 0 -6px; padding:0; border:0; background:none; cursor:pointer; }
  .atlas-fold i { display:block; width:42px; height:5px; margin:0 auto; border-radius:3px; background:#cbc4b4; }
  .atlas.is-folded[data-entry="kinds"] .atlas-filters > :not(.atlas-fold):not(.is-kinds):not(.atlas-chip) { display:none; }
  .atlas.is-folded[data-entry="kinds"] .atlas-chip.is-big { min-height:54px; padding:8px 14px; flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; font-size:15px; animation:none; }
  .atlas.is-folded[data-entry="kinds"] .atlas-chip.is-big .atlas-glyph { position:static; width:22px; height:22px; order:-1; }
  .atlas.is-folded[data-entry="kinds"] .atlas-chip.is-big small { margin-left:auto; }
  .atlas.is-folded[data-entry="kinds"] .atlas-chip.is-big::after { left:14px; }
}
/* 散策中：案内パネルのつまみ・小さくしたとき・知らせの × */
.stroll-grip { display:block; width:100%; height:18px; padding:0; border:0; background:none; cursor:pointer; }
.stroll-grip i { display:block; width:42px; height:5px; margin:7px auto 0; border-radius:3px; background:#cbc4b4; }
.stroll-card .stroll-next { padding-top:4px; }
.stroll.is-small .stroll-stat, .stroll.is-small .stroll-acts { display:none; }
.stroll.is-small .stroll-next { padding-bottom:6px; }
.stroll.is-small .stroll-next img { width:40px; }
.stroll.is-small .stroll-next strong { font-size:17px; }
.stroll.is-small .stroll-next em { font-size:20px; }
.stroll.is-small .stroll-bar { margin-bottom:12px; }
.stroll-banner { padding-right:34px; }
.stroll-banner[hidden] { display:none; }
.stroll-banner .stroll-banner-close { position:absolute; top:3px; right:5px; width:26px; height:26px; margin:0; padding:0; border:0; border-radius:0; background:none; color:inherit; font-size:16px; font-weight:400; line-height:1; opacity:.65; cursor:pointer; }
/* 最初の画面の「すべて見る」（見出しの右）。縮めたときは、種類のボタンのコース数を出さない */
.atlas-all { display:none; }
@media (max-width:760px) {
  .atlas[data-entry="kinds"] .atlas-plan-title.is-kinds { display:flex; align-items:center; justify-content:space-between; flex:1 1 100%; }
  .atlas[data-entry="kinds"] .atlas-all { display:inline-flex; align-items:baseline; gap:4px; min-height:32px; padding:4px 12px; border:1px solid var(--rule); border-radius:999px; background:#fff; color:var(--stone-deep); font-size:13px; font-weight:700; letter-spacing:.04em; cursor:pointer; }
  .atlas[data-entry="kinds"] .atlas-all small { font-size:11px; font-weight:400; color:var(--muted); }
  .atlas.is-folded[data-entry="kinds"] .atlas-chip.is-big small { display:none; }
  .atlas.is-folded[data-entry="kinds"] .atlas-chip.is-big { white-space:nowrap; }
}
/* 地図の画面では、下へのスワイプ（パネルを縮める）で、ページの「引っぱって再読み込み」が起きないように */
html:has(> body.journey-page:not([data-activity])) { overscroll-behavior-y:none; }
body.journey-page:not([data-activity]) { overscroll-behavior-y:none; }
/* パネルの下：出発地を Googleマップで開く・線の出どころと精度（たためる形）（2026-10-16） */
.atlas-start-link { margin-top:16px; font-size:13px; }
.atlas-record { margin:10px 0 0; border-top:1px solid var(--rule); padding-top:8px; font-size:12px; color:var(--muted); }
.atlas-record summary { cursor:pointer; font-weight:700; color:#55605b; padding:4px 0; }
.atlas-record .provenance { margin-top:4px; padding-top:0; border-top:0; }
.atlas-record .provenance h2 { display:none; }

/* ===== スマホ版の作り直し（2026-10-16 一坂氏の指摘8点。Claude と Codex で合意した形） ===== */
/* 開始ボタン：どのコースでも同じ、明るい金色＋濃い文字（.journey-page button の color:inherit に負けないように） */
.journey-page .atlas-go, .journey-page .atlas-stroll .atlas-btn { background:#f0c24a; border:1px solid #d9a92c; color:#2b2008; font-weight:900; }
.journey-page .atlas-go:active, .journey-page .atlas-stroll .atlas-btn:active { background:#e5b237; }
.journey-page .atlas-go:focus-visible, .journey-page .atlas-stroll .atlas-btn:focus-visible { outline:3px solid #2b2008; outline-offset:2px; }
/* 上のボタン：PCは横に並べたまま（「地図表示」は使わない）。お店は消した */
.atlas-layer-btn { display:none; }
.atlas-layers { display:contents; }
/* コンビニの印 */
.atlas-store-pin { display:grid; place-items:center; width:24px; height:24px; border-radius:7px; background:#fff; border:2px solid #3f6f8f; box-shadow:0 1px 3px #0004; }
.atlas-store-pin svg { width:15px; height:15px; fill:none; stroke:#3f6f8f; stroke-width:2; stroke-linejoin:round; }
.leaflet-tooltip.atlas-store-label { padding:0 5px; border:0; border-radius:4px; background:#ffffffd9; box-shadow:none; color:#2f4f66; font-size:11px; font-weight:700; }
.leaflet-tooltip.atlas-store-label::before { display:none; }
/* 引いた地図では、トイレ・目印と同じく出さない（2026-10-17） */
#map.is-small .atlas-store-mark, #map.is-small .atlas-store-label { display:none; }
/* 見どころのシート（スマホだけ使う） */
.atlas-sight-sheet[hidden] { display:none; }
@media (max-width:760px) {
  /* 上のボタンは「全体を見る」「地図表示」の2つ。地図表示は小さなメニュー */
  .atlas-map-tools { right:auto; flex-wrap:nowrap; }
  .atlas-layer-btn { display:inline-flex; align-items:center; gap:6px; }
  .atlas-layer-btn::after { content:"▾"; font-size:11px; opacity:.7; }
  .atlas-layers { display:none; position:absolute; left:0; top:calc(100% + 6px); flex-direction:column; gap:6px; padding:8px; border-radius:14px; background:#fffdf6f2; box-shadow:0 6px 20px #0003; }
  .atlas-map-tools.is-open .atlas-layers { display:flex; }
  .atlas-layers button { justify-content:flex-start; min-width:150px; }
  .atlas-layers button::before { content:""; width:14px; height:14px; margin-right:8px; border-radius:4px; border:2px solid currentColor; opacity:.6; }
  .atlas-layers button[aria-pressed="true"]::before { background:currentColor; opacity:1; }
  /* 現在地は拡大縮小の下（Leaflet の右上の列） */
  .atlas-locate-ctrl { border:0 !important; box-shadow:0 2px 8px #0003 !important; border-radius:12px !important; overflow:hidden; margin-top:8px !important; }
  .journey-page .atlas-locate-ctrl #locate-me { display:grid; place-items:center; width:44px; height:44px; min-height:0; padding:0; border:0; border-radius:0; background:#fff; color:#2f7fd1; font-size:0; box-shadow:none; }
  .atlas-locate-ctrl #locate-me::before { content:""; width:14px; height:14px; border-radius:50%; border:3px solid currentColor; box-shadow:0 0 0 4px #fff, 0 0 0 6px currentColor; }
  .atlas-locate-ctrl #locate-me[aria-pressed="true"] { background:#2f7fd1; color:#fff; }
  .atlas-locate-ctrl #locate-me[aria-pressed="true"]::before { box-shadow:0 0 0 4px #2f7fd1, 0 0 0 6px #fff; }

  /* 下のパネルを1枚のシートに（最初の画面・一覧・選んだコース） */
  .atlas[data-entry="list"] .atlas-rail { background:var(--paper); border-radius:20px 20px 0 0; box-shadow:0 -8px 28px -10px #1c252366; pointer-events:auto; }
  .atlas[data-entry="list"] .atlas-filters { padding:4px 12px 8px; }
  /* 一覧のつまみは、横に送る種類の列の外（パネルの上端）に置く */
  .atlas[data-entry="list"] .atlas-rail { padding-top:20px; }
  .atlas[data-entry="list"] .atlas-fold { display:block; position:absolute; top:0; left:0; right:0; height:22px; margin:0; padding:0; border:0; background:none; }
  .atlas[data-entry="list"] .atlas-fold i { margin-top:8px; }
  .atlas-filters { overscroll-behavior:contain; }
  /* 縮めた状態は、独立した高さ（中を送らない）。最初の画面は「種類から選ぶ」まで、一覧は種類の列だけ、要約はカードだけ */
  .atlas.is-folded .atlas-filters { overflow:hidden; max-height:none; }
  .atlas.is-folded[data-entry="list"]:not(.is-detail) .atlas-scroll { display:none; }
  .atlas.is-folded.is-detail .atlas-variants { display:none !important; }
  /* 一覧は縦に。押したら選ぶ */
  .atlas[data-entry="list"] .atlas-scroll { overflow:visible; }
  .atlas-rows { flex-direction:column; flex-wrap:nowrap; gap:8px; margin:0; padding:2px 12px 12px; overflow-x:hidden; overflow-y:auto; max-height:min(44dvh, 400px); scroll-snap-type:none; overscroll-behavior:contain; }
  .atlas-rows li { flex:none; display:block; scroll-snap-align:none; }
  .atlas-rows .atlas-row { min-height:0; width:100%; grid-template-columns:48px minmax(0,1fr); gap:10px; padding:10px 12px; border:1px solid var(--rule); box-shadow:none; }
  .atlas-rows .atlas-row .atlas-shape svg { width:44px; height:44px; }
  .atlas-rows .atlas-row strong { font-size:16px; }
  .atlas-rows .atlas-row .atlas-meta { font-size:12px; }
  .atlas-now { display:none; }
  /* 選んだコース：種類の列と一覧を隠し、カード1枚＋切り替え1行＋ボタン1行 */
  .atlas.is-detail .atlas-filters > :not(.atlas-fold) { display:none; }
  .atlas.is-detail .atlas-filters { padding-bottom:0; }
  .atlas-summary-back { display:inline-block; margin:0 12px 6px; padding:4px 10px; border:1px solid var(--rule); border-radius:999px; background:#fff; color:var(--stone-deep); font-size:12.5px; font-weight:700; }
  .atlas-rows.is-summary { max-height:none; overflow:visible; padding-bottom:8px; }
  .atlas-rows.is-summary .atlas-row { border-color:var(--k); }
  .atlas-variants:not([hidden]) { display:flex; flex-wrap:wrap; gap:8px; padding:0 12px calc(10px + env(safe-area-inset-bottom)); }
  .atlas-variants .atlas-variant { flex:1 1 0; display:flex; gap:0; margin:0; border:1px solid var(--rule); border-radius:12px; overflow:hidden; background:#fff; }
  .journey-page .atlas-variants .atlas-variant button { flex:1 1 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; min-height:44px; padding:3px 4px; border:0; border-radius:0; box-shadow:none; background:#fff; text-align:center; }
  .journey-page .atlas-variants .atlas-variant button + button { border-left:1px solid var(--rule); }
  .journey-page .atlas-variants .atlas-variant button[aria-pressed="true"] { background:var(--k,var(--stone-deep)); box-shadow:none; }
  .atlas-variants .atlas-variant button b { font-size:13px; grid-area:auto; }
  .atlas-variants .atlas-variant button small, .atlas-variants .atlas-variant button span { font-size:11px; grid-area:auto; justify-self:auto; color:var(--muted); }
  .atlas-variants .atlas-variant:not(.atlas-mode) button span { display:none; }
  .journey-page .atlas-variants .atlas-variant button[aria-pressed="true"] b, .journey-page .atlas-variants .atlas-variant button[aria-pressed="true"] small, .journey-page .atlas-variants .atlas-variant button[aria-pressed="true"] span { color:#fff; }
  .atlas-variants .atlas-variant-note { display:none; }
  .atlas-go-row { flex:0 0 100%; margin-top:0; }
  .atlas-go-row button { box-shadow:none; }
  /* 詳細シート：上のつまみ。下へのスワイプで閉じる */
  .atlas-grip { position:sticky; top:-16px; z-index:2; display:block; height:22px; margin:-16px -16px 0; background:linear-gradient(var(--paper) 70%, #0000); }
  .atlas-grip i { display:block; width:42px; height:5px; margin:8px auto 0; border-radius:3px; background:#cbc4b4; }
  .atlas.is-sheet .atlas-detail { overscroll-behavior:contain; }
  /* 見どころのシート */
  .atlas-sight-sheet { position:fixed; left:0; right:0; bottom:0; z-index:850; max-height:72dvh; overflow:auto; overscroll-behavior:contain; padding:0 16px calc(20px + env(safe-area-inset-bottom)); background:var(--paper); border-radius:20px 20px 0 0; box-shadow:0 -10px 34px -8px #1c252399; font-size:14px; line-height:1.75; animation:atlas-sheet .3s var(--ease) both; }
  .atlas-sight-sheet .atlas-grip { top:0; margin:0 -16px; }
  .atlas-sight-close { position:absolute; top:10px; right:10px; z-index:3; width:36px; height:36px; border:0; border-radius:50%; background:#0000000f; color:var(--ink); font-size:18px; line-height:1; }
  .atlas-sight-body { padding-top:4px; }
  .atlas-sight-body .sight-photo img { height:210px; border-radius:12px; }
  .atlas-sight-body strong { display:inline-block; margin:2px 0 2px; font-size:18px; font-family:var(--serif); }
  .atlas-sight-body .atlas-pop-routes button { min-height:40px; }
  .atlas.is-sight .atlas-rail { visibility:hidden; }
}
@media (prefers-reduced-motion:reduce) { .atlas-sight-sheet { animation:none; } }
/* 2026-10-16 オーナー：出発地をGoogleマップで開くボタン・「までに戻る」の初期の表示 */
.atlas-plan input.is-suggest { color:var(--muted); }
/* 比べている最中は、2本の名前を左右に並べる（スマホの要約。2026-10-17 一坂氏：デスク版の表と同じく左右に） */
.atlas-pair { display:none; }
@media (max-width:760px) {
  .atlas-pair { display:block; margin:0 12px 8px; border:1px solid var(--rule); border-radius:12px; background:#fff; overflow:hidden; }
  .atlas-pair-head { display:flex; align-items:center; justify-content:space-between; margin:0; padding:3px 4px 3px 12px; border-bottom:1px solid var(--rule); font-size:12px; color:var(--muted); }
  .atlas-pair-head button { width:32px; height:32px; border:0; border-radius:50%; background:#0000000d; color:var(--ink); font-size:16px; line-height:1; }
  .atlas-pair-sides { display:grid; grid-template-columns:1fr 1fr; }
  .atlas-pair-side { display:flex; flex-direction:column; gap:2px; min-width:0; padding:9px 12px 10px; }
  .atlas-pair-side + .atlas-pair-side { border-left:1px solid var(--rule); }
  .atlas-pair-side i { display:block; width:30px; height:0; margin-bottom:3px; border-top:4px solid var(--k); border-radius:2px; }
  .atlas-pair-side i.is-dashed { border-top-style:dashed; border-radius:0; }
  .atlas-pair-side small { font-size:11.5px; color:var(--muted); }
  .atlas-pair-side b { font-size:14.5px; line-height:1.35; color:var(--ink); overflow-wrap:anywhere; }
  .atlas-pair-side span { font-size:12px; color:var(--muted); }
}

/* 言語の切り替え：朔のホームページと同じ「LANGUAGE」のメニューに5言語（2026-10-18 一坂氏） */
.atlas-brand nav.atlas-lang { position:relative; display:block; overflow:visible; padding:0; border:0; border-radius:0; }
.atlas-lang-toggle { display:flex; align-items:center; gap:8px; padding:6px 2px; border:0; background:none; color:#e9efe9; font:500 10.5px/1 "Cormorant Garamond","Times New Roman",serif; letter-spacing:.22em; cursor:pointer; }
.atlas-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; }
.atlas-lang.is-open .atlas-lang-caret { transform:translateY(2px) rotate(225deg); }
.atlas-lang-list { position:absolute; top:calc(100% + 8px); right:0; z-index:1200; display:flex; flex-direction:column; min-width:168px; padding:6px 0; border:1px solid #d9d6ca; background:#f6f2eaf7; box-shadow:0 18px 44px #17141029; }
.atlas-lang-list[hidden] { display:none; }
.atlas-brand nav.atlas-lang .atlas-lang-list a { display:block; padding:10px 16px; border:0; border-left:2px solid transparent; border-radius:0; background:none; color:#5a625e; font-size:12.5px; font-weight:500; letter-spacing:.1em; line-height:1.35; white-space:nowrap; text-decoration:none; }
.atlas-brand nav.atlas-lang .atlas-lang-list a:hover, .atlas-brand nav.atlas-lang .atlas-lang-list a:focus-visible { background:#876d4314; color:#1c2523; outline:none; }
.atlas-brand nav.atlas-lang .atlas-lang-list a[aria-current="page"] { border-left-color:#a8842c; color:#a8842c; font-weight:700; }
/* 訳の表が届くまで、日本語の画面を隠す（3秒で必ず出す） */
html.is-lang-wait .atlas { visibility:hidden; }
/* 中国語・韓国語は、その言語の字形の書体で（日本語の書体のままだと、漢字の形が日本式になり、ない字は別の書体になる） */
html:lang(zh-Hans) body, html:lang(zh-Hans) body *:not(:lang(ja)) { font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif !important; }
html:lang(zh-Hant) body, html:lang(zh-Hant) body *:not(:lang(ja)) { font-family:"PingFang TC","Microsoft JhengHei","Noto Sans TC","Source Han Sans TC",sans-serif !important; }
html:lang(ko) body, html:lang(ko) body *:not(:lang(ja)) { font-family:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR","Source Han Sans K",sans-serif !important; }
html:lang(zh-Hans) .atlas-lang-toggle, html:lang(zh-Hant) .atlas-lang-toggle, html:lang(ko) .atlas-lang-toggle { font-family:"Cormorant Garamond","Times New Roman",serif !important; }
/* 日本語以外は名前が長くなるので、ルートA・Bのボタンの距離を名前の下の段に（横に並べると重なる） */
html:not(:lang(ja)) .atlas-variant button small { grid-area:2 / 1 / 3 / 3; justify-self:start; }
html:not(:lang(ja)) .atlas-variant button span { grid-area:3 / 1 / 4 / 3; }
/* 地図の上の名前の日英併記（2026-10-21 オーナー）：日本語の下に、その言語の名前を小さく */
.atlas-label-tr { display:block; margin-top:1px; font-size:.86em; font-weight:500; line-height:1.25; letter-spacing:0; opacity:.86; white-space:nowrap; }
.leaflet-tooltip:lang(ja) { font-family:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif; }
.atlas-sight-label.is-art:lang(ja) { font-family:"Shippori Mincho","Hiragino Mincho ProN","Yu Mincho",serif; }
.atlas-sight-label.is-art .atlas-label-tr { font-family:"Zen Kaku Gothic New",system-ui,sans-serif; }
