/* ダキョク — 勤怠打刻（a033）
   白×ディープグリーン。数字が主役の、清潔な業務用。iOS の作法（大きなタイトル・浮いたタブバー・ハーフシート）。 */
:root {
  --paper: #ffffff;
  --mist: #f1f4f2;
  --ink: #0f1f19;
  --ink2: #44544d;
  --ink3: #5c6b64;
  --green: #0b5a43;
  --green-d: #073d2e;
  --mint: #9fe0c4;
  --tint: #e2eee8;
  --line: #d8e1dc;
  --amber: #93460a;
  --amber-t: #fbeee0;
  --red: #b42318;
  --red-t: #fcebe9;
  --slate: #3d5b76;
  --slate-t: #e5ecf2;
  --f-ja: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --f-num: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r1: 10px; --r2: 16px; --r3: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.35, .5, 1);
  --top: env(safe-area-inset-top, 0px);
  --bot: env(safe-area-inset-bottom, 0px);
  --tabh: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: var(--f-ja); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--green-d);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  line-break: strict; overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a, img { -webkit-user-drag: none; }
ol, ul { list-style: none; }
.nw { white-space: nowrap; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
h1, h2, .lt, .sh-t, .ob-t, .dh-t { font-feature-settings: "palt"; }
.lt, .sh-t, .ob-t, .btn-pri, .btn-sec, .btn-txt, .slab-t, .slab-h, .opt-t, .gr-t, .empty-t, .de-t, .rchip, .seg-b, .pill, .chip, .loc-h,
.sum-l, dt, .sec-h, .gh, .tab span, .nb-t, .rq-kind, .fld-l, .me-n, .ab-n, .ab-s, .sp-n, .state, .pv-k, .fr-l, .al-t, .al-btn, .off-n, .dl-k, .tag, .legend span { word-break: keep-all; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-s { width: 17px; height: 17px; }
.ic-xs { width: 14px; height: 14px; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; }

/* ───── アプリの枠 ───── */
.app { position: fixed; inset: 0; background: var(--paper); overflow: hidden; }
@media (min-width: 600px) {
  body {
    background-color: var(--green-d);
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
  }
  .app { left: 50%; right: auto; width: 430px; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.45); }
}
.stage { position: absolute; inset: 0; overflow: hidden; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); }
.scroller {
  flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--top) + 44px); padding-bottom: 40px; background: var(--paper);
}
.view.has-tabs .scroller { padding-bottom: calc(var(--tabh) + var(--bot) + 40px); }
.scroller.grouped { background: var(--mist); }

/* 遷移：プッシュは右から、戻るは左へ、タブはクロスフェード */
.view.in-push { animation: inPush .36s var(--ease) both; z-index: 2; box-shadow: -12px 0 30px rgba(7,61,46,.10); }
.view.out-push { animation: outPush .36s var(--ease) both; }
.view.in-pop { animation: inPop .36s var(--ease) both; }
.view.out-pop { animation: outPop .36s var(--ease) both; z-index: 2; box-shadow: -12px 0 30px rgba(7,61,46,.10); }
.view.in-swap { animation: fadeIn .22s ease both; }
.view.out-swap { animation: fadeOut .16s ease both; }
@keyframes inPush { from { transform: translateX(100%); } }
@keyframes outPush { to { transform: translateX(-26%); filter: brightness(.96); } }
@keyframes inPop { from { transform: translateX(-26%); } }
@keyframes outPop { to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ───── ナビゲーションバーと大きなタイトル ───── */
.nb { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding-top: var(--top); transition: background .2s, box-shadow .2s; }
.nb.is-solid { background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 .5px 0 rgba(15,31,25,.16); }
.grouped ~ .nb.is-solid, .view:has(.grouped) .nb.is-solid { background: rgba(241,244,242,.86); }
.nb-row { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 6px; }
.nb-row > :last-child { justify-self: end; }
.nb-t { font-weight: 700; font-size: 17px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; white-space: nowrap; max-width: 62vw; overflow: hidden; text-overflow: ellipsis; }
.nb.is-small .nb-t, .nb-t.is-on { opacity: 1; transform: none; }
.nb-back { display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 8px 0 2px; color: var(--green); font-size: 17px; font-weight: 500; }
.nb-back .ic { width: 24px; height: 24px; }
.nb-back:active { opacity: .5; }
.nb-ic { width: 44px; height: 44px; display: grid; place-items: center; color: var(--green); border-radius: 22px; }
.nb-ic:active { background: var(--tint); }
.lt-wrap { padding: 6px 16px 6px; }
.lt-kicker { font-size: 14px; font-weight: 600; color: var(--ink2); letter-spacing: .02em; }
.lt { font-size: 34px; line-height: 1.18; font-weight: 700; letter-spacing: .01em; transform-origin: left center; }

/* ───── タブバー（浮いたすりガラス） ───── */
.tabbar {
  position: absolute; z-index: 20; left: 14px; right: 14px; bottom: calc(var(--bot) + 10px); height: var(--tabh);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px;
  border-radius: 32px; background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 0 0 .5px rgba(15,31,25,.12), 0 10px 30px rgba(7,61,46,.16);
  transition: transform .3s var(--ease), opacity .3s;
}
.tabbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 27px; color: var(--ink2); font-size: 12px; font-weight: 600; line-height: 1.2; transition: color .2s, background .25s; }
.tab[aria-current="page"] { color: var(--green-d); background: rgba(11,90,67,.11); }
.tab:active { transform: scale(.94); }
.tic { width: 26px; height: 26px; }
.tic-w { position: relative; display: block; height: 26px; }
.badge { position: absolute; top: -4px; right: -10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; }

/* ───── 打刻画面 ───── */
.clock { padding: 4px 16px 0; }
.clk { display: flex; align-items: flex-start; line-height: 1; }
.clk-hm { font-family: var(--f-num); font-weight: 300; font-size: 82px; letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--ink); margin-left: -4px; }
.clk-s { font-family: var(--f-num); font-weight: 500; font-size: 26px; color: var(--green); margin: 10px 0 0 6px; font-variant-numeric: tabular-nums; }
.clock.is-stamp .clk-hm { animation: stamp .6s var(--ease); }
@keyframes stamp { 0% { color: var(--green); transform: scale(1.04); } 100% { color: var(--ink); transform: none; } }
.state { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 10px; font-size: 15px; }
.state i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink3); flex: none; }
.state-l { font-weight: 700; }
.state-t { color: var(--ink2); }
.state-t b { color: var(--ink); font-weight: 600; font-size: 16px; }
.state.is-work i { background: var(--green); box-shadow: 0 0 0 0 rgba(11,90,67,.45); animation: beat 1.8s infinite; }
.state.is-work .state-l { color: var(--green); }
.state.is-break i { background: var(--slate); }
.state.is-break .state-l { color: var(--slate); }
.state.is-off i { background: transparent; box-shadow: inset 0 0 0 2px var(--ink3); }
.state.is-done i { background: var(--ink); }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(11,90,67,.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(11,90,67,0); } }

.tl { margin: 20px 16px 0; }
.tl-bar {
  position: relative; height: 30px; border-radius: 9px; background-color: var(--mist);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 1px), rgba(15,31,25,.09) calc(16.666% - 1px) 16.666%);
}
.tl-bar > span { position: absolute; top: 0; bottom: 0; }
.tl-sched { top: -4px !important; bottom: -4px !important; border-left: 1.5px dashed var(--ink3); border-right: 1.5px dashed var(--ink3); }
.tl-w { background: var(--green); border-radius: 3px; }
.tl-b { background: repeating-linear-gradient(135deg, var(--slate) 0 4px, #5f7d97 4px 8px); border-radius: 3px; }
.tl-w.is-live { background: linear-gradient(90deg, var(--green), #1b7a5c); }
.tl-ov { top: auto !important; bottom: -8px !important; height: 4px; border-radius: 2px; background: var(--amber); }
.tl-now { width: 2px; margin-left: -1px; top: -6px !important; bottom: -6px !important; background: var(--ink); border-radius: 1px; }
.tl-now::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.tl-ax { position: relative; height: 22px; margin-top: 8px; }
.tl-ax span { position: absolute; transform: translateX(-50%); font-family: var(--f-num); font-size: 13px; color: var(--ink3); }
.tl-ax span:first-child { transform: none; }
.tl-ax span:last-child { transform: translateX(-100%); }

.loc { margin: 14px 16px 0; display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; padding: 12px 14px 12px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.loc.is-in { border-color: #bfd9cc; background: linear-gradient(180deg, #f6fbf8, #fff); }
.loc.is-out { border-color: #ecd2b8; background: linear-gradient(180deg, #fffaf4, #fff); }
.radar { display: block; width: 100px; height: 100px; }
.rd-out { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.rd-in { fill: rgba(11,90,67,.09); stroke: var(--green); stroke-width: 1.5; }
.loc.is-out .rd-in { fill: rgba(11,90,67,.05); }
.rd-cross { stroke: rgba(15,31,25,.08); stroke-width: 1; }
.rd-bld rect { fill: var(--green-d); }
.rd-bld path { stroke: #fff; stroke-width: 1.4; fill: none; }
.rd-me { fill: var(--green); stroke: #fff; stroke-width: 2.5; }
.rd-me.is-out { fill: var(--amber); }
.rd-pulse { fill: var(--green); opacity: .35; transform-box: fill-box; transform-origin: center; animation: ping 2s var(--ease) infinite; }
.rd-pulse.is-out { fill: var(--amber); }
@keyframes ping { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(3.4); opacity: 0; } }
.loc-h { font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--green-d); }
.loc.is-out .loc-h { color: var(--amber); }
.loc-s { font-size: 14px; color: var(--ink2); margin-top: 2px; line-height: 1.5; }
.loc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 11px 0 9px; border-radius: 22px; background: var(--mist); color: var(--green-d); font-size: 14px; font-weight: 600; transition: transform .12s, background .2s; }
.chip:active { transform: scale(.95); background: var(--tint); }
.chip.is-spin .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.acts { padding: 16px 16px 0; }
.slab {
  position: relative; width: 100%; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px 0 22px; border-radius: 24px; background: var(--green); color: #fff; text-align: left; overflow: hidden;
  box-shadow: 0 14px 28px -14px rgba(7,61,46,.7), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .18s var(--ease), background .3s; touch-action: none; -webkit-touch-callout: none;
}
.slab:active, .slab.is-hold { transform: scale(.985); }
.slab-fill { position: absolute; inset: 0; background: var(--green-d); transform: scaleX(0); transform-origin: left; }
.slab-l { position: relative; display: flex; flex-direction: column; gap: 2px; }
.slab-t { font-size: 23px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.slab-h { font-size: 14px; color: rgba(255,255,255,.88); }
.slab-h.is-warn { color: #ffe1bd; }
.slab-ring { position: relative; flex: none; width: 54px; height: 54px; display: grid; place-items: center; }
.slab-ring > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.slab-ring circle { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 3; }
.slab-ring .rg { stroke: #fff; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; stroke-linecap: round; }
.slab-ring .ic { position: relative; width: 24px; height: 24px; }
.slab.is-break { background: var(--slate); box-shadow: 0 14px 28px -14px rgba(61,91,118,.8); }
.slab.is-break .slab-fill { background: #2b4359; }
.slab.is-done { background: var(--mist); color: var(--ink); box-shadow: none; cursor: default; }
.slab.is-done .slab-h { color: var(--ink2); }
.slab-done { width: 30px; height: 30px; color: var(--green); }
.slab.is-busy { pointer-events: none; }
.slab.is-busy .slab-ring .rg { stroke-dashoffset: 80; animation: spin .9s linear infinite; transform-origin: 22px 22px; }
.sub-act { width: 100%; min-height: 54px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; background: var(--slate-t); color: var(--slate); font-size: 16px; font-weight: 700; transition: transform .15s; }
.sub-act:active { transform: scale(.98); }

.tri { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tri > div { padding: 12px 0 12px 12px; }
.tri > div:first-child { padding-left: 0; }
.tri > div + div { border-left: 1px solid var(--line); }
.tri dt { font-size: 14px; color: var(--ink2); font-weight: 600; }
.tri dd { font-size: 27px; font-weight: 400; line-height: 1.25; }
.tri .is-over dd { color: var(--amber); }

.plog { margin: 24px 16px 0; }
.sec-h { font-size: 15px; font-weight: 700; color: var(--ink2); letter-spacing: .04em; margin-bottom: 4px; }
.plog-l li { display: grid; grid-template-columns: 62px 72px 1fr; align-items: baseline; gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pl-time { font-size: 18px; font-weight: 500; }
.pl-k { font-size: 15px; font-weight: 700; }
.pl-loc { display: flex; gap: 4px; align-items: center; font-size: 14px; color: var(--ink2); min-width: 0; }
.pl-loc .ic { color: var(--green); }
.pl-loc.is-out { color: var(--amber); }
.pl-loc.is-out .ic { color: var(--amber); }
.plog-l .plog-empty { display: block; color: var(--ink2); font-size: 15px; word-break: normal; }

/* ───── 勤務表 ───── */
.mon { display: flex; align-items: center; justify-content: space-between; margin: 2px 10px 0; height: 48px; }
.mon-b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; color: var(--green); }
.mon-b:active { background: var(--tint); }
.mon-b.is-off { color: #a9b6b0; pointer-events: none; }
.mon-t { font-size: 18px; font-weight: 600; }
.sum { margin: 4px 16px 0; padding: 18px 18px 16px; border-radius: 24px; background: var(--green-d); color: #fff; }
.sum-big { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.sum-l { font-size: 14px; color: rgba(255,255,255,.82); font-weight: 600; }
.sum-n { font-size: 42px; font-weight: 400; line-height: 1.15; letter-spacing: -.05em; }
.sum-n.is-warm { color: #ffd3a1; }
.sum-n.is-hot { color: #ffb3a6; }
.meter { margin-top: 14px; }
.meter-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); }
.meter-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--mint); transition: width .6s var(--ease); }
.meter.is-warm .meter-bar span { background: #ffc98a; }
.meter.is-hot .meter-bar span { background: #ff9d8c; }
.meter-bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(255,255,255,.55); border-radius: 1px; }
.meter-l { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.86); }
.meter-l b { color: #fff; font-weight: 600; }
.fc { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.9); word-break: keep-all; }
.fc b { font-size: 16px; font-weight: 600; color: #fff; }
.fc.is-hot b { color: #ffb3a6; }
.sum-g { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
.sum-g dt { font-size: 13px; color: rgba(255,255,255,.82); font-weight: 600; }
.sum-g dd { font-size: 19px; line-height: 1.3; }
.sum-g small { font-size: 13px; font-family: var(--f-ja); margin-left: 1px; color: rgba(255,255,255,.86); }
.warn-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,201,138,.16); color: #ffe0bd; font-size: 14px; line-height: 1.55; word-break: keep-all; }
.warn-line .ic { margin-top: 2px; }
.warn-line b { color: #fff; }

.ledger { margin-top: 18px; }
.lg-h, .row-in { display: grid; grid-template-columns: 50px repeat(5, minmax(0, 1fr)) 14px; align-items: center; column-gap: 2px; padding: 0 12px 0 16px; }
.lg-h { position: sticky; top: calc(var(--top) + 44px); z-index: 3; height: 34px; background: rgba(255,255,255,.95); border-bottom: 1.5px solid var(--ink); font-size: 13px; font-weight: 700; color: var(--ink2); }
.lg-h span:not(:first-child) { text-align: right; }
.row-in { min-height: 48px; border-bottom: 1px solid var(--line); font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 14px; letter-spacing: -.04em; transition: background .15s; }
a.row-in:active { background: var(--tint); }
.row-in .cl { text-align: right; color: var(--ink); }
.row-in .cl-w { font-weight: 600; }
.row-in .cl-o { color: var(--ink3); }
.row-in .cl-o.is-on { color: var(--amber); font-weight: 600; }
.row-in .is-miss { color: var(--red); font-family: var(--f-ja); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.cl-wide { grid-column: span 5; font-family: var(--f-ja); font-size: 14px; letter-spacing: 0; color: var(--green-d); font-weight: 600; text-align: center; }
.cl-wide.is-dim { color: var(--ink3); font-weight: 400; }
.cd { display: flex; align-items: baseline; gap: 3px; }
.cd b { font-size: 17px; font-weight: 600; min-width: 1.3em; text-align: right; }
.cd small { font-family: var(--f-ja); font-size: 13px; color: var(--ink2); letter-spacing: 0; }
.row.is-sat .row-in { background: #f2f6f9; }
.row.is-sat .cd small { color: var(--slate); font-weight: 700; }
.row.is-sun .row-in { background: #fbf3f1; }
.row.is-sun .cd small { color: var(--red); font-weight: 700; }
.row.is-fut .cd b { color: var(--ink3); font-weight: 400; }
.row.is-today .row-in { background: var(--tint); box-shadow: inset 4px 0 0 var(--green); }
.mks { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mk-miss { background: var(--red); }
.mk-out { background: #c9772d; }
.mk-pend { box-shadow: inset 0 0 0 2px var(--slate); }
.mk-ed { background: var(--green); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 16px 4px; font-size: 14px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.foot-note { padding: 8px 16px 0; font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* ───── 日ごとの詳細 ───── */
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 16px 4px; }
.dh-k { width: 100%; font-size: 14px; font-weight: 600; color: var(--ink2); }
.dh-t { font-size: 28px; font-weight: 700; line-height: 1.25; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--mist); color: var(--ink2); font-size: 14px; font-weight: 700; }
.tag.is-g { background: var(--tint); color: var(--green-d); }
.dsum { margin: 12px 16px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 22px; }
.dsum-l { font-size: 14px; color: var(--ink2); font-weight: 600; }
.dsum-n { font-size: 58px; font-weight: 300; line-height: 1.1; color: var(--green-d); letter-spacing: -.06em; }
.fx { margin-top: 10px; font-size: 15px; color: var(--ink); }
.fx b { font-weight: 600; color: var(--green-d); }
.fx.is-miss { display: flex; gap: 6px; align-items: center; font-family: var(--f-ja); color: var(--red); font-weight: 600; }
.fx2 { margin-top: 4px; font-size: 14px; color: var(--ink2); }
.fx2 b { color: var(--amber); font-weight: 600; }
.dsum + .sec-h { margin: 24px 16px 6px; }
.dlog { margin: 0 16px; }
.dlog li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 0 0 16px 22px; }
.dlog li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #fff; z-index: 1; }
.dlog li::after { content: ""; position: absolute; left: 8px; top: 14px; bottom: -6px; width: 2px; background: var(--line); }
.dlog li:last-child::after { display: none; }
.dlog .dl-bs::before, .dlog .dl-be::before { background: var(--slate); }
.dlog .is-miss::before { background: #fff; box-shadow: inset 0 0 0 2px var(--red), 0 0 0 3px #fff; }
.dl-t { font-size: 20px; font-weight: 500; line-height: 1.3; }
.is-miss .dl-t, .is-miss .dl-k { color: var(--red); }
.dl-k { font-size: 16px; font-weight: 700; line-height: 1.5; }
.dl-loc { display: flex; gap: 5px; align-items: flex-start; font-size: 14px; color: var(--ink2); line-height: 1.55; margin-top: 2px; }
.dl-loc .ic { color: var(--green); margin-top: 2px; }
.dl-loc.is-out, .dl-loc.is-out .ic { color: var(--amber); }
.dl-loc.is-fix .ic { color: var(--slate); }
.dl-note { color: var(--ink2); }
.ed-note, .pend-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--tint); color: var(--green-d); font-size: 14px; line-height: 1.6; }
.ed-note { margin: 4px 16px 0; }
.ed-note .ic, .pend-note .ic { margin-top: 2px; }
.pend-note { background: var(--slate-t); color: var(--slate); }
.day-cta { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 0; }
.day-empty { margin: 18px 16px 0; padding: 28px 20px; border-radius: 22px; background: var(--mist); text-align: center; }
.de-t { font-size: 19px; font-weight: 700; }
.de-s { margin-top: 6px; font-size: 15px; color: var(--ink2); line-height: 1.7; }
.day-empty .btn-sec { margin-top: 16px; }

/* ───── ボタン ───── */
.btn-pri { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 20px; border-radius: 18px; background: var(--green); color: #fff; font-size: 17px; font-weight: 700; text-align: center; transition: transform .15s var(--ease), background .2s; box-shadow: 0 10px 20px -12px rgba(7,61,46,.7); }
.btn-pri:active { transform: scale(.98); background: var(--green-d); }
.btn-pri:disabled { background: #b9c8c1; box-shadow: none; color: #fff; cursor: default; }
.btn-pri:disabled { background: #7d918a; }
.btn-sec { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 18px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line); color: var(--green-d); font-size: 16px; font-weight: 700; transition: transform .15s; }
.btn-sec:active { transform: scale(.98); background: var(--tint); }
.btn-txt { display: block; width: 100%; min-height: 48px; margin-top: 4px; color: var(--ink2); font-size: 16px; font-weight: 600; }

/* ───── 申請 ───── */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 6px 16px 14px; padding: 3px; height: 44px; border-radius: 12px; background: #e6ebe8; }
.seg-b { position: relative; z-index: 1; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--ink2); }
.seg-b[aria-selected="true"], .seg-b[aria-checked="true"] { color: var(--ink); }
.seg-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(15,31,25,.12), 0 0 0 .5px rgba(15,31,25,.06); transition: transform .3s var(--spring); }
.rqs { border-top: 1px solid var(--line); }
.rq { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.rq-act { position: absolute; top: 0; right: 0; bottom: 0; width: 104px; background: var(--red); }
.rq-del { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-size: 14px; font-weight: 700; }
.rq-in { position: relative; z-index: 1; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 16px; background: var(--paper); transition: transform .3s var(--ease); touch-action: pan-y; }
.rq-in:active { background: #fafcfb; }
.rq-date { display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.rq-date b { font-size: 28px; font-weight: 400; line-height: 1.05; }
.rq-date small { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.rq-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rq-top { display: flex; align-items: baseline; gap: 8px; }
.rq-kind { font-size: 16px; font-weight: 700; }
.rq-id { font-size: 13px; color: var(--ink3); }
.rq-diff { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.df { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.df-k { font-size: 14px; color: var(--ink2); }
.df s { font-family: var(--f-num); font-size: 14px; color: var(--ink3); }
.df b { font-size: 15px; font-weight: 600; color: var(--green-d); }
.df .ic { color: var(--ink3); }
.rq-why { font-size: 14px; color: var(--ink2); line-height: 1.6; word-break: normal; }
.rq-cmt { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--amber-t); color: var(--amber); font-size: 14px; line-height: 1.55; }
.rq-cmt .ic { margin-top: 2px; }
.pill { align-self: start; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.is-pending { background: var(--slate-t); color: var(--slate); }
.pill.is-approved { background: var(--tint); color: var(--green-d); }
.pill.is-returned { background: var(--amber-t); color: var(--amber); }
.hint { padding: 14px 16px; font-size: 14px; color: var(--ink2); text-align: center; word-break: keep-all; }
.empty { padding: 10px 28px 20px; text-align: center; }
.empty-img { width: 196px; height: 196px; margin: 4px auto 18px; border-radius: 50%; object-fit: cover; }
.empty-t { font-size: 19px; font-weight: 700; }
.empty-s { margin: 6px 0 18px; font-size: 15px; color: var(--ink2); line-height: 1.7; }

/* フォーム */
.fm-head { padding: 6px 16px 14px; }
.fm-date { display: flex; align-items: baseline; gap: 10px; }
.fm-date b { font-size: 40px; font-weight: 400; letter-spacing: -.05em; }
.fm-date span { font-size: 16px; font-weight: 600; color: var(--ink2); }
.fm-now { font-size: 14px; color: var(--ink2); }
.grp { margin: 0 16px; background: var(--paper); border-radius: 16px; overflow: hidden; }
.fr { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 12px 6px 16px; border-bottom: 1px solid var(--line); }
.fr:last-child { border-bottom: 0; }
.fr-l { font-size: 16px; font-weight: 600; }
.tm { height: 44px; min-width: 120px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--mist); font-size: 19px; font-weight: 500; color: var(--ink); text-align: center; }
.tm:focus { outline: 2px solid var(--green); }
.stp { display: flex; align-items: center; gap: 6px; }
.stp-b { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--green-d); transition: transform .12s; }
.stp-b:active { transform: scale(.92); background: var(--tint); }
.stp output { min-width: 58px; text-align: center; font-size: 19px; font-weight: 500; }
.fld-l { display: block; margin: 20px 16px 8px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.rchip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 600; transition: transform .12s, background .2s, color .2s, border-color .2s; }
.rchip:active { transform: scale(.96); }
.rchip[aria-checked="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.ta { display: block; width: calc(100% - 32px); margin: 0 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 16px; line-height: 1.6; resize: none; }
.ta:focus { outline: none; border-color: var(--green); }
.ta::placeholder { color: #6b7973; }
.cnt { padding: 4px 16px 0; text-align: right; font-size: 13px; color: var(--ink3); }
.pv { margin: 14px 16px 0; padding: 12px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.pv-h { font-size: 14px; font-weight: 700; color: var(--ink2); margin-bottom: 2px; }
.pv-r { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.pv-k { width: 3em; font-size: 15px; font-weight: 600; }
.pv-b { font-size: 16px; color: var(--ink3); }
.pv-r b { font-size: 20px; font-weight: 500; }
.pv-r .ic { color: var(--ink3); }
.pv-r span[class^="dl"] { margin-left: auto; font-family: var(--f-num); font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: 8px; }
.dlp { background: var(--amber-t); color: var(--amber); }
.dlm { background: var(--slate-t); color: var(--slate); }
.dl0 { background: var(--mist); color: var(--ink2); }
.fld-err { margin: 12px 16px 0; padding: 10px 14px; border-radius: 12px; background: var(--red-t); color: var(--red); font-size: 15px; font-weight: 600; line-height: 1.6; }
.form .btn-pri { width: calc(100% - 32px); margin: 16px 16px 0; }
.fm-foot { padding: 12px 16px 0; font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* ───── 設定 ───── */
.me { display: flex; align-items: center; gap: 14px; margin: 6px 16px 0; padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.me-av { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.me-n { font-size: 19px; font-weight: 700; line-height: 1.4; }
.me-s { font-size: 14px; color: var(--ink2); }
.gh { padding: 22px 32px 8px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.gr { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 16px; background: var(--paper); text-align: left; color: var(--ink); }
.gr + .gr::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
button.gr:active, a.gr:active { background: #eef3f0; }
.gr-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gr-t { font-size: 16px; font-weight: 500; line-height: 1.45; }
.gr-d { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.gr-go { width: 18px; height: 18px; color: var(--ink3); }
.gr-v { font-size: 15px; color: var(--ink2); white-space: nowrap; }
.gr-ph { width: 56px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; }
.gr-col { flex-direction: column; align-items: stretch; gap: 8px; }
.seg-s { margin: 0; }
.gr.is-danger .gr-t { color: var(--red); font-weight: 600; }
.sw { position: relative; width: 51px; height: 31px; flex: none; border-radius: 16px; background: #c9d2ce; transition: background .25s; }
.sw::before { content: ""; position: absolute; inset: -7px -4px; }
.sw i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.22); transition: transform .3s var(--spring); }
.sw[aria-checked="true"] { background: var(--green); }
.sw[aria-checked="true"] i { transform: translateX(20px); }
.ver { padding: 22px 16px 10px; text-align: center; font-size: 14px; color: var(--ink2); }

/* アプリについて */
.ab-head { display: flex; flex-direction: column; align-items: center; padding: 10px 16px 4px; text-align: center; }
.ab-ic { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 24px -10px rgba(7,61,46,.55); }
.ab-n { margin-top: 12px; font-size: 24px; font-weight: 700; }
.ab-s { font-size: 15px; color: var(--ink2); }
.ab-photo { margin: 18px 16px 14px; }
.ab-photo img { width: 100%; height: 170px; object-fit: cover; border-radius: 18px; }
.ab-sec { margin: 0 16px; padding: 16px; border-radius: 16px; background: var(--paper); }
.ab-disc { font-size: 15px; font-weight: 600; line-height: 1.75; }
.ab-p { margin-top: 8px; font-size: 14px; color: var(--ink2); line-height: 1.75; }
.ab-rules { padding: 4px 16px; }
.ab-r { padding: 10px 0; font-size: 15px; line-height: 1.7; border-bottom: 1px solid var(--line); }
.ab-r:last-child { border-bottom: 0; }
.ab-r b { color: var(--green-d); margin-right: 2px; }
.ab-tech li { padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.ab-tech li:last-child { border-bottom: 0; }
.ab-cta { width: calc(100% - 32px); margin: 22px 16px 0; }

/* ───── シート・アラート・トースト ───── */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(7,30,22,.36); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.sheet {
  position: absolute; z-index: 41; left: 8px; right: 8px; bottom: calc(var(--bot) + 8px); max-height: 86%; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 20px 22px; border-radius: 34px; background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(15,31,25,.1), 0 20px 50px rgba(7,30,22,.3);
  transform: translateY(115%); transition: transform .38s var(--ease);
}
.sheet.on { transform: none; }
.sh-grab { position: sticky; top: 0; height: 26px; display: grid; place-items: center; margin: 0 -20px; touch-action: none; cursor: grab; }
.sh-grab i { width: 40px; height: 5px; border-radius: 3px; background: #c2ccc7; }
.sh-t { font-size: 21px; font-weight: 700; line-height: 1.35; }
.sh-lead { margin: 6px 0 16px; font-size: 15px; color: var(--ink2); line-height: 1.7; }
.sh-note { margin-top: 12px; font-size: 14px; color: var(--ink2); line-height: 1.6; }
.sh-note.is-err { color: var(--red); font-weight: 600; }
.sheet .rs-chips { padding: 0; }
.sheet .ta { width: 100%; margin: 0; }
.sheet .fld-l { margin: 18px 0 8px; }
.sheet .fld-err { margin: 10px 0 0; }
.sheet .btn-pri { margin-top: 18px; }
.rs-head { display: flex; align-items: center; gap: 10px; color: var(--amber); }
.rs-head .ic { width: 26px; height: 26px; }
.rs-head.is-err { color: var(--red); }
.rs-head .sh-t { color: var(--ink); }
.opts { border-radius: 18px; background: var(--mist); overflow: hidden; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 16px; text-align: left; color: var(--ink); }
.opt + .opt::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.opt:active { background: #e6ece9; }
.opt-tx { flex: 1; display: flex; flex-direction: column; }
.opt-t { font-size: 16px; font-weight: 600; line-height: 1.45; }
.opt-d { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.opt-ck { color: var(--green); opacity: 0; }
.opt.is-on .opt-ck { opacity: 1; }
.opt-go { width: 18px; height: 18px; color: var(--ink3); }
.opt.is-dis { pointer-events: none; }
.opt.is-dis .opt-t { color: var(--ink2); }
.offs { display: grid; gap: 10px; }
.off { display: grid; grid-template-columns: 96px 1fr 24px; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); text-align: left; transition: transform .15s; }
.off:active { transform: scale(.98); }
.off img { width: 96px; height: 76px; object-fit: cover; border-radius: 12px; }
.off-tx { display: flex; flex-direction: column; min-width: 0; }
.off-n { font-size: 16px; font-weight: 700; }
.off-a { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.off-r { font-size: 14px; color: var(--green-d); font-weight: 600; }
.off-ck { color: var(--green); opacity: 0; }
.off.is-on { border-color: var(--green); background: #f4faf7; }
.off.is-on .off-ck { opacity: 1; }

.alert { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(7,30,22,.34); opacity: 0; transition: opacity .18s; }
.alert.on { opacity: 1; }
.al-card { width: 284px; border-radius: 24px; background: rgba(255,255,255,.97); text-align: center; overflow: hidden; transform: scale(1.08); transition: transform .25s var(--spring); }
.alert.on .al-card { transform: none; }
.al-t { padding: 20px 18px 0; font-size: 17px; font-weight: 700; line-height: 1.45; }
.al-b { padding: 6px 18px 18px; font-size: 14px; color: var(--ink2); line-height: 1.6; }
.al-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.al-btn { min-height: 50px; font-size: 17px; color: var(--green); }
.al-btn + .al-btn { border-left: 1px solid var(--line); }
.al-btn:active { background: var(--mist); }
.al-btn.is-strong { font-weight: 700; }
.al-btn.is-danger { color: var(--red); font-weight: 700; }

.toast {
  position: absolute; z-index: 30; left: 14px; right: 14px; bottom: calc(var(--bot) + var(--tabh) + 22px);
  display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 16px; border-radius: 18px;
  background: rgba(15,31,25,.94); color: #fff; font-size: 15px; line-height: 1.5;
  box-shadow: 0 12px 30px rgba(7,30,22,.3);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: none; pointer-events: auto; }
.toast-t { flex: 1; word-break: keep-all; }
.toast-t b { font-weight: 600; }
.toast-a { flex: none; min-height: 40px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.12); color: var(--mint); font-size: 15px; font-weight: 700; white-space: nowrap; }

/* ───── スプラッシュ・オンボーディング ───── */
.splash { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--paper); transition: opacity .3s; }
.splash img { width: 108px; height: 108px; border-radius: 25px; box-shadow: 0 18px 36px -14px rgba(7,61,46,.6); animation: pop .5s var(--spring) both; }
.sp-n { font-size: 20px; font-weight: 700; letter-spacing: .3em; color: var(--green-d); margin-right: -.3em; }
.splash.is-out { opacity: 0; }
@keyframes pop { from { transform: scale(.86); opacity: 0; } }
.onboard { position: absolute; inset: 0; z-index: 80; background: var(--paper); transition: opacity .3s; }
.onboard.is-out { opacity: 0; }
.ob-skip { position: absolute; z-index: 3; top: calc(var(--top) + 10px); right: 12px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 15px; font-weight: 600; }
.ob-s { position: absolute; inset: 0 0 112px; opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .45s var(--ease); pointer-events: none; }
.ob-s.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ob-s img { width: 100%; height: 54%; object-fit: cover; border-radius: 0 0 36px 36px; }
.ob-k { margin: 26px 28px 0; font-size: 15px; font-weight: 600; color: var(--green); }
.ob-t { margin: 4px 28px 0; font-size: 28px; font-weight: 700; line-height: 1.35; }
.ob-p { margin: 12px 28px 0; font-size: 16px; color: var(--ink2); line-height: 1.75; }
.ob-foot { position: absolute; left: 28px; right: 20px; bottom: calc(var(--bot) + 28px); display: flex; align-items: center; justify-content: space-between; }
.ob-dots { display: flex; gap: 6px; }
.ob-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.ob-dot.is-on { width: 24px; background: var(--green); }
.ob-next { min-height: 54px; min-width: 128px; padding: 0 28px; border-radius: 27px; background: var(--green); color: #fff; font-size: 17px; font-weight: 700; transition: transform .15s; }
.ob-next:active { transform: scale(.96); }

.nojs, .fatal { position: fixed; z-index: 100; inset: auto 16px 40%; padding: 20px; border-radius: 18px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.7; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.fatal-t { font-weight: 700; font-size: 17px; }
.fatal a { display: inline-block; margin-top: 8px; color: var(--green); font-weight: 700; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
