:root { color-scheme: light; --ink: #19364e; --blue: #143d67; --accent: #b84920; --line: #dce5e9; --muted: #536876; --soft: #e8f1f6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f5f8fa; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 16px; line-height: 1.7; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #cc632e; outline-offset: 4px; }
button { touch-action: manipulation; }
.skip { position: absolute; left: 12px; top: -80px; background: white; padding: 12px; z-index: 10; }
.skip:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 20px max(5vw,24px); background: #fff; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; line-height: 1.35; letter-spacing: .05em; }
.brand-icon { background: var(--blue); color: white; font-size: 27px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; }
.brand-sub { display: block; font-size: 13px; margin-top: 4px; font-weight: 500; }
.programs { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.programs span + span { border-left: 1px solid var(--line); padding-left: 20px; }
main { max-width: 1320px; margin: auto; padding: 38px 40px 50px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
h1 { margin: 5px 0 10px; font-size: clamp(26px,2.5vw,36px); font-weight: 750; letter-spacing: .045em; line-height: 1.5; }
.intro p { margin: 0; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--muted); margin: 0 0 7px; }
.mobile-break { display: none; }
.stats { display: flex; gap: 27px; flex-shrink: 0; }
.stat { border-left: 1px solid #ccd8df; padding-left: 24px; }
.stat strong { display: block; font-size: 35px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.explorer { display: grid; grid-template-columns: minmax(0,1fr) 312px; border: 1px solid var(--line); background: white; border-radius: 14px; overflow: hidden; box-shadow: 0 5px 22px #173c5b04; }
.map-panel { padding: 24px 26px 18px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 20px; line-height: 1.5; margin: 0; }
.section-heading h2 { font-size: 17px; }
.step { font-size: 13px; color: #687d89; margin-right: 12px; font-weight: 500; }
.text-button { border: none; background: transparent; color: var(--blue); font-size: 14px; padding: 5px 0; text-decoration: underline; text-underline-offset: 5px; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 16px; }
.tile-map { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); grid-template-rows: repeat(10,minmax(40px,auto)); gap: 4px; background: radial-gradient(circle,#d8e4ed 1px,transparent 1px) 0 0/15px 15px; border-radius: 10px; padding: 16px 10px; position: relative; }
.tile { min-width: 0; border: 1px solid #cadce8; background: #e2edf4; color: #254d6b; border-radius: 5px; line-height: 1.3; padding: 5px 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .15s, transform .15s; position: relative; z-index: 1; }
.tile-name { font-size: 13px; white-space: nowrap; font-weight: 650; }
.tile-count { font-size: 12px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tile.many { background: #5b809f; color: white; border-color: #5b809f; }
.tile.zero { background: #f2f5f7; color: #74838b; border: 1px solid #e1e6ea; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 3px 7px #143d6722; }
.tile.selected { background: var(--accent); border-color: var(--accent); color: white; box-shadow: 0 0 0 2px #fff,0 0 0 4px var(--accent); z-index: 2; }
.map-caption { grid-column: 2/8; grid-row: 2/4; align-self: center; padding-left: 5px; pointer-events: none; }
.map-caption strong { display: block; font-size: 26px; font-weight: 450; letter-spacing: .15em; color: #416681; }
.map-caption span { font-size: 12px; letter-spacing: .15em; color: #6b8192; }
.map-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 19px; flex-wrap: wrap; }
.other-button { border: 1px solid #c9d8e2; background: white; color: var(--blue); border-radius: 6px; padding: 9px 13px; font-size: 14px; }
.other-button span { padding-left: 17px; font-weight: bold; }
.other-button.selected { background: var(--accent); color: white; border-color: var(--accent); }
.legend { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.legend-square { width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.empty-square { background: #eef2f5; border: 1px solid #ccd8df; }.light-square { background: #d8e8f2; }.dark-square { background: #5b809f; }
.map-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.category-panel { padding: 24px 21px; border-left: 1px solid var(--line); background: #fbfcfd; }
#categories { max-height: 463px; overflow-y: auto; scrollbar-width: thin; padding-right: 5px; }
.category { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: none; border-bottom: 1px solid #e4ebef; background: transparent; color: var(--ink); font-size: 14px; padding: 11px 8px; border-radius: 4px; }
.category span:last-child { font-size: 12px; min-width: 28px; text-align: center; background: #e8eff3; padding: 0 5px; border-radius: 4px; color: #496176; }
.category:hover { background: #edf3f7; }.category.selected { background: var(--blue); color: white; }.category.selected span:last-child { background: #ffffff24; color: white; }
.results { padding-top: 35px; scroll-margin-top: 22px; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.result-heading h2 { font-size: 26px; }.result-heading .eyebrow { color: var(--accent); font-size: 13px; }
.result-status { color: var(--muted); font-size: 14px; margin: 9px 0 19px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 23px; display: flex; flex-direction: column; min-width: 0; }
.card-top { font-size: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; color: var(--muted); }
.show-label { color: var(--blue); font-weight: 650; }.show-label.engawa { color: #a94420; }
.card h3 { font-size: 19px; line-height: 1.65; margin: 13px 0 8px; overflow-wrap: anywhere; }
.card h3 a { text-decoration: none; }.card h3 a:hover { text-decoration: underline; }
.headline { font-size: 14px; color: #3e576a; margin: 0 0 12px; }
.summary { color: var(--muted); font-size: 14px; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.tag { font-size: 12px; color: #486577; background: #eff4f7; border-radius: 4px; padding: 3px 7px; }.tag.region { background: #e3edf4; color: #234f70; }
.episode-link { display: flex; justify-content: space-between; align-items: center; margin-top: 19px; padding-top: 13px; border-top: 1px solid #e5ebef; text-decoration: none; color: var(--blue); font-size: 14px; font-weight: 600; gap: 10px; }.episode-link:hover { color: var(--accent); }
.empty { grid-column: 1/-1; border: 1px dashed #bfcfd9; border-radius: 10px; padding: 36px; text-align: center; background: #fff; }.empty p { margin: 6px 0; font-size: 14px; color: var(--muted); }
.about { margin-top: 40px; border-top: 1px solid #cddbe4; padding: 22px 0 0; color: var(--muted); font-size: 14px; }.about summary { cursor: pointer; color: var(--ink); }.about p { max-width: 960px; }
footer { border-top: 1px solid var(--line); background: #fff; padding: 28px max(5vw,24px); display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); justify-content: space-between; }footer a { margin-left: 10px; }.source-links { width: 100%; font-size: 12px; }
@media(min-width:1450px) { main { padding-top: 44px; } }
@media(max-width:1100px) { main { padding: 28px 24px 40px; }.explorer { grid-template-columns:minmax(0,1fr) 270px; }.map-panel { padding: 22px 16px 18px; }.tile-map { padding: 12px 3px; gap: 3px; }.tile-name { font-size:12px; }.stats { gap:18px; }.stat { padding-left:18px; }.stat strong { font-size:28px; }.intro h1 { font-size: 28px; }.cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) { .explorer { grid-template-columns:1fr; }.category-panel { border-left:none; border-top:1px solid var(--line); }#categories { display:flex; flex-wrap:wrap; gap:7px; max-height:190px; }.category { width:auto; border:1px solid var(--line); border-radius:6px; padding:8px 10px; }.tile-map { grid-template-rows:repeat(10,minmax(45px,auto)); padding:16px 10px; }.tile-name { font-size:14px; }.stats { display:none; }.intro { margin-bottom:25px; }.programs { font-size:12px; gap:10px; }.programs span+span { padding-left:10px; } }
@media(max-width:540px) { .site-header { padding:15px 18px; }.programs { display:block; line-height:1.6; }.programs span { display:block; }.programs span+span { border:0; padding:0; }.brand { font-size:14px; gap:9px; }.brand-icon { width:34px;height:34px; }.brand-sub { font-size:12px; }main { padding:24px 14px 35px; }.intro h1 { font-size:27px; }.intro p:not(.eyebrow) { font-size:14px; }.mobile-break { display:block; }.eyebrow { font-size:12px; }.map-panel { padding:19px 10px 15px; }.tile-map { grid-template-rows:repeat(10,minmax(43px,auto)); gap:2px; padding:12px 0; }.tile-name { font-size:12px; writing-mode:vertical-rl; letter-spacing:1px; }.tile-count { font-size:12px; }.tile { padding:4px 0; border-radius:3px; }.map-caption { grid-column:1/8; }.map-caption strong { font-size:23px; }.map-caption span { font-size:12px; letter-spacing:0; }.section-heading { gap:8px; }.section-heading h2 { font-size:16px; }.step { margin-right:7px; }.hint { font-size:12px; }.map-bottom { margin-top:14px; }.category-panel { padding:20px 14px; }.cards { grid-template-columns:1fr; }.card { padding:21px; }.result-heading h2 { font-size:23px; }footer { padding:25px 20px; }footer a { display:inline-block; margin:0 12px 7px 0; }.legend { font-size:12px; gap:3px; }.map-note { font-size:12px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }* { transition:none!important; } }

.region-extras { display: flex; gap: 8px; flex-wrap: wrap; }
