:root {
  color-scheme: light;
  --ink: #183f3c;
  --ink-muted: #566a63;
  --paper: #f7f6ee;
  --line: #e3e7db;
  --leaf: #507c50;
  --leaf-pale: #e9efdf;
  --coral: #df7954;
  --sea: #8ed2d5;
  --header-height: 78px;
  --panel-width: 300px;
  --panel-shadow: 0 12px 44px #173e3920, 0 2px 8px #173e3908;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { color: var(--ink); background: var(--sea); }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .48; }
[hidden] { display: none !important; }
svg { display: block; flex-shrink: 0; }
a { color: #366e64; text-underline-offset: 3px; }
.app-header { height: var(--header-height); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--paper); border-bottom: 1px solid #dce7dd; position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-symbol { width: 41px; height: 41px; color: var(--leaf); }
.brand-symbol svg { width: 100%; height: 100%; }
.brand-type { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-size: 23px; line-height: 1; letter-spacing: .08em; font-weight: 800; }
.brand-caption { font-size: 8px; font-weight: 700; letter-spacing: .2em; color: #7c8c7c; }
.header-meta { display: flex; align-items: center; gap: 16px; }
.island-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #dce3d5; border-radius: 100px; color: #58745c; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.island-pill > span { width: 6px; height: 6px; border-radius: 50%; background: #7a9d5a; }
.header-edition { color: #899184; font-size: 10px; letter-spacing: .07em; }
.map-workspace { position: relative; height: calc(100svh - var(--header-height)); width: 100%; overflow: hidden; isolation: isolate; background: var(--sea); }
#map-canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.explorer-panel { position: absolute; z-index: 5; top: 22px; left: 24px; bottom: 22px; width: var(--panel-width); display: flex; flex-direction: column; background: var(--paper); border: 1px solid #ffffffb0; border-radius: 19px; box-shadow: var(--panel-shadow); overflow: hidden; }
.panel-top { padding: 25px 23px 21px; position: relative; flex-shrink: 0; }
.eyebrow { margin: 0 0 12px; font-size: 10px; line-height: 1.3; letter-spacing: .15em; color: #7b8c72; font-weight: 700; }
h1 { margin: 0; font-size: 25px; line-height: 1.55; font-weight: 700; letter-spacing: .025em; }
.panel-lead { font-size: 10px; color: var(--ink-muted); line-height: 1.8; margin: 11px 0 0; white-space: nowrap; }
.panel-toggle { display: none; }
.panel-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0 19px 20px; scrollbar-width: thin; scrollbar-color: #ccd6c7 transparent; }
.panel-scroll::-webkit-scrollbar { width: 4px; }
.panel-scroll::-webkit-scrollbar-thumb { border-radius: 4px; background: #ccd6c7; }
.area-section { padding-top: 17px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 12px; }
.section-heading h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .045em; }
.count-label { color: #83917f; font-size: 10px; font-variant-numeric: tabular-nums; }
.region-filters { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid #e6e9df; border-radius: 10px; background: #eceee4; }
.region-filters button { border: 0; background: transparent; border-radius: 7px; font-size: 10px; font-weight: 600; padding: 8px 2px; color: #81917c; transition: background .15s, color .15s, box-shadow .15s; }
.region-filters button:hover { color: var(--ink); background: #ffffff70; }
.region-filters button.is-active, .region-filters button.active, .region-filters button[aria-pressed="true"] { color: #335c40; background: #fffef7; box-shadow: 0 1px 4px #31492c10; }
.spot-list { display: flex; flex-direction: column; gap: 5px; margin-top: 11px; }
#spot-list:empty { min-height: 16px; }
#spot-list button { position: relative; width: 100%; display: flex; align-items: center; gap: 9px; padding: 11px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; text-align: left; font-size: 11px; line-height: 1.5; transition: background .15s, border-color .15s; }
#spot-list button:hover { background: #ecefe3; }
#spot-list button.is-active, #spot-list button.active, #spot-list button.selected, #spot-list button[aria-pressed="true"], #spot-list button[aria-current="true"] { background: #f7e8da; border-color: #e9cab4; color: #854d37; }
#spot-list button > span:first-child:only-child { width: 100%; }
#spot-list button small, #spot-list .spot-region, #spot-list .spot-meta { font-size: 9px; color: #8a9583; }
#spot-list .spot-name { display: block; font-weight: 600; }
#spot-list .spot-dot, #spot-list .spot-marker { width: 6px; height: 6px; background: #86a263; border-radius: 50%; flex: 0 0 auto; }
#spot-list button.is-active .spot-dot, #spot-list button.active .spot-dot, #spot-list button.selected .spot-dot { background: var(--coral); }
.selected-area { margin-top: 18px; padding: 18px 3px 17px; border-top: 1px solid var(--line); }
.selected-kicker { display: flex; align-items: center; gap: 6px; color: #b16e4b; font-size: 9px; font-weight: 700; letter-spacing: .07em; }
.selection-dot { width: 5px; height: 5px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 3px #df795413; }
#selected-name { margin: 9px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
#selected-description { margin: 0; color: #758477; font-size: 10px; line-height: 1.95; }
.coordinates { margin: 10px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; color: #97a08f; letter-spacing: .025em; font-variant-numeric: tabular-nums; }
.conditions-section { border-top: 1px solid var(--line); padding-top: 16px; }
.loading-copy { font-size: 10px; color: #8e9988; margin: 0; padding: 4px 3px 16px; }
.source-note { border-top: 1px solid var(--line); margin-top: 15px; padding: 13px 3px 0; color: #939d8d; font-size: 8px; line-height: 1.85; }
.seabed-notice { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #83917e; margin: 0 0 6px; }
.seabed-notice svg { width: 14px; height: 14px; }
#geo-source-info { overflow-wrap: anywhere; }
#geo-source-info a { color: inherit; }
.map-controls { position: absolute; z-index: 6; top: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; }
.control-group { display: flex; flex-direction: column; border-radius: 12px; background: var(--paper); box-shadow: 0 3px 14px #234b3f16; overflow: hidden; border: 1px solid #ffffffb0; }
.map-control { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ffffffb0; background: var(--paper); width: 48px; min-height: 48px; border-radius: 12px; box-shadow: 0 3px 14px #234b3f16; transition: background .15s, transform .15s; }
.map-control:hover { background: #fffef7; transform: translateY(-1px); }
.map-control:active { transform: translateY(0); background: #e9efdf; }
.map-control svg { width: 21px; height: 21px; }
.control-group .map-control { border: 0; border-radius: 0; box-shadow: none; }
.control-group .map-control + .map-control { border-top: 1px solid #e7eadd; }
.labeled-control { gap: 5px; padding: 10px 2px 8px; }
.labeled-control > span { font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.map-hint { position: absolute; z-index: 2; right: 25px; bottom: 24px; display: flex; align-items: center; gap: 7px; color: #367e7b; font-size: 10px; line-height: 1.5; pointer-events: none; letter-spacing: .025em; text-shadow: 0 1px 5px #bde8e6; }
.map-hint svg { width: 17px; height: 17px; }
.performance-label { position: absolute; right: 26px; bottom: 9px; font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; color: #3a8a875e; pointer-events: none; }
.performance-label:empty { display: none; }
.map-status { position: absolute; z-index: 4; top: 25px; left: calc(50% + 100px); transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 12px 17px; border: 1px solid #ffffffa0; border-radius: 100px; background: #f7f6eef2; box-shadow: 0 3px 18px #205b4612; font-size: 11px; color: #52745e; white-space: nowrap; }
.status-spinner { width: 13px; height: 13px; border: 1.5px solid #cedac4; border-top-color: #6a8e54; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-error { position: absolute; z-index: 7; top: 25px; left: 50%; transform: translateX(-50%); max-width: min(420px, calc(100% - 36px)); padding: 15px 20px; border: 1px solid #e3b9a5; border-radius: 13px; background: #fff7ee; color: #8d503e; font-size: 12px; line-height: 1.8; box-shadow: var(--panel-shadow); }

@media (min-width: 1450px) { .explorer-panel { left: 30px; top: 28px; bottom: 28px; } }
@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .app-header { padding: 0 17px; gap: 12px; }
  .brand { gap: 7px; }
  .brand-symbol { width: 32px; height: 32px; }
  .brand-name { font-size: 20px; letter-spacing: .06em; }
  .brand-caption { font-size: 6px; letter-spacing: .16em; }
  .brand-type { gap: 4px; }
  .header-edition { display: none; }
  .island-pill { padding: 7px 10px; font-size: 10px; gap: 5px; }
  .island-pill > span { width: 5px; height: 5px; }
  .explorer-panel { top: auto; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; height: min(320px, 42svh); max-height: calc(100% - 90px); border-radius: 19px; transition: height .2s ease; }
  .panel-top { padding: 19px 20px 12px; min-height: 81px; display: flex; justify-content: space-between; align-items: center; }
  .panel-heading .eyebrow { display: none; }
  h1 { font-size: 17px; line-height: 1.45; letter-spacing: .02em; }
  .desktop-break { display: none; }
  .panel-lead { font-size: 9px; margin-top: 4px; line-height: 1.6; }
  .panel-toggle { position: absolute; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; right: 9px; top: 23px; padding: 10px; border: 0; border-radius: 9px; background: transparent; }
  .panel-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
  .sheet-handle { position: absolute; top: -17px; right: calc(50vw - 34px); width: 30px; height: 3px; border-radius: 5px; background: #d2dacc; }
  .panel-scroll { padding: 0 17px 17px; }
  .area-section { padding-top: 12px; }
  .section-heading { margin-bottom: 9px; }
  .section-heading h2 { font-size: 11px; }
  .region-filters button { font-size: 10px; padding: 7px 2px; }
  .spot-list { flex-direction: row; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; margin-top: 9px; gap: 6px; }
  .spot-list::-webkit-scrollbar { display: none; }
  #spot-list button { flex: 0 0 auto; width: auto; max-width: 190px; border-color: #e0e5d8; background: #f1f2e8; padding: 9px 11px; white-space: nowrap; font-size: 11px; }
  #spot-list button small { display: none; }
  .selected-area { margin-top: 11px; padding-top: 13px; }
  #selected-name { font-size: 17px; margin-top: 6px; }
  #selected-description { font-size: 10px; line-height: 1.85; }
  .explorer-panel.is-collapsed { height: 81px; }
  .explorer-panel.is-collapsed .panel-scroll { visibility: hidden; overflow: hidden; }
  .explorer-panel.is-collapsed .panel-toggle svg { transform: rotate(180deg); }
  .map-controls { top: 16px; right: 14px; gap: 8px; }
  .map-control { width: 42px; min-height: 42px; border-radius: 10px; }
  .map-control svg { width: 19px; height: 19px; }
  .labeled-control { gap: 4px; padding: 9px 2px 7px; }
  .labeled-control > span { font-size: 7px; }
  .control-group { border-radius: 10px; }
  .map-hint { top: 20px; bottom: auto; left: 18px; right: 75px; font-size: 8px; gap: 5px; }
  .map-hint svg { width: 14px; height: 14px; }
  .map-status { top: 55px; left: 18px; max-width: calc(100% - 90px); transform: none; border-radius: 10px; white-space: normal; padding: 10px 12px; font-size: 10px; line-height: 1.7; }
  .map-error { top: 55px; left: 15px; transform: none; max-width: calc(100% - 88px); font-size: 10px; padding: 11px 14px; }
  .performance-label { right: 18px; bottom: 2px; font-size: 7px; }
}
@media (max-width: 380px) { .panel-top { padding-left: 16px; } h1 { font-size: 16px; } .panel-lead { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }
