main > .prefecture-index { padding-block-end: 3rem; }
.prefecture-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.prefecture-hero:has(.region-map[hidden]) { display: block; }
.index-intro { max-width: 54ch; color: var(--shell-muted); }
.index-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; margin-top: 1.4rem; }
.index-filters label { color: var(--shell-text); font-size: .82rem; font-weight: 650; }
.index-filters .select-picker > button { padding-inline-end: 14px; }
.index-filters #category-selected { white-space: normal; }
.index-filters .select-picker { z-index: 1; }
.index-filters .select-picker:has([aria-expanded="true"]) { z-index: 12; }
.index-search > span {
  display: flex; align-items: center; gap: .55rem; min-height: 46px; margin-top: .4rem; padding-inline: .7rem;
  border: 1px solid var(--shell-rule); border-radius: .65rem; background: var(--shell-control);
}
.index-search svg { width: 18px; height: 18px; color: var(--shell-muted); flex: none; }
.index-search input[type="search"] {
  width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; outline: 0;
  color: var(--shell-ink); font: inherit; font-size: 1rem; font-weight: 400; background: transparent;
}
.index-search input::placeholder { color: var(--shell-muted); opacity: 1; }
.index-search > span:focus-within { outline: 3px solid var(--shell-focus); outline-offset: 2px; }
.region-map {
  position: relative; overflow: hidden; border: 1px solid var(--shell-rule); border-radius: 1rem;
  background-color: var(--shell-control);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--shell-muted) 18%, transparent) .8px, transparent 1px);
  background-size: 14px 14px;
}
.map-heading, .map-toggle { display: flex; align-items: center; gap: .5rem; color: var(--shell-ink); font-weight: 650; font-size: .88rem; }
.map-heading { margin: .8rem 1rem 0; line-height: 1.25; }
.map-heading svg, .map-toggle svg { width: 18px; height: 18px; flex: none; color: var(--shell-accent); }
.map-toggle { display: none; }
#region-outline { display: block; width: 100%; height: clamp(250px, 23vw, 310px); margin: .5rem 0; overflow: visible; }
.region-land { fill: color-mix(in srgb, var(--shell-muted) 40%, var(--shell-control)); stroke: var(--shell-bg); stroke-width: .65; stroke-linejoin: round; paint-order: stroke fill; }
.region-map [data-map-region] { cursor: pointer; color: var(--shell-text); outline: none; }
.region-map text { fill: currentColor; font: 640 10.5px var(--shell-sans); paint-order: stroke; stroke: var(--shell-control); stroke-width: 2.5; stroke-linejoin: round; }
.region-map polyline { fill: none; stroke: currentColor; stroke-width: .8; pointer-events: none; }
.region-map circle { fill: var(--shell-bg); stroke: currentColor; stroke-width: 1; }
.map-inset { fill: var(--shell-control); stroke: var(--shell-rule); stroke-dasharray: 3 2; }
.region-map g:is([aria-pressed="true"], :hover, :focus-visible) { color: var(--shell-accent); }
.region-map g:is([aria-pressed="true"], :hover, :focus-visible) .region-land { fill: var(--shell-accent); }
.region-map g[data-empty]:not(:hover, :focus-visible, [aria-pressed="true"]) .region-land { fill: var(--shell-rule); }
.region-map g:focus-visible text { text-decoration: underline; }
.region-map g[aria-pressed="true"] text { font-weight: 800; }
.prefecture-summary {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 1rem; border-top: 1px solid var(--shell-rule); padding-top: 1.35rem;
}
.prefecture-summary h2 { margin: 0; font-size: clamp(1.6rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -.04em; }
.prefecture-summary p, .prefecture-empty { margin: .3rem 0 0; color: var(--shell-muted); font-size: .9rem; }
.prefecture-summary button { border: 1px solid var(--shell-rule); border-radius: .65rem; background: var(--shell-control); color: var(--shell-ink); min-height: 44px; padding: .5rem .85rem; }
.prefecture-group-results { scroll-margin-top: 6rem; }
.prefecture-group-results h2 { font-size: 1.15rem; margin: 1.4rem 0 .65rem; }
.prefecture-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: .75rem; }
.prefecture-list-link {
  display: flex; align-items: center; gap: .65rem; height: 100%; min-height: 58px; padding: .5rem .85rem;
  border: 1px solid var(--shell-rule); border-radius: .85rem; background: var(--shell-control);
  color: var(--shell-ink); text-decoration: none;
}
.prefecture-list-link strong { flex: 1; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.025em; }
.prefecture-count { color: var(--shell-accent); font-size: .85rem; font-weight: 550; }
.prefecture-list-link .prefecture-outline {
  display: block; flex: none; width: clamp(34px, 3.4vw, 42px); height: auto; color: var(--shell-accent);
  fill: currentColor; fill-opacity: .19; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round;
}
.prefecture-list-link > .icon-tabler-chevron-right { flex: none; width: 15px; height: 15px; color: var(--shell-accent); }
.prefecture-list-link:is(:hover, :focus-visible), .prefecture-summary button:hover { background: var(--shell-control-hover); }
.prefecture-list-link:is(:hover, :focus-visible) strong { text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 1000px) {
  .prefecture-hero { gap: 1.5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .prefecture-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .prefecture-hero { display: block; }
  .region-map { margin-top: 1rem; }
  .map-heading { display: none; }
  .map-toggle { display: flex; width: 100%; padding: .7rem 14px; min-height: 46px; border: 0; background: var(--shell-control); text-align: start; }
  .map-toggle:focus-visible { outline-offset: -3px; }
  .map-toggle svg:last-child { margin-left: auto; color: var(--shell-text); }
  .map-toggle[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
  .map-toggle[aria-expanded="false"] + #region-outline { display: none; }
  #region-outline { height: min(76vw, 320px); }
}
@media (max-width: 570px) {
  .prefecture-cards { grid-template-columns: minmax(0, 1fr); }
  .index-filters { gap: .75rem; }
  .index-filters .select-picker > button { gap: .35rem; padding-inline-start: .5rem; }
}
