/* 高齢のお客さま対応記録の見た目
   土台は会社のホームページ（wiselabo-yokohama.com の css/style.css）の決まり：生成りの地・墨の字・オレンジ1色・細い線・M PLUS 1p と Inter・細い大見出し・うすい大きな英字
   このツールならではの形：受付簿（1本線の行と →）・提出箱（あと何日で空になるか）・承認のハンコ（朱の丸い印。紙の記録票に社長が押していた物）
   字は年配の方のスマホに合わせて、ホームページより大きく（本文17px・押す所48px以上）。数字の決まりは docs/01_画面の決まり.md */

:root {
  --ink: #1C1C1A; --ink2: #3C3C38; --gray: #888880; --gray-l: #C8C8C0; --line: #E4E0D8;
  --bg: #FAF8F5; --bg2: #F2EDE6; --card: #FFFFFF;
  --accent: #E8711A; --accent-ink: #B04E06; --accent-bg: #FCEBDD;
  --shu: #C8322B;                     /* ハンコの朱 */
  --ng: #B3261E; --ng-bg: #FBE9E7; --ok: #1F6B45; --ok-bg: #E6F2EA;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { font-family: 'M PLUS 1p', 'Inter', 'Hiragino Sans', sans-serif; font-weight: 400; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.7; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.en { font-family: 'Inter', 'M PLUS 1p', sans-serif; }
.num { font-family: 'Inter', 'M PLUS 1p', sans-serif; font-feature-settings: "tnum" 1; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 枠 ---------- */
.wrap { max-width: 680px; margin: 0 auto; padding: calc(8px + var(--safe-t)) 16px calc(120px + var(--safe-b)); position: relative; }
.wrap.wide { max-width: 1080px; }
@media (min-width: 900px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* 上の帯：名前（押すとホーム）と自分 */
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--line); margin: 0 -16px 0; padding: 0 16px; }
@media (min-width: 900px) { .bar { margin: 0 -32px; padding: 0 32px; } }
.bar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 1; min-width: 0; min-height: 48px; }
.bar .brand i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.bar .brand b { font-weight: 500; font-size: 17px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .me { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; cursor: pointer; font-size: 16px; white-space: nowrap; }
.menu { position: absolute; right: 16px; top: calc(64px + var(--safe-t)); z-index: 40; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(28,28,26,.14); min-width: 260px; padding: 6px 0; animation: drop .2s var(--ease) both; }
.menu p { padding: 10px 18px 8px; font-size: 15px; color: var(--ink2); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu a, .menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 18px; border: 0; background: none; text-decoration: none; font-size: 17px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg2); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ページの頭：小さな英字のしるし＋細い大見出し＋うすい大きな英字（ホームページの決まり） */
.head { position: relative; padding: 28px 0 18px; overflow: hidden; }
.head .ghost { position: absolute; right: -8px; top: 0; font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(72px, 22vw, 168px); line-height: .85; letter-spacing: -.05em; color: rgba(28,28,26,.045); pointer-events: none; user-select: none; white-space: nowrap; }
.eyebrow { font-family: 'Inter', 'M PLUS 1p', sans-serif; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); font-weight: 600; }
.head h1 { position: relative; font-size: 28px; font-weight: 300; line-height: 1.35; letter-spacing: -.01em; margin-top: 6px; }
.head .sub { position: relative; color: var(--ink2); font-size: 16px; margin-top: 6px; }
@media (min-width: 900px) { .head h1 { font-size: 36px; } }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-right: 12px; font-size: 16px; color: var(--ink2); text-decoration: none; border: 0; background: none; cursor: pointer; margin-top: 4px; }
.back::before { content: '←'; font-family: 'Inter', sans-serif; }

h2.sec { font-size: 20px; font-weight: 500; margin: 32px 0 4px; display: flex; align-items: baseline; gap: 10px; }
h2.sec small { font-size: 15px; font-weight: 400; color: var(--ink2); }
.note { font-size: 15px; color: var(--ink2); line-height: 1.7; }
.law { font-size: 14px; color: var(--gray); font-family: 'Inter', 'M PLUS 1p', sans-serif; letter-spacing: .04em; }

/* ---------- 受付簿の行（1本線＋→） ---------- */
.ledger { border-top: 1px solid var(--ink); margin-top: 8px; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 4px; min-height: 72px; border-bottom: 1px solid var(--line); text-decoration: none; cursor: pointer; background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; transition: background .15s, padding .2s var(--ease); }
.row:hover { background: rgba(242,237,230,.6); }
.row:active { background: var(--bg2); }
.row .go { font-family: 'Inter', sans-serif; font-size: 20px; color: var(--gray); transition: transform .2s var(--ease), color .2s; }
.row:hover .go { transform: translateX(4px); color: var(--accent); }
.row .t { font-size: 18px; font-weight: 500; line-height: 1.45; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row .m { font-size: 15px; color: var(--ink2); line-height: 1.55; grid-column: 1; }
.row .m span + span::before { content: '・'; color: var(--gray-l); }
.empty { padding: 22px 4px; color: var(--ink2); border-bottom: 1px solid var(--line); font-size: 16px; }

/* ホームの「やること」：大きな数字の行 */
.todo { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 0 12px; padding: 12px 4px; min-height: 80px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.todo:hover { background: rgba(242,237,230,.6); }
.todo .n { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -.03em; text-align: right; }
.todo.hot .n { color: var(--accent-ink); font-weight: 400; }
.todo.zero { opacity: .55; }
.todo .l { font-size: 18px; font-weight: 500; line-height: 1.4; }
.todo .l small { display: block; font-size: 15px; font-weight: 400; color: var(--ink2); }
.todo .go { font-family: 'Inter', sans-serif; font-size: 20px; color: var(--gray); }

/* ---------- 札（状態） ---------- */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 4px; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.tag.draft { border-color: var(--gray-l); color: var(--ink2); background: var(--card); }
.tag.submitted { background: var(--accent-bg); color: var(--accent-ink); }
.tag.returned { background: var(--ng-bg); color: var(--ng); }
.tag.approved { background: var(--card); color: var(--shu); border-color: var(--shu); }
.tag.box { background: var(--bg2); color: var(--ink2); }
.tag.done { background: var(--ok-bg); color: var(--ok); }

/* ---------- ボタン ---------- */
.btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 18px; font-weight: 500; letter-spacing: .02em; cursor: pointer; text-decoration: none; border-radius: 4px; transition: background .2s, transform .1s; }
.btn::after { content: '→'; font-family: 'Inter', sans-serif; font-weight: 400; transition: transform .2s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:hover { background: #33332F; }
.btn:active { transform: scale(.99); }
.btn.sub { background: var(--card); color: var(--ink); }
.btn.sub:hover { background: var(--bg2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: #C45C0E; }
.btn.plain::after, .btn.noarrow::after, .btn.prev::after { content: none; }
.btn.prev { justify-content: flex-start; }
.btn.prev::before { content: '←'; font-family: 'Inter', sans-serif; font-weight: 400; }
.btn.plain { justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn + .btn, .btns > * + * { margin-top: 10px; }
.btns { margin-top: 24px; }
.tbtn { min-height: 48px; padding: 0 6px; border: 0; background: none; font-size: 16px; color: var(--ink2); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.tbtn.ng { color: var(--ng); }
.tbtn:hover { color: var(--accent-ink); }

/* 下に付いて離れない主ボタン（スマホ。ホームバーの分あける） */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(250,248,245,.96); border-top: 1px solid var(--line); padding: 10px 16px calc(12px + var(--safe-b)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dock .in { max-width: 680px; margin: 0 auto; display: flex; gap: 10px; }
.dock .in > * { margin: 0 !important; }
.dock .btn.sub { flex: 0 0 34%; justify-content: center; }
.dock .btn.sub::after { content: none; }

/* ---------- 入力 ---------- */
.field { margin-top: 22px; }
.field > .lb { display: block; font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.field > .lb .opt { font-size: 14px; font-weight: 400; color: var(--ink2); margin-left: 8px; }
.field > .lb .req { font-size: 13px; font-weight: 500; color: var(--accent-ink); margin-left: 8px; }
.field .hint { font-size: 15px; color: var(--ink2); margin-top: 6px; }
.in-t, select.in-s, textarea.in-a { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--gray-l); background: var(--card); border-radius: 4px; font-size: 17px; outline: none; }
.in-t:focus, select.in-s:focus, textarea.in-a:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
textarea.in-a { min-height: 104px; line-height: 1.6; resize: vertical; }
select.in-s { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
/* iPhone の日付・時刻の欄が枠からはみ出す・低くなるのを防ぐ（有給申請アプリの globals.css と同じ対策） */
input[type="date"].in-t, input[type="time"].in-t { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; min-height: 1.6em; }
.cols { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
/* 生年月日：年は1行まるごと（和暦も読めるように）、月と日は下の行に並べる */
.cols3 { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.cols3 > :first-child { grid-column: 1 / -1; }
@media (min-width: 560px) { .cols3 { grid-template-columns: 2fr 1fr 1fr; } .cols3 > :first-child { grid-column: auto; } }
.err { color: var(--ng); font-size: 15px; margin-top: 6px; font-weight: 500; }
.err::before { content: '！ '; }

/* 札で選ぶ（プルダウンより速い。もう一度押すと外れる） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 48px; padding: 0 16px; border: 1px solid var(--gray-l); background: var(--card); border-radius: 6px; font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s, transform .08s; text-align: left; line-height: 1.35; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-bg); padding: 0 15px; font-weight: 500; }
.chip[aria-pressed="true"]::before { content: '✓'; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--accent-ink); }
.chips.block { display: grid; grid-template-columns: 1fr; }
.chips.block .chip { min-height: 56px; width: 100%; }
@media (min-width: 560px) { .chips.two { display: grid; grid-template-columns: 1fr 1fr; } .chips.two .chip { width: 100%; } }

/* 大きな選ぶ札（行った対応など） */
.pick { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: start; width: 100%; padding: 16px; border: 1px solid var(--gray-l); background: var(--card); border-radius: 6px; cursor: pointer; text-align: left; margin-top: 10px; transition: border-color .15s, background .15s; }
.pick .bx { grid-row: span 2; width: 32px; height: 32px; border: 2px solid var(--gray-l); border-radius: 4px; display: grid; place-items: center; font-family: 'Inter', sans-serif; font-weight: 700; color: transparent; margin-top: 2px; }
.pick b { font-size: 18px; font-weight: 500; }
.pick span { font-size: 15px; color: var(--ink2); line-height: 1.6; }
.pick[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-bg); padding: 15px; }
.pick[aria-pressed="true"] .bx { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick[disabled] { opacity: .5; cursor: not-allowed; }
.sub-box { border-left: 3px solid var(--accent); margin: 10px 0 0 16px; padding: 4px 0 8px 16px; }

/* 面談・同席の人の1枚 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin-top: 14px; }
.card .card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.card .card-h b { font-size: 18px; font-weight: 500; }
.card .card-h .num { font-size: 14px; color: var(--gray); letter-spacing: .15em; }

/* 判定の帯（申込日に満○歳） */
.judge { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--gray-l); background: var(--card); }
.judge .big { font-size: 22px; font-weight: 500; line-height: 1.45; }
.judge .big .num { font-size: 30px; font-weight: 600; margin: 0 2px; }
.judge p { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.judge.yes { border-left-color: var(--accent); background: var(--accent-bg); }
.judge.no { border-left-color: var(--gray); }

/* 進み具合（1 / 5） */
.steps { display: flex; gap: 4px; margin: 4px 0 14px; }
.steps i { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.steps i.on { background: var(--accent); }
.steps i.done { background: var(--ink); }

/* ---------- 記録の中身を読む画面 ---------- */
.kv { display: grid; grid-template-columns: 10em 1fr; gap: 0; border-top: 1px solid var(--line); }
.kv > dt, .kv > dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.kv > dt { color: var(--ink2); padding-right: 12px; }
.kv > dd { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 420px) { .kv { grid-template-columns: 1fr; } .kv > dt { border-bottom: 0; padding-bottom: 0; font-size: 14px; } }
.meas { display: grid; gap: 8px; margin-top: 8px; }
.meas .on { display: flex; gap: 10px; align-items: baseline; }
.meas .on::before { content: '✓'; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--accent-ink); }
.meas .off { color: var(--gray); }
.meas .off::before { content: '－ '; }
.hero-rec { position: relative; padding: 18px 0 8px; }
.hero-rec .who { font-size: 28px; font-weight: 300; line-height: 1.3; }
.hero-rec .who small { font-size: 16px; color: var(--ink2); margin-left: 8px; font-weight: 400; }
.hero-rec .facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 16px; color: var(--ink2); }
.hero-rec .facts b { color: var(--ink); font-weight: 500; }
.hero-rec .stamp { position: absolute; right: 0; top: 4px; }
.notice { margin-top: 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); font-size: 16px; }
.notice.ng { border-left-color: var(--ng); background: var(--ng-bg); }
.notice.ok { border-left-color: var(--ok); }
.notice b { font-weight: 500; }
.errs { margin-top: 10px; display: grid; gap: 6px; }
.errs button { text-align: left; border: 0; background: none; color: var(--ng); font-size: 16px; padding: 6px 0; cursor: pointer; display: flex; gap: 8px; min-height: 44px; align-items: center; }
.errs button::before { content: '！'; font-weight: 700; }
.errs button::after { content: '直す →'; margin-left: auto; color: var(--ink2); font-size: 15px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.timeline { margin-top: 8px; border-left: 1px solid var(--gray-l); padding-left: 16px; }
.timeline li { list-style: none; position: relative; padding: 6px 0; font-size: 15px; color: var(--ink2); }
.timeline li::before { content: ''; position: absolute; left: -21px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gray); }
.timeline li b { color: var(--ink); font-weight: 500; }
.timeline li .num { font-size: 14px; color: var(--gray); margin-right: 8px; }

/* 提出箱：あと何日で空になるか（1日＝1マス） */
.tray { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--bg2); font-size: 15px; color: var(--ink2); }
.tray .days { display: flex; gap: 3px; flex: none; }
.tray .days i { width: 10px; height: 18px; background: var(--ink); border-radius: 1px; }
.tray .days i.gone { background: var(--gray-l); }

/* ---------- ハンコ（承認の印。紙の記録票に社長が押していた朱の丸い印） ---------- */
.stamp { width: 92px; height: 92px; border: 2.5px solid var(--shu); border-radius: 50%; color: var(--shu); display: grid; grid-template-rows: 1fr auto 1fr; align-items: center; justify-items: center; transform: rotate(-9deg); font-family: 'M PLUS 1p', sans-serif; mix-blend-mode: multiply; opacity: .92; flex: none; }
.stamp .s1, .stamp .s3 { font-size: 15px; font-weight: 700; letter-spacing: .1em; line-height: 1; }
.stamp .s1 { align-self: end; padding-bottom: 3px; }
.stamp .s3 { align-self: start; padding-top: 3px; }
.stamp .s2 { width: 100%; border-top: 1.5px solid var(--shu); border-bottom: 1.5px solid var(--shu); text-align: center; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; line-height: 1.7; letter-spacing: .02em; }
.stamp.sm { width: 34px; height: 34px; border-width: 1.5px; display: inline-grid; place-items: center; grid-template-rows: none; font-size: 14px; font-weight: 700; transform: rotate(-9deg); }
.stamp.press { animation: press .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes press { 0% { transform: rotate(-9deg) scale(1.9); opacity: 0; } 55% { transform: rotate(-9deg) scale(.94); opacity: .95; } 100% { transform: rotate(-9deg) scale(1); opacity: .92; } }

/* ---------- 小窓・知らせ ---------- */
.veil { position: fixed; inset: 0; z-index: 60; background: rgba(28,28,26,.42); display: grid; place-items: center; padding: 24px; animation: fade .2s ease both; }
.modal { background: var(--card); width: min(100%, 480px); padding: 24px 22px 18px; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: pop .25s var(--ease) both; max-height: calc(100dvh - 48px); overflow: auto; }
.modal h3 { font-size: 21px; font-weight: 500; line-height: 1.45; }
.modal p { margin-top: 10px; font-size: 16px; color: var(--ink2); }
.done-veil { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(250,248,245,.9); animation: fade .2s ease both; }
.done-veil .in { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 24px; }
.done-veil .ck { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 46px; font-family: 'Inter', sans-serif; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-veil .stamp { width: 150px; height: 150px; border-width: 4px; }
.done-veil .stamp .s1, .done-veil .stamp .s3 { font-size: 24px; }
.done-veil .stamp .s2 { font-size: 20px; border-width: 2.5px; }
.done-veil b { font-size: 22px; font-weight: 500; }
.done-veil p { font-size: 16px; color: var(--ink2); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 80; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 4px; font-size: 16px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ログイン ---------- */
.gate { min-height: 100dvh; display: grid; align-content: center; max-width: 520px; margin: 0 auto; padding: 32px 20px calc(32px + var(--safe-b)); position: relative; overflow: hidden; }
.gate .ghost { position: absolute; left: -12px; top: 8vh; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 132px; letter-spacing: -.05em; line-height: .85; color: rgba(28,28,26,.05); pointer-events: none; }
.gate h1 { font-size: 32px; font-weight: 300; line-height: 1.35; margin: 10px 0 14px; position: relative; }
.gate p { color: var(--ink2); font-size: 16px; position: relative; }
.gate .btn { margin-top: 32px; }

/* ---------- 一覧の切りかえ（受付簿の見出しの段） ---------- */
.tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin-top: 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; min-height: 52px; display: flex; align-items: center; padding: 0 14px; text-decoration: none; font-size: 16px; color: var(--ink2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--accent); }
.tabs a .num { font-size: 14px; margin-left: 6px; color: var(--accent-ink); }

/* ---------- 管理 ---------- */
.adm-row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.adm-row .nm { font-size: 18px; font-weight: 500; }
.adm-row .nm small { display: block; font-size: 14px; color: var(--ink2); font-weight: 400; word-break: break-all; }
.adm-row.off { opacity: .55; }
@media (min-width: 900px) { .adm-row { grid-template-columns: 260px 1fr; align-items: center; } }
.dl { display: grid; gap: 10px; margin-top: 12px; }

/* 記録の画面：スマホは「名前と状態 → 操作 → 中身」、PC は2列（左に名前と中身、右に操作） */
.split .side .btns { margin-top: 18px; }
.smalls { display: grid; justify-items: start; margin-top: 8px; }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: 1fr 320px; column-gap: 48px; align-items: start; }
  .split > .top, .split > .main { grid-column: 1; }
  .split > .side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; padding-top: 18px; }
}
