/* げんきボタン — 陽だまり橙×白×緑 / iOS（家族モード）と、大きな文字の親モード */
:root {
  --sun: #cf5a0b;
  --sun-d: #a8460a;
  --sun-l: #ffb15e;
  --sun-t: #ffe7cf;
  --hinata: #fff6ec;
  --bg: #f6f1ea;
  --paper: #ffffff;
  --ink: #2b2118;
  --ink2: #5a4a3c;
  --sep: #e8dfd3;
  --leaf: #2e7d4f;
  --leaf-d: #23633e;
  --leaf-t: #e3f2e8;
  --alert: #c62f2f;
  --alert-t: #fde6e3;
  --amber: #8a5300;
  --amber-t: #fdf0d6;
  --sky: #3f5c8c;
  --f: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --fn: "Nunito", "Zen Maru Gothic", sans-serif;
  --r-card: 16px;
  --r-big: 28px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --sb: env(safe-area-inset-bottom, 0px);
  --st: env(safe-area-inset-top, 0px);
  --oya: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #e9e0d3; color: var(--ink);
  font: 500 17px/1.6 var(--f);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  line-break: strict; overflow: hidden;
}
h1, h2, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
p { text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.i { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.num { font-family: var(--fn); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 3px solid #1d63c9; outline-offset: 2px; }
.lt, .ios-h, .nav-title, .status-t, .oya-h1, .oya-h2, .oya-name, .press-hint, .start-t, .who-t, .who-s, .sh-t, .ill-t, .stamp-l, .bigbtn, .pill, .sent-t, .oya-lead, .lt-sub, .foot {
  word-break: keep-all; overflow-wrap: normal; font-feature-settings: "palt";
}

/* ---------- 枠 ---------- */
.device { position: relative; height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--bg); }
@media (min-width: 600px) {
  body { background: #e9e0d3 radial-gradient(circle at 30% 20%, rgba(255, 177, 94, .35), transparent 50%); }
  .device { max-width: 430px; box-shadow: 0 30px 80px rgba(80, 50, 20, .25); }
}
.views { position: absolute; inset: 0; overflow: hidden; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.view--oya { background: var(--hinata); }
.sc { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-bottom: 40px; }
.has-tabs .sc { padding-bottom: calc(120px + var(--sb)); }
.fallback { padding: 40vh 24px 0; text-align: center; }
.fallback-t { font-weight: 900; font-size: 24px; }
.nojs { position: fixed; left: 16px; right: 16px; bottom: 16px; background: #fff; padding: 12px; border-radius: 12px; }
.crash { padding: 30vh 24px 0; text-align: center; }
.crash-t { font-weight: 900; font-size: 22px; margin-bottom: 8px; }

/* iOS のプッシュ遷移 */
.in-push { animation: pIn .46s var(--ease) both; z-index: 3; box-shadow: -10px 0 30px rgba(60, 40, 10, .12); }
.out-push { animation: pOut .46s var(--ease) both; z-index: 2; }
.in-back { animation: bIn .46s var(--ease) both; z-index: 2; }
.out-back { animation: bOut .46s var(--ease) both; z-index: 3; }
.in-swap { animation: fadeIn .22s ease-out both; z-index: 3; }
.out-swap { animation: fadeOut .16s ease-in both; z-index: 2; }
@keyframes pIn { from { transform: translateX(100%); } }
@keyframes pOut { to { transform: translateX(-28%); filter: brightness(.94); } }
@keyframes bIn { from { transform: translateX(-28%); filter: brightness(.94); } }
@keyframes bOut { to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ---------- ナビバー（大きなタイトル） ---------- */
.navbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: calc(52px + var(--st)); padding: var(--st) 8px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: background-color .2s, box-shadow .2s;
}
.navbar.scrolled { background: rgba(250, 246, 240, .86); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 .5px 0 rgba(90, 60, 30, .25); }
.nav-title { font-weight: 700; font-size: 17px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.navbar.scrolled .nav-title { opacity: 1; transform: none; }
.nav-back { display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 8px 0 0; color: var(--sun-d); font-weight: 700; font-size: 17px; justify-self: start; }
.nav-back .i { width: 28px; height: 28px; }
.nav-btn { justify-self: end; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; color: var(--sun-d); background: rgba(255, 255, 255, .7); }
.nav-btn:active { transform: scale(.9); }
.nav-sp { width: 1px; }
.lt { font-weight: 900; font-size: 34px; line-height: 1.2; padding: calc(56px + var(--st)) 20px 0; letter-spacing: .01em; }
.lt-sub { padding: 2px 20px 0; color: var(--ink2); font-size: 15px; }
.ios-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink2); padding: 22px 32px 8px; }
.tag { font-size: 12px; font-weight: 700; color: var(--sun-d); background: var(--sun-t); border-radius: 6px; padding: 0 6px; line-height: 1.7; }
.tag--leaf { color: var(--leaf-d); background: var(--leaf-t); margin-left: 6px; }
.card { margin: 0 16px; background: var(--paper); border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(80, 50, 20, .06); }
.foot { font-size: 14px; color: var(--ink2); padding: 0 16px 12px; }
.foot--pad { padding: 10px 32px; }
.disc { font-size: 13px; color: var(--ink2); padding: 20px 32px 0; line-height: 1.7; }

/* ---------- タブバー ---------- */
.tabs { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; }
.tabs--kazoku {
  left: 14px; right: 14px; bottom: calc(10px + var(--sb)); height: 66px; border-radius: 33px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px;
  background: rgba(255, 252, 247, .78); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 8px 26px rgba(80, 50, 20, .18), inset 0 0 0 .5px rgba(255, 255, 255, .9), 0 0 0 .5px rgba(90, 60, 30, .18);
}
.tabs--kazoku .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 29px; color: #4d4035; font-size: 11px; font-weight: 700; transition: background-color .25s; }
.tabs--kazoku .tab .i { width: 26px; height: 26px; }
.tabs--kazoku .tab.on { color: var(--sun-d); background: rgba(207, 90, 11, .12); }
.tabs--kazoku .tab:active { transform: scale(.94); }
.tabs--oya { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px calc(12px + var(--sb)); background: var(--hinata); box-shadow: 0 -1px 0 var(--sep); }
.tabs--oya .tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 68px; border-radius: 22px; font-size: 22px; font-weight: 900; color: var(--ink); background: #fff; border: 2px solid var(--sep); }
.tabs--oya .tab .i { width: 32px; height: 32px; }
.tabs--oya .tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.has-tabs .m-oya .sc, .m-oya.has-tabs .sc { padding-bottom: calc(110px + var(--sb)); }

/* ---------- 親モード ---------- */
.big-xl { --oya: 23px; }
.sc--oya { font-size: var(--oya); }
.oya-top { position: relative; height: 210px; background-size: cover; background-position: center 30%; display: flex; align-items: flex-end; padding: 0 16px 14px; }
.oya-plate { background: rgba(255, 252, 247, .94); border-radius: 22px; padding: 12px 18px 12px; box-shadow: 0 6px 20px rgba(80, 50, 20, .18); }
.oya-greet { font-size: 18px; font-weight: 700; color: var(--ink2); line-height: 1.3; }
.oya-name { font-size: calc(var(--oya) + 10px); font-weight: 900; line-height: 1.3; }
.oya-date { font-size: calc(var(--oya) - 2px); font-weight: 700; display: flex; gap: 8px; color: var(--ink); }
.clockchip { position: absolute; top: calc(12px + var(--st)); right: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; background: rgba(43, 33, 24, .82); color: #fff; font-size: 14px; font-weight: 700; }
.clockchip .i { width: 20px; height: 20px; }
.clockchip b { font-size: 16px; }
.oya-main { padding: 26px 16px 4px; display: flex; flex-direction: column; align-items: center; }
.press-wrap { position: relative; width: 272px; height: 272px; display: grid; place-items: center; }
.ray { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 177, 94, .42), rgba(255, 177, 94, 0) 70%); animation: breathe 3.2s ease-in-out infinite; }
.ray.r2 { inset: -18px; animation-delay: 1.6s; opacity: .7; }
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .6; } 50% { transform: scale(1.04); opacity: 1; } }
.gbtn {
  position: relative; width: 236px; height: 236px; border-radius: 50%; background: var(--sun); color: #fff;
  box-shadow: 0 14px 0 var(--sun-d), 0 22px 40px rgba(168, 70, 10, .38), inset 0 -10px 24px rgba(120, 40, 0, .25);
  transition: transform .14s ease-out, box-shadow .14s ease-out;
}
.gbtn::before { content: ""; position: absolute; left: 22%; top: 9%; width: 56%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, .28); filter: blur(2px); pointer-events: none; }
.gbtn:active, .gbtn.pressed { transform: translateY(10px); box-shadow: 0 4px 0 var(--sun-d), 0 8px 18px rgba(168, 70, 10, .35), inset 0 -6px 18px rgba(120, 40, 0, .25); }
.gbtn-in { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.gbtn-sun { width: 64px; height: 64px; color: #fff; }
.gbtn-l { font-size: 48px; font-weight: 900; line-height: 1.1; letter-spacing: .06em; }
.burst .ray { animation: burst .6s ease-out forwards; }
@keyframes burst { to { transform: scale(1.5); opacity: 0; } }
.press-hint { margin-top: 20px; font-size: var(--oya); font-weight: 700; text-align: center; }
.sent { width: 100%; background: var(--leaf); color: #fff; border-radius: var(--r-big); padding: 26px 20px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: morph .5s var(--bounce) both; }
@keyframes morph { from { transform: scale(.7); border-radius: 50%; opacity: .3; } }
.sent-badge { width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--leaf); display: grid; place-items: center; }
.sent-badge .i { width: 54px; height: 54px; }
.sent-t { font-size: 34px; font-weight: 900; margin-top: 10px; line-height: 1.3; }
.sent-time { font-size: 30px; line-height: 1.2; margin-top: 4px; }
.sent-s { font-size: calc(var(--oya) - 1px); font-weight: 700; margin-top: 2px; word-break: keep-all; overflow-wrap: normal; }
.undo { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px; border-radius: 28px; background: #fff; color: var(--leaf-d); font-weight: 900; font-size: 18px; }
.oya-sec { padding: 24px 16px 0; }
.oya-h2 { font-size: calc(var(--oya) + 4px); font-weight: 900; margin: 0 4px 12px; }
.stamps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stamp { position: relative; min-height: 132px; border-radius: 24px; background: #fff; border: 3px solid var(--sep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; transition: transform .15s, border-color .2s; }
.stamp:active { transform: scale(.96); }
.stamp .face { width: 60px; height: 60px; }
.stamp-l { font-size: var(--oya); font-weight: 900; line-height: 1.3; text-align: center; }
.stamp.on { border-color: var(--sc); background: var(--st); }
.stamp-ok { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--sc); color: #fff; display: grid; place-items: center; }
.stamp-ok .i { width: 20px; height: 20px; }
.hitos { display: grid; gap: 10px; }
.hito { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 68px; padding: 10px 20px; border-radius: 20px; background: #fff; border: 3px solid var(--sep); font-size: var(--oya); font-weight: 700; text-align: left; }
.hito:active { transform: scale(.98); }
.hito.on { border-color: var(--leaf); background: var(--leaf-t); }
.hito .i { color: var(--leaf); width: 30px; height: 30px; }
.oya-switch { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 16px 0; min-height: 52px; border-radius: 16px; color: var(--ink2); font-size: 16px; font-weight: 700; border: 1.5px dashed #b9a995; }
.oya-head { padding: calc(28px + var(--st)) 20px 6px; }
.oya-h1 { font-size: 36px; font-weight: 900; line-height: 1.25; }
.oya-lead { font-size: var(--oya); font-weight: 700; color: var(--ink2); margin-top: 4px; }
.people { padding: 12px 16px 0; display: grid; gap: 12px; }
.person { width: 100%; display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 14px 16px; border-radius: 26px; background: #fff; border: 3px solid var(--sep); text-align: left; transition: transform .15s; }
.person:active { transform: scale(.98); border-color: var(--leaf); }
.person-b { flex: 1; display: grid; }
.person-n { word-break: keep-all; overflow-wrap: normal; font-size: calc(var(--oya) + 6px); font-weight: 900; line-height: 1.3; }
.person-s { font-size: calc(var(--oya) - 3px); color: var(--ink2); }
.person-call { width: 64px; height: 64px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; flex: none; }
.person-call .i { width: 32px; height: 32px; }
.oya-119 { margin: 20px 16px 0; padding: 16px 18px; border-radius: 20px; background: var(--alert-t); }
.oya-119-t { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; color: var(--alert); }
.oya-119-p { font-size: 18px; margin-top: 4px; }
.oya-cat { display: block; width: calc(100% - 32px); margin: 20px 16px 0; height: 180px; object-fit: cover; border-radius: 24px; }

/* アバター */
.ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex: none; }
.ava--l { width: 68px; height: 68px; font-size: 30px; }
.ava--xl { width: 88px; height: 88px; font-size: 38px; }
.ava--sun { background: var(--sun-t); color: var(--sun-d); }
.ava--leaf { background: var(--leaf-t); color: var(--leaf-d); }
.ava--sand { background: #f1e6d6; color: #6b4e2c; }
.ava--sky { background: #e3e9f4; color: var(--sky); }

/* 顔スタンプ */
.face { flex: none; }
.f-bg { fill: var(--ft); stroke: var(--fc); stroke-width: 3; }
.f-l { fill: none; stroke: var(--fc); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.f-thin { stroke-width: 2.4; }
.f-d { fill: var(--fc); }
.f-m { fill: var(--fc); }
.f-ch { fill: #f6a37a; opacity: .7; }
.face--s { width: 44px; height: 44px; }
.face--w { width: 34px; height: 34px; }
.face--t { width: 40px; height: 40px; }

/* ---------- 家族：見守り ---------- */
.hero { margin: 16px 16px 0; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(80, 50, 20, .1); }
.hero-ph { height: 132px; background-size: cover; background-position: center 55%; }
.status { display: flex; gap: 14px; padding: 16px 16px 18px; align-items: flex-start; }
.status-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.status-ic .i { width: 30px; height: 30px; }
.status-b { flex: 1; min-width: 0; }
.status-t { font-size: 22px; font-weight: 900; line-height: 1.4; }
.status-t .num { font-size: 26px; }
.status-p { font-size: 15px; color: var(--ink2); margin-top: 4px; line-height: 1.65; }
.status--ok { background: var(--leaf-t); }
.status--ok .status-ic { background: #fff; }
.status--ok .status-t { color: var(--leaf-d); }
.status--calm .status-ic { background: #f1e9de; color: var(--ink2); }
.status--warm { background: var(--amber-t); }
.status--warm .status-ic { background: #fff; color: var(--amber); }
.status--warm .status-t { color: var(--amber); }
.status--alert { background: var(--alert-t); }
.status--alert .status-ic { background: var(--alert); color: #fff; animation: pulse 1.4s ease-in-out infinite; }
.status--alert .status-t { color: #a32222; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(198, 47, 47, .18); } }
.st-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px; font-weight: 700; font-size: 15px; }
.pill .i { width: 20px; height: 20px; }
.pill--alert { background: var(--alert); color: #fff; }
.pill--line { background: #fff; color: #a32222; box-shadow: inset 0 0 0 1.5px #e3a7a1; }
.pill:active { transform: scale(.96); }

.flow { padding: 16px 16px 10px; }
.ruler { position: relative; height: 54px; margin: 0 6px; }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 6px; border-radius: 3px; background: #efe7dc; }
.ruler-band { position: absolute; top: 22px; height: 14px; border-radius: 7px; background: var(--sun-t); }
.ruler-dl { position: absolute; top: 14px; height: 30px; border-left: 2px dashed var(--alert); }
.ruler-dot { position: absolute; top: 20px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--leaf); border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ruler-now { position: absolute; top: 0; bottom: 18px; border-left: 2px solid var(--ink); transition: left .15s; }
.ruler-now b { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; border-radius: 6px; padding: 0 5px; line-height: 1.5; }
.ruler-ax { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); }
.evs { margin-top: 14px; display: grid; gap: 2px; }
.ev { display: grid; grid-template-columns: 3.4em 18px 1fr; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; color: var(--ink2); }
.ev-t { font-size: 15px; text-align: right; }
.ev-dot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #c8b9a6; background: #fff; justify-self: center; }
.ev--done .ev-dot { background: #c8b9a6; }
.ev--p { color: var(--leaf-d); font-weight: 700; }
.ev--p .ev-dot { background: var(--leaf); border-color: var(--leaf); width: 16px; height: 16px; }
.ev--d .ev-dot { border-color: var(--alert); }
.ev--d.ev--done { color: #a32222; font-weight: 700; }
.ev--d.ev--done .ev-dot { background: var(--alert); }
.ev--skip { opacity: .75; text-decoration: line-through; text-decoration-color: rgba(90, 74, 60, .5); }
.ev-sk { text-decoration: none; display: inline-block; margin-left: 4px; font-size: 13px; }

.card--clk { padding: 14px 0 6px; }
.clk { padding: 0 16px 6px; }
.clk-v { text-align: center; }
.clk-v b { font-size: 40px; line-height: 1.1; }
.clk-track { position: relative; height: 56px; margin-top: 20px; }
.clk-mark { position: absolute; top: -12px; transform: translateX(-50%); display: grid; justify-items: center; font-size: 12px; font-weight: 700; color: var(--ink2); white-space: nowrap; pointer-events: none; }
.clk-mark i { order: 2; width: 2px; height: 34px; background: #d8c9b5; margin-top: 2px; }
.clk-mark--d { color: #a32222; }
.clk-mark--d i { background: var(--alert); }
.clk-track input { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; margin: 0; height: 32px; -webkit-appearance: none; appearance: none; background: transparent; }
.clk-track input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--leaf-t), var(--sun-t) 45%, var(--alert-t)); }
.clk-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; margin-top: -12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .08); }
.clk-track input::-moz-range-track { height: 8px; border-radius: 4px; background: var(--sun-t); }
.clk-track input::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.clk-ax { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); font-family: var(--fn); font-weight: 700; }
.link { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 16px; border-top: .5px solid var(--sep); color: var(--sun-d); font-weight: 700; font-size: 16px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 14px 8px 10px; }
.wk { display: grid; justify-items: center; gap: 4px; }
.wk-d { font-size: 13px; font-weight: 700; color: var(--ink2); }
.wk--today .wk-d { color: var(--sun-d); }
.wk-empty { width: 34px; height: 34px; border-radius: 50%; border: 2.5px dashed #cdbfae; display: grid; place-items: center; font-weight: 900; color: var(--alert); }
.wk--miss .wk-empty { border: 2.5px solid var(--alert); background: var(--alert-t); }
.wk-t { font-size: 12px; color: var(--ink2); }
.row-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 12px 0 16px; border-top: .5px solid var(--sep); font-weight: 700; color: var(--sun-d); }

/* ---------- タイムライン ---------- */
.sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 16px 0; }
.sum-i { background: #fff; border-radius: var(--r-card); padding: 12px 12px 10px; }
.sum-k { font-size: 13px; color: var(--ink2); font-weight: 700; }
.sum-v { display: flex; align-items: baseline; gap: 2px; }
.sum-v b { font-size: 28px; line-height: 1.2; }
.sum-v span { font-size: 14px; color: var(--ink2); }
.card--chart { padding: 10px 8px 12px; }
.chart { width: 100%; height: auto; display: block; }
.ch-band { fill: #ffe7cf; rx: 6; }
.ch-dl { stroke: var(--alert); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ch-row { stroke: #f0e8dd; stroke-width: 1; }
.ch-lb { font: 700 11px var(--fn); fill: #5a4a3c; }
.ch-ax { font: 700 11px var(--fn); fill: #5a4a3c; }
.ch-dot { stroke: #fff; stroke-width: 2; }
.ch-miss { fill: #fff; stroke: var(--alert); stroke-width: 2.4; }
.ch-x { font: 900 11px var(--fn); fill: var(--alert); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--ink2); padding: 6px 8px 0; }
.lg { display: inline-block; width: 18px; height: 10px; border-radius: 5px; }
.lg--band { background: var(--sun-t); }
.lg--dl { width: 0; height: 14px; border-left: 2px dashed var(--alert); margin-left: 8px; border-radius: 0; }
.tls { overflow: hidden; }
.tl { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: .5px solid var(--sep); min-height: 64px; }
.tl:first-child { border-top: 0; }
.tl-d { width: 46px; flex: none; display: grid; justify-items: center; line-height: 1.2; }
.tl-d b { font-family: var(--fn); font-weight: 800; font-size: 16px; white-space: nowrap; }
.tl-d span { font-size: 12px; color: var(--ink2); }
.tl-b { flex: 1; min-width: 0; }
.tl-t { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.tl-late { font-size: 12px; color: var(--amber); background: var(--amber-t); border-radius: 6px; padding: 0 6px; }
.tl-n { font-size: 14px; color: var(--ink2); line-height: 1.55; }
.tl-time { font-size: 20px; }
.tl--miss { background: var(--alert-t); }
.tl--miss .tl-t { color: #a32222; }
.tl--none .tl-t { color: var(--ink2); }

/* ---------- 連絡先 ---------- */
.gate { margin: 16px 16px 0; height: 120px; border-radius: 18px; background-size: cover; background-position: center 60%; }
.clist { overflow: hidden; }
.cr { position: relative; border-top: .5px solid var(--sep); }
.cr:first-child { border-top: 0; }
.cr-del { position: absolute; right: 0; top: 0; bottom: 0; width: 96px; background: var(--alert); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 700; }
.cr-row { position: relative; z-index: 1; background: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; transition: transform .3s var(--ease); touch-action: pan-y; }
.cr-b { flex: 1; min-width: 0; }
.cr-n { word-break: keep-all; overflow-wrap: normal; font-weight: 700; font-size: 17px; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; }
.cr-s { font-size: 14px; color: var(--ink2); line-height: 1.45; }
.cr-tel { font-size: 14px; color: var(--ink2); font-weight: 700; }
.cr-call { width: 44px; height: 44px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; flex: none; }
.cr-call:active { transform: scale(.9); }
.cr-call .i { width: 22px; height: 22px; }
.cr-empty { padding: 16px; color: var(--ink2); font-size: 15px; }

/* ---------- 設定 ---------- */
.sets { overflow: hidden; }
.sets--mt { margin-top: 28px; }
.set { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-top: .5px solid var(--sep); width: 100%; text-align: left; }
.sets > li:first-child > .set, .sets > .set:first-child { border-top: 0; }
.set-b { flex: 1; min-width: 0; display: grid; }
.set-l { font-weight: 700; font-size: 16px; line-height: 1.4; flex: 1; }
.set-h { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.set-sw { display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.set--link:active { background: #f6efe6; }
.set-ic { color: var(--sun-d); }
.chev { color: #b4a491; }
.set--danger { color: var(--alert); }
.set--danger .set-ic { color: var(--alert); }
.stp { display: flex; align-items: center; gap: 4px; background: #f3ece2; border-radius: 12px; padding: 3px; flex: none; }
.stp-b { width: 44px; height: 40px; border-radius: 9px; font-size: 22px; font-weight: 700; color: var(--ink); }
.stp-b:active { background: #fff; }
.stp-v { min-width: 3.2em; text-align: center; font-size: 18px; }
.ios-sw { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: #d9d0c4; position: relative; flex: none; margin: 0; cursor: pointer; transition: background-color .25s; }
.ios-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .22); transition: transform .3s var(--bounce); }
.ios-sw:checked { background: var(--leaf); }
.ios-sw:checked::after { transform: translateX(20px); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 10px; }
.day { height: 44px; border-radius: 12px; font-weight: 900; font-size: 16px; background: #f3ece2; color: var(--ink2); }
.day.on { background: var(--sun-d); color: #fff; }
.segc { display: flex; background: #f0e8dd; border-radius: 11px; padding: 3px; gap: 2px; }
.segc-b { flex: 1; min-height: 40px; padding: 0 12px; border-radius: 9px; font-weight: 700; font-size: 15px; color: var(--ink2); white-space: nowrap; }
.segc-b.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(80, 50, 20, .14); }
.segc--s { flex: none; }
.about { display: flex; flex-direction: column; align-items: center; padding: calc(64px + var(--st)) 20px 10px; }
.about-ic { border-radius: 24px; box-shadow: 0 8px 22px rgba(80, 50, 20, .2); }
.about-n { font-weight: 900; font-size: 26px; margin-top: 12px; }
.about-v { font-size: 14px; color: var(--ink2); }
.about-card { padding: 14px 16px; line-height: 1.75; font-size: 15px; }

/* ---------- ボタン・シート ---------- */
.bigbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; padding: 10px 20px; border-radius: 30px; font-weight: 900; font-size: 19px; margin-top: 12px; text-align: center; transition: transform .15s; }
.bigbtn:active { transform: scale(.97); }
.bigbtn .i { width: 26px; height: 26px; }
.bigbtn--sun { background: var(--sun-d); color: #fff; }
.bigbtn--leaf { background: var(--leaf); color: #fff; }
.bigbtn--alert { background: var(--alert); color: #fff; }
.bigbtn--plain { background: #f1e9de; color: var(--ink); }
.bigbtn--mx { width: auto; margin: 24px 16px 0; }
.veil { position: absolute; inset: 0; z-index: 40; background: rgba(43, 33, 24, .38); opacity: 0; transition: opacity .3s; }
.veil.on { opacity: 1; }
.sheets { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: calc(8px + var(--sb)); max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; background: #fffdf9; border-radius: 32px; padding: 6px 20px 20px; box-shadow: 0 20px 60px rgba(43, 33, 24, .3); transform: translateY(110%); transition: transform .42s var(--ease); }
.sheet.on { transform: none; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: #cdbfae; margin: 4px auto 10px; cursor: grab; touch-action: none; padding: 0; position: relative; }
.grabber::after { content: ""; position: absolute; inset: -14px -30px; }
.sh-t { font-size: 22px; font-weight: 900; line-height: 1.4; margin-top: 4px; }
.sh-p { font-size: 15px; color: var(--ink2); margin-top: 6px; }
.call { display: flex; flex-direction: column; align-items: center; text-align: center; }
.call-n { font-size: 24px; font-weight: 900; margin-top: 10px; line-height: 1.35; }
.call-s { font-size: 15px; color: var(--ink2); }
.call-tel { font-family: var(--fn); font-weight: 800; font-size: 20px; margin-top: 4px; }
.note { font-size: 13px; color: var(--ink2); margin-top: 12px; line-height: 1.65; text-align: left; }
.ill-t { font-size: 26px; font-weight: 900; line-height: 1.4; }
.ill-p { font-size: 18px; margin-top: 6px; }
.form { display: block; }
.lbl { display: block; font-size: 14px; font-weight: 700; color: var(--ink2); margin: 14px 4px 6px; }
.inp { width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid #d9cbb8; background: #fff; padding: 10px 14px; font-size: 17px; }
.inp:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun-t); }
.inp.bad { border-color: var(--alert); background: #fff8f7; }
.err { color: #a32222; font-weight: 700; font-size: 14px; margin-top: 10px; }

/* トースト・通知バナー */
.toast { position: absolute; left: 16px; right: 16px; bottom: calc(96px + var(--sb)); z-index: 60; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px 8px 18px; border-radius: 26px; background: rgba(43, 33, 24, .94); color: #fff; font-size: 15px; font-weight: 700; transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transition: transform .35s var(--bounce), opacity .2s; }
.toast.on { transform: none; opacity: 1; pointer-events: auto; }
.toast-t { flex: 1; line-height: 1.5; }
.toast-a { min-height: 40px; padding: 0 14px; border-radius: 20px; background: #fff; color: var(--ink); font-weight: 900; flex: none; }
.m-oya .toast { font-size: 18px; bottom: calc(104px + var(--sb)); }
.banner { position: absolute; z-index: 70; left: 8px; right: 8px; top: calc(8px + var(--st)); display: flex; gap: 10px; padding: 12px 14px; border-radius: 22px; background: rgba(252, 248, 242, .97); box-shadow: 0 12px 30px rgba(43, 33, 24, .25); transform: translateY(-140%); opacity: 0; visibility: hidden; transition: transform .45s var(--bounce), opacity .2s, visibility 0s .45s; cursor: pointer; }
.banner.on { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--bounce), opacity .2s; }
.banner img { border-radius: 10px; flex: none; }
.banner-b { flex: 1; min-width: 0; }
.banner-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); }
.banner-t { font-weight: 900; font-size: 15px; line-height: 1.4; }
.banner-p { font-size: 14px; line-height: 1.5; }

/* ---------- はじめに ---------- */
.sc--start { background: var(--hinata); padding-bottom: 32px; }
.start-top { height: 300px; background-size: cover; background-position: center 40%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; }
.start-top img { border-radius: 18px; box-shadow: 0 8px 22px rgba(43, 33, 24, .35); }
.start-b { padding: 20px 20px 0; }
.start-t { font-size: 28px; font-weight: 900; line-height: 1.4; }
.start-p { font-size: 17px; margin-top: 8px; line-height: 1.75; }
.start-q { font-weight: 900; font-size: 19px; margin: 22px 0 10px; }
.who { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 24px; background: #fff; border: 3px solid var(--sep); margin-bottom: 12px; min-height: 96px; }
.who:active { transform: scale(.98); border-color: var(--sun); }
.who img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; flex: none; }
.who-b { flex: 1; display: grid; }
.who-t { font-size: 21px; font-weight: 900; line-height: 1.35; }
.who-s { font-size: 16px; color: var(--ink2); }
.who .i { color: var(--sun-d); }
.start-n { font-size: 14px; color: var(--ink2); text-align: center; margin-top: 4px; }

.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--hinata); transition: opacity .3s; }
.splash.out { opacity: 0; }
.splash img { border-radius: 26px; box-shadow: 0 10px 28px rgba(168, 70, 10, .3); }
.splash-name { font-weight: 900; font-size: 26px; letter-spacing: .06em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
.sheets:not(:empty) ~ .toast { top: calc(14px + var(--st)); bottom: auto; }
