/* ============================================================
   全国マップ（/pond/）— 2026-10-28
   A small relief model of Japan: pale sea with shallows along the coast,
   islands with a visible thickness, the chosen prefecture lifted in jade.
   ============================================================ */
.jmap { margin: 6px 0 8px; }

/* step 1: regions */
.jmap-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; margin: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jmap-chips::-webkit-scrollbar { display: none; }
.jmap-chips button { flex: none; font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.jmap-chips button:hover { border-color: var(--jade); color: var(--jade); }
.jmap-chips button[aria-pressed="true"] { background: var(--jade); border-color: var(--jade); color: #fff; }

.jmap-layout { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .jmap-layout { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .jmap-layout .pond-result { position: sticky; top: 84px; max-height: calc(100vh - 108px); overflow: auto; margin: 0; padding-top: 18px; overscroll-behavior: contain; }
}
.jmap-layout .pond-result { scroll-margin-top: 72px; }

/* the map */
.jmap-stage { position: relative; }
.jmap-svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1019; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; border-radius: 2px; }
.jmap:not(.is-ready) .jmap-svg { background: #f1f4f1; }
.jm-sea { fill: #f1f4f1; }
.jm-grat { fill: none; stroke: #e3e8e4; stroke-width: 1px; vector-effect: non-scaling-stroke; }
#jm-solid path { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.jm-shallow2 { fill: none; stroke: #e9eeea; stroke-width: 26px; }
.jm-shallow1 { fill: none; stroke: #dfe8e3; stroke-width: 12px; }
.jm-shadowfill { fill: #1b302c; opacity: .26; }
.jm-side { stroke: none; }
.jm-inset { fill: rgba(251, 251, 249, .55); stroke: #d3d9d4; stroke-width: 1px; vector-effect: non-scaling-stroke; cursor: pointer; }
.jm-inset:hover { stroke: var(--jade); }
.jm-inset-label { font-family: var(--sans); fill: var(--mute); letter-spacing: .08em; paint-order: stroke; stroke: rgba(241, 244, 241, .9); stroke-width: calc(var(--u, 1) * 3px); stroke-linejoin: round; }
.jmap.is-moving .jm-shadowfill { visibility: hidden; }   /* the blurred shadow is costly to redraw while zooming */

.jm-pref { fill: #e6eae6; stroke: #fbfbf9; stroke-width: .9px; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .22s ease, transform .22s ease; }
.jm-pref.has-spots { fill: #c8ddd5; }
.jm-pref.is-hot { fill: #dce4df; }
.jm-pref.has-spots.is-hot { fill: #b3cfc6; }
@media (hover: hover) and (pointer: fine) {
  .jmap:not([data-view="all"]) .jm-pref:hover { fill: #dce4df; transform: translateY(calc(var(--u, 1) * -2px)); }
  .jmap:not([data-view="all"]) .jm-pref.has-spots:hover { fill: #b3cfc6; }
}
.jmap .jm-pref.is-sel, .jmap:not([data-view="all"]) .jm-pref.is-sel:hover { fill: var(--jade); transform: translateY(calc(var(--u, 1) * -5px)); filter: url(#jm-lift); }
.jm-regionlines path { fill: none; stroke: #fbfbf9; stroke-width: 2.2px; vector-effect: non-scaling-stroke; pointer-events: none; }

.jm-labels, .jm-rlabels, .jm-inset-label { pointer-events: none; }
.jm-label { font-family: var(--sans); font-weight: 500; fill: #5d6965; text-anchor: middle; paint-order: stroke; stroke: rgba(241, 244, 241, .9); stroke-width: calc(var(--u, 1) * 3px); stroke-linejoin: round; transition: transform .22s ease; }
.jm-label.has-spots { fill: var(--ink); }
.jm-label .jm-count { fill: var(--jade); font-size: .8em; }
.jm-label.is-sel { fill: #fff; stroke: rgba(22, 79, 76, .55); transform: translateY(calc(var(--u, 1) * -5px)); }
.jm-label.is-sel .jm-count { fill: #e3efeb; }
.jmap[data-view="all"] .jm-labels { display: none; }
.jm-rlabel { font-family: var(--serif-ja); font-weight: 500; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; letter-spacing: .14em; paint-order: stroke; stroke: rgba(241, 244, 241, .92); stroke-width: calc(var(--u, 1) * 4px); stroke-linejoin: round; }
.jmap:not([data-view="all"]) .jm-rlabels { display: none; }

.jmap-back { position: absolute; top: 10px; left: 10px; font-family: var(--sans); font-size: .8rem; letter-spacing: .04em; color: var(--ink); background: rgba(251, 251, 249, .94); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 11px; cursor: pointer; }
.jmap-back:hover { border-color: var(--jade); color: var(--jade); }
.jmap-back[hidden] { display: none; }
.jmap-hint { font-family: var(--sans); font-size: .8rem; color: var(--ink-2); margin: 10px 0 0; min-height: 1.6em; }
.jmap-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--sans); font-size: .76rem; color: var(--mute); margin: 6px 0 0; }
.jmap-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; background: #c8ddd5; border-radius: 2px; }
.jmap-legend i.off { background: #e6eae6; box-shadow: inset 0 0 0 1px #dde2de; }

/* step 2 without the map: a plain list */
.jmap-list { margin: 16px 0 0; border-top: 1px solid var(--line); }
.jmap-list summary { cursor: pointer; list-style: none; font-family: var(--sans); font-size: .86rem; font-weight: 700; color: var(--jade); padding: 12px 0; }
.jmap-list summary::-webkit-details-marker { display: none; }
.jmap-list summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 400; }
.jmap-list[open] summary::before { content: "−"; }
.jmap-list .grp { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 4px 12px; padding: 10px 0 4px; border-top: 1px solid var(--line); }
.jmap-list .grp > span { font-family: var(--serif-ja); font-size: .88rem; color: var(--ink); padding-top: 4px; }
.jmap-list button { font-family: var(--sans); font-size: .82rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px; margin: 0 6px 6px 0; cursor: pointer; }
.jmap-list button:hover { border-color: var(--jade); }
.jmap-list button .n { color: var(--jade); font-size: .74rem; margin-left: 5px; }
.jmap-list button[aria-pressed="true"] { background: var(--jade); border-color: var(--jade); color: #fff; }
.jmap-list button[aria-pressed="true"] .n { color: #e3efeb; }

.pond-result .pond-none { color: var(--ink-2); font-size: .92rem; margin: 0 0 14px; }

@media (prefers-reduced-motion: reduce) {
  .jm-pref, .jm-label, .jmap-chips button { transition: none; }
}
@media (max-width: 640px) {
  .jmap-list .grp { grid-template-columns: 1fr; gap: 2px; }
}

/* トップページに置いた地図（2026-11-07）：一覧の見た目は下層（tj-sub.css の .tj-sub）と同じにする */
.jmap-home .jmap { margin-top: 0; }
.jmap-home .pond-result { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 20px 0 0; max-width: none; }
.jmap-home .pond-result h3 { font-family: var(--serif-ja); font-weight: 500; color: var(--ink); background: none; border: 0; }
.jmap-home .pond-result-empty { color: var(--mute); background: none; }
.jmap-home .pond-card { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 14px 0; }
.jmap-home .pond-card:hover { border-color: var(--line); box-shadow: none; }
.jmap-home .pond-card .pond-name strong { font-family: var(--serif-ja); font-weight: 500; color: var(--ink); }
.jmap-home .pond-num { display: inline-block; min-width: 1.6em; font-family: var(--serif-en); font-size: 1.05rem; font-weight: 400; color: var(--mute); }
.jmap-home .pond-feat .tag { font-size: .7rem !important; }
.jmap-home .pond-actions a, .jmap-home .pond-actions .btn-official, .jmap-home .pond-actions .btn-portal { background: transparent !important; color: var(--jade) !important; border: 1px solid var(--line); border-radius: 3px; }
.jmap-home .pond-actions a:hover { border-color: var(--jade); }
.jmap-home .see-more-on-portal { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink); border-radius: 3px; box-shadow: none; font-weight: 600; }
.jmap-home .see-more-on-portal:hover { background: var(--ink) !important; color: #fff !important; }
.jmap-home .tj-links { margin-top: 24px; }

/* ============================================================
   釣り場の要点・出発地・比べる（2026-11-12）— js/pond-compare.js
   ============================================================ */
.pc-origin { margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.pc-origin__lead { font-size: .84rem; color: var(--ink-2); margin: 0 0 10px; }
.pc-origin__lead strong { color: var(--ink); }
.pc-origin__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-btn, .pc-select, .pc-addr input { font-family: var(--sans); font-size: .82rem; color: var(--ink); background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; line-height: 1.2; }
.pc-btn { cursor: pointer; }
.pc-btn:hover, .pc-select:hover { border-color: var(--jade); color: var(--jade); }
.pc-select { padding-right: 10px; max-width: 10em; }
.pc-addr { display: flex; gap: 6px; flex: 1 1 240px; min-width: 0; }
.pc-addr input { flex: 1 1 auto; min-width: 0; border-radius: 3px; }
.pc-btn:focus-visible, .pc-select:focus-visible, .pc-addr input:focus-visible, .pc-add:focus-visible, .pc-link:focus-visible, .pc-tray__open:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.pc-origin__now { font-size: .84rem; color: var(--ink); margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.pc-origin__now:empty, .pc-origin__msg:empty { display: none; }
.pc-origin__msg { font-size: .8rem; color: var(--jade-d, var(--jade)); margin: 8px 0 0; }
.pc-origin__note { font-size: .72rem; color: var(--mute); margin: 8px 0 0; }
.pc-link { font-family: var(--sans); font-size: .82rem; color: var(--jade); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pc-link--mute { color: var(--mute); }
.pc-note { font-family: var(--sans); font-size: .78rem; color: var(--mute); margin: 0 0 12px; }

/* 一覧のカードの要点 */
.pc-sum { display: grid; gap: 4px; margin: 10px 0 0; font-family: var(--sans); font-size: .8rem; line-height: 1.55; color: var(--ink); }
.pc-sum > div { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 8px; }
.pc-sum dt { color: var(--mute); font-weight: 400; }
.pc-sum dd { margin: 0; }
.pc-sum__warn dd { color: #8a4b12; }
.pc-dist { font-family: var(--sans); font-size: .8rem; color: var(--ink); margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.pc-dist:empty { display: none; }
.pc-dist__links { white-space: nowrap; }
.pc-dist__links a { color: var(--jade); margin-left: 8px; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 0; }
.pc-add { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--jade); background: transparent; border: 1px solid var(--jade); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.pc-add[aria-pressed="true"] { background: var(--jade); color: #fff; }
.pc-checked { font-family: var(--sans); font-size: .72rem; color: var(--mute); }

/* 下に出る「比べる」の帯 */
.pc-tray { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 900; width: min(640px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px 14px; padding: 10px 12px 10px 16px; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 24px rgba(27, 48, 44, .16); font-family: var(--sans); }
.pc-tray[hidden] { display: none; }
.pc-tray__names { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .8rem; line-height: 1.45; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-tray__open { flex: none; font-family: var(--sans); font-size: .84rem; font-weight: 700; color: #fff; background: var(--jade); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.pc-tray__open:disabled { background: #b9c9c3; cursor: default; }
.pc-tray .pc-link { flex: none; white-space: nowrap; }
body.pc-has-tray { padding-bottom: 88px; }

/* 比べる表 */
.pc-dialog { margin: auto; width: min(980px, calc(100% - 16px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 6px; background: var(--paper, #fff); color: var(--ink); box-shadow: 0 12px 40px rgba(27, 48, 44, .25); }
.pc-dialog::backdrop { background: rgba(20, 30, 28, .45); }
.pc-dialog__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper, #fff); border-bottom: 1px solid var(--line); }
.pc-dialog__head h2 { margin: 0; font-family: var(--serif-ja); font-weight: 500; font-size: 1.15rem; }
.pc-dialog > .pc-note { margin: 12px 16px 16px; }
.pc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pc-table { border-collapse: collapse; width: 100%; min-width: 520px; font-family: var(--sans); font-size: .82rem; line-height: 1.6; }
.pc-table th, .pc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pc-table thead th { font-family: var(--serif-ja); font-weight: 500; font-size: .95rem; color: var(--ink); min-width: 160px; }
.pc-table tbody th { position: sticky; left: 0; z-index: 1; width: 6em; min-width: 6em; background: var(--stone, #f3f4f1); color: var(--ink-2); font-weight: 700; font-size: .76rem; }
.pc-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper, #fff); min-width: 6em; }
.pc-table a { color: var(--jade); }
.pc-table .pc-dist__links a { margin: 0 8px 0 0; }
.pc-mute { color: var(--mute); }
.pc-warn { display: block; margin-top: 4px; font-family: var(--sans); font-size: .72rem; font-weight: 700; color: #8a4b12; }
.pc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .pc-table { font-size: .78rem; }
  .pc-table th, .pc-table td { padding: 9px 10px; }
  .pc-table thead th { min-width: 140px; }
}
