/* そらもよう — 空そのものが画面 */
:root {
  --f-ui: 'M PLUS 1', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-num: 'Sora', 'M PLUS 1', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.25, 1.2, .4, 1);
  --dock: #0b1426;
  --dock-t: #b9c7dc;
  --rain: #3d8ae0;
  /* 濃い文字の空（昼） */
  --ink: #0b2340;
  --ink2: #22405e;
  --pill: #f7fbff;
  --pill-t: #0b2340;
  --panel: #f3f7fb;
  --ptext: #0d2740;
  --ptext2: #3c556f;
  --pline: #d3dee9;
  --card: #ffffff;
  --accent: #1c6bb8;
  --on-accent: #ffffff;
  --sun-c: #c0392b;
  --sat-c: #1d5fa8;
}
html[data-ink="light"] {
  --ink: #ffffff;
  --ink2: #dbe6f5;
  --pill: #0a1328;
  --pill-t: #eef3fb;
  --panel: #0d1830;
  --ptext: #eef3fb;
  --ptext2: #a9b8cf;
  --pline: #24355a;
  --card: #142445;
  --accent: #7cc0ff;
  --on-accent: #0b1426;
  --sun-c: #ff9a8f;
  --sat-c: #8cc4ff;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--f-ui); font-size: 15px; line-height: 1.6; color: var(--ptext); background: #050a18; overflow: hidden; line-break: strict; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2 { font-feature-settings: "palt"; }
:focus-visible { outline: 3px solid #f2b632; outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-s { width: 16px; height: 16px; }
.wi { width: 30px; height: 30px; flex: none; }
.nw { white-space: nowrap; }
.scroller { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.scroller-x { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.scroller-x::-webkit-scrollbar { display: none; }
.boot { position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: #fff; }

/* ---------- 空 ---------- */
.app { position: fixed; inset: 0; height: 100dvh; overflow: hidden; background-color: #0f1b3d; background-repeat: no-repeat; background-size: 100% 100%; }
.sky-fade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background-size: 100% 100%; z-index: 0; }
.sky-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.views { position: absolute; inset: 0; z-index: 2; }
.v { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ---------- 上の帯 ---------- */
.top { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 10px) 14px 0; min-height: 60px; position: relative; z-index: 2; }
.place { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--pill); color: var(--pill-t); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: transform .15s, background-color .6s, color .6s; }
.place:active { transform: scale(.96); }
.place-n { font-size: 17px; font-weight: 700; }
.place-p { font-size: 12px; font-weight: 500; opacity: 1; color: inherit; }
.top-sp { flex: 1; }
.top-t { flex: 1; font-size: 16px; font-weight: 700; color: var(--ink); }
.top-t--l { font-size: 26px; padding-left: 10px; }
.top-gear { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--pill); color: var(--pill-t); flex: none; transition: transform .15s, background-color .6s, color .6s; }
.top-gear:active { transform: rotate(40deg) scale(.94); }

/* ---------- いま ---------- */
.now-sc { position: absolute; inset: 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.ptr { position: absolute; top: calc(env(safe-area-inset-top) + 8px); left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; z-index: 3; color: var(--ink); font-size: 13px; font-weight: 700; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.ptr-ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); border-top-color: transparent; transition: transform .2s; }
.ptr.is-armed .ptr-ring { transform: rotate(180deg); }
.ptr.is-busy .ptr-ring { animation: spin .8s linear infinite; }
.hero { position: relative; padding: 5dvh 24px 0; min-height: calc(66dvh - 60px); color: var(--ink); will-change: transform, opacity; }
.hero-d { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.hero-t { display: flex; align-items: flex-start; margin: 4px 0 0 -6px; font-family: var(--f-num); font-weight: 200; font-size: clamp(108px, 34vw, 150px); line-height: .98; letter-spacing: -.045em; }
.hero-deg { font-size: .42em; font-weight: 300; margin-top: .12em; letter-spacing: 0; }
.hero-c { font-size: 26px; font-weight: 500; margin-top: 2px; letter-spacing: .04em; }
.hero-hl { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--ink2); font-feature-settings: "tnum"; }
.hero-m { margin-top: 14px; max-width: 22em; font-size: 15px; line-height: 1.8; color: var(--ink); }

/* ---------- 地平パネル ---------- */
.panel { position: relative; background-color: var(--panel); color: var(--ptext); border-radius: 30px 30px 0 0; padding: 10px 16px 32px; box-shadow: 0 -12px 34px rgba(0, 0, 0, .16); transition: background-color .6s, color .6s; }
.v-now .panel { min-height: 70dvh; }
.grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--pline); margin: 0 auto 10px; }
.sec-h { font-size: 13px; font-weight: 700; color: var(--ptext2); letter-spacing: .12em; margin: 10px 0 10px; }
.sec { margin-bottom: 8px; }
.hs { margin: 0 -16px; padding: 0 16px 6px; }
.hs-in { position: relative; display: flex; }
.hs-svg { position: absolute; left: 0; top: 56px; pointer-events: none; overflow: visible; }
.hs-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.hs-dot { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.hs-c { width: 58px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hs-c.is-day { box-shadow: inset 1px 0 0 var(--pline); }
.hs-time { height: 18px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ptext2); white-space: nowrap; }
.hs-c:first-child .hs-time { color: var(--accent); }
.hs-band { position: relative; height: 62px; width: 100%; }
.hs-temp { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--f-num); font-weight: 500; font-size: 15px; line-height: 18px; color: var(--ptext); }
.hs-pop { min-height: 18px; font-size: 12px; font-weight: 700; color: var(--ptext2); }
.hs-pop.is-wet { color: var(--accent); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile { position: relative; min-height: 148px; padding: 14px 14px 12px; border-radius: 22px; background: var(--card); transition: background-color .6s; }
.tile--wide { grid-column: 1 / -1; min-height: 0; }
.tile-l { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ptext2); }
.tile-l .ic { width: 18px; height: 18px; }
.tile-v { margin-top: 6px; font-family: var(--f-num); font-weight: 300; font-size: 36px; line-height: 1.1; }
.tile-v small { font-size: 15px; font-weight: 400; margin-left: 2px; color: var(--ptext2); }
.tile-s { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ptext2); }
.meter { height: 6px; border-radius: 3px; background: var(--pline); margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6fb4ff, var(--accent)); }
.compass { position: relative; width: 84px; height: 84px; margin: 4px auto 0; }
.compass svg { width: 100%; height: 100%; }
.cp-ring { fill: none; stroke: var(--pline); stroke-width: 2; }
.cp-tick { stroke: var(--ptext2); stroke-width: 1.4; }
.cp-arrow path { fill: var(--accent); }
.cp-arrow line { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.cp-n { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--ptext2); background: var(--card); padding: 0 3px; line-height: 14px; }
.arc { margin-top: 4px; }
.arc svg { width: 100%; height: auto; display: block; }
.arc-path { fill: none; stroke: var(--ptext2); stroke-width: 1.6; stroke-dasharray: 4 6; }
.arc-base { stroke: var(--pline); stroke-width: 2; }
.arc-sun { fill: #f6b73c; stroke: var(--card); stroke-width: 3; }
.arc-t { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.arc-t p { display: flex; flex-direction: column; }
.arc-t p:last-child { text-align: right; }
.arc-l { font-size: 12px; font-weight: 700; color: var(--ptext2); }
.arc-v { font-family: var(--f-num); font-weight: 500; font-size: 20px; }
.arc-day { align-items: center; font-size: 13px; color: var(--ptext2); text-align: center; }
.word { margin-top: 14px; border-radius: 24px; overflow: hidden; background: var(--card); transition: background-color .6s; }
.word-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.word-b { padding: 14px 16px 18px; }
.word-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.word-t { margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: .06em; }
.word-r { margin-left: 10px; font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--ptext2); }
.word-s { margin-top: 6px; font-size: 14px; line-height: 1.85; }
.demo-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--ptext2); }
.demo-note .ic { width: 18px; height: 18px; margin-top: 3px; }

/* ---------- 1時間ごと ---------- */
.hh { flex: none; padding: 2dvh 24px 0; height: max(178px, calc(40dvh - 60px)); color: var(--ink); }
.hh-when { font-size: 16px; font-weight: 700; color: var(--ink2); letter-spacing: .06em; min-height: 26px; }
.hh-t { font-family: var(--f-num); font-weight: 200; font-size: 92px; line-height: 1; letter-spacing: -.04em; margin-left: -4px; }
.hh-c { font-size: 20px; font-weight: 500; margin-top: 4px; }
.hp { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.hp-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.hp-head .sec-h { margin-bottom: 0; }
.hp-hint { font-size: 14px; color: var(--ptext2); line-height: 1.6; }
.hc-wrap { position: relative; margin: 0 -16px; }
.hc { scroll-snap-type: x mandatory; }
.hc-in { position: relative; display: flex; height: 192px; }
.hc-svg { position: absolute; left: 0; top: 54px; pointer-events: none; overflow: visible; }
.hcg-a { stop-color: var(--accent); stop-opacity: .3; }
.hcg-b { stop-color: var(--accent); stop-opacity: 0; }
.hc-line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.hc-bar { fill: var(--rain); opacity: .85; }
.hc-mid { stroke: var(--pline); stroke-width: 1.5; stroke-dasharray: 3 4; }
.hc-c { position: relative; width: 60px; flex: none; scroll-snap-align: center; cursor: pointer; }
.hc-time { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ptext2); white-space: nowrap; }
.hc-time b { color: var(--ptext); }
.hc-c .wi { position: absolute; top: 22px; left: 15px; transition: transform .25s var(--spring); }
.hc-temp { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--f-num); font-weight: 500; font-size: 14px; line-height: 18px; color: var(--ptext); }
.hc-p { position: absolute; bottom: 44px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--accent); }
.hc-c.is-on .hc-time { color: var(--accent); font-weight: 700; }
.hc-c.is-on .wi { transform: scale(1.22); }
.hc-c.is-on .hc-temp { font-weight: 600; font-size: 16px; }
.hc-needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); border-radius: 1px; pointer-events: none; opacity: .75; }
.hc-needle::before { content: ''; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.hd-c { padding: 10px 8px; border-radius: 16px; background: var(--card); min-width: 0; }
.hd-l { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ptext2); white-space: nowrap; }
.hd-l .ic { width: 14px; height: 14px; }
.hd-v { margin-top: 4px; font-family: var(--f-num); font-size: 21px; font-weight: 400; line-height: 1.2; white-space: nowrap; }
.hd-v small { font-size: 11px; margin-left: 1px; color: var(--ptext2); }
.hd-s { font-size: 12px; color: var(--ptext2); }
.hp-foot { display: flex; justify-content: center; margin-top: 14px; min-height: 48px; }

/* ---------- 週間 ---------- */
.wk-sc, .ar-sc { position: absolute; inset: 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.wh { padding: 3dvh 24px 5dvh; color: var(--ink); }
.wh-t { font-size: 30px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.wh-s { margin-top: 8px; font-size: 15px; line-height: 1.8; color: var(--ink); max-width: 24em; }
.days li { border-bottom: 1px solid var(--pline); }
.days li:last-child { border-bottom: 0; }
.day-b { display: grid; grid-template-columns: 66px 46px 38px 34px 1fr 34px; align-items: center; gap: 8px; width: 100%; min-height: 66px; padding: 8px 0; text-align: left; transition: background-color .2s; border-radius: 14px; }
.day-b:active { background: var(--card); }
.day-d { display: flex; flex-direction: column; line-height: 1.3; }
.day-w { font-size: 16px; font-weight: 700; }
.day-w.is-sun { color: var(--sun-c); }
.day-w.is-sat { color: var(--sat-c); }
.day-n { font-size: 11px; color: var(--ptext2); white-space: nowrap; }
.day-sky { width: 46px; height: 36px; border-radius: 12px; display: grid; place-items: center; background-size: 100% 100%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.day-sky .wi { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.day-pop { font-size: 13px; font-weight: 700; color: var(--ptext2); text-align: right; font-feature-settings: "tnum"; }
.day-pop.is-wet { color: var(--accent); }
.day-lo, .day-hi { font-family: var(--f-num); font-size: 16px; text-align: right; font-feature-settings: "tnum"; }
.day-lo { color: var(--ptext2); font-weight: 400; }
.day-hi { font-weight: 600; text-align: left; }
.day-bar { position: relative; height: 6px; border-radius: 3px; background: var(--pline); }
.day-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #5aa7f5, #f6b73c, #f08a4b); background-size: 300% 100%; }
.day-now { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ptext); box-shadow: 0 0 0 2px var(--panel); }
.day-x { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 0 16px; }
.seg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; background: var(--card); }
.seg-l { font-size: 12px; font-weight: 700; color: var(--ptext2); }
.seg-c { font-size: 13px; font-weight: 500; text-align: center; word-break: keep-all; }
.day-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ptext2); }

/* ---------- 雨雲 ---------- */
.rh { flex: none; padding: 1dvh 24px 2.4dvh; color: var(--ink); }
.rh .wh-s { font-size: 14px; margin-top: 4px; line-height: 1.7; }
.rp { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 16px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.rtime { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.rtime-t { font-family: var(--f-num); font-weight: 300; font-size: 34px; line-height: 1; font-feature-settings: "tnum"; }
.rtime-k { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--card); color: var(--ptext); }
.rtime-k[data-k="fc"] { background: var(--accent); color: var(--on-accent); }
.rtime-v { margin-left: auto; font-size: 14px; color: var(--ptext2); text-align: right; }
.rmap { position: relative; width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #13304d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.rmap canvas { width: 100%; height: 100%; display: block; }
.rcity { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 6px; transform: translate(-7px, -50%); pointer-events: none; }
.rdot { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #0b1426, 0 0 0 6px rgba(255, 255, 255, .35); }
.rcity-n { padding: 1px 8px; border-radius: 8px; background: #0b1426; color: #fff; font-size: 13px; font-weight: 700; }
.rscale { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 8px; background: #0b1426; color: #e6edf7; font-size: 12px; }
.rctl { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.rplay { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); transition: transform .15s; }
.rplay:active { transform: scale(.92); }
.rslider { --k: 14%; flex: 1; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rslider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--k), var(--pline) var(--k)); }
.rslider::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--k), var(--pline) var(--k)); }
.rslider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 2px 6px rgba(0, 0, 0, .3); }
.rslider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.rticks { position: relative; height: 20px; margin-left: 64px; margin-right: 13px; font-size: 12px; color: var(--ptext2); }
.rticks span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.rticks span:nth-child(1) { left: 14.3%; }
.rticks span:nth-child(2) { left: 57.1%; }
.rticks span:nth-child(3) { right: 0; transform: none; }
.rleg { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin-top: 14px; }
.rleg li { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rleg-c { width: 34px; height: 10px; border-radius: 3px; }
.rleg-l { font-size: 11px; font-weight: 700; color: var(--ptext2); }
.rleg-u { font-size: 12px; color: var(--ptext2); padding-bottom: 1px; }

/* ---------- 地域 ---------- */
.ar-lead { padding: 4px 24px 4dvh; font-size: 15px; line-height: 1.7; color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; border-radius: 16px; background: var(--card); color: var(--ptext2); margin-top: 4px; }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--ptext); font: 500 16px var(--f-ui); outline: none; }
.search input::placeholder { color: var(--ptext2); opacity: 1; }
.locate { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 6px 0 2px; color: var(--accent); font-size: 15px; font-weight: 700; text-align: left; }
.cts li { display: flex; align-items: center; border-bottom: 1px solid var(--pline); }
.ct-b { flex: 1; min-width: 0; display: grid; grid-template-columns: 58px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 4px 10px 0; min-height: 78px; text-align: left; border-radius: 16px; transition: background-color .2s; }
.ct-b:active { background: var(--card); }
.ct.is-sel .ct-b { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.ct-sky { position: relative; width: 58px; height: 58px; border-radius: 18px; overflow: hidden; background: #1c3358; }
.ct-sky img { width: 100%; height: 100%; object-fit: cover; }
.ct-sky .wi { position: absolute; right: 3px; bottom: 3px; width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.ct-n { display: flex; flex-direction: column; min-width: 0; }
.ct-name { font-size: 18px; font-weight: 700; }
.ct-c { font-size: 13px; color: var(--ptext2); }
.ct-t { display: flex; flex-direction: column; align-items: flex-end; }
.ct-now { font-family: var(--f-num); font-weight: 300; font-size: 28px; line-height: 1.1; }
.ct-hl { font-family: var(--f-num); font-size: 12px; color: var(--ptext2); white-space: nowrap; }
.ct-sel { color: var(--accent); }
.ct-fav { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--ptext2); border-radius: 50%; transition: transform .2s var(--spring), color .2s; }
.ct-fav[aria-pressed="true"] { color: #e7a417; }
.ct-fav:active { transform: scale(.8); }
.empty { padding: 28px 8px; text-align: center; }
.empty-t { font-size: 17px; font-weight: 700; }
.empty-s { margin-top: 6px; font-size: 14px; color: var(--ptext2); line-height: 1.7; }

/* ---------- 設定・アプリについて ---------- */
.pg-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 10px) 14px 14px; color: var(--ink); }
.pg-back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--pill); color: var(--pill-t); }
.pg-t { font-size: 22px; font-weight: 700; color: var(--ink); }
.pg { flex: 1; min-height: 0; padding: 18px 18px calc(110px + env(safe-area-inset-bottom)); }
.set-g { margin-bottom: 18px; }
.sg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--card); }
.sg-b { min-height: 44px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--ptext2); transition: background-color .2s, color .2s; }
.sg-b[aria-checked="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.set-p { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--ptext2); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; font-size: 15px; font-weight: 500; text-align: left; border-bottom: 1px solid var(--pline); }
.row--link { margin-top: 8px; border-top: 1px solid var(--pline); }
.row-chev { margin-left: auto; width: 18px; height: 18px; color: var(--ptext2); }
.ab-hd { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ab-ic { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.ab-n { font-size: 26px; font-weight: 700; letter-spacing: .08em; }
.ab-v { font-size: 13px; color: var(--ptext2); }
.ab-p { margin-top: 10px; font-size: 14px; line-height: 1.85; }
.ab-tech li { padding: 7px 0; font-size: 14px; line-height: 1.6; border-bottom: 1px dashed var(--pline); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700; transition: transform .15s; }
.btn:active { transform: scale(.96); }
.btn--ghost { background: transparent; color: var(--ptext); box-shadow: inset 0 0 0 1.5px var(--pline); }
.btn--warn { background: #b8322a; color: #fff; }
.btn--wide { width: 100%; margin-top: 22px; }

/* ---------- ドック ---------- */
.dock { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; width: min(calc(100% - 20px), 410px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px; border-radius: 26px; background: var(--dock); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.dock-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border-radius: 20px; color: var(--dock-t); font-size: 11px; font-weight: 700; transition: background-color .25s, color .25s, transform .15s; }
.dock-b:active { transform: scale(.92); }
.dock-b.is-on { background: #eef4fb; color: #0b1426; }

/* ---------- トースト・シート ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.toast { max-width: 400px; padding: 12px 16px; border-radius: 16px; background: var(--dock); color: #f1f5fb; font-size: 14px; line-height: 1.6; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .3s var(--spring); }
.toast.is-in { opacity: 1; transform: none; }
.sheet-w { position: fixed; inset: 0; z-index: 70; }
.scrim { position: absolute; inset: 0; background: rgba(3, 8, 20, .5); opacity: 0; transition: opacity .3s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 430px; background: var(--panel); color: var(--ptext); border-radius: 28px 28px 0 0; padding-top: 10px; transform: translateY(105%); transition: transform .34s var(--ease); outline: none; }
.sheet-w.is-open .scrim { opacity: 1; }
.sheet-w.is-open .sheet { transform: none; }
.sh { padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); }
.sh-t { font-size: 20px; font-weight: 700; }
.sh-p { margin-top: 8px; font-size: 15px; line-height: 1.8; color: var(--ptext2); }
.sh-b { display: flex; gap: 10px; margin-top: 20px; }
.sh-b .btn { flex: 1; padding: 0 12px; }

/* ---------- スプラッシュ・案内 ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(180deg, #0f1b3d, #3a3f6e 70%, #a0607a); transition: opacity .4s, transform .4s var(--ease); }
.splash.is-out { opacity: 0; transform: scale(1.04); }
.splash-ic { width: 120px; height: 120px; border-radius: 30px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); animation: rise .8s var(--spring) both; }
.splash-n { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: .3em; padding-left: .3em; animation: rise .8s .1s var(--spring) both; }
.onb { position: fixed; inset: 0; z-index: 90; margin: 0 auto; max-width: 430px; background: #0b1426; transition: opacity .4s; animation: fadeIn .4s; }
.onb.is-out { opacity: 0; pointer-events: none; }
.onb-ph { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.onb-skip { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 14px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #0b1426; color: #fff; font-size: 14px; font-weight: 700; }
.onb-card { position: absolute; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 22px 20px 16px; border-radius: 28px; background: #0b1426; color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.onb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.onb-track::-webkit-scrollbar { display: none; }
.onb-s { flex: none; width: 100%; scroll-snap-align: start; padding-right: 2px; }
.onb-t { font-size: 23px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
.onb-l { display: block; }
.onb-p { margin-top: 8px; font-size: 15px; line-height: 1.8; color: #c9d5e8; }
.onb-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.onb-dots { display: flex; gap: 8px; }
.onb-dots span { width: 8px; height: 8px; border-radius: 4px; background: #34476b; transition: width .3s var(--ease), background-color .3s; }
.onb-dots span.is-on { width: 24px; background: #7cc0ff; }
.onb .btn { background: #7cc0ff; color: #0b1426; min-width: 120px; }

.fatal { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; background: #0b1426; color: #fff; line-height: 1.8; }
.fatal-t { font-size: 20px; font-weight: 700; }
.fatal a { color: #7cc0ff; text-decoration: underline; }
.noscript { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 32px; background: #0b1426; color: #fff; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (min-width: 600px) {
  body { background: radial-gradient(ellipse at 50% 0%, #1b2b55, #050a18 70%); }
  .app { left: 50%; right: auto; width: 430px; transform: translateX(-50%); box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
  .dock { width: 410px; }
}
