/* ハイタツ便ナビ — 現場向け Material 3 Expressive（深緑×白×黄） */
:root {
  --pine: #0a5c34;
  --pine-d: #063d22;
  --leaf: #12814a;
  --mint: #dcefe2;
  --mint2: #c3e4cf;
  --frost: #f2f7f3;
  --paper: #ffffff;
  --sun: #ffcf33;
  --sun-d: #f0b400;
  --cream: #fff4cc;
  --ink: #11211a;
  --ink2: #3b4d43;
  --line: #d3e1d7;
  --outline: #6c7d73;
  --alert: #b42318;
  --alert-bg: #fde7e3;
  --cold: #0d587f;
  --cold-bg: #e2f0f8;
  --brown: #6e4700;
  --inv: #1b2a22;

  --w-am: #ffcf33;
  --w-none: #e3eae5;
  --w14: #bfe3c9;
  --w16: #12814a;
  --w18: #0a5c34;
  --w19: #062a19;

  --r-xl: 28px;
  --r-l: 22px;
  --r-m: 16px;
  --r-s: 12px;

  --fj: 'Murecho', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --fn: 'Archivo', 'Murecho', sans-serif;
  --spring: linear(0, 0.054, 0.184, 0.351, 0.523, 0.682, 0.817, 0.922, 0.998, 1.046, 1.073, 1.083, 1.081, 1.072, 1.058, 1.044, 1.03, 1.018, 1.009, 1.002, 0.997, 0.994, 0.993, 0.993, 0.994, 0.995, 0.996, 0.997, 1);
  --spring-calm: linear(0, 0.036, 0.124, 0.238, 0.361, 0.481, 0.592, 0.688, 0.77, 0.837, 0.89, 0.93, 0.96, 0.982, 0.997, 1.006, 1.012, 1.014, 1.015, 1.015, 1.013, 1.011, 1.01, 1.008, 1.006, 1.005, 1.003, 1.002, 1);
  --ease-out: cubic-bezier(.2, 0, 0, 1);
  --nav-h: calc(80px + env(safe-area-inset-bottom));
}
html.big { font-size: 112.5%; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--fj);
  font-weight: 500;
  color: var(--ink);
  background: var(--frost);
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
small { font-size: .6em; font-weight: 700; margin-left: .2em; }
.nw { white-space: nowrap; }
.dot { color: inherit; opacity: .9; }
.g { width: 24px; height: 24px; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3, .btn, .nchip, .seg-b, .wchip, .row-name, .row-addr, .now-name, .now-addr, .who-addr, .pchip, .mtile, .ms-t, .empty-t, .onb-t, .slip-lead {
  word-break: keep-all;
  overflow-wrap: normal;
  font-feature-settings: "palt";
}
p.empty-b, .ms-note, .muted, .onb-b, .dlg-b, .ab-note, .tech span, .res-b { word-break: normal; }
:focus-visible { outline: 3px solid var(--sun-d); outline-offset: 2px; }

/* ---------- 骨組み ---------- */
.shell { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--frost); overflow: hidden; }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--frost); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; }
.scroll.noscroll { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 8px; }
.tail-space { height: 24px; }

@media (min-width: 600px) {
  body { background: radial-gradient(circle at 20% 10%, #12814a 0, transparent 40%), linear-gradient(160deg, #0a5c34, #062a19); }
  .shell { left: 0; right: 0; margin: 0 auto; max-width: 430px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.45); }
  .splash, .onb { left: 0; right: 0; margin: 0 auto; max-width: 430px; }
}

/* ---------- トップアプリバー ---------- */
.topbar { flex: none; padding-top: env(safe-area-inset-top); background: var(--frost); transition: background-color .25s var(--ease-out), box-shadow .25s; z-index: 3; }
.topbar.lift { background: #e3eee6; }
.tb-row { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 8px 12px 8px 20px; }
.topbar.sm .tb-row { min-height: 64px; padding-left: 6px; }
.tb-ttl { flex: 1; min-width: 0; }
.tb-over { font-size: .875rem; font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-h { font-size: 1.75rem; font-weight: 900; letter-spacing: .01em; line-height: 1.2; }
.tb-h.small { font-size: 1.3rem; }
.clock { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.clock .g { width: 20px; height: 20px; color: var(--pine); }
.clock b { font-family: var(--fn); font-variation-settings: "wdth" 88; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ibtn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background-color .15s, transform .2s var(--spring); }
.ibtn:active { background: rgba(10, 92, 52, .12); transform: scale(.9); }
.slip-no { font-family: var(--fn); font-variation-settings: "wdth" 80; font-weight: 700; font-size: .95rem; color: var(--ink2); padding: 6px 10px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .35s var(--spring), border-radius .35s var(--spring), background-color .2s, opacity .2s;
  user-select: none; -webkit-user-select: none; position: relative; text-align: center;
}
.btn:active { transform: scale(.96); border-radius: 18px; }
.btn[disabled] { opacity: 1; background: #dfe6e1 !important; color: #55665c !important; box-shadow: none !important; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.btn-lg { min-height: 56px; font-size: 1.05rem; padding: 0 24px; }
.btn-xl { min-height: 68px; font-size: 1.25rem; font-weight: 900; border-radius: 24px; padding: 0 22px; }
.btn-xl:active { border-radius: 34px; }
.btn-xl .g { width: 28px; height: 28px; }
.btn.wide { width: 100%; }
.btn.sq { padding: 0; width: 68px; }
.btn-pine { background: var(--pine); color: #fff; box-shadow: 0 2px 0 var(--pine-d); }
.btn-sun, .btn-sunk { background: var(--sun); color: var(--ink); box-shadow: 0 3px 0 var(--sun-d); }
.btn-tonal { background: var(--mint2); color: var(--pine-d); }
.btn-text { color: var(--pine); min-height: 48px; }
.btn-text:active { background: rgba(10,92,52,.1); }
.btn-ghost-on { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn-danger { background: var(--alert); color: #fff; }
.btn-danger-t { color: var(--alert); box-shadow: inset 0 0 0 1.5px #e3a39b; min-height: 44px; padding: 0 16px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 12px; background: var(--cream); color: var(--brown); font-weight: 700; font-size: .9rem; white-space: nowrap; transition: transform .3s var(--spring); }
.chip-btn .g { width: 20px; height: 20px; }
.chip-btn:active { transform: scale(.94); }

/* ---------- 次の配達（NOW） ---------- */
.v-today .scroll { padding-bottom: 140px; }
.now {
  margin: 4px 16px 0; padding: 18px 18px 18px; border-radius: var(--r-xl); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 100% 0%, rgba(30,150,85,.55) 0%, transparent 55%), var(--pine);
  box-shadow: 0 12px 28px -14px rgba(6, 61, 34, .7);
}
.now::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--sun); pointer-events: none; }
.now { padding-bottom: 24px; }
.now-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.now-tag { font-size: .875rem; font-weight: 900; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.wchip { font-family: var(--fn), var(--fj); font-weight: 800; font-size: .95rem; padding: 4px 10px; border-radius: 10px; white-space: nowrap; }
.now .wchip { background: #fff; color: var(--pine-d); }
.now-dist { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 700; color: #e6f5ec; }
.now-dist .g { width: 18px; height: 18px; color: var(--sun); }
.now-main { display: block; margin-top: 14px; position: relative; z-index: 1; border-radius: 16px; }
.now-name { font-size: 1.95rem; font-weight: 900; line-height: 1.25; }
.now-name small, .row-name small, .who-name small, .drow-name small, .tl-b small, .absl small, .sg-name small, .slip-to small { font-size: .55em; margin-left: .25em; }
.now-addr { margin-top: 4px; font-size: 1.1rem; font-weight: 700; color: #e6f5ec; line-height: 1.5; }
.now-meta { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: .95rem; font-weight: 700; color: #e6f5ec; }
.now-meta .g { width: 20px; height: 20px; }
.now .ws { background: rgba(255,255,255,.14); color: #fff; }
.now-notes { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.now-notes .nchip { background: rgba(0,0,0,.22); color: #fff; box-shadow: none; }
.now-act { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; position: relative; z-index: 1; }

.ws { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .875rem; font-weight: 700; word-break: keep-all; }
.ws-in { background: var(--mint); color: var(--pine-d); }
.ws-early { background: var(--cream); color: var(--brown); }
.ws-late { background: var(--alert-bg); color: var(--alert); }
.ws-free { background: #e8ede9; color: var(--ink2); }

/* ---------- 進み具合 ---------- */
.prog { margin: 18px 20px 6px; }
.prog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prog-n { display: flex; align-items: baseline; gap: 2px; }
.prog-n b { font-family: var(--fn); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--pine); font-variant-numeric: tabular-nums; }
.prog-n .of { font-family: var(--fn); font-size: 1.3rem; font-weight: 700; color: var(--ink2); }
.prog-n .lb { font-size: .9rem; font-weight: 700; margin-left: 6px; color: var(--ink2); }
.prog-eta { font-size: .9rem; font-weight: 700; color: var(--ink2); }
.prog-eta b { font-family: var(--fn); color: var(--ink); font-size: 1.05rem; }
.prog-cells { display: flex; gap: 3px; margin-top: 10px; }
.prog-cells li { flex: 1; height: 14px; border-radius: 4px; background: #d6e3da; }
.prog-cells li:first-child { border-radius: 8px 4px 4px 8px; }
.prog-cells li:last-child { border-radius: 4px 8px 8px 4px; }
.prog-cells .c-ok { background: var(--pine); }
.prog-cells .c-abs { background: repeating-linear-gradient(-45deg, var(--sun) 0 4px, #f5dc7a 4px 8px); }
.prog-cells .c-arr { background: var(--leaf); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- セグメントボタン ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 16px 6px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--outline); overflow: hidden; }
.seg-b { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: .95rem; padding: 0 10px; transition: background-color .25s var(--ease-out); }
.seg-b + .seg-b { box-shadow: inset 1.5px 0 0 var(--outline); }
.seg-b.on { background: var(--mint2); color: var(--pine-d); }
.seg-ic { width: 0; height: 18px; opacity: 0; transition: width .3s var(--spring), opacity .2s; }
.seg-b.on .seg-ic { width: 18px; opacity: 1; }
.seg-b:active { background: rgba(10,92,52,.12); }

/* ---------- 時間帯レーン（並べ替えできる配達リスト） ---------- */
.lane { padding: 8px 16px 0 6px; position: relative; }
.row { display: grid; grid-template-columns: 54px 1fr; position: relative; margin-bottom: 8px; transition: none; }
.lane.sorting .row:not(.lifting) { transition: transform .32s var(--spring); }
.row.head { margin-top: 12px; }
.row.head:first-child { margin-top: 0; }
.rail { position: relative; }
.rail::before { content: ""; position: absolute; left: 26px; top: -8px; bottom: -8px; width: 3px; background: #c9d9ce; }
.row:first-child .rail::before { top: 34px; }
.row:last-child .rail::before { bottom: auto; height: 34px; }
.row:only-child .rail::before { display: none; }
.rail-dot { position: absolute; left: 19px; top: 34px; width: 17px; height: 17px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3.5px var(--pine); }
.row.arr .rail-dot { background: var(--sun); box-shadow: inset 0 0 0 3.5px var(--pine), 0 0 0 5px rgba(255,207,51,.45); }
.rail-w {
  position: absolute; left: 2px; top: -6px; z-index: 1; min-width: 50px; text-align: center;
  font-family: var(--fn); font-variation-settings: "wdth" 78; font-size: .82rem; font-weight: 800; line-height: 1; padding: 6px 4px; border-radius: 8px; white-space: nowrap;
}
.rail-w.w-none { font-family: var(--fj); font-size: .72rem; letter-spacing: -.02em; }
.w-am { background: var(--w-am); color: var(--ink); }
.w-none { background: var(--w-none); color: var(--ink); }
.w-w14 { background: var(--w14); color: var(--ink); }
.w-w16 { background: var(--w16); color: #fff; }
.w-w18 { background: var(--w18); color: #fff; }
.w-w19 { background: var(--w19); color: #fff; }

.row > .row-main, .row > .row-drag { background: var(--paper); }
.row { grid-template-columns: 54px 1fr 58px; }
.row-main { display: block; padding: 14px 6px 14px 16px; border-radius: var(--r-l) 0 0 var(--r-l); min-width: 0; transition: background-color .15s; box-shadow: 0 1px 0 var(--line); }
.row-main:active { background: #eaf3ed; }
.row-top { display: flex; align-items: baseline; gap: 8px; }
.row-no { font-family: var(--fn); font-variation-settings: "wdth" 75; font-size: 1rem; font-weight: 800; color: var(--leaf); flex: none; }
.row-name { font-size: 1.15rem; font-weight: 700; line-height: 1.35; min-width: 0; }
.row-addr { display: block; margin-top: 2px; font-size: .95rem; color: var(--ink2); line-height: 1.5; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .875rem; font-weight: 700; color: var(--ink2); }
.rm { display: inline-flex; align-items: center; gap: 4px; }
.rm .g { width: 18px; height: 18px; color: var(--leaf); }
.rm.re { color: var(--brown); }
.rm.re .g { color: var(--brown); }
.row-warn { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: var(--cream); color: var(--brown); font-size: .875rem; font-weight: 700; }
.row-warn .g { width: 18px; height: 18px; }
.row.bad .row-main, .row.bad .row-drag { background: #fffbea; }
.row-drag {
  display: grid; place-items: center; border-radius: 0 var(--r-l) var(--r-l) 0; color: var(--ink2);
  touch-action: none; cursor: grab; box-shadow: 0 1px 0 var(--line), inset 1px 0 0 var(--line); min-height: 64px;
}
.row-drag .g { width: 26px; height: 26px; transition: transform .3s var(--spring); }
.row-drag:active .g { transform: scale(1.2); color: var(--pine); }
.row.lifting { z-index: 10; }
.row.lifting .row-main, .row.lifting .row-drag { background: #fff; box-shadow: 0 18px 36px -12px rgba(6, 40, 24, .45); }
.row.lifting .row-drag { cursor: grabbing; color: var(--pine); }
.row.lifting .rail-dot { background: var(--sun); }
.row.landing { transition: transform .18s var(--ease-out); }
.list-foot { display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; font-size: .875rem; color: var(--ink2); font-weight: 700; word-break: keep-all; }
.list-foot .g { width: 20px; height: 20px; }

/* 完了・持ち戻り */
.done-list { margin: 8px 16px 0; background: var(--paper); border-radius: var(--r-l); padding: 4px 0; }
.drow { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 4px; padding: 8px 12px 8px 14px; min-height: 68px; }
.drow + .drow { border-top: 1px dashed var(--line); }
.drow-at { font-family: var(--fn); font-variation-settings: "wdth" 80; font-size: 1.15rem; font-weight: 800; color: var(--pine); font-variant-numeric: tabular-nums; }
.drow-main { display: block; min-width: 0; padding: 4px 0; }
.drow-name { display: block; font-weight: 700; font-size: 1rem; }
.drow-how { display: flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--ink2); font-weight: 700; margin-top: 2px; }
.drow-how .g { width: 18px; height: 18px; color: var(--leaf); }
.drow.m-absent .drow-at { color: var(--brown); }
.drow.m-absent .drow-how .g { color: var(--brown); }
.drow-sig { width: 96px; height: 36px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* 空の状態 */
.empty { padding: 12px 20px 24px; text-align: center; }
.empty img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-xl) var(--r-xl) 60px 60px; }
.empty-t { margin-top: 18px; font-size: 1.4rem; font-weight: 900; line-height: 1.45; }
.empty-b { margin: 8px auto 18px; max-width: 30em; font-size: 1rem; line-height: 1.7; color: var(--ink2); text-align: left; }
.empty.small { padding-top: 32px; }

/* 拡張FAB */
.efab {
  position: absolute; right: 16px; bottom: 16px; z-index: 4; height: 60px; padding: 0 22px 0 18px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 10px; background: var(--sun); color: var(--ink); font-weight: 900; font-size: 1rem;
  box-shadow: 0 8px 20px -6px rgba(6, 40, 24, .45), 0 3px 0 var(--sun-d);
  transition: transform .35s var(--spring), padding .35s var(--spring), border-radius .35s var(--spring);
}
.efab .g { width: 26px; height: 26px; }
.efab span { max-width: 14em; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--spring), opacity .2s; }
.efab.mini { padding: 0 17px; border-radius: 18px; }
.shell:has(.snack.on) .efab { transform: translateY(-66px); }
.efab.mini span { max-width: 0; opacity: 0; }
.efab:active { transform: scale(.93); }

/* 引っぱって更新 */
.ptr { position: absolute; left: 0; right: 0; top: 0; height: 0; display: grid; justify-items: center; z-index: 2; pointer-events: none; --pull: 0; }
.ptr .morph {
  margin-top: calc(var(--pull) * 1px - 44px); width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 4px 12px rgba(6,40,24,.25); position: relative; opacity: min(1, calc(var(--pull) / 40));
}
.ptr .morph::after { content: ""; position: absolute; inset: 10px; background: var(--pine); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(calc(var(--pull) * 4deg)) scale(calc(.4 + var(--pull) / 180)); }
.ptr.ready .morph::after { background: var(--leaf); }
.ptr.busy .morph::after { animation: morph 1s linear infinite; }
@keyframes morph {
  0% { border-radius: 50% 50% 50% 50%; transform: rotate(0) scale(.9); }
  25% { border-radius: 20% 80% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 12%; transform: rotate(180deg) scale(.8); }
  75% { border-radius: 70% 30% 80% 20% / 30% 70% 30% 70%; }
  100% { border-radius: 50%; transform: rotate(360deg) scale(.9); }
}

/* ---------- ナビゲーションバー ---------- */
.navbar { flex: none; display: flex; height: var(--nav-h); padding: 12px 8px env(safe-area-inset-bottom); background: #e3eee6; z-index: 5; }
.shell.deep .navbar { display: none; }
.nb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 56px; font-size: .875rem; font-weight: 700; color: var(--ink2); }
.nb-pill { position: relative; width: 64px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background-color .3s var(--ease-out), width .4s var(--spring); }
.nb.on .nb-pill { background: var(--mint2); color: var(--pine-d); }
.nb.on { color: var(--ink); }
.nb:active .nb-pill { width: 56px; }
.nb-badge { position: absolute; top: -4px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--alert); color: #fff; font-family: var(--fn); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.nb-badge[hidden] { display: none; }

/* ---------- スナックバー・シート ---------- */
.snack {
  position: absolute; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px); z-index: 30; display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 8px 8px 8px 18px; border-radius: 14px; background: var(--inv); color: #fff; font-size: .95rem; font-weight: 700;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .2s;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.shell.deep .snack { bottom: calc(100px + env(safe-area-inset-bottom)); }
.snack.on { transform: none; opacity: 1; pointer-events: auto; }
.snack-t { flex: 1; word-break: keep-all; line-height: 1.5; }
.snack-a { min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--sun); font-weight: 900; white-space: nowrap; }
.snack-a:active { background: rgba(255,255,255,.1); }

.scrim { position: absolute; inset: 0; background: rgba(6, 26, 16, .45); z-index: 40; opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88%; overflow-y: auto; overscroll-behavior: contain;
  background: #f7fbf8; border-radius: 28px 28px 0 0; padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .45s var(--spring-calm);
}
.sheet.on { transform: none; }
.sheet.drag { transition: none; }
.sheet-grip { display: grid; place-items: center; height: 36px; touch-action: none; cursor: grab; }
.sheet-grip i { width: 36px; height: 5px; border-radius: 3px; background: #9fb0a6; }
.msheet { padding: 4px 4px 0; }
.ms-over { font-size: .9rem; font-weight: 700; color: var(--ink2); }
.ms-t { margin: 4px 0 16px; font-size: 1.4rem; font-weight: 900; line-height: 1.4; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mtile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 140px; padding: 16px 12px 14px; border-radius: 24px;
  transition: transform .35s var(--spring), border-radius .35s var(--spring);
}
.mtile:active { transform: scale(.95); border-radius: 36px; }
.mtile .g { width: 34px; height: 34px; margin-bottom: auto; }
.mtile b { font-size: 1.3rem; font-weight: 900; }
.mtile > span { font-size: .875rem; font-weight: 700; line-height: 1.4; }
.t-sign { background: var(--pine); color: #fff; }
.t-drop { background: var(--mint2); color: var(--pine-d); }
.t-abs { background: var(--sun); color: var(--ink); }
.mtile.off { background: #e6ebe8; color: #4d5c54; }
.ms-note { margin: 14px 2px 16px; font-size: .95rem; line-height: 1.7; color: var(--ink2); }
.msheet > .btn-text { margin-top: 10px; }
.wpick { display: grid; gap: 8px; }
.wp { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 18px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .3s var(--spring); }
.wp b { font-family: var(--fn), var(--fj); font-size: 1.2rem; font-weight: 800; }
.wp span { font-size: .875rem; font-weight: 700; color: var(--ink2); }
.wp:active { transform: scale(.97); }
.wp[disabled] { opacity: 1; background: #e9eeea; color: #55665c; }
.dlg { padding: 4px 6px 0; }
.dlg-t { font-size: 1.3rem; font-weight: 900; }
.dlg-b { margin-top: 10px; font-size: 1rem; line-height: 1.7; color: var(--ink2); }
.dlg-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------- 配達詳細 ---------- */
.v-stop .scroll { padding-bottom: 16px; }
.spot { position: relative; margin: 0 12px; }
.spot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-xl); }
.spot figcaption { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(6, 30, 18, .76); color: #fff; font-size: .875rem; font-weight: 700; }
.spot figcaption .g { width: 18px; height: 18px; }
.who { padding: 18px 20px 8px; }
.who-name { font-size: 1.85rem; font-weight: 900; line-height: 1.3; }
.who-addr { display: flex; gap: 6px; margin-top: 6px; font-size: 1.15rem; font-weight: 700; line-height: 1.55; }
.who-addr .g { color: var(--leaf); margin-top: 2px; }
.facts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin: 8px 16px 0; }
.fact { padding: 14px 16px; border-radius: var(--r-l); background: var(--paper); }
.fact-l { font-size: .875rem; font-weight: 700; opacity: .92; }
.fact-v { font-family: var(--fn), var(--fj); font-size: 1.7rem; font-weight: 800; line-height: 1.2; margin-top: 2px; white-space: nowrap; }
.fact-s { font-size: .875rem; color: var(--ink2); font-weight: 700; margin-top: 4px; }
.fact.f-win .ws { margin-top: 8px; }
.f-win.w-w16 .ws, .f-win.w-w18 .ws, .f-win.w-w19 .ws { background: rgba(255,255,255,.18); color: #fff; }
.sec-h { display: flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 900; margin-bottom: 10px; }
.sec-h .g { width: 22px; height: 22px; color: var(--leaf); }
.notes { margin: 18px 16px 0; }
.nchips { display: flex; flex-wrap: wrap; gap: 8px; }
.nchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 9px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; font-weight: 700; line-height: 1.35; }
.nchip .g { width: 19px; height: 19px; color: var(--leaf); }
.nchip.warn { background: var(--cream); color: var(--brown); box-shadow: none; }
.nchip.warn .g { color: var(--brown); }
.nchip.cold { background: var(--cold-bg); color: var(--cold); box-shadow: none; }
.nchip.cold .g { color: var(--cold); }
.nchip.money { background: var(--cream); color: var(--brown); box-shadow: none; }
.nchip.money .g { color: var(--brown); }
.routecard { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 18px 16px 0; padding: 12px; border-radius: var(--r-xl); background: var(--paper); }
.rmap { width: 100%; height: auto; display: block; }
.rm-bg { fill: var(--mint); }
.rm-road { stroke: #fff; stroke-width: 9; fill: none; }
.rm-path { stroke: var(--pine); stroke-width: 4; fill: none; stroke-dasharray: 2 7; stroke-linecap: round; }
.rm-me { fill: var(--pine); stroke: #fff; stroke-width: 3; }
.rm-me-c { stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rm-pin { fill: var(--sun); stroke: var(--pine-d); stroke-width: 2.4; }
.rc-side { display: grid; gap: 8px; justify-items: stretch; }
.rc-d { display: flex; flex-direction: column; align-items: flex-end; }
.rc-d b { font-family: var(--fn); font-size: 1.5rem; font-weight: 800; }
.rc-d span { font-size: .875rem; font-weight: 700; color: var(--ink2); }
.rc-btns { display: grid; gap: 6px; }
.rc-btns .btn { min-height: 44px; padding: 0 14px; font-size: .95rem; }
.rc-btns .g { width: 20px; height: 20px; }
.result { margin: 18px 16px 0; padding: 16px; border-radius: var(--r-xl); background: var(--mint); }
.result.m-absent { background: var(--cream); }
.res-h { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 900; }
.res-h .g { color: var(--pine); }
.result.m-absent .res-h .g { color: var(--brown); }
.res-sig { margin-top: 12px; width: 100%; max-width: 300px; height: auto; border-radius: 14px; background: #fff; }
.res-photo { margin-top: 12px; width: 100%; height: auto; border-radius: 14px; }
.res-b { margin: 10px 0 12px; font-size: .95rem; line-height: 1.7; }
.actbar { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--frost); box-shadow: 0 -1px 0 var(--line); z-index: 3; }

/* ---------- 受取サイン ---------- */
.topbar.cap { background: var(--frost); }
.sg-who { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 4px 20px 0; }
.sg-name { font-size: 1.45rem; font-weight: 900; }
.sg-pcs { display: inline-flex; align-items: center; gap: 4px; font-size: .95rem; font-weight: 700; color: var(--ink2); }
.sg-pcs .g { width: 20px; height: 20px; color: var(--leaf); }
.seg.two { margin: 12px 16px 12px; }
.pad { position: relative; flex: 1; min-height: 200px; margin: 0 16px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 6px 18px -10px rgba(6,40,24,.3); overflow: hidden; touch-action: none; }
.pad canvas { position: absolute; inset: 0; z-index: 2; touch-action: none; cursor: crosshair; }
.pad-line { position: absolute; left: 20px; right: 20px; top: 68%; border-top: 2px dashed #b4c7ba; }
.pad-x { position: absolute; left: 22px; top: calc(68% - 34px); font-family: var(--fn); font-size: 1.6rem; font-weight: 800; color: #4d6155; }
.pad-ph { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: 1.05rem; font-weight: 700; color: #4d6155; transition: opacity .2s; padding: 0 16px; }
.pad .ph-stamp, .pad-tag { display: none; }
.pad.stamp-mode .ph-sign { display: none; }
.pad.stamp-mode .ph-stamp { display: inline; }
.pad.stamp-mode .pad-line, .pad.stamp-mode .pad-x { display: none; }
.pad.stamp-mode .pad-tag { display: grid; position: absolute; left: 50%; top: 56%; width: 120px; height: 120px; transform: translate(-50%, -50%); place-items: center; border-radius: 50%; border: 2px dashed #e0a6a9; color: #8c2a2f; font-weight: 900; font-size: 1rem; }
.pad.inked .pad-ph, .pad.inked .pad-tag { opacity: 0; }
.pad.thud { animation: thud .26s var(--ease-out); }
@keyframes thud { 30% { transform: scale(.985); } }
.pad.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 16px 0; }
.pad-tools .btn { min-height: 48px; }
.cod { display: flex; align-items: center; gap: 12px; margin: 10px 16px 0; padding: 12px 14px; min-height: 56px; border-radius: 18px; background: var(--cream); color: var(--brown); font-weight: 700; cursor: pointer; }
.cod input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cod-box { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 2.5px var(--brown); display: grid; place-items: center; flex: none; transition: background-color .2s; }
.cod-box .g { width: 20px; height: 20px; opacity: 0; color: #fff; transform: scale(.4); transition: transform .3s var(--spring), opacity .15s; }
.cod input:checked + .cod-box { background: var(--brown); }
.cod input:checked + .cod-box .g { opacity: 1; transform: none; }
.cod input:focus-visible + .cod-box { outline: 3px solid var(--sun-d); outline-offset: 2px; }
.cod-t { font-size: 1rem; line-height: 1.45; }
.cod-t b { font-family: var(--fn); font-size: 1.2rem; }

/* ---------- 置き配 ---------- */
.cap-h { margin: 16px 20px 10px; font-size: 1rem; font-weight: 900; }
.place { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.pchip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--outline); font-weight: 700; font-size: .95rem; transition: background-color .2s, padding .3s var(--spring); }
.pc-ic { width: 0; height: 18px; opacity: 0; transition: width .3s var(--spring), opacity .2s; }
.pchip.on { background: var(--mint2); color: var(--pine-d); box-shadow: none; padding-left: 10px; }
.pchip.on .pc-ic { width: 18px; opacity: 1; }
.pchip:active { transform: scale(.96); }
.boxno { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--paper); }
.boxno[hidden] { display: none; }
.bx-l { flex: 1; font-weight: 700; }
.step { width: 48px; height: 48px; border-radius: 14px; background: var(--mint2); color: var(--pine-d); font-size: 1.4rem; font-weight: 900; transition: transform .3s var(--spring); }
.step:active { transform: scale(.9); }
.bx-v { min-width: 2.2em; text-align: center; font-family: var(--fn); font-size: 1.6rem; font-weight: 800; }
.shot { position: relative; margin: 0 16px; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: #e6efe9; box-shadow: inset 0 0 0 2px #b9cdbf; }
.shot canvas { width: 100%; height: 100%; display: block; opacity: 0; }
.shot.has canvas { opacity: 1; }
.shot.has { box-shadow: none; }
.shot-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: var(--ink2); padding: 16px; }
.shot-empty .g { width: 44px; height: 44px; color: var(--leaf); }
.shot-empty p { font-weight: 700; font-size: 1rem; line-height: 1.5; word-break: keep-all; }
.shot-empty[hidden] { display: none; }
.shot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 16px 0; }
.shot-btns .btn { padding: 0 10px; font-size: .95rem; }
.muted { margin: 12px 20px 0; font-size: .9rem; line-height: 1.7; color: var(--ink2); }

/* ---------- 不在票 ---------- */
.slip { margin: 8px 16px 0; background: #fffdf6; border-radius: 6px; box-shadow: 0 1px 0 #e6dcc0, 0 10px 24px -14px rgba(60, 40, 0, .5); overflow: hidden; position: relative; transition: transform .42s var(--ease-out), opacity .42s; }
.slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: radial-gradient(circle at 6px 8px, var(--frost) 4px, transparent 4.5px) 0 0 / 12px 8px repeat-x; }
.slip.posting { transform: translateY(-30px) scale(.86) rotate(-2deg); opacity: 0; }
.slip-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: var(--pine); color: #fff; }
.slip-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .95rem; }
.slip-brand .g { width: 20px; height: 20px; color: var(--sun); }
.slip-t { font-size: 1.2rem; font-weight: 900; letter-spacing: .12em; }
.slip-to { padding: 14px 16px 0; font-size: 1.35rem; font-weight: 900; }
.slip-lead { padding: 6px 16px 0; font-size: .95rem; line-height: 1.6; }
.slip-dl { margin: 12px 16px 0; }
.slip-dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 8px 0; border-top: 1px dashed #d8ccaa; font-size: .95rem; }
.slip-dl dt { color: #5c5038; font-weight: 700; }
.slip-dl dd { font-weight: 700; }
.num { font-family: var(--fn); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.slip-re { display: grid; grid-template-columns: 1fr 84px; gap: 12px; align-items: center; margin: 8px 16px 0; padding: 12px; border-radius: 10px; background: var(--cream); }
.re-l { font-size: .875rem; font-weight: 700; color: var(--brown); }
.re-tel { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 2px 0; }
.re-l b { font-size: 1.05rem; color: var(--ink); }
.dcode { width: 84px; height: 84px; fill: var(--ink); stroke: var(--ink); background: #fff; border-radius: 8px; padding: 6px; }
.slip-memo { margin: 10px 16px 0; font-size: .95rem; font-weight: 700; color: var(--pine-d); min-height: 1.5em; }
.slip-demo { margin: 6px 16px 20px; font-size: .875rem; color: #5c5038; }
.place.memo .pchip { min-height: 44px; }

/* ---------- 日次サマリ ---------- */
.v-sum .scroll { padding-bottom: 24px; }
.sum-hero { position: relative; height: 230px; overflow: hidden; }
.sum-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sum-hero-in { position: absolute; inset: 0; padding: calc(16px + env(safe-area-inset-top)) 20px 52px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(180deg, rgba(4, 20, 12, .25) 0%, rgba(4, 20, 12, .62) 45%, rgba(4, 20, 12, .92) 100%); }
.sh-over { font-size: .9rem; font-weight: 700; }
.sh-t { font-size: 1.9rem; font-weight: 900; margin-top: 2px; }
.sh-at { font-size: .95rem; font-weight: 700; }
.meter { position: relative; margin: -40px 16px 0; padding: 18px 18px 16px; border-radius: var(--r-xl); background: var(--paper); box-shadow: 0 10px 30px -18px rgba(6,40,24,.6); z-index: 1; }
.gauge { display: block; width: 100%; max-width: 300px; margin: 0 auto; }
.arc { fill: none; stroke-width: 18; }
.a-track { stroke: #edf2ee; }
.a-sign { stroke: var(--pine); }
.a-stamp { stroke: var(--leaf); }
.a-drop { stroke: #63b884; }
.a-absent { stroke: var(--sun); }
.a-left { stroke: #d7e2db; }
.meter-c { text-align: center; margin-top: -78px; position: relative; }
.meter-l { font-size: .875rem; font-weight: 700; color: var(--ink2); }
.meter-v { line-height: 1; }
.meter-v b { font-family: var(--fn); font-size: 3.6rem; font-weight: 800; color: var(--pine); letter-spacing: -.02em; }
.meter-v span { font-family: var(--fn); font-size: 1.4rem; font-weight: 800; color: var(--pine); }
.meter-s { font-size: .95rem; font-weight: 700; margin-top: 4px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lg { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.lg i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.lg-l { flex: 1; font-size: .875rem; font-weight: 700; color: var(--ink2); word-break: keep-all; }
.lg-n { font-family: var(--fn); font-size: 1.2rem; font-weight: 800; }
.lg-sign i { background: var(--pine); }
.lg-stamp i { background: var(--leaf); }
.lg-drop i { background: #63b884; }
.lg-absent i { background: var(--sun); }
.lg-left i { background: #d7e2db; box-shadow: inset 0 0 0 1px #b9c9bf; }
.card { margin: 14px 16px 0; padding: 16px; border-radius: var(--r-xl); background: var(--paper); }
.card.warn { background: var(--cream); }
.card.warn .sec-h .g { color: var(--brown); }
.wbars { display: grid; gap: 10px; }
.wb { display: grid; grid-template-columns: 76px 1fr 52px; align-items: center; gap: 10px; }
.wb-l { font-family: var(--fn), var(--fj); font-size: .875rem; font-weight: 800; padding: 5px 0; border-radius: 8px; text-align: center; white-space: nowrap; }
.wb-l.w-none { font-family: var(--fj); }
.wb-bar { height: 14px; border-radius: 7px; background: #e8efea; display: flex; overflow: hidden; }
.wb-bar i { display: block; height: 100%; }
.wb-bar .ok { background: var(--pine); }
.wb-bar .ab { background: var(--sun); }
.wb-n { font-family: var(--fn); font-size: 1rem; font-weight: 700; text-align: right; color: var(--ink2); }
.wb-n b { color: var(--ink); font-size: 1.15rem; }
.wb-n.late b { color: var(--alert); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 16px 0; }
.kpi { padding: 14px 12px; border-radius: var(--r-l); background: var(--mint); }
.kpi-l { font-size: .875rem; font-weight: 700; color: var(--pine-d); }
.kpi-v { font-family: var(--fn); font-variation-settings: "wdth" 82; font-size: 1.55rem; font-weight: 800; margin-top: 4px; white-space: nowrap; line-height: 1.2; }
.kpi-v small { font-family: var(--fj); font-size: .55em; margin: 0 .1em; }
.kpi-s { font-size: .875rem; font-weight: 700; color: var(--ink2); margin-top: 2px; }
.absl li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.absl li + li { border-top: 1px dashed #e0cf98; }
.absl-m { flex: 1; min-width: 0; }
.absl-m b { display: block; font-size: 1.05rem; }
.absl-m > span { font-size: .875rem; font-weight: 700; color: var(--brown); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 72px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.tl-i { display: grid; grid-template-columns: 56px 34px 1fr; align-items: center; gap: 8px; min-height: 56px; position: relative; }
.tl-at { font-family: var(--fn); font-variation-settings: "wdth" 80; font-weight: 800; font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums; }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint2); color: var(--pine-d); z-index: 1; }
.tl-dot .g { width: 18px; height: 18px; }
.tl-i.m-absent .tl-dot { background: var(--sun); color: var(--ink); }
.tl-b { display: block; padding: 6px 0; min-width: 0; }
.tl-b b { display: block; font-size: 1rem; }
.tl-b > span { font-size: .875rem; font-weight: 700; color: var(--ink2); }
.report { margin: 18px 16px 0; }
.report .muted { margin: 10px 4px 0; }
.sent { display: flex; align-items: center; gap: 8px; padding: 16px; border-radius: var(--r-l); background: var(--mint); font-weight: 700; color: var(--pine-d); }

/* ---------- 設定 ---------- */
.v-set .scroll, .v-about .scroll { padding-bottom: 28px; }
.me { display: flex; align-items: center; gap: 14px; margin: 4px 16px 0; padding: 16px; border-radius: var(--r-xl); background: var(--mint); }
.me-av { width: 56px; height: 56px; border-radius: 18px; background: var(--pine); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; }
.me-n { font-size: 1.25rem; font-weight: 900; }
.me-s { font-size: .9rem; font-weight: 700; color: var(--pine-d); }
.set-h { margin: 22px 20px 8px; font-size: .9rem; font-weight: 900; color: var(--pine); }
.sets { margin: 0 16px; border-radius: var(--r-xl); background: var(--paper); overflow: hidden; }
.set { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; min-height: 72px; padding: 10px 16px; }
.set + .set { border-top: 1px solid #e6eee8; }
.set-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--pine); }
.set-tx { display: flex; flex-direction: column; min-width: 0; }
.set-tx b { font-size: 1.05rem; }
.set-tx span { font-size: .875rem; color: var(--ink2); font-weight: 500; }
.set.link { padding: 0; }
.set.link a { grid-column: 1 / -1; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 16px; min-height: 72px; }
.set-ic2 { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--mint); color: var(--pine); }
.sw { width: 56px; height: 34px; border-radius: 17px; position: relative; background: #e3e9e5; box-shadow: inset 0 0 0 2px var(--outline); transition: background-color .25s; flex: none; }
.sw i { position: absolute; left: 8px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--outline); transition: left .35s var(--spring), width .35s var(--spring), height .35s var(--spring), top .35s var(--spring), background-color .2s; }
.sw.on { background: var(--pine); box-shadow: none; }
.sw.on i { left: 26px; top: 4px; width: 26px; height: 26px; background: #fff; }
.sw:active i { width: 28px; height: 28px; top: 3px; }
.sw.on:active i { left: 24px; }

/* アプリについて */
.about-hero { text-align: center; padding: 8px 20px 4px; }
.about-hero img { width: 104px; height: 104px; border-radius: 26px; margin: 0 auto; box-shadow: 0 10px 24px -10px rgba(6,40,24,.5); }
.ab-n { margin-top: 12px; font-size: 1.5rem; font-weight: 900; }
.ab-v { font-size: .9rem; font-weight: 700; color: var(--ink2); margin-top: 2px; }
.ab-note { font-size: .95rem; line-height: 1.75; margin-bottom: 14px; }
.tech li { display: grid; gap: 2px; padding: 10px 0; }
.tech li + li { border-top: 1px solid #e6eee8; }
.tech b { font-family: var(--fn), var(--fj); font-weight: 800; color: var(--pine); }
.tech span { font-size: .95rem; line-height: 1.6; }

/* ---------- 画面遷移（共有軸） ---------- */
.view.in-push { animation: inPush .42s var(--spring-calm) both; z-index: 2; }
.view.out-push { animation: outPush .26s var(--ease-out) both; }
.view.in-back { animation: inBack .42s var(--spring-calm) both; }
.view.out-back { animation: outBack .26s var(--ease-out) both; z-index: 2; }
.view.in-fade { animation: inFade .3s var(--ease-out) both; }
.view.out-fade { animation: outFade .12s linear both; }
.view[class*="out-"] { pointer-events: none; }
@keyframes inPush { from { transform: translateX(30%); opacity: 0; } }
@keyframes outPush { to { transform: translateX(-12%); opacity: 0; } }
@keyframes inBack { from { transform: translateX(-12%); opacity: 0; } }
@keyframes outBack { to { transform: translateX(30%); opacity: 0; } }
@keyframes inFade { from { transform: scale(.97); opacity: 0; } }
@keyframes outFade { to { opacity: 0; } }

/* ---------- スプラッシュ・はじめての案内 ---------- */
.splash { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--pine); color: #fff; transition: opacity .3s, transform .3s; }
.splash[hidden] { display: none; }
.splash img { width: 120px; height: 120px; border-radius: 30px; box-shadow: 0 16px 36px -10px rgba(0,0,0,.5); animation: pop .6s var(--spring) both; }
.splash-nm { margin-top: 16px; font-size: 1.6rem; font-weight: 900; letter-spacing: .04em; }
.splash-sub { font-size: .95rem; font-weight: 700; color: #d9efe2; }
.splash.bye { opacity: 0; transform: scale(1.04); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.onb { position: fixed; inset: 0; z-index: 80; background: var(--frost); display: flex; flex-direction: column; transition: opacity .3s, transform .3s; }
.onb.bye { opacity: 0; transform: translateY(20px); }
.onb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.onb-track::-webkit-scrollbar { display: none; }
.onb-s { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; padding-bottom: 8px; overflow: hidden; }
.onb-img { height: 54%; min-height: 220px; overflow: hidden; border-radius: 0 0 48px 48px; }
.onb-img img { width: 100%; height: 100%; object-fit: cover; }
.onb-no { margin: 22px 24px 0; font-family: var(--fn); font-weight: 700; color: var(--ink2); }
.onb-no b { font-size: 1.4rem; color: var(--pine); }
.onb-t { margin: 4px 24px 0; font-size: 1.65rem; font-weight: 900; line-height: 1.4; }
.onb-b { margin: 10px 24px 0; font-size: 1rem; line-height: 1.75; color: var(--ink2); word-break: keep-all; }
.onb-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.onb-dots { display: flex; justify-content: center; gap: 6px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 4px; background: #b7c9bd; transition: width .35s var(--spring), background-color .2s; }
.onb-dots i.on { width: 24px; background: var(--pine); }

.nojs, .fatal { position: fixed; inset: auto 16px 24px; z-index: 99; padding: 16px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3); line-height: 1.7; }
.fatal[hidden] { display: none; }
.fatal-t { font-weight: 900; }
.fatal a { color: var(--pine); text-decoration: underline; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---- 調整 ---- */
.spot img, .empty img { height: auto; }
.now-name { font-size: 1.75rem; }
.now-main { margin-top: 12px; }
.now-notes .nchip { min-height: 30px; padding: 4px 10px 4px 8px; font-size: .875rem; }
.now-notes .nchip .g { width: 17px; height: 17px; }
.now-notes .nchip .g { color: var(--sun); }
.now-act { margin-top: 14px; }
.re-l, .set-tx span, .lg-l { word-break: keep-all; }
.pad-head { position: absolute; left: 18px; right: 18px; top: 14px; display: flex; justify-content: space-between; font-size: .875rem; font-weight: 700; color: #4d6155; z-index: 1; }
.pad-head span:first-child { letter-spacing: .3em; }
.pad.stamp-mode .pad-head { color: #8c2a2f; }
.v-today .scroll { -webkit-user-select: none; user-select: none; }
