:root {
  --ocean-deep: #3b8df7;
  --ocean: #6bb6ff;
  --aqua: #9fd4ff;
  --foam: #f7faff;
  --sand: #fff6eb;
  --ink: #3e4c5b;
  --muted: #6f7d8d;
  --line: #dfe8f3;
  --coral: #ffb36b;
  --leaf: #72d865;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #f3f6fc; }
body { min-height: 100dvh; margin: 0; color: var(--ink); background: #f3f6fc; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; }
button { font: inherit; }
.app-shell { width: 100%; min-height: 100dvh; margin: 0; background: var(--foam); overflow: hidden; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; min-height: 112px; padding: calc(20px + env(safe-area-inset-top)) 20px 18px; color: #fff; background: linear-gradient(135deg, #3b8df7 0%, #6bb6ff 100%); }
.topbar > div { min-width: 0; flex: 1; }
.eyebrow, .label { margin: 0; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.eyebrow { display: inline-block; color: rgba(255,255,255,.7); text-decoration: none; transition: color .18s ease, transform .18s ease; }
.eyebrow:hover, .eyebrow:focus-visible { color: #fff; transform: translateY(-1px); }
h1, h2, p { margin-top: 0; }
h1 { max-width: none; margin: 7px 0 0; font-size: clamp(15px, 5vw, 29px); letter-spacing: -.08em; line-height: 1.25; white-space: nowrap; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.025em; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(255,255,255,.14); }
.topbar .icon-button { flex: 0 0 auto; margin-left: 10px; }
.icon-button svg { width: 21px; fill: currentColor; }
.map-panel { position: relative; height: min(42dvh, 380px); min-height: 280px; background: #bfe1ff; }
#map { width: 100%; height: 100%; background: #bfe1ff; }
.map-error { display: grid; height: 100%; place-items: center; padding: 32px; color: #47657d; font-size: 13px; font-weight: 700; line-height: 1.7; text-align: center; background: linear-gradient(135deg, #e8f4ff, #cce6ff); }
.map-recenter { position: absolute; z-index: 500; border-radius: 99px; box-shadow: 0 5px 18px rgba(5,70,80,.14); }
.map-recenter { right: 12px; bottom: 14px; padding: 9px 12px; border: 0; color: var(--ocean-deep); font-size: 12px; font-weight: 800; background: rgba(255,255,255,.95); }
.route-sheet { position: relative; margin-top: -17px; padding: 10px 20px 24px; border-radius: 22px 22px 0 0; background: var(--foam); }
.sheet-grip { width: 38px; height: 4px; margin: 0 auto 16px; border-radius: 20px; background: #c9ddf2; }
.location-status { margin: 0 0 12px; padding: 8px 11px; border: 1px solid #cfe5f8; border-radius: 99px; color: #3b78ba; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; background: #edf6ff; }
.location-status.error { color: #8c4944; border-color: #f1d2cd; background: #fff3f0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label { color: var(--ocean); }
.sample-chip { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #ffd4aa; border-radius: 6px; color: #9a6230; font-size: 10px; font-weight: 800; background: #fff8f0; }
.source-chip { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #b9d9fa; border-radius: 6px; color: #3b78ba; font-size: 10px; font-weight: 800; background: #edf6ff; }
.spot-filters { display: flex; gap: 7px; margin: 14px -20px 0; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; }
.spot-filters::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #c9def5; border-radius: 99px; color: #56708d; font-size: 11px; font-weight: 800; background: white; }
.filter-button.active { border-color: var(--ocean); color: white; background: var(--ocean); }
.spot-scroller { display: flex; gap: 9px; margin: 16px -20px 16px; padding: 0 20px 3px; overflow-x: auto; scrollbar-width: none; }
.spot-scroller::-webkit-scrollbar { display: none; }
.spot-button { flex: 0 0 132px; min-height: 75px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); text-align: left; background: white; box-shadow: 0 2px 6px rgba(10,79,86,.03); transition: .18s; }
.spot-button.active { border-color: var(--ocean); color: white; background: var(--ocean); box-shadow: 0 6px 16px rgba(10,116,132,.22); }
.spot-category { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.category-icon { display: inline-grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 6px; font-size: 13px; line-height: 1; background: #edf6ff; }
.spot-button.active .category-icon { background: rgba(255,255,255,.18); }
.spot-button.active .spot-category { color: rgba(255,255,255,.68); }
.spot-name { display: block; font-size: 13px; font-weight: 800; line-height: 1.35; }
.route-intro { display: flex; align-items: center; justify-content: space-between; min-height: 55px; padding: 11px 12px; border-radius: 11px; background: #edf6ff; }
.route-kicker { margin: 0; color: var(--ocean-deep); font-size: 13px; font-weight: 800; }
.route-note { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.route-badge { padding: 4px 7px; border-radius: 5px; color: #3b78ba; font-size: 10px; font-weight: 800; background: #dcecff; }
.route-options { display: grid; gap: 8px; margin: 11px 0; }
.route-awaiting { padding: 14px; border: 1px dashed #b5d8d5; border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; background: #fbfefe; }
.route-option { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 11px 10px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-align: left; background: white; }
.route-option.active { border: 2px solid var(--ocean); padding: 10px 9px; background: #f2fcfc; }
.route-symbol { width: 24px; height: 24px; border-radius: 50%; }
.route-symbol.quick { border: 3px solid #f16d52; }
.route-symbol.scenic { border: 3px dashed #0a9c91; }
.route-option strong { display: block; font-size: 13px; }
.route-option small { color: var(--muted); font-size: 11px; }
.route-metrics { color: var(--ocean-deep); font-size: 12px; font-weight: 800; text-align: right; }
.route-metrics span { display: block; margin-top: 3px; color: var(--muted); font-weight: 600; }
.primary-button { width: 100%; padding: 15px 18px; border: 0; border-radius: 13px; color: white; font-weight: 800; background: #4f96f6; box-shadow: 0 6px 14px rgba(59,141,247,.22); }
.primary-button:disabled { color: #8ea3a7; background: #d8e7e6; box-shadow: none; }
.route-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.route-data-note { margin: 10px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.conditions, .shops { padding: 24px 20px; border-top: 8px solid #edf3fb; background: white; }
.refresh-button { padding: 7px 10px; border: 1px solid #a8cdf5; border-radius: 8px; color: #4f96f6; font-size: 11px; font-weight: 800; background: #f1f7ff; }
.refresh-button:disabled { opacity: .55; }
.sync-note { margin: 10px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.condition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.condition-card { min-height: 115px; padding: 12px; border: 1px solid #e3efee; border-radius: 14px; background: #fbfefe; }
.condition-card p { margin: 6px 0 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.condition-card strong { display: block; font-size: 17px; letter-spacing: -.03em; }
.condition-card strong b { font-size: 12px; }
.condition-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.condition-icon { color: var(--ocean); font-size: 22px; line-height: 1; }
.weather .condition-icon { color: var(--coral); }
.data-caution, .shop-live-note { margin: 13px 0 0; color: #71898e; font-size: 10px; line-height: 1.65; }
.ad-section { padding: 10px 20px 16px; border-top: 8px solid #edf3fb; background: white; }
.ad-label { margin: 0 0 5px; color: #9aa8b8; font-size: 9px; line-height: 1; text-align: center; }
.map-ad { width: 100%; min-height: 100px; margin: 0 auto; }
.shop-list { display: grid; gap: 10px; margin-top: 15px; }
.shop-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e5eeee; border-radius: 12px; }
.shop-type { display: flex; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; color: #4f96f6; font-size: 10px; font-weight: 800; line-height: 1; text-align: center; background: #eaf4ff; }
.shop-icon { font-size: 18px; line-height: 1; }
.shop-category { font-size: 8px; line-height: 1.05; }
.shop-name { font-size: 13px; font-weight: 800; }
.shop-name span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.shop-name small { display: block; margin-top: 4px; color: #84999d; font-size: 9px; font-weight: 500; }
.shop-side { display: grid; justify-items: end; gap: 6px; }
.shop-links { display: flex; gap: 6px; }
.shop-links a { color: #4f96f6; font-size: 10px; font-weight: 800; text-decoration: none; }
.shop-links a + a { padding-left: 6px; border-left: 1px solid #c9def5; }
.open-status { padding: 5px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.open { color: #17825f; background: #e3f7ee; }
.closed { color: #9b5b56; background: #fff0ed; }
.check { color: #7e6842; background: #fff6df; }
.toast { position: fixed; z-index: 1000; right: 16px; bottom: 18px; left: 16px; max-width: 420px; margin: auto; padding: 12px 14px; border-radius: 10px; color: white; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(14px); pointer-events: none; background: rgba(12,46,55,.93); transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.marker-dot { width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.28); background: #4f96f6; }
.spot-pin { display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid white; border-radius: 50%; box-shadow: 0 3px 9px rgba(0,0,0,.25); background: #6bb6ff; }
.spot-pin span { display: grid; place-items: center; font-size: 20px; line-height: 1; }
.spot-pin.beach { background: #6bb6ff; }
.spot-pin.shop { background: #ffb36b; }
.spot-pin.history { background: #754ed5; }
.spot-pin.travel { background: #72d865; }
.popup-select { margin: 6px 0 4px; padding: 5px 7px; border: 1px solid #9dcfcb; border-radius: 6px; color: var(--ocean-deep); font-size: 11px; font-weight: 800; background: #f4fdfc; }
.app-footer { padding: 24px 20px calc(26px + env(safe-area-inset-bottom)); color: #6f7d8d; font-size: 10px; line-height: 1.7; background: #f3f6fc; }
.native-app .ad-section { display: none; }
.app-footer p { margin: 0 0 8px; }
.app-footer a { color: #4f96f6; font-weight: 800; }
.policy-content { padding: 28px 20px 36px; background: white; }
.policy-content h2 { margin: 28px 0 9px; color: #4f96f6; font-size: 18px; }
.policy-content p, .policy-content li { color: #43656c; font-size: 14px; line-height: 1.8; }
.policy-content ul { margin: 0; padding-left: 1.2em; }
.policy-content a { color: #4f96f6; font-weight: 800; }
.policy-updated { color: var(--muted) !important; font-size: 12px !important; }
.policy-back { display: inline-block; margin-top: 28px; padding: 12px 15px; border-radius: 12px; color: white !important; text-decoration: none; background: #4f96f6; }
.leaflet-control-attribution { font-size: 9px !important; }
@media (min-width: 900px) { .route-sheet, .conditions, .ad-section, .shops, .app-footer { padding-right: clamp(28px, 8vw, 160px); padding-left: clamp(28px, 8vw, 160px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
