/* ゴミの日 — わかりやすいピクト・区分ごとの色分け（Material 3 Expressive） */
:root {
  --bg: #fbfaf7;
  --surf: #ffffff;
  --surf-2: #f3f1ec;
  --surf-3: #eceae4;
  --ink: #1f2328;
  --ink-2: #555d66;
  --ink-3: #3c434a;
  --line: #e4e1da;
  --pri: #1d63a0;
  --pri-c: #e3f1fc;
  --pri-on: #0f3a63;
  --err: #b3261e;
  --sun: #c4372b;
  --sat: #1d63a0;
  --jp: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', system-ui, sans-serif;
  --fr: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --emph: cubic-bezier(.2, 0, 0, 1);
  --top: env(safe-area-inset-top);
  --bot: env(safe-area-inset-bottom);
  --nav: calc(80px + env(safe-area-inset-bottom));
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--jp); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg);
  line-break: strict; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3, b { font-feature-settings: "palt"; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.ic { width: 24px; height: 24px; flex: none; }
.ic.s { width: 18px; height: 18px; }
.fr { font-family: var(--fr); font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }

/* ---------- 枠 ---------- */
.app { position: fixed; inset: 0; height: 100dvh; overflow: hidden; background: var(--bg); }
.screen { position: absolute; inset: 0; overflow: hidden; }
.app.has-nav .screen { bottom: var(--nav); }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.pad-b { height: 110px; }
@media (min-width: 600px) {
  body { background: radial-gradient(circle at 20% 20%, #fde9e5 0 120px, transparent 121px), radial-gradient(circle at 80% 30%, #e3f1fc 0 160px, transparent 161px), radial-gradient(circle at 30% 85%, #e2f5ea 0 140px, transparent 141px), radial-gradient(circle at 85% 80%, #fff2d6 0 120px, transparent 121px), #f3f1ec; }
  .app { left: 50%; right: auto; width: 430px; transform: translateX(-50%); box-shadow: 0 24px 70px rgba(31, 35, 40, .18); }
}

/* ---------- トップアプリバー ---------- */
.tbar { flex: none; display: flex; align-items: center; gap: 4px; min-height: calc(64px + var(--top)); padding: var(--top) 8px 0 16px; background: var(--bg); transition: background-color .25s; position: relative; z-index: 3; }
.tbar:has(.ibtn:first-child) { padding-left: 4px; }
.lifted .tbar { background: var(--surf-2); }
.tbar-t { flex: 1; min-width: 0; font-size: 22px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbar-r { display: flex; align-items: center; gap: 4px; }
.ibtn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; transition: background-color .15s, transform .25s var(--spring); }
.ibtn:active { background: rgba(31, 35, 40, .08); transform: scale(.9); }
.town { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px 0 10px; border-radius: 22px; background: var(--surf); border: 1.5px solid var(--line); font-size: 15px; font-weight: 700; max-width: 62vw; }
.town span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.town .ic:first-child { color: #e2553d; }
.town:active { transform: scale(.96); }
.pill-btn { height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--surf); font-size: 14px; font-weight: 800; }
.area-line { padding: 0 20px 10px; font-size: 14px; color: var(--ink-2); font-weight: 500; }

/* ---------- ピクト（クッキー形の台座） ---------- */
.picto { position: relative; display: inline-grid; place-items: center; flex: none; }
.picto svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.picto path { fill: #fff; stroke: var(--c); stroke-opacity: .35; stroke-width: 2.5; }
.picto img { position: relative; width: 80%; height: 80%; object-fit: contain; border-radius: 50%; mix-blend-mode: multiply; }
.p-l { width: 132px; height: 132px; }
.p-m { width: 72px; height: 72px; }
.p-s { width: 40px; height: 40px; }
.p-s path { stroke-width: 4; }
.hero .picto svg, .ihero .picto svg { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 今日 ---------- */
.hero { margin: 0 16px; padding: 18px 18px 14px; border-radius: 32px; background: var(--bg); animation: pop .5s var(--spring); }
.hero-d { display: flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 700; color: var(--ink); }
.hero-d .fr { font-weight: 600; }
.hero-k { align-self: center; display: inline-grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; }
.hero-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.hero-b { flex: 1; min-width: 0; }
.hero-t { font-size: 30px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.hero-time { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.hero-how { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--ink-3); }
.hero-how b { color: var(--ink); }
.hero-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px 4px 4px; border-radius: 24px; background: #fff; font-size: 14px; font-weight: 800; }
.hero-link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-top: 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.hero-none { background: var(--surf-2); }
.hero-ill { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 22px; margin: 12px 0; }
.hero-none .hero-t { font-size: 24px; }
.tmr { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; min-height: 76px; padding: 12px 10px 12px 18px; border-radius: 26px; background: var(--bg, #fff); border: 1.5px solid rgba(31, 35, 40, .06); transition: transform .25s var(--spring); }
.tmr:active { transform: scale(.98); }
.tmr-k { display: flex; flex-direction: column; font-size: 14px; font-weight: 800; color: var(--ink-3); line-height: 1.3; }
.tmr-d { font-size: 16px; color: var(--ink); }
.tmr-c { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tmr-c b { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.tmr-no { color: var(--ink-2) !important; }
.chev { color: var(--ink-2); }
.wd0 { color: var(--sun); }
.wd6 { color: var(--sat); }
.blk { margin: 24px 16px 0; }
.blk-t { font-size: 17px; font-weight: 800; margin: 0 4px 10px; }
.blk-t.pad { margin: 0; padding: 22px 20px 10px; }
.week { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.week::-webkit-scrollbar { display: none; }
.wk { flex: none; width: 78px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 10px; border-radius: 22px; background: var(--surf); border: 1.5px solid var(--line); transition: transform .25s var(--spring); }
.wk:active { transform: scale(.95); }
.wk.is-today { border: 2.5px solid var(--pri); background: var(--pri-c); }
.wk-w { font-size: 13px; font-weight: 800; }
.wk-d { font-size: 22px; font-weight: 600; line-height: 1.1; }
.wk-c { display: flex; gap: 3px; height: 12px; align-items: center; }
.wk-c i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.wk-c i.none { background: none; border: 2px solid var(--line); }
.wk-n { font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.rsv { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; border-radius: 24px; background: #f0e8fb; margin-bottom: 8px; }
.rsv-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rsv-b b { font-size: 16px; font-weight: 800; color: #4f2a8e; }
.rsv-b > span { font-size: 13px; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; align-items: center; gap: 10px; min-height: 84px; padding: 14px; border-radius: 26px; transition: transform .25s var(--spring); }
.tile:active { transform: scale(.96); }
.tile > span { display: flex; flex-direction: column; min-width: 0; }
.tile b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.tile span span { font-size: 13px; color: var(--ink-3); }
.t-search { background: var(--pri-c); }
.t-search > .ic { color: var(--pri); }
.t-sodai { background: #f0e8fb; }
.t-sodai > .ic { color: #6a3fb0; }
.ntf-line { display: flex; align-items: center; gap: 8px; margin: 14px 16px 0; min-height: 48px; padding: 0 14px; border-radius: 16px; background: var(--surf-2); font-size: 14px; color: var(--ink-3); }
.ntf-line span { flex: 1; }

/* ---------- カレンダー ---------- */
.cal-h { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; }
.cal-m { min-width: 150px; text-align: center; font-size: 21px; font-weight: 800; }
.cal-m .fr { font-weight: 600; font-size: 23px; }
.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchips.wrap { flex-wrap: wrap; overflow: visible; padding: 8px 0 0; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surf); font-size: 14px; font-weight: 700; color: var(--ink-3); transition: background-color .2s, border-color .2s, transform .25s var(--spring); }
.fchip i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.fchip.on { background: var(--bg); border-color: var(--c); color: var(--ink); }
.fchip:active { transform: scale(.94); }
.fchip:disabled { background: var(--surf-2); color: var(--ink-2); border-color: var(--line); }
.cal { margin: 4px 12px 0; padding: 8px 6px 10px; border-radius: 28px; background: var(--surf); border: 1.5px solid var(--line); overflow: hidden; touch-action: pan-y; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-g.slide-l { animation: slideL .32s var(--emph); }
.cal-g.slide-r { animation: slideR .32s var(--emph); }
.cal-w { text-align: center; font-size: 13px; font-weight: 800; padding: 4px 0 6px; }
.cal-d { min-height: 54px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; transition: background-color .15s, transform .2s var(--spring); }
.cal-d:active { transform: scale(.9); }
.cal-n { font-size: 17px; font-weight: 600; line-height: 1.2; }
.cal-dots { display: flex; gap: 3px; }
.cal-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cal-d.is-today { background: var(--pri); }
.cal-d.is-today .cal-n { color: #fff; }
.cal-d.is-today .cal-dots i { box-shadow: 0 0 0 1.5px #fff; }
.cal-d.is-sel { box-shadow: inset 0 0 0 2.5px var(--ink); }
.day { margin: 14px 16px 0; }
.day-h { font-size: 17px; font-weight: 800; margin: 0 4px 8px; }
.day-h span { margin-left: 8px; font-size: 14px; color: var(--pri); }
.day-r { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 10px 10px 12px; margin-bottom: 8px; border-radius: 22px; background: var(--bg); }
.day-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.day-b b { font-size: 16px; font-weight: 800; color: var(--ink); }
.day-b span { font-size: 13px; color: var(--ink-3); }
.day-none { padding: 18px; border-radius: 22px; background: var(--surf-2); text-align: center; color: var(--ink-2); font-weight: 700; }
.cal-note { display: flex; gap: 6px; padding: 10px 20px 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.cal-note .ic { margin-top: 3px; }

/* ---------- 分別検索 ---------- */
.sbar-wrap { position: sticky; top: 0; z-index: 2; padding: 2px 16px 8px; background: var(--bg); }
.sbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 4px 0 18px; border-radius: 28px; background: var(--surf-3); color: var(--ink-3); transition: box-shadow .2s; }
.sbar:focus-within { box-shadow: 0 0 0 2px var(--pri); background: #fff; }
.sbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 17px; color: var(--ink); outline: none; }
.sbar input::placeholder { color: #6b727a; }
.sbar input::-webkit-search-cancel-button { display: none; }
.sbar.small { height: 48px; margin: 0 16px; }
.sclear { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--surf); border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; transition: transform .2s var(--spring); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip:active { transform: scale(.94); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.cg { display: flex; flex-direction: column; gap: 4px; min-height: 124px; padding: 14px; border-radius: 26px; background: var(--bg); transition: transform .25s var(--spring); }
.cg:active { transform: scale(.96); }
.cg .picto { width: 52px; height: 52px; margin-bottom: 4px; }
.cg b { font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.cg span.fr { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.cg-none { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink-2); margin-bottom: 4px; flex: none; }
.cg-none.sm { width: 40px; height: 40px; margin: 0; }
.cg-none.lg { width: 132px; height: 132px; margin: 0 auto; }
.cg-none.lg .ic { width: 56px; height: 56px; }
.res-n { padding: 4px 22px 8px; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.rlist { margin: 0 16px; border-radius: 26px; background: var(--surf); border: 1.5px solid var(--line); overflow: hidden; }
.rlist li + li { border-top: 1px solid var(--line); }
.ri { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 12px 10px 14px; transition: background-color .15s; }
.ri:active { background: var(--surf-2); }
.ri-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ri-b b { font-size: 16px; font-weight: 700; line-height: 1.45; }
.ri-b mark { background: #ffe58a; color: inherit; border-radius: 4px; padding: 0 1px; }
.ri-tip { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-cat { flex: none; padding: 3px 9px; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; }
.ri-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--c); }
.nores { text-align: center; padding: 8px 20px; }
.nores img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 26px; margin-bottom: 14px; }
.nores-t { font-size: 18px; font-weight: 800; }
.nores-l { text-align: left; margin: 12px 4px; padding-left: 20px; list-style: disc; font-size: 14px; color: var(--ink-3); line-height: 1.8; }
.nores-c { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }

/* ---------- 品目・区分 ---------- */
.ihero { margin: 0 16px; padding: 22px 16px 20px; border-radius: 32px; background: var(--bg); text-align: center; animation: pop .45s var(--spring); }
.ihero .picto { margin: 0 auto; }
.ihero-n { font-size: 26px; font-weight: 800; line-height: 1.35; color: var(--ink); margin-top: 10px; }
.ihero-c { margin-top: 8px; }
.ihero-s { margin-top: 6px; font-size: 14px; color: var(--ink-3); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; }
.badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.card { margin: 12px 16px 0; padding: 16px 18px; border-radius: 26px; background: var(--surf); border: 1.5px solid var(--line); }
.card-t { font-size: 14px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.card-p { font-size: 15px; line-height: 1.8; }
.card .btn { margin-top: 12px; width: 100%; }
.tip { font-size: 16px; font-weight: 800; padding: 8px 12px; border-radius: 12px; background: #fff3c4; margin-bottom: 8px; line-height: 1.6; }
.next-d { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.next-d .fr { font-size: 38px; font-weight: 600; line-height: 1.15; }
.next-w { font-size: 18px; font-weight: 800; }
.next-u { align-self: center; margin-left: 8px; padding: 3px 10px; border-radius: 10px; background: var(--pri-c); color: var(--pri-on); font-size: 13px; font-weight: 800; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 26px; font-size: 16px; font-weight: 800; line-height: 1.3; text-align: center; transition: transform .25s var(--spring), border-radius .25s var(--spring); }
.btn:active { transform: scale(.96); border-radius: 16px; }
.btn.fill { background: var(--pri); color: #fff; }
.btn.tonal { background: var(--pri-c); color: var(--pri-on); }
.btn.text { color: var(--pri); }
.btn.wide { width: 100%; }
.btn:disabled { background: var(--line); color: var(--ink-2); }
.tbtn { min-height: 44px; padding: 0 14px; border-radius: 22px; font-size: 15px; font-weight: 800; color: var(--pri); }
.tbtn:active { background: rgba(29, 99, 160, .1); }
.tbtn.danger { color: var(--err); }

/* ---------- 粗大ごみ ---------- */
.stepper { display: flex; padding: 6px 12px 16px; }
.stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stepper li + li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li.done + li::before, .stepper li.cur::before { background: #6a3fb0; }
.sp-n { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); background: var(--surf); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.cur .sp-n { background: #6a3fb0; border-color: #6a3fb0; color: #fff; }
.done .sp-n { background: #f0e8fb; border-color: #f0e8fb; color: #6a3fb0; }
.sp-t { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cur .sp-t { color: var(--ink); }
.lead { padding: 0 20px 12px; font-size: 15px; line-height: 1.8; }
.pick { margin: 12px 16px 0; border-radius: 24px; background: var(--surf); border: 1.5px solid var(--line); overflow: hidden; }
.pick li + li { border-top: 1px solid var(--line); }
.pk { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; text-align: left; }
.pk:active { background: var(--surf-2); }
.pk-box { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; border: 2px solid #8a919a; color: #fff; transition: background-color .15s, transform .25s var(--spring); }
.pk.on .pk-box { background: #6a3fb0; border-color: #6a3fb0; transform: scale(1.08); }
.pk-n { flex: 1; font-size: 15px; font-weight: 700; }
.pk-f { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.pk-f .fr { font-size: 16px; }
.pk-none { padding: 18px; text-align: center; color: var(--ink-2); }
.dates { display: grid; gap: 10px; padding: 0 16px; }
.dt { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 72px; padding: 12px 48px 12px 16px; border-radius: 22px; border: 2px solid var(--line); background: var(--surf); text-align: left; transition: transform .25s var(--spring); }
.dt:active { transform: scale(.98); }
.dt-d { font-size: 18px; font-weight: 800; }
.dt-d .fr { font-size: 22px; font-weight: 600; }
.dt-s { font-size: 13px; color: var(--ink-2); }
.dt.on { border-color: #6a3fb0; background: #f0e8fb; }
.dt > .ic { position: absolute; right: 16px; top: 50%; margin-top: -9px; color: #6a3fb0; }
.dt:disabled { background: var(--surf-2); }
.dt:disabled .dt-d { color: var(--ink-2); }
.conf div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.conf div:first-child { border-top: 0; }
.conf dt { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.conf dd { margin: 0; font-size: 15px; line-height: 1.7; }
.conf .sum .fr { font-size: 24px; font-weight: 600; }
.demo-note { display: flex; gap: 6px; margin: 12px 20px 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.demo-note .ic { margin-top: 3px; }
.done { text-align: center; padding: 6px 20px 4px; }
.done .picto { margin: 0 auto; }
.done-t { font-size: 25px; font-weight: 800; margin-top: 8px; }
.done-no { font-size: 15px; color: var(--ink-2); }
.done-no .fr { font-size: 22px; color: var(--ink); font-weight: 600; }
.todo { counter-reset: t; }
.todo li { position: relative; padding: 10px 0 10px 46px; counter-increment: t; }
.todo li::before { content: counter(t); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f0e8fb; color: #6a3fb0; font-family: var(--fr); font-weight: 600; }
.todo b { display: block; font-size: 16px; font-weight: 800; }
.todo span { font-size: 14px; color: var(--ink-3); }
.rsv-card .rsv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
.rsv-row > span { display: flex; flex-direction: column; min-width: 0; }
.rsv-s { font-size: 13px; color: var(--ink-2); }
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + var(--bot)); background: rgba(251, 250, 247, .97); border-top: 1px solid var(--line); }
.dock .btn { flex: 1; }
.dock-sum { flex: none; font-size: 14px; font-weight: 700; color: var(--ink-3); line-height: 1.4; }
.dock-sum .fr { font-size: 18px; color: var(--ink); }

/* ---------- 設定 ---------- */
.sgroup { display: flex; flex-direction: column; gap: 3px; margin: 16px 16px 0; }
.sg-h { font-size: 14px; font-weight: 800; color: var(--pri); margin: 0 6px 6px; }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 12px 16px; border-radius: 8px; background: var(--surf); text-align: left; }
.sgroup > :nth-child(2) { border-radius: 24px 24px 8px 8px; }
.sgroup > :last-child { border-radius: 8px 8px 24px 24px; }
.sgroup > :nth-child(2):last-child { border-radius: 24px; }
a.srow:active, button.srow:active { background: var(--surf-2); }
.srow.static { cursor: default; }
.srow.col { flex-direction: column; align-items: stretch; gap: 0; }
.srow-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srow b { font-size: 16px; font-weight: 800; }
.srow-b > span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.srow.off b { color: var(--ink-2); }
.srow.danger b, .srow.danger > .ic { color: var(--err); }
.rules { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.rl { display: flex; align-items: center; gap: 8px; font-size: 14px !important; color: var(--ink-3) !important; }
.rl i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.ssel {
  appearance: none; -webkit-appearance: none; height: 44px; padding: 0 34px 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink); max-width: 46%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23555d66' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center / 18px;
}
.ssel:disabled { background-color: var(--surf-2); color: var(--ink-2); }
.m3sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 32px; margin: 0; border-radius: 16px; background: var(--surf-3); border: 2px solid #79808a; cursor: pointer; transition: background-color .2s, border-color .2s; }
.m3sw::after { content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #79808a; transition: all .3s var(--spring); }
.m3sw:checked { background: var(--pri); border-color: var(--pri); }
.m3sw:checked::after { left: 22px; top: 2px; width: 24px; height: 24px; background: #fff; }

/* ---------- アプリについて ---------- */
.ab { text-align: center; padding: 8px 20px 0; }
.ab img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 10px; box-shadow: 0 8px 20px rgba(31, 35, 40, .14); }
.ab-n { font-size: 24px; font-weight: 800; }
.ab-v { font-size: 14px; color: var(--ink-2); }
.ab-ill { width: calc(100% - 32px); height: auto; margin: 16px auto; border-radius: 26px; }
.para { padding: 0 20px; font-size: 15px; line-height: 1.85; }
.note { margin: 14px 16px 0; padding: 14px 16px; border-radius: 20px; background: #fff3c4; font-size: 14px; line-height: 1.8; }
.tech { margin: 0 16px; border-radius: 24px; background: var(--surf); border: 1.5px solid var(--line); overflow: hidden; }
.tech li { display: flex; flex-direction: column; padding: 12px 16px; }
.tech li + li { border-top: 1px solid var(--line); }
.tech b { font-size: 15px; font-weight: 800; }
.tech span { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ---------- ナビゲーションバー ---------- */
.navbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; height: var(--nav); padding: 12px 6px var(--bot); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surf-2); transition: transform .3s var(--emph); }
.navbar.gone { transform: translateY(105%); visibility: hidden; }
.nv { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-3); }
.nv-ind { width: 64px; height: 32px; display: grid; place-items: center; border-radius: 16px; transition: background-color .25s, width .35s var(--spring); }
.nv .f { display: none; }
.nv.on .nv-ind { background: #d6e6f7; color: var(--pri-on); }
.nv.on .o { display: none; }
.nv.on .f { display: block; }
.nv:active .nv-ind { width: 56px; }
.nv-l { font-size: 13px; font-weight: 700; line-height: 1.2; }
.nv.on .nv-l { color: var(--ink); font-weight: 800; }

/* ---------- シート・ダイアログ・スナックバー・通知 ---------- */
.veil { position: absolute; inset: 0; z-index: 40; background: rgba(31, 35, 40, .38); opacity: 0; transition: opacity .3s; }
.veil.on { opacity: 1; }
.bsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88dvh; overflow-y: auto; border-radius: 28px 28px 0 0; background: var(--surf); padding-bottom: calc(16px + var(--bot)); transform: translateY(105%); transition: transform .4s var(--emph); }
.bsheet.on { transform: translateY(0); }
.bs-handle { display: grid; place-items: center; height: 30px; touch-action: none; cursor: grab; }
.bs-handle i { width: 32px; height: 4px; border-radius: 2px; background: #c8c4bb; }
.bs-pad { padding: 2px 20px 8px; }
.bs-t { font-size: 21px; font-weight: 800; }
.bs-s { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.bs-a { font-size: 14px; font-weight: 800; color: var(--pri); margin: 14px 0 8px; }
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tw { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surf); font-size: 15px; font-weight: 700; transition: transform .2s var(--spring); }
.tw:active { transform: scale(.95); }
.tw.on { background: var(--pri-c); border-color: var(--pri); color: var(--pri-on); }
.dlg-layer { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(31, 35, 40, .4); opacity: 0; transition: opacity .2s; }
.dlg-layer.on { opacity: 1; }
.dlg { width: 100%; max-width: 340px; padding: 24px 22px 14px; border-radius: 28px; background: #f6f3ee; transform: scale(.9); transition: transform .35s var(--spring); }
.dlg-layer.on .dlg { transform: scale(1); }
.dlg-h { font-size: 21px; font-weight: 800; line-height: 1.45; }
.dlg-p { margin-top: 10px; font-size: 15px; color: var(--ink-3); line-height: 1.75; }
.dlg-a { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.snack { position: absolute; left: 12px; right: 12px; bottom: calc(92px + var(--bot)); z-index: 45; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px 6px 16px; border-radius: 14px; background: #2e3238; color: #f1efe9; font-size: 14px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .2s; }
.snack.on { transform: none; opacity: 1; pointer-events: auto; }
.snack-t { flex: 1; }
.snack-b { min-height: 44px; padding: 0 12px; border-radius: 10px; color: #9cc8f5; font-weight: 800; white-space: nowrap; }
.notif { position: absolute; left: 10px; right: 10px; top: calc(8px + var(--top)); z-index: 60; display: flex; gap: 12px; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 12px 34px rgba(31, 35, 40, .22); transform: translateY(-140%); transition: transform .45s var(--spring); cursor: pointer; }
.notif.on { transform: none; }
.notif img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.notif-b { flex: 1; min-width: 0; }
.notif-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.notif-h b { color: var(--ink); font-weight: 800; }
.notif-t { font-size: 15px; font-weight: 800; line-height: 1.5; }
.notif-x { font-size: 14px; color: var(--ink-3); }

/* ---------- スプラッシュ・はじめに ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg); transition: opacity .3s; }
.splash img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 14px 34px rgba(29, 99, 160, .3); animation: pop .6s var(--spring); }
.splash-t { font-size: 30px; font-weight: 800; letter-spacing: .06em; }
.splash.bye { opacity: 0; }
.welcome { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg); animation: fadeIn .3s; }
.welcome.bye { opacity: 0; transition: opacity .25s; }
.wl-art { flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 40px 40px; }
.wl-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.wl-b { padding: 22px 22px calc(14px + var(--bot)); }
.wl-t { font-size: 27px; font-weight: 800; line-height: 1.45; }
.wl-s { font-size: 15px; color: var(--ink-3); line-height: 1.8; margin: 8px 0 18px; }
.wl-b .btn + .btn { margin-top: 4px; }

.nojs, .fatal { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); font-size: 15px; }
.fatal-t { font-weight: 800; font-size: 17px; }
.fatal a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--pri); text-decoration: underline; }

/* ---------- 遷移 ---------- */
.in-fade { animation: fadeThrough .32s var(--emph) both; z-index: 2; }
.out-fade { animation: fadeOut .12s linear both; }
.in-fwd { animation: axisIn .34s var(--emph) both; z-index: 2; }
.out-fwd { animation: axisOut .3s var(--emph) both; }
.in-bwd { animation: axisBackIn .34s var(--emph) both; z-index: 2; }
.out-bwd { animation: axisBackOut .3s var(--emph) both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeThrough { from { opacity: 0; transform: scale(.96); } }
@keyframes axisIn { from { opacity: 0; transform: translateX(48px); } }
@keyframes axisOut { to { opacity: 0; transform: translateX(-48px); } }
@keyframes axisBackIn { from { opacity: 0; transform: translateX(-48px); } }
@keyframes axisBackOut { to { opacity: 0; transform: translateX(48px); } }
@keyframes slideL { from { opacity: 0; transform: translateX(36px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-36px); } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
}
