@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Noto+Serif+JP:wght@500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  --paper: #f1efe8;
  --ink: #182425;
  --muted: #697371;
  --line: #c8ccc5;
  --sea: #176b72;
  --sea-dark: #0e4d53;
  --foam: #e3ebe7;
  --warning: #9b4d2d;
  --offshore: #28774c;
  --side: #b07a24;
  --onshore: #a13f32;
}
:root[data-theme="night"] {
  color-scheme: dark;
  --paper:#10191a;
  --ink:#e8ebe5;
  --muted:#9aa7a4;
  --line:#354342;
  --sea:#63b8ba;
  --sea-dark:#8bd0d1;
  --foam:#1b2e2e;
  --warning:#e28c65;
  --offshore:#68bd88;
  --side:#d6a452;
  --onshore:#df756a;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: "Zen Kaku Gothic New", sans-serif; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -10%, rgba(23,107,114,.1), transparent 38%), var(--paper); transition:background-color .35s ease,color .35s ease; }
:root[data-theme="night"] body { background:radial-gradient(circle at 82% -8%,rgba(79,139,144,.17),transparent 38%),radial-gradient(circle at 12% 32%,rgba(38,67,69,.23),transparent 30%),var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(23,107,114,.35); outline-offset: 3px; }

.site-header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-family: "Noto Serif JP", serif; font-weight: 700; letter-spacing: .04em; }
.brand-logo { width: 86px; height: 24px; object-fit: contain; display: block; transition: filter .35s ease, opacity .35s ease; }
:root[data-theme="night"] .brand-logo { filter: invert(1) brightness(.96); opacity:.94; }
.header-actions { display:flex; align-items:center; gap:18px; }
.quiet-button, .text-button, .close-button { border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.quiet-button { min-height: 44px; padding: 0 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.refresh-button { min-width:62px; min-height:44px; padding:0 8px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line); background:transparent; color:var(--ink); cursor:pointer; }
.refresh-button span { font-family:"DM Mono",monospace; font-size:20px; line-height:1; transition:transform .28s cubic-bezier(.2,.8,.2,1); }
.refresh-button b { font-size:11px; letter-spacing:.08em; }
.refresh-button:hover { border-color:var(--sea); color:var(--sea-dark); }
.refresh-button:active span { transform:rotate(120deg); }
.refresh-button.is-loading span { animation:refresh-spin .7s linear infinite; }
.refresh-button:disabled { opacity:.58; cursor:wait; }
@keyframes refresh-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .refresh-button span { transition:none; }.refresh-button.is-loading span { animation:none; } }

main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 390px; padding: 94px 0 52px; display: grid; align-content: space-between; border-bottom: 1px solid var(--ink); }
.eyebrow { margin: 0 0 18px; font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .14em; color: var(--sea); }
.hero h1 { max-width: 850px; margin: 0; font-family: "Noto Serif JP", serif; font-size: clamp(42px, 7.4vw, 92px); line-height: 1.08; letter-spacing: -.055em; font-weight: 600; }
.hero-meta { margin-top: 56px; display: grid; grid-template-columns:minmax(0, 760px) auto; justify-content: space-between; gap: 32px; align-items: end; }
.hero-meta p { margin: 0; }
.release-note { display:grid; grid-template-columns:76px minmax(0,1fr); gap:18px; padding:13px 0 12px; border-top:1px solid var(--ink); }
.release-note-index { font-family:"DM Mono",monospace; font-size:10px; line-height:1.55; letter-spacing:.12em; color:var(--sea-dark); }
.release-note-index span,.release-note-index time { display:block; }
.release-note-index time { margin-top:2px; color:var(--muted); letter-spacing:.04em; }
.release-note-copy strong { display:block; font-family:"Noto Serif JP",serif; font-size:15px; line-height:1.45; font-weight:600; }
.release-note-copy p { margin-top:4px; color:var(--muted); font-size:12px; line-height:1.65; }
.release-list { margin:9px 0 0; padding:0; list-style:none; border-top:1px solid var(--line); }
.release-list li { display:grid; grid-template-columns:168px minmax(0,1fr); gap:14px; padding:7px 0; border-bottom:1px solid var(--line); }
.release-list b { font-family:"Noto Serif JP",serif; font-size:11px; font-weight:600; }
.release-list span { color:var(--muted); font-size:10px; line-height:1.55; }
.updated { font-family: "DM Mono", monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
.typhoon-news { min-height:58px; display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:14px 22px; padding:12px 18px; border-bottom:1px solid var(--ink); background:#a13f32; color:#fff8ed; }
.typhoon-news[hidden] { display:none; }
.typhoon-news-label { padding:4px 7px; border:1px solid rgba(255,255,255,.62); font-family:"DM Mono",monospace; font-size:9px; letter-spacing:.12em; white-space:nowrap; }
.typhoon-news strong { font-family:"Noto Serif JP",serif; font-size:16px; }
.typhoon-news>span:last-child { font-size:12px; opacity:.88; }

.astro-strip { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--ink); }
.astro-item { min-height:138px; padding:24px 28px; display:flex; align-items:center; gap:24px; border-right:1px solid var(--line); }
.astro-item:last-child { border-right:0; }
.astro-item p { margin:0 0 7px; color:var(--muted); font-size:11px; }
.astro-item strong { font-family:"DM Mono",monospace; font-size:22px; font-weight:400; font-variant-numeric:tabular-nums; }
.tide-cycle { display:block; width:fit-content; margin-top:8px; padding-top:5px; border-top:1px solid var(--line); font-family:"Noto Serif JP",serif; font-size:11px; color:var(--sea-dark); letter-spacing:.08em; }
.sun-scene { width:74px; height:62px; flex:0 0 auto; position:relative; overflow:hidden; border-bottom:1px solid var(--ink); }
.sun-scene::before,.sun-scene::after { content:""; position:absolute; left:4px; right:4px; border-top:1px solid var(--line); border-radius:50%; }
.sun-scene::before { bottom:9px; height:7px; }.sun-scene::after { bottom:2px; height:5px; }
.sun-scene span { position:absolute; left:23px; bottom:-13px; width:29px; height:29px; border:1px solid #c66a24; border-radius:50%; background:#e98a39; box-shadow:0 0 18px rgba(233,138,57,.38); }
.sunrise-item .sun-scene span { bottom:-7px; }.sunset-item .sun-scene span { bottom:-18px; }
.sunrise-item .sun-scene::marker { display:none; }
.moon-scene { width:58px; height:58px; flex:0 0 auto; position:relative; border:1px solid var(--ink); border-radius:50%; overflow:hidden; background:#243133; box-shadow:inset -8px -5px 14px rgba(0,0,0,.22); }
.moon-scene span { position:absolute; inset:0 auto 0 0; width:var(--moon-light,50%); background:#e8e4d6; box-shadow:5px 0 16px rgba(232,228,214,.24); }
.moon-scene.waning span { inset:0 0 0 auto; box-shadow:-5px 0 16px rgba(232,228,214,.24); }

.surf-journal { padding:32px 0 28px; border-bottom:1px solid var(--ink); }
.surf-journal-head { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:16px; }
.surf-journal-head .eyebrow { margin:0 0 6px; }
.surf-journal-head h2 { margin:0; font-family:"Noto Serif JP",serif; font-size:28px; letter-spacing:-.035em; }
.surf-journal-head>p { max-width:320px; margin:0; color:var(--muted); font-size:11px; line-height:1.65; text-align:right; }
.surf-journal-body { display:grid; grid-template-columns:1fr 1.55fr; border:1px solid var(--ink); }
.surf-log-action { min-height:142px; padding:18px; display:flex; flex-direction:column; justify-content:center; border-right:1px solid var(--line); }
.surf-log-button { min-height:70px; padding:12px 16px; display:grid; grid-template-columns:30px 1fr; grid-template-rows:auto auto; align-items:center; border:0; background:var(--ink); color:var(--paper); text-align:left; cursor:pointer; }
.surf-log-button>span { grid-row:1/3; font-family:"DM Mono",monospace; font-size:25px; font-weight:300; }
.surf-log-button strong { font-family:"Noto Serif JP",serif; font-size:17px; }
.surf-log-button small { margin-top:2px; color:var(--line); font-size:9px; letter-spacing:.06em; }
.surf-log-button:hover,.surf-log-button:focus-visible { background:var(--sea-dark); }
.surf-log-button:disabled { opacity:.6; cursor:wait; }
.surf-log-action>p { min-height:1.5em; margin:8px 0 0; color:var(--muted); font-size:10px; }
.surf-undo-button { width:fit-content; margin-top:3px; border-bottom:1px solid currentColor; color:var(--muted); font-size:9px; cursor:pointer; }
.surf-stats { display:grid; grid-template-columns:repeat(4,1fr); margin:0; }
.surf-stats div { min-width:0; padding:18px 14px; border-right:1px solid var(--line); }
.surf-stats div:last-child { border-right:0; }
.surf-stats dt { color:var(--muted); font-size:9px; letter-spacing:.08em; }
.surf-stats dd { margin:9px 0 0; font-family:"DM Mono",monospace; font-size:20px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.surf-stats dd small { margin-left:2px; color:var(--muted); font-size:9px; }
.surf-entry-editor { display:grid; grid-template-columns:1fr 1fr 1fr 1.25fr auto; gap:10px; align-items:end; padding:14px 16px; border:1px solid var(--ink); border-top:0; background:var(--foam); }
.surf-entry-editor>p { grid-column:1/-1; margin:0 0 2px; font-family:"Noto Serif JP",serif; font-size:12px; font-weight:600; }
.surf-entry-editor>p span { margin-left:5px; color:var(--muted); font-family:"Zen Kaku Gothic New",sans-serif; font-size:9px; font-weight:400; }
.surf-entry-editor label { min-width:0; color:var(--muted); font-size:9px; }
.surf-entry-editor input,.surf-entry-editor select { width:100%; height:38px; margin-top:5px; padding:0 8px; border:1px solid var(--line); border-radius:0; background:var(--paper); color:var(--ink); font:12px "DM Mono",monospace; }
.surf-entry-editor label>span { margin-left:-27px; font-size:8px; pointer-events:none; }
.surf-entry-editor button { min-height:38px; padding:0 13px; border:1px solid var(--sea-dark); color:var(--sea-dark); font-size:10px; font-weight:700; cursor:pointer; white-space:nowrap; }
.surf-entry-editor button:hover,.surf-entry-editor button:focus-visible { background:var(--sea-dark); color:var(--paper); }
.surf-calendar-wrap { margin-top:16px; border-top:1px solid var(--ink); }
.surf-calendar-wrap summary { min-height:42px; display:flex; align-items:center; justify-content:space-between; list-style:none; font-family:"Noto Serif JP",serif; font-size:12px; font-weight:600; cursor:pointer; }
.surf-calendar-wrap summary::-webkit-details-marker { display:none; }
.surf-calendar-wrap summary::after { content:"−"; font-family:"DM Mono",monospace; font-size:15px; font-weight:400; }
.surf-calendar-wrap:not([open]) summary::after { content:"＋"; }
.surf-calendar-week,.surf-calendar { display:grid; grid-template-columns:repeat(7,1fr); }
.surf-calendar-week { border-top:1px solid var(--line); }
.surf-calendar-week span { padding:6px 5px; color:var(--muted); font-family:"DM Mono",monospace; font-size:8px; text-align:center; }
.surf-calendar { border-top:1px solid var(--line); border-left:1px solid var(--line); }
.surf-calendar-day { min-height:42px; padding:5px 6px; position:relative; border-right:1px solid var(--line); border-bottom:1px solid var(--line); font:9px "DM Mono",monospace; }
.surf-calendar-day.is-today { box-shadow:inset 0 0 0 1px var(--ink); }
.surf-calendar-day.has-surf { background:rgba(23,107,114,.16); color:var(--sea-dark); font-weight:700; }
.surf-calendar-day.has-surf::after { content:""; width:7px; height:7px; position:absolute; left:50%; bottom:7px; border-radius:50%; background:var(--sea); transform:translateX(-50%); box-shadow:0 0 9px rgba(23,107,114,.35); }
.surf-calendar-day small { position:absolute; right:5px; top:4px; font-size:7px; }
.surf-calendar-blank { min-height:42px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.surf-backup { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-top:10px; }
.surf-backup>p { max-width:570px; margin:0; color:var(--muted); font-size:9px; line-height:1.6; }
.surf-backup>div { display:flex; gap:8px; flex:0 0 auto; }
.surf-backup button,.surf-backup label { min-height:34px; padding:0 10px; display:inline-flex; align-items:center; border:1px solid var(--line); color:var(--muted); font-size:9px; cursor:pointer; }
.surf-backup button:hover,.surf-backup button:focus-visible,.surf-backup label:hover,.surf-backup label:focus-within { border-color:var(--sea-dark); color:var(--sea-dark); }
.surf-backup input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.surf-journal-compact{padding:10px 0;border-bottom:1px solid var(--ink)}.surf-journal-compact .surf-log-button{width:100%;min-height:52px;grid-template-columns:28px 1fr auto;grid-template-rows:1fr}.surf-journal-compact .surf-log-button>span{grid-row:auto}.surf-journal-compact .surf-log-button small{margin:0;color:var(--line)}
.surf-log-dialog{width:min(640px,calc(100% - 28px));max-height:min(760px,calc(100dvh - 28px));margin:auto;padding:24px;border:1px solid var(--ink);border-radius:0;background:var(--paper);color:var(--ink);box-shadow:10px 10px 0 rgba(24,36,37,.18)}.surf-log-dialog::backdrop{background:rgba(11,22,23,.64)}.surf-log-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:20px}.surf-log-dialog-head h2{margin:5px 0 0;font-family:"Noto Serif JP",serif;font-size:26px}.surf-log-dialog-head button{width:40px;height:40px;border:1px solid var(--line);font-size:22px;cursor:pointer}.surf-log-dialog>p{margin:10px 0 16px;color:var(--muted);font-size:11px}.surf-log-dialog .surf-stats{border:1px solid var(--line)}.surf-log-dialog .surf-entry-editor{margin-top:14px;border:1px solid var(--ink)}.surf-dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}.surf-dialog-actions>button:first-child{min-height:42px;padding:0 14px;border:1px solid var(--ink);font-size:10px;font-weight:700;cursor:pointer}.surf-log-dialog .surf-backup{padding-top:12px;border-top:1px solid var(--line)}

.spot-nav { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.spot-nav::-webkit-scrollbar { display: none; }
.spot-tab { flex: 0 0 auto; min-width: 150px; min-height: 62px; padding: 0 24px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; cursor: pointer; font-weight: 700; }
.spot-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.spot-tab.unavailable { opacity:.45; cursor:not-allowed; }
.spot-tab small { display:block; margin-top:2px; font-family:"DM Mono",monospace; font-size:9px; font-weight:400; }

.live-strip { display: grid; grid-template-columns: 1.35fr .65fr; border-bottom: 1px solid var(--ink); }
.live-wind, .typhoon-status { min-height: 176px; padding: 30px 32px; }
.live-wind { border-right: 1px solid var(--line); }
.wind-reading { display: flex; align-items: center; gap: 24px; }
.wind-arrow { --wind-color: var(--muted); width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--wind-color); font-family: "DM Mono", monospace; font-size: 38px; line-height: 1; }
.wind-arrow span { display: block; transform: rotate(var(--wind-angle)); }
.wind-copy strong { display: block; font-family: "Noto Serif JP", serif; font-size: 28px; letter-spacing: -.03em; }
.air-temperature { display:inline-block; margin-top:4px; font-family:"DM Mono",monospace; font-size:17px; color:var(--ink); }
.wind-copy p, .typhoon-status > p:not(.eyebrow), .wind-loading { margin: 5px 0 0; color: var(--muted); line-height: 1.7; }
.wind-class { font-weight: 700; color: var(--wind-color); }
.wind-arrow.onshore, .wind-class.onshore { --wind-color: var(--onshore); color: var(--onshore); }
.wind-arrow.sideshore, .wind-class.sideshore { --wind-color: var(--side); color: var(--side); }
.wind-arrow.offshore, .wind-class.offshore { --wind-color: var(--offshore); color: var(--offshore); }
.wind-arrow.cross, .wind-class.cross { --wind-color: var(--muted); color: var(--muted); }
.wind-source { margin-top: 12px; font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); }
.typhoon-status.alert { background: #efe1d8; }
.typhoon-status.clear { background: rgba(227,235,231,.65); }
:root[data-theme="night"] .typhoon-status.alert { background:#33231f; }
:root[data-theme="night"] .typhoon-status.clear { background:rgba(25,45,45,.72); }
.typhoon-name { display: block; margin-bottom: 4px; color: var(--warning); font-weight: 700; }
.alert-kinds { display: flex; flex-wrap: wrap; gap: 7px; margin: -8px 0 22px; }
.alert-kinds span { padding: 5px 8px; border: 1px solid var(--line); font-family: "DM Mono", monospace; font-size: 10px; color: var(--muted); }

.primary-reading { min-height: 330px; padding: 54px 0 62px; border-bottom: 1px solid var(--ink); }
.reading-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.observation-label { font-family:"DM Mono",monospace; font-size:11px; letter-spacing:.08em; color:var(--sea-dark); }
.wave-number { margin: 6px 0 0; font-family: "DM Mono", monospace; font-size: clamp(76px, 12vw, 148px); line-height: .94; letter-spacing: -.08em; font-weight: 300; }
.wave-number small { margin-left: 12px; font-size: .19em; letter-spacing: 0; color: var(--muted); }
.reading-note { margin: 28px 0 0; color: var(--muted); line-height: 1.8; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); align-content: center; border-top: 1px solid var(--line); }
.metric { padding: 22px 0; border-bottom: 1px solid var(--line); }
.metric:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.metric:nth-child(even) { padding-left: 24px; }
.metric dt { font-size: 12px; color: var(--muted); }
.metric dd { margin: 8px 0 0; font-family: "DM Mono", monospace; font-size: 22px; }
.metric dd small { font-size: 11px; color: var(--muted); }
.metric-wait { font-family:"Zen Kaku Gothic New",sans-serif; font-size:13px; color:var(--muted); }

.forecast-section { padding: 78px 0 90px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.realtime-signals { padding:18px 0 22px; border-bottom:1px solid var(--ink); }
.signal-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.signal-title .eyebrow { margin:0; }
.signal-title>span { font-size:11px; color:var(--muted); }
.signal-guide { max-width:620px; margin:-4px 0 16px; color:var(--muted); font-size:12px; line-height:1.7; }
.signal-guide strong { color:var(--ink); font-family:"Noto Serif JP",serif; font-weight:600; }
.signal-console { display:grid; grid-template-columns:1.05fr repeat(4,1fr); min-height:112px; border:1px solid var(--ink); }
.water-orb { --orb-color:#16727a; --orb-rgb:22,114,122; display:grid; place-items:center; align-content:center; gap:4px; position:relative; overflow:hidden; background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.72) 0 4%,transparent 17%),radial-gradient(circle at 50% 48%,rgba(var(--orb-rgb),.72),var(--orb-color) 68%,rgba(var(--orb-rgb),.45)); color:#fff; transition:background .5s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease; }
.water-orb::before { content:""; position:absolute; width:88px; height:88px; border-radius:47% 53% 50% 50%; background:var(--orb-color); box-shadow:0 0 26px rgba(var(--orb-rgb),.48),inset -12px -13px 22px rgba(0,0,0,.12),inset 10px 8px 17px rgba(255,255,255,.2); transform:rotate(-9deg); }
.water-orb span,.water-orb small { position:relative; z-index:1; }
.water-orb span { font-family:"DM Mono",monospace; font-size:22px; font-weight:300; }
.water-orb small { font-family:"DM Mono",monospace; font-size:8px; letter-spacing:.1em; opacity:.82; }
.signal-button,.jellyfish-button,.chinkui-button { min-height:100%; padding:12px; border:0; border-left:1px solid var(--line); background:transparent; color:var(--ink); cursor:pointer; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; text-align:left; position:relative; overflow:hidden; transition:color .18s ease,background .22s ease,box-shadow .22s ease; }
.signal-button span { font-family:"DM Mono",monospace; font-size:9px; letter-spacing:.12em; color:var(--muted); transition:color .18s ease; }
.signal-button strong,.jellyfish-button strong,.chinkui-button strong { font-family:"Noto Serif JP",serif; font-size:14px; }
.signal-button::after { content:"TAP"; position:absolute; top:10px; right:10px; font-family:"DM Mono",monospace; font-size:7px; letter-spacing:.12em; opacity:.35; }
.cold-signal:hover,.cold-signal:focus-visible,.cold-signal:active { color:#fff; background:#054399; box-shadow:inset 0 0 34px rgba(61,145,255,.65),0 0 24px rgba(5,67,153,.32); }
.warm-signal:hover,.warm-signal:focus-visible,.warm-signal:active { color:#fff; background:#da4a07; box-shadow:inset 0 0 34px rgba(255,156,71,.6),0 0 24px rgba(218,74,7,.3); }
.signal-button:hover span,.signal-button:focus-visible span,.signal-button:active span { color:rgba(255,255,255,.78); }
.signal-button:active,.jellyfish-button:active,.chinkui-button:active { filter:brightness(1.22); }
.signal-button:disabled,.jellyfish-button:disabled:not(.is-thanking),.chinkui-button:disabled{opacity:.5;cursor:wait}.jellyfish-button.is-thanking:disabled{cursor:wait}
.jellyfish-button { align-items:center; justify-content:center; gap:4px; text-align:center; }
.jellyfish-button:hover,.jellyfish-button:focus-visible,.jellyfish-button:active { background:#dbeeea; box-shadow:inset 0 0 36px rgba(23,107,114,.28),0 0 22px rgba(23,107,114,.2); }
.jellyfish-button .jelly-creature { --jelly-scale:.72; display:block; width:48px; height:31px; border:2px solid var(--sea); border-bottom:0; border-radius:50% 50% 28% 28%; transform:scale(var(--jelly-scale)); transform-origin:center bottom; transition:transform .45s cubic-bezier(.2,.8,.2,1); position:relative; }
.jelly-tentacles { position:absolute; top:31px; left:-8px; width:88px; color:var(--sea); font-size:17px; font-style:normal; letter-spacing:-5px; }
.jelly-eyes { position:absolute; top:20px; left:20px; width:5px; height:1px; background:var(--sea-dark); box-shadow:25px 0 0 var(--sea-dark); opacity:0; }
.jelly-thanks { position:absolute; top:13px; right:12px; padding:7px 9px; border:1px solid var(--ink); background:var(--paper); color:var(--ink); font-family:"Noto Serif JP",serif; font-size:12px; font-weight:700; opacity:0; transform:translateY(5px); pointer-events:none; }
.jelly-thanks::after { content:""; position:absolute; left:10px; bottom:-5px; width:8px; height:8px; border-right:1px solid var(--ink); border-bottom:1px solid var(--ink); background:var(--paper); transform:rotate(45deg); }
.jellyfish-button.is-thanking .jelly-creature { animation:jelly-bob .52s cubic-bezier(.2,.9,.3,1) both; }
.jellyfish-button.is-thanking .jelly-eyes { opacity:1; height:5px; border-radius:50%; animation:jelly-blink .7s .25s both; }
.jellyfish-button.is-thanking .jelly-thanks { animation:thanks-in 1.35s cubic-bezier(.2,.8,.2,1) both; }
.chinkui-button { justify-content:flex-end; gap:6px; background:linear-gradient(145deg,rgba(119,53,19,.025),rgba(216,103,24,.09)); }
.chinkui-button:hover,.chinkui-button:focus-visible,.chinkui-button:active { background:#f4dfc9; box-shadow:inset 0 0 38px rgba(190,77,17,.24),0 0 22px rgba(190,77,17,.16); }
.chinkui-label { font-family:"DM Mono",monospace; font-size:8px; letter-spacing:.1em; color:#8b4a25; }
.chinkui-swarm { position:absolute; inset:15px 12px 58px; }
.chinkui-swarm i { position:absolute; width:4px; height:4px; border-radius:50%; background:#b84410; box-shadow:0 0 7px rgba(216,83,17,.75); opacity:.07; transition:opacity .4s ease,transform .4s ease; }
.chinkui-swarm i:nth-child(1){left:8%;top:58%}.chinkui-swarm i:nth-child(2){left:22%;top:23%}.chinkui-swarm i:nth-child(3){left:42%;top:70%}.chinkui-swarm i:nth-child(4){left:65%;top:18%}.chinkui-swarm i:nth-child(5){left:84%;top:60%}.chinkui-swarm i:nth-child(6){left:5%;top:16%}.chinkui-swarm i:nth-child(7){left:30%;top:48%}.chinkui-swarm i:nth-child(8){left:53%;top:34%}.chinkui-swarm i:nth-child(9){left:74%;top:78%}.chinkui-swarm i:nth-child(10){left:92%;top:27%}.chinkui-swarm i:nth-child(11){left:17%;top:82%}.chinkui-swarm i:nth-child(12){left:47%;top:10%}.chinkui-swarm i:nth-child(13){left:62%;top:62%}.chinkui-swarm i:nth-child(14){left:78%;top:39%}.chinkui-swarm i:nth-child(15){left:95%;top:86%}
.chinkui-swarm[data-level="1"] i:nth-child(-n+3),.chinkui-swarm[data-level="2"] i:nth-child(-n+6),.chinkui-swarm[data-level="3"] i:nth-child(-n+9),.chinkui-swarm[data-level="4"] i:nth-child(-n+12),.chinkui-swarm[data-level="5"] i { opacity:.9; transform:scale(1.35); }
.hazard-copy { position:relative; z-index:2; display:flex; flex-direction:column; gap:3px; }
.hazard-state { width:fit-content; padding:3px 7px; border:1px solid currentColor; font-family:"DM Mono",monospace; font-size:8px; font-weight:700; letter-spacing:.08em; line-height:1.2; }
.jellyfish-button .hazard-state { margin-inline:auto; color:var(--sea-dark); }
.chinkui-button .hazard-state { color:#8b3f1c; }
.share-cue { position:absolute; right:13px; bottom:10px; z-index:2; font-family:"DM Mono",monospace; font-size:7px; letter-spacing:.11em; color:var(--muted); }
.jellyfish-button[data-level="3"],.jellyfish-button[data-level="4"],.jellyfish-button[data-level="5"] { background:rgba(23,107,114,.12); }
.chinkui-button[data-level="3"],.chinkui-button[data-level="4"],.chinkui-button[data-level="5"] { background:#f1d7bd; }
.jellyfish-button[data-level="4"] .hazard-state,.jellyfish-button[data-level="5"] .hazard-state,.chinkui-button[data-level="4"] .hazard-state,.chinkui-button[data-level="5"] .hazard-state { background:var(--ink); border-color:var(--ink); color:var(--paper); }
.chinkui-button.is-reported .chinkui-swarm i { animation:chinkui-rise .8s ease-out both; }
.chinkui-button.is-reported .chinkui-swarm i:nth-child(3n+1){animation-delay:.08s}.chinkui-button.is-reported .chinkui-swarm i:nth-child(3n+2){animation-delay:.16s}
@keyframes chinkui-rise { 0%{transform:translateY(10px) scale(.5);opacity:.1} 45%{opacity:1} 100%{transform:translateY(-12px) scale(1.5);opacity:.2} }
@keyframes jelly-bob { 0%{transform:scale(var(--jelly-scale)) translateY(0)} 45%{transform:scale(var(--jelly-scale)) translateY(-8px)} 75%{transform:scale(var(--jelly-scale)) translateY(2px)} 100%{transform:scale(var(--jelly-scale)) translateY(0)} }
@keyframes jelly-blink { 0%,35%{transform:scaleY(.15)} 50%,100%{transform:scaleY(1)} }
@keyframes thanks-in { 0%{opacity:0;transform:translateY(5px)} 18%,75%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(-3px)} }
.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 36px; }
.section-heading h2, .notification-panel h2 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 34px; letter-spacing: -.035em; }
.section-heading > p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.forecast-list { display:grid; grid-template-columns:repeat(7,1fr); min-width:680px; border-top:1px solid var(--ink); border-bottom:1px solid var(--ink); }
.forecast-day { min-width:0; padding:22px 13px 18px; display:grid; grid-template-rows:32px 230px 42px 24px 20px; align-items:end; text-align:center; border-right:1px solid var(--line); }
.forecast-day:last-child { border-right:0; }
.day-value { font-family:"DM Mono",monospace; font-size:18px; font-variant-numeric:tabular-nums; }
.day-value small,.day-period small { margin-left:3px; font-size:9px; color:var(--muted); }
.wave-column { width:34px; height:210px; margin:12px auto 0; display:flex; align-items:flex-end; background:linear-gradient(to top,rgba(23,107,114,.09),transparent 65%); border-bottom:1px solid var(--ink); }
.wave-fill { width:100%; min-height:4px; background:var(--sea); box-shadow:inset 0 8px 14px rgba(255,255,255,.12); transition:height .45s cubic-bezier(.2,.8,.2,1); }
.day-name { align-self:center; font-family:"Noto Serif JP",serif; font-size:21px; font-weight:700; }
.day-name small { margin-left:3px; font-family:"Zen Kaku Gothic New",sans-serif; font-size:11px; color:var(--muted); }
.day-period { align-self:center; font-family:"DM Mono",monospace; color:var(--muted); font-size:12px; }
.day-condition { align-self:center; font-size:10px; color:var(--sea-dark); }
.nowphas-section, .camera-section { padding: 78px 0 90px; border-top: 1px solid var(--ink); }
.chart-switch { display: inline-flex; margin-bottom: 22px; border: 1px solid var(--ink); }
.chart-switch button { min-height: 46px; padding: 0 20px; border: 0; border-right: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
.chart-switch button:last-child { border-right: 0; }
.chart-switch button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.nowphas-figure { margin: 0; }
.nowphas-stations{display:flex;gap:8px;margin:0 0 12px}.nowphas-stations button{padding:10px 15px;border:1px solid var(--line);background:transparent;color:var(--muted);font:700 12px/1.2 inherit;cursor:pointer}.nowphas-stations button[aria-selected="true"]{border-color:var(--sea-dark);background:var(--sea-dark);color:#fff}.nowphas-stations small{font-family:"DM Mono",monospace;font-size:9px;opacity:.65}
.custom-nowphas{border:1px solid var(--ink);background:color-mix(in srgb,var(--paper) 96%,var(--sea-dark))}.custom-nowphas #nowphasGraphPanel{padding:18px 20px 0}.nowphas-current{display:grid;grid-template-columns:minmax(180px,.7fr) 1.4fr auto;align-items:end;gap:24px;padding:0 0 14px;border-bottom:1px solid var(--line)}.nowphas-current>div>span{display:block;color:var(--sea-dark);font:700 10px/1.4 "DM Mono",monospace;letter-spacing:.1em}.nowphas-current strong{display:block;margin-top:4px;font:400 38px/1 "DM Mono",monospace}.nowphas-current strong small{margin-left:3px;font-size:13px}.nowphas-current dl{display:grid;grid-template-columns:repeat(4,1fr);margin:0}.nowphas-current dl div{padding:0 12px;border-left:1px solid var(--line)}.nowphas-current dt{color:var(--muted);font-size:9px}.nowphas-current dd{margin:4px 0 0;font:500 15px/1.2 "DM Mono",monospace}.nowphas-current time{color:var(--muted);font:10px/1.4 "DM Mono",monospace}.nowphas-chart{width:100%;min-height:280px}.nowphas-chart svg{display:block;width:100%;height:auto}.nowphas-grid line{stroke:var(--line);stroke-width:1}.nowphas-grid .time-grid-line{stroke-dasharray:3 4;opacity:.7}.nowphas-grid text,.nowphas-times text{fill:var(--muted);font:9px "DM Mono",monospace}.nowphas-bar{fill:#668ebd}.nowphas-period-line{fill:none;stroke:#e75682;stroke-width:2}.nowphas-arrows path{fill:none;stroke:var(--ink);stroke-width:1.4;stroke-linecap:round}.axis-label{fill:#497baa;font:10px "DM Mono",monospace}.axis-label.period{fill:#d84f79}.nowphas-hit{fill:transparent;cursor:crosshair}.nowphas-hit:hover{fill:color-mix(in srgb,var(--sea-dark) 7%,transparent)}.nowphas-tooltip{min-height:38px;margin:0 -20px;padding:11px 20px;border-top:1px solid var(--line);color:var(--muted);font:10px/1.5 "DM Mono",monospace}.custom-nowphas figcaption{padding:14px 20px}.custom-nowphas .nowphas-table-panel{margin:0 -20px;border-left:0;border-right:0}
.wajima-figure { margin-top: 58px; }
.comparison-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 20px; }
.comparison-head h3 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 26px; letter-spacing: -.035em; }
.comparison-head > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.chart-scroll { padding: 24px; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.chart-scroll img { display: block; width: 100%; min-width: 720px; height: auto; }
.nowphas-chart-frame { display:grid; grid-template-columns:68px minmax(0,1fr) 68px; align-items:stretch; min-width:856px; }
.nowphas-chart-frame>img { min-width:720px; }
.chart-axis { min-width:0; display:grid; align-items:stretch; color:#d84e7a; font-family:"Zen Kaku Gothic New",sans-serif; font-variant-numeric:tabular-nums; }
.chart-axis-wave { grid-template-columns:26px 1fr; }
.chart-axis-period { grid-template-columns:1fr 26px; }
.axis-title { align-self:center; justify-self:center; writing-mode:vertical-rl; font-size:13px; font-weight:700; letter-spacing:.08em; line-height:1.15; }
.axis-values { display:grid; grid-template-rows:repeat(6,1fr); align-items:start; padding:0 5px 7px; font-family:"DM Mono",monospace; font-size:12px; }
.axis-values i { position:relative; transform:translateY(-.5em); font-style:normal; text-align:center; }
.axis-values i:last-child { align-self:end; transform:none; }
.nowphas-figure figcaption { display: flex; justify-content: space-between; gap: 24px; padding-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.nowphas-figure a, .video-link { color: var(--sea-dark); }
.nowphas-source-link { min-height:44px; display:inline-flex; align-items:center; gap:8px; font-weight:700; text-underline-offset:4px; }
.nowphas-source-link span { font-family:"DM Mono",monospace; transition:transform .2s cubic-bezier(.2,.8,.2,1); }
.nowphas-source-link:hover span { transform:translateX(3px); }
.nowphas-table-panel { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
:root[data-theme="night"] .chart-scroll,:root[data-theme="night"] .nowphas-table-panel { background:#f5f5f1; color:#182425; }
.nowphas-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.nowphas-summary div { padding: 18px; border-right: 1px solid var(--line); }
.nowphas-summary div:last-child { border-right: 0; }
.nowphas-summary dt { font-size: 11px; color: var(--muted); }
.nowphas-summary dd { margin: 5px 0 0; font-family: "DM Mono", monospace; font-size: 18px; }
.nowphas-table { width: 100%; min-width: 720px; border-collapse: collapse; font-family: "DM Mono", monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.nowphas-table th, .nowphas-table td { padding: 9px 12px; border-right: 1px solid #e0e1dd; border-bottom: 1px solid #e0e1dd; text-align: right; }
.nowphas-table th { position: sticky; top: 0; background: var(--ink); color: var(--paper); font-weight: 500; }
.nowphas-table td:nth-child(1), .nowphas-table td:nth-child(5) { color: var(--sea-dark); }
.table-loading, .table-error { padding: 36px; color: var(--muted); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; }
.source-note { padding: 36px 0 80px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 180px 1fr; gap: 26px 52px; }
.source-note > p:not(.eyebrow) { max-width: 620px; margin: 0; line-height: 1.85; color: var(--muted); }
.source-note a { grid-column: 2; width: fit-content; color: var(--sea-dark); font-size: 12px; }

.notification-panel { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 32px; overflow-y:auto; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 14px 14px 0 rgba(24,36,37,.16); }
:root[data-theme="night"] .notification-panel { box-shadow:14px 14px 0 rgba(0,0,0,.36); }
.notification-panel::backdrop { background: rgba(24,36,37,.58); backdrop-filter: blur(2px); }
.panel-head { display: flex; justify-content: space-between; align-items: start; }
.close-button { width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.panel-copy { margin: 20px 0 16px; color: var(--muted); font-size:13px; line-height: 1.75; }
.panel-copy strong { display:block; margin-bottom:3px; color:var(--ink); font-family:"Noto Serif JP",serif; font-size:16px; font-weight:600; }
.alert-details { margin:0 0 20px; border-top:1px solid var(--ink); border-bottom:1px solid var(--ink); }
.alert-details summary { min-height:46px; display:flex; align-items:center; justify-content:space-between; font-size:12px; font-weight:700; cursor:pointer; list-style:none; }
.alert-details summary::-webkit-details-marker { display:none; }
.alert-details summary::after { content:"＋"; font-family:"DM Mono",monospace; font-size:16px; font-weight:400; }
.alert-details[open] summary::after { content:"−"; }
.alert-details dl { margin:0; }
.alert-details dl div { display:grid; grid-template-columns:126px 1fr; gap:14px; padding:10px 0; border-top:1px solid var(--line); }
.alert-details dt { font-family:"Noto Serif JP",serif; font-size:12px; font-weight:600; }
.alert-details dd { margin:0; color:var(--muted); font-size:10px; line-height:1.65; }
.alert-details>p { margin:7px 0 12px; color:var(--muted); font-size:9px; line-height:1.6; }
.device-guide { margin:0 0 22px; padding:17px 18px 16px; border-left:3px solid var(--sea); background:var(--foam); }
.device-guide-head { display:flex; align-items:baseline; gap:10px; }
.device-guide-head span { flex:0 0 auto; font-family:"DM Mono",monospace; font-size:8px; letter-spacing:.12em; color:var(--sea-dark); }
.device-guide-head strong { font-family:"Noto Serif JP",serif; font-size:15px; }
.device-guide ol { margin:12px 0 0; padding:0; list-style:none; counter-reset:install-step; }
.device-guide li { min-height:29px; display:flex; align-items:flex-start; gap:9px; color:var(--ink); font-size:11px; line-height:1.55; counter-increment:install-step; }
.device-guide li::before { content:counter(install-step); flex:0 0 18px; height:18px; display:grid; place-items:center; border:1px solid var(--sea-dark); border-radius:50%; color:var(--sea-dark); font-family:"DM Mono",monospace; font-size:8px; }
.device-guide>p { margin:8px 0 0; color:var(--muted); font-size:10px; line-height:1.6; }
.install-button { width:100%; min-height:42px; margin-top:10px; border:1px solid var(--sea-dark); color:var(--sea-dark); font-size:11px; font-weight:700; cursor:pointer; }
.install-button:hover,.install-button:focus-visible { background:var(--sea-dark); color:var(--paper); }
fieldset { margin: 0 0 24px; padding: 0; border: 0; }
legend { margin-bottom: 12px; font-size: 12px; color: var(--muted); }
fieldset label { min-height: 52px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); cursor: pointer; }
fieldset label:last-child { border-bottom: 1px solid var(--line); }
input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--sea); }
.primary-button { width: 100%; min-height: 54px; border: 1px solid var(--sea-dark); background: var(--sea); color: #f7f5ee; font-weight: 700; letter-spacing: .05em; cursor: pointer; transition: background .2s cubic-bezier(.2,.8,.2,1); }
.primary-button:hover { background: var(--sea-dark); }
.primary-button:disabled { opacity: .5; cursor: wait; }
.text-button { width: 100%; min-height: 48px; margin-top: 8px; color: var(--warning); text-decoration: underline; }
.status-message { min-height: 1.6em; margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.loading-state { padding-top: 32px; }
.loading-line { display: block; width: 55%; height: 28px; margin-bottom: 18px; background: linear-gradient(90deg, #deddd7 25%, #e9e7e0 50%, #deddd7 75%); background-size: 200% 100%; animation: load 1.4s infinite; }
.loading-line.short { width: 32%; height: 90px; }
.error-state { padding: 48px 0; color: var(--warning); }
@keyframes load { to { background-position: -200% 0; } }

@media (max-width: 720px) {
  main { width: min(100% - 32px, 1120px); }
  .site-header { height:60px; padding-inline: 16px; }
  .brand-logo{width:68px;height:20px}.brand{gap:7px;font-size:14px}
  .header-actions{gap:10px}.refresh-button{min-width:48px;padding:0 6px}.refresh-button b{display:none}.quiet-button{font-size:12px}
  .hero { min-height: 238px; padding:42px 0 28px; }
  .hero h1{font-size:42px;line-height:1.04}
  .hero .eyebrow { font-size: 9px; letter-spacing: .09em; white-space: nowrap; }
  .hero-meta { display:block; margin-top:24px; }
  .release-note{grid-template-columns:62px minmax(0,1fr);gap:11px;padding:10px 0 9px}.release-note-index{font-size:8px}.release-note-copy strong{font-size:13px}.release-note-copy p{margin-top:2px;font-size:10px;line-height:1.5}.release-list{margin-top:7px}.release-list li{display:block;padding:6px 0}.release-list b,.release-list span{display:block}.release-list b{font-size:10px}.release-list span{margin-top:2px;font-size:9px;line-height:1.45}.updated { margin-top:7px !important;font-size:9px;text-align:right; }
  .typhoon-news{margin-inline:-16px;min-height:0;grid-template-columns:auto 1fr;gap:5px 10px;padding:10px 16px}.typhoon-news strong{font-size:14px}.typhoon-news>span:last-child{grid-column:1/-1;font-size:11px}
  .astro-strip { grid-template-columns:repeat(3,1fr); }
  .astro-item { min-width:0; min-height:108px; padding:10px 4px 9px; flex-direction:column; justify-content:center; gap:5px; border-right:1px solid var(--line); text-align:center; }
  .astro-item:last-child { border-right:0; }
  .astro-item p{margin-bottom:3px;font-size:10px}.astro-item strong{font-size:17px}.tide-cycle{margin:5px auto 0;padding-top:3px;font-size:10px}
  .sun-scene { width:48px; height:33px; }.sun-scene span{left:10px;width:26px;height:26px}.moon-scene{width:36px;height:36px}
  .surf-journal-compact{margin-inline:-16px;padding:8px 16px}.surf-journal-compact .surf-log-button{min-height:48px}.surf-journal-compact .surf-log-button strong{font-size:15px}.surf-log-dialog{padding:18px 14px}.surf-log-dialog-head h2{font-size:22px}.surf-log-dialog .surf-stats div{padding:11px 6px}.surf-log-dialog .surf-stats dd{font-size:14px}.surf-entry-editor{grid-template-columns:1fr 1fr;padding:12px}.surf-entry-editor>p,.surf-entry-editor button{grid-column:1/-1}.surf-entry-editor button{width:100%}.surf-backup{display:block}.surf-backup>p{font-size:8px}.surf-backup>div{margin-top:8px}.surf-backup button,.surf-backup label{flex:1;justify-content:center}
  .spot-nav { margin-inline: -16px; padding-left: 16px; }
  .spot-tab { min-width: 130px; padding-inline: 18px; }
  .reading-grid { grid-template-columns: .8fr 1.2fr; gap: 18px; align-items:center; }
  .live-strip { grid-template-columns: 1fr; margin-inline: -16px; }
  .live-wind, .typhoon-status { padding: 18px 16px; min-height:138px; }
  .live-wind { border-right: 0; border-bottom:0; }.typhoon-status{display:none}
  .primary-reading{min-height:0;padding:28px 0 30px}.observation-label{font-size:9px}.wave-number { font-size: 60px; }.wave-number small{margin-left:6px}.reading-note{margin-top:12px;font-size:11px;line-height:1.55}.metric{padding:10px 0}.metric:nth-child(odd){padding-right:10px}.metric:nth-child(even){padding-left:10px}.metric dt{font-size:9px}.metric dd{margin-top:4px;font-size:15px}
  .forecast-section { padding: 38px 0 44px; }
  .realtime-signals{margin-inline:-16px;padding:12px 16px}.signal-title{margin-bottom:5px}.signal-title>span{display:none}.signal-guide{margin:0 0 8px;font-size:9px;line-height:1.45}.signal-console{grid-template-columns:repeat(3,1fr);min-height:auto}.water-orb,.signal-button{min-height:72px}.jellyfish-button,.chinkui-button{min-height:76px;border-top:1px solid var(--line)}.water-orb::before{width:60px;height:60px}.water-orb span{font-size:17px}.water-orb small{font-size:6px}.signal-button{padding:9px}.signal-button strong,.jellyfish-button strong,.chinkui-button strong{font-size:12px}.signal-button span{font-size:7px}.jellyfish-button{grid-column:1/2;border-left:0;gap:2px;padding:8px 7px 17px}.jellyfish-button .jelly-creature{width:36px;height:23px}.jelly-tentacles{top:15px;left:-8px;width:50px;font-size:10px}.chinkui-button{grid-column:2/4;border-left:1px solid var(--line);padding:9px 12px 18px}.chinkui-swarm{inset:8px 12px 25px}.chinkui-label{font-size:6px}.hazard-state{font-size:6px;padding:2px 4px}.share-cue{right:7px;bottom:5px;font-size:5px}
  .nowphas-section { padding: 38px 0 44px; }.camera-section{padding:44px 0 52px}
  .section-heading { display: block; }
  .section-heading{margin-bottom:20px}.section-heading h2{font-size:27px}.section-heading > p { margin-top: 8px;font-size:11px;line-height:1.55; }
  .forecast-list { margin-inline:0; padding:0; overflow:visible; grid-template-columns:repeat(7,minmax(0,1fr)); min-width:0; }
  .forecast-day{grid-template-rows:20px 90px 28px 18px 16px;padding:10px 2px 8px}.day-value{font-size:11px}.day-value small,.day-period small{display:none}.wave-column{height:80px;width:18px;margin-top:5px}.day-name{font-size:14px}.day-name small{display:block;margin:0;font-size:8px}.day-period{font-size:9px}.day-condition{font-size:8px;white-space:nowrap}
  .source-note { grid-template-columns: 1fr; gap: 12px; }
  .nowphas-figure figcaption { display: block; }
  .nowphas-stations{margin-bottom:8px}.nowphas-stations button{flex:1}.custom-nowphas{margin-inline:-16px;border-left:0;border-right:0}.custom-nowphas #nowphasGraphPanel{padding:12px 8px 0}.nowphas-current{grid-template-columns:.7fr 1.3fr;gap:10px;padding:0 8px 10px}.nowphas-current strong{font-size:28px}.nowphas-current dl div{padding:0 5px}.nowphas-current dt{font-size:7px}.nowphas-current dd{font-size:11px}.nowphas-current time{grid-column:1/-1;font-size:8px}.nowphas-chart{min-height:0}.nowphas-tooltip{margin:0 -8px;padding:9px 12px;font-size:9px}.custom-nowphas figcaption{padding:12px 16px}.custom-nowphas .nowphas-table-panel{margin:0 -8px}
  .comparison-head { display: block; }
  .comparison-head > p { margin-top: 14px; }
  .nowphas-figure figcaption a { display: inline-flex; margin-top: 8px; }
  .chart-switch{margin-bottom:12px}.chart-switch button{min-height:40px;padding:0 13px;font-size:12px}
  .chart-scroll { margin-inline: -16px; padding:8px 6px; overflow:hidden; border-left: 0; border-right: 0; }
  .chart-scroll img{width:100%;min-width:0;height:auto}
  .nowphas-chart-frame{grid-template-columns:45px minmax(0,1fr) 45px;min-width:0}.nowphas-chart-frame>img{min-width:0}.chart-axis-wave{grid-template-columns:18px 1fr}.chart-axis-period{grid-template-columns:1fr 18px}.axis-title{font-size:9px;letter-spacing:0}.axis-values{padding:0 2px 4px;font-size:9px}
  .wajima-figure{margin-top:34px}.comparison-head h3{font-size:22px}
  .nowphas-table-panel { margin-inline: -16px; border-left: 0; border-right: 0; }
  .nowphas-summary { min-width: 520px; }
  .source-note a { grid-column: 1; }
  .notification-panel { padding: 26px 20px; box-shadow: 7px 7px 0 rgba(24,36,37,.16); }
  .alert-details dl div{grid-template-columns:104px 1fr;gap:10px}.device-guide{padding:14px}.device-guide-head{display:block}.device-guide-head strong{display:block;margin-top:4px}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .jellyfish-button.is-thanking .jelly-thanks { opacity:1; transform:none; animation:none !important; }
  .jellyfish-button.is-thanking .jelly-eyes { opacity:1; height:5px; border-radius:50%; animation:none !important; }
}
