/* CAMP おまかせデスクの画面の骨組み（K-84・K-99）。色・形・影は案ごとの theme-*.css の値（--で始まる名前）で決める。
   1 列の配置、大きなボタン、要点を先に、詳細は開いて見る。外部の CDN・フォントは使わない */
:root {
  --bg: #fff8ee; --bg-image: none; --card: #ffffff; --card-blur: none; --ink: #3a2a20; --muted: #85695a; --line: #f0dfcc;
  --accent: #d75a14; --accent-2: #f2a93b; --accent-ink: #ffffff; --accent-soft: #ffe9d8; --accent-grad: var(--accent);
  --ok: #2f8a4c; --ok-soft: #e2f4e6; --warn: #9a5b00; --warn-soft: #fff0d2; --bad: #c0362c; --bad-soft: #fde4e0; --info: #2d62b3; --info-soft: #e5eefc;
  --radius: 16px; --radius-sm: 12px; --pill: 14px; --border: 1px solid var(--line); --shadow: 0 4px 14px rgba(120, 70, 20, .08);
  --tile-shadow: var(--shadow); --tile-hover: translateY(-2px); --head-bg: rgba(255, 255, 255, .9); --nav-active: var(--accent-soft); --nav-active-ink: var(--accent);
  --bottom-bg: #ffffff; --bottom-ink: var(--muted); --bottom-active: var(--accent);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-head: var(--font); --weight-head: 700;
  --s1: #f07a2e; --s2: #e8578a; --s3: #e0a019; --s4: #4fa84a; --s5: #de4b3a; --s6: #3c8fdb;
  --s7: #8e62d3; --s8: #1f9e91; --s9: #f2668b; --s10: #5363d6; --s11: #b07a33; --s12: #2a98bd; --s-rec: #7a9a1e;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); background-image: var(--bg-image); background-attachment: fixed;
  color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; }
body.has-nav { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* アイコン */
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.mark { width: 34px; height: 34px; flex: none; }
.mark.big { width: 72px; height: 72px; }

/* 上部：ロゴマーク・名称・ナビ */
.app-head { position: sticky; top: 0; z-index: 20; background: var(--head-bg); border-bottom: var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.head-row { max-width: 1080px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.camp-logo { width: 36px; height: 36px; border-radius: 50%; flex: none; background: #fff; }
.brand-name { font-family: var(--font-head); font-weight: var(--weight-head); font-size: 17px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); white-space: nowrap; vertical-align: middle; }
.head-logout { margin: 0; }
.head-row > .brand { margin-right: auto; } /* 右の項目（経営分析・LIFE・ログアウト・総合ページへ）を右端に寄せて並べる */
/* 総合ページへ戻る（介護経営ライブラリーにそろえる。決裁の記録（133））：帯の右端。帯が狭い画面では、帯の上の白い段の右端 */
a.btn.btn-head { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex: none; min-height: 44px; margin: 0; padding: 8px 16px;
  background: #d8192b; color: #fff; border: 2px solid #d8192b; border-radius: 10px; font-size: 16px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  text-decoration: none; box-shadow: none; }
a.btn.btn-head:hover, a.btn.btn-head:focus-visible { background: #b81524; border-color: #b81524; color: #fff; }
.camp-top-bar { display: none; background: #fff; padding: 4px 12px; justify-content: flex-end; border-bottom: 1px solid #eee; }
@media (max-width: 1099px) { .camp-top-bar { display: flex; } .head-row a.head-top { display: none; } }
/* 提供記録の画面：「CAMP 総合ページへ」は見出しの帯の中に収める（上に 1 段を取らない。小濱、2026-11-09。決裁の記録（231））。狭い画面では「総合ページへ」と短くし、ロゴを外して名前を少し小さくする */
@media (max-width: 1099px) {
  body.day .camp-top-bar { display: none; }
  body.day .head-row a.head-top { display: inline-flex; min-height: 38px; padding: 4px 12px; font-size: 14px; }
}
body.day:has(.camp-top-bar) .head-row .brand { margin-right: auto; min-width: 0; }
body.day:has(.camp-top-bar) .head-row a.head-top { order: 2; }
body.day:has(.camp-top-bar) .head-row .head-logout { order: 3; }
@media (max-width: 560px) {
  body.day:has(.camp-top-bar) .head-row { gap: 6px; }
  body.day:has(.camp-top-bar) .camp-logo { display: none; }
  body.day:has(.camp-top-bar) .brand-name { font-size: 13px; min-width: 0; line-height: 1.25; white-space: normal; word-break: keep-all; }
  body.day:has(.camp-top-bar) .head-logout .icon-button { min-width: 40px; min-height: 40px; padding: 0 8px; }
  body.day:has(.camp-top-bar) .brand-tag { font-size: 11px; padding: 1px 6px; }
  body.day .head-row a.head-top { font-size: 0; padding: 4px 10px; min-height: 36px; }
  body.day .head-row a.head-top::after { content: "総合ページへ"; font-size: 12px; }
}
.head-camp { margin-left: auto; } /* CAMP 事務局へ（ログアウトの左に並べる） */
.icon-button { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 40px; margin: 0; padding: 6px 12px; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--muted); border: var(--border); border-radius: 999px; box-shadow: none; }
.icon-button:hover { color: var(--accent); }
.top-nav { display: none; }
.top-nav .nav-row { max-width: 1080px; margin: 0 auto; padding: 0 12px 8px; display: flex; gap: 4px; }
.top-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 15px; white-space: nowrap; }
.top-nav a .i { width: 19px; height: 19px; color: var(--muted); }
.top-nav a:hover, .top-nav a[aria-current="page"] { background: var(--nav-active); color: var(--nav-active-ink); }
.top-nav a[aria-current="page"] .i, .top-nav a:hover .i { color: var(--nav-active-ink); }
@media (min-width: 760px) {
  .top-nav { display: block; }
  body.has-nav { padding-bottom: 0; }
}
/* 収まらない項目は「その他」へ（幅 760〜959px は 6 つ、960〜1199px は 7 つ、1200px 以上は 9 つ） */
.top-nav details.more { position: relative; margin: 0; background: none; border: 0; box-shadow: none; flex: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top-nav details.more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 7px 12px; border-radius: 999px; font-weight: 400; font-size: 15px; color: var(--ink); white-space: nowrap; }
.top-nav details.more > summary::after { content: none; }
.top-nav details.more > summary .i { width: 19px; height: 19px; color: var(--muted); }
.top-nav details.more[open] > summary, .top-nav details.more > summary:hover { background: var(--nav-active); color: var(--nav-active-ink); }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 8px; display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(40, 60, 100, .18); }
.more-menu a { display: flex; }
.top-nav .nav-row > a:nth-of-type(n+7), .more-menu a:nth-of-type(-n+6) { display: none; }
.top-nav.fits-6 details.more { display: none; }
@media (min-width: 960px) {
  .top-nav .nav-row > a:nth-of-type(n+7):nth-of-type(-n+7) { display: inline-flex; }
  .more-menu a:nth-of-type(-n+7) { display: none; }
  .top-nav.fits-7 details.more { display: none; }
}
@media (min-width: 1200px) {
  .top-nav .nav-row > a:nth-of-type(n+7):nth-of-type(-n+9) { display: inline-flex; }
  .more-menu a:nth-of-type(-n+9) { display: none; }
  .top-nav.fits-9 details.more { display: none; }
}
@media (max-width: 420px) { .icon-button span { display: none; } .brand-name { font-size: 16px; } }

/* 下部に固定するナビ（スマートフォン） */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bottom-bg); border-top: var(--border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; text-decoration: none; color: var(--bottom-ink); font-size: 12px; font-weight: 600; }
.bottom-nav a .i { width: 24px; height: 24px; }
.bottom-nav a[aria-current="page"] { color: var(--bottom-active); background: var(--nav-active); }
@media (min-width: 760px) { .bottom-nav { display: none; } }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px 64px; }
body.has-nav main { max-width: 1000px; }
h1 { font-family: var(--font-head); font-weight: var(--weight-head); font-size: 24px; margin: 8px 0 14px; line-height: 1.4; }
h2 { font-family: var(--font-head); font-weight: var(--weight-head); font-size: 19px; margin: 28px 0 10px; }
h3 { font-size: 16px; margin: 20px 0 8px; }
p { margin: 8px 0; }
.hello { font-size: 18px; margin: 0 0 14px; }
.lead { font-size: 17px; }
.muted, small { color: var(--muted); }
.center { text-align: center; }
.small-note { font-size: 13px; margin-top: 24px; }

/* 件数のカード（押すとその画面へ） */
.callouts { display: grid; gap: 10px; margin: 0 0 8px; }
@media (min-width: 760px) { .callouts { grid-template-columns: 1fr 1fr; } }
.callout { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 16px;
  background: var(--info-soft); color: var(--info); border: var(--border); box-shadow: var(--shadow); margin: 0 0 10px; }
.callouts .callout { margin: 0; }
.callout > span { flex: 1; }
.callout .i { width: 26px; height: 26px; }
.callout .go { width: 20px; height: 20px; opacity: .7; }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.bad { background: var(--bad-soft); color: var(--bad); }
.callout.ok, .callout.calm { background: var(--ok-soft); color: var(--ok); }
a.callout:hover { transform: var(--tile-hover); }

/* メニューのタイル（スマートフォン 2 列、パソコン 3〜4 列） */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { --c: var(--s1); position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 128px; padding: 16px 14px 14px; text-decoration: none; color: var(--ink);
  background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--tile-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: var(--tile-hover); }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 6px;
  background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); }
.tile-icon .i { width: 28px; height: 28px; }
.tile-name { font-family: var(--font-head); font-weight: var(--weight-head); font-size: 17px; line-height: 1.35; }
.tile-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tile .count { position: absolute; top: 10px; right: 10px; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; background: var(--bad); color: #fff; box-shadow: 0 0 0 3px var(--card); }
.tile.has-count { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent), var(--tile-shadow); }
.tile.has-count .count { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 86%, 100% { transform: scale(1); } 92% { transform: scale(1.18); } }
.tiles.big { grid-template-columns: 1fr; }
/* アイコンの右に見出し、見出しの下に説明（決裁の記録（152））。件数の印はカードの右上で、見出しと説明の右を空ける */
.tiles.big .tile { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-content: center; align-items: center; min-height: 96px; gap: 4px 16px; padding: 18px; }
.tiles.big .tile-icon { grid-row: 1 / span 2; width: 60px; height: 60px; margin: 0; border-radius: 18px; }
.tiles.big .tile-icon .i { width: 34px; height: 34px; }
.tiles.big .tile-name { grid-column: 2; font-size: 21px; }
.tiles.big .tile-desc { grid-column: 2; font-size: 14px; overflow-wrap: anywhere; }
.tiles.big .tile.hero { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; }
.tiles.big .tile.hero .tile-icon { background: rgba(255, 255, 255, .24); color: var(--accent-ink); }
.tiles.big .tile.hero .tile-desc { color: var(--accent-ink); opacity: .92; }
@media (min-width: 760px) {
  .tiles.big { grid-template-columns: 1.3fr 1fr 1fr; }
  .tiles.big .tile { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; min-height: 190px; }
  .tiles.big .tile-icon { grid-row: auto; margin-bottom: 6px; }
  .tiles.big .tile-name, .tiles.big .tile-desc { grid-column: 1; }
}
.c1 { --c: var(--s1); } .c2 { --c: var(--s2); } .c3 { --c: var(--s3); } .c4 { --c: var(--s4); } .c5 { --c: var(--s5); } .c6 { --c: var(--s6); }
.c7 { --c: var(--s7); } .c8 { --c: var(--s8); } .c9 { --c: var(--s9); } .c10 { --c: var(--s10); } .c11 { --c: var(--s11); } .c12 { --c: var(--s12); }

/* 12 のサービス：色とアイコン */
.s1 { --c: var(--s1); } .s2 { --c: var(--s2); } .s3 { --c: var(--s3); } .s4 { --c: var(--s4); } .s5 { --c: var(--s5); } .s6 { --c: var(--s6); }
.s7 { --c: var(--s7); } .s8 { --c: var(--s8); } .s9 { --c: var(--s9); } .s10 { --c: var(--s10); } .s11 { --c: var(--s11); } .s12 { --c: var(--s12); }
.srec { --c: var(--s-rec); } /* 記録の作成（ほかの 12 色と重ならない黄緑。決裁の記録（189）） */
.svc { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px 1px 6px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--c, var(--muted)) 14%, #fff); color: color-mix(in srgb, var(--c, var(--muted)) 78%, #000); vertical-align: middle; }
.svc .i { width: 17px; height: 17px; }
.svc-grid { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: var(--shadow); }
.svc-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--c); color: #fff; }
.svc-icon .i { width: 22px; height: 22px; }

/* 承認・完了の一言（短い動き） */
.cheer { position: fixed; z-index: 50; left: 50%; top: 18px; display: flex; align-items: center; gap: 10px; padding: 12px 22px 12px 14px; border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); border: var(--border);
  transform: translate(-50%, -24px) scale(.85); opacity: 0; animation: cheer-in .5s cubic-bezier(.2, 1.5, .4, 1) .05s forwards, cheer-out .5s ease 3.2s forwards; pointer-events: none; }
.cheer b { font-family: var(--font-head); font-weight: 800; }
.cheer-check { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ok); }
.cheer-check svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; animation: draw .45s ease .35s forwards; }
.burst { position: absolute; left: 32px; top: 50%; width: 0; height: 0; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--s1); opacity: 0; animation: pop .8s ease-out .3s forwards; }
.burst i:nth-child(2) { background: var(--s2); --dx: 34px; --dy: -30px; } .burst i:nth-child(3) { background: var(--s3); --dx: -30px; --dy: -26px; }
.burst i:nth-child(4) { background: var(--s4); --dx: 40px; --dy: 18px; } .burst i:nth-child(5) { background: var(--s6); --dx: -36px; --dy: 22px; }
.burst i:nth-child(6) { background: var(--s7); --dx: 6px; --dy: -42px; } .burst i:nth-child(7) { background: var(--s8); --dx: -8px; --dy: 40px; }
.burst i:nth-child(1) { --dx: 46px; --dy: -6px; } .burst i:nth-child(8) { background: var(--s9); --dx: -46px; --dy: -4px; border-radius: 2px; }
@keyframes cheer-in { to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
@keyframes cheer-out { to { transform: translate(-50%, -16px) scale(.95); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx, 30px), var(--dy, -30px)) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .cheer { animation: none; opacity: 1; transform: translate(-50%, 0); } .cheer-check svg { animation: none; stroke-dashoffset: 0; } .burst { display: none; }
  .tile.has-count .count { animation: none; } .tile, .callout { transition: none; }
}

/* ログインの画面 */
.welcome { text-align: center; padding: 18px 0 6px; }
.welcome-logos { display: flex; justify-content: center; align-items: center; gap: 14px; }
.welcome .camp-logo { width: 72px; height: 72px; box-shadow: var(--shadow); }
.welcome-name { font-family: var(--font-head); font-weight: 800; font-size: 26px; margin: 12px 0 2px; letter-spacing: .03em; }
.welcome-lead { color: var(--muted); margin: 0 0 8px; }


/* 空の画面 */
.empty { text-align: center; padding: 28px 16px; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); }
.empty-icon .i { width: 40px; height: 40px; }
.empty .button { max-width: 360px; }

/* 一覧（カード型） */
.list.cards { display: grid; gap: 10px; }
.list.cards > li.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.item-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.item.done .item-icon { background: var(--ok-soft); color: var(--ok); }
.item-main { flex: 1; display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
/* 受け取るの行（決裁の記録（142））：置いたファイル名と長さ。押す所は 44px 以上。狭い画面では右の部分を下の段にする */
.item-main small.put { font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; word-break: break-all; }
.item-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; max-width: 46%; }
.item-act .badge { white-space: normal; text-align: right; }
.item-act a.button.small, .item-act button.small { min-height: 44px; font-size: 16px; white-space: nowrap; }
.item-act details.withdraw { background: none; border: 0; box-shadow: none; margin: 0; text-align: right; }
.item-act details.withdraw > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 400; color: var(--muted); text-decoration: underline; }
.item-act details.withdraw > summary::after { content: none; }
.item-act details.withdraw p { margin: 0 0 6px; }
.item-act form { margin: 0; }
.item-act .stop-why { display: block; font-size: 14px; color: var(--muted); text-align: right; } /* 仕組みの側で止まった理由（決裁の記録（312）） */
.roster-list .item { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; padding: 10px 0; } .roster-list .item-main { flex: 1; min-width: 0; } .roster-list .item-act { flex: none; flex-basis: auto; width: auto; margin-left: auto; } /* 名簿の行：消すは右（決裁の記録（312）） */
@media (max-width: 560px) {
  .list.cards > li.item { flex-wrap: wrap; min-width: 0; }
  .item-main { flex: 1 1 0; }
  .item-act details.withdraw { flex-basis: 100%; }
  .item-act { flex-basis: 100%; max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
  .item-act .badge { margin-right: auto; text-align: left; }
}

/* これまでの部品 */
.card { background: var(--card); border: var(--border); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--shadow); -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur); }
.card > :first-child { margin-top: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--info-soft); color: var(--info); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.item-main small.purge { color: var(--warn); font-weight: 700; } /* 保存期間の削除の予定（規約 第7条） */
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.list > li:last-child { border-bottom: 0; }
.list.card > li { padding: 12px 0; }
.list.cards > li { border-bottom: 0; }
.list a.row, .list li.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: var(--border); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 14px; }
details { background: var(--card); border: var(--border); border-radius: var(--radius); margin: 12px 0; box-shadow: var(--shadow); }
details > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; min-height: 48px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "＋"; float: right; color: var(--muted); }
details[open] > summary::after { content: "－"; }
details > .body { padding: 0 16px 16px; }
form { margin: 0; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
label.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--accent); }
fieldset.checks { border: 0; padding: 12px 14px; margin: 16px 0 0; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
fieldset.checks legend { font-weight: 700; padding: 0; float: left; width: 100%; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=search], input[type=date], input[type=month], input[type=number], input[type=time], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=file] { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 14px; }
textarea { min-height: 110px; }
label.drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-soft) 50%, #fff); color: var(--ink); cursor: pointer; }
label.drop > .i { width: 32px; height: 32px; color: var(--accent); }
label.drop > span { display: flex; flex-direction: column; line-height: 1.4; }
label.drop small { font-weight: 400; }
label.drop input[type=file] { flex-basis: 100%; margin: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin: 16px 0 4px;
  font: inherit; font-weight: 800; font-size: 17px; border: 0; border-radius: var(--pill); padding: 12px 20px; cursor: pointer; text-decoration: none;
  background: var(--accent-grad); color: var(--accent-ink); box-shadow: var(--button-shadow, 0 4px 0 color-mix(in srgb, var(--accent) 70%, #000)); transition: transform .1s; }
button:active, .button:active { transform: translateY(2px); }
button .i, .button .i { width: 22px; height: 22px; }
button.secondary, .button.secondary { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
button.danger { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
button.small, .button.small { width: auto; min-height: 40px; font-size: 15px; padding: 6px 14px; margin: 0; }
.actions { display: grid; gap: 8px; }
.notice, [role=status] { background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-sm); padding: 12px 14px; }
.cheer[role=status] { background: var(--card); color: var(--ink); padding: 12px 22px 12px 14px; border-radius: 999px; }
[role=alert] { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius-sm); padding: 12px 14px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: 15px; border-radius: var(--radius-sm); }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 700; white-space: nowrap; }
table[border] { border: 1px solid var(--line); }
mark { background: var(--warn-soft); color: var(--warn); padding: 0 2px; border-radius: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.inline-form { display: inline; }
@media (min-width: 640px) { .actions.two { grid-template-columns: 1fr 1fr; } }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card.login-card { max-width: 440px; margin: 16px auto; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row input { margin-top: 0; flex: 1; }
.search-row button { flex: none; }
.card-title { margin-top: 0; }
.corp-row { flex-wrap: wrap; }
.corp-act { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 認証アプリの登録：サーバーで作った QR コード（SVG）と、見分けやすい書体のキー */
.mfa-setup ol { padding-left: 1.4em; }
.mfa-setup li { margin-bottom: 14px; }
.qr-box { margin: 10px 0; padding: 8px; background: #fff; display: inline-block; border: 1px solid var(--line, #ddd); border-radius: 8px; }
.qr-box svg { display: block; width: 240px; height: 240px; max-width: 70vw; max-height: 70vw; }
.secret-key { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace; font-size: 20px; font-weight: 600;
  letter-spacing: .12em; font-variant-ligatures: none; overflow-wrap: anywhere; margin: 8px 0; padding: 8px 10px; background: var(--bg); border-radius: 6px; }

/* 送る前の確認（決裁の記録（26））：置き換えた氏名・取り除いた番号・氏名らしいのに置き換えていない語 */
.mask-review { margin: 12px 0; }
.masked-text { white-space: pre-wrap; max-height: 420px; overflow: auto; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); line-height: 1.9; font-size: 15px; }
mark.m-name { background: #d8ecff; color: #123a63; border-radius: 4px; padding: 0 2px; }
mark.m-contact { background: #dff3e4; color: #1d4d2b; border-radius: 4px; padding: 0 2px; }
mark.m-num { background: #f3e3ff; color: #4b1d6b; border-radius: 4px; padding: 0 2px; } /* 数値：文字起こしの聞き違いを見つけやすく（決裁の記録（85）） */
mark.m-del { background: #e8e8e8; color: #444; border-radius: 4px; padding: 0 2px; }
mark.m-suspect { background: #ffe066; color: #5a3d00; border-radius: 4px; padding: 0 2px; outline: 1px solid #e0a800; }
.mask-file .flag { color: #a35a00; font-weight: 600; }

/* 顧客のポータル：記録の作成（決裁の記録（33）） */
.request-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.request-form legend { font-weight: 700; margin-bottom: 8px; }
.svc-option { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.svc-option.on, .svc-option:has(input:checked) { border-color: var(--c1, #2a9d8f); }
.svc-option small, .form-option small { display: block; color: var(--muted); font-weight: 400; }
.soon summary { color: var(--muted); font-size: 14px; margin-top: 8px; }
.svc-grid.small .svc-card { opacity: .6; }
.form-pick { display: grid; gap: 8px; margin-bottom: 8px; }
.form-option { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.form-option:has(input:checked) { border-color: var(--c1, #2a9d8f); }
.small { font-size: 13px; }
.draft-card h2 { margin: 0 0 4px; }
.sheet { margin: 12px 0; background: #f4f1ec; padding: 10px; border-radius: var(--radius-sm); text-align: center; }
.sheet img { max-width: 100%; height: auto; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: #fff; }
.draft-values { display: grid; grid-template-columns: minmax(7em, 30%) 1fr; gap: 8px 14px; margin: 10px 0; }
.draft-values dt { color: var(--muted); font-size: 14px; }
.draft-values dd { margin: 0; }
.draft-values .quote { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
button.big { width: 100%; font-size: 18px; padding: 14px; margin: 10px 0; }
.revise { margin-top: 6px; }
@media (max-width: 560px) { .draft-values { grid-template-columns: 1fr; } .draft-values dt { margin-top: 6px; } }
.count-big { font-size: 34px; font-weight: 800; line-height: 1.1; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.request-form fieldset.checks { padding: 12px 14px; }
.request-form fieldset.checks legend { float: none; }
/* 件数の印が説明の文字に重ならないよう、印の分だけ右を空ける（顧客の画面の確認、2026-10-29） */
.tile.has-count .tile-name, .tile.has-count .tile-desc { padding-right: 44px; }
@media (min-width: 760px) { .tiles.big .tile.has-count .tile-name, .tiles.big .tile.has-count .tile-desc { padding-right: 0; } } /* 印はアイコンの段にあり、見出しと説明に届かない */

/* 顧客のポータル：文書のサービス（決裁の記録（41））。選んだサービスの入力だけを出す */
.svc-options { display: grid; gap: 8px; }
@media (min-width: 720px) { .svc-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.request-form fieldset.for { display: none; }
.request-form:has(input[name="service"][value="record"]:checked) fieldset.for[data-for~="record"],
.request-form:has(input[name="service"][value="1"]:checked) fieldset.for[data-for~="1"],
.request-form:has(input[name="service"][value="2"]:checked) fieldset.for[data-for~="2"],
.request-form:has(input[name="service"][value="3"]:checked) fieldset.for[data-for~="3"],
.request-form:has(input[name="service"][value="4"]:checked) fieldset.for[data-for~="4"],
.request-form:has(input[name="service"][value="5"]:checked) fieldset.for[data-for~="5"],
.request-form:has(input[name="service"][value="6"]:checked) fieldset.for[data-for~="6"],
.request-form:has(input[name="service"][value="7"]:checked) fieldset.for[data-for~="7"],
.request-form:has(input[name="service"][value="8"]:checked) fieldset.for[data-for~="8"],
.request-form:has(input[name="service"][value="9"]:checked) fieldset.for[data-for~="9"],
.request-form:has(input[name="service"][value="11"]:checked) fieldset.for[data-for~="11"],
.request-form:has(input[name="service"][value="12"]:checked) fieldset.for[data-for~="12"] { display: block; }
.request-form:has(input[name="service"][value="12"]:checked) fieldset.materials { display: none; }
.file-error { color: var(--danger, #b42318); font-size: 13px; margin: 4px 0 8px; }
/* 音声入力（決裁の記録（112）（123））：話して入れる・まとめて話す。振り分けで入れた欄は色、話していない必須の欄は赤い枠 */
.dictate, .dictate-fill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.voice-filled { background: #fff8db; }
.voice-missing { outline: 2px solid var(--danger, #b42318); }
.voice-ok { font-size: 13px; margin-top: 2px; }
.voice-other { margin: 2px 0 6px; color: #444; }
.photo-row { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 8px; }
.photo-slot { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 8px; }
p.photo-slot { border: 0; color: var(--muted); font-size: 13px; }
.request-form fieldset.for label:not(.check) { display: block; margin-bottom: 8px; }
/* ホームページ：その他の種類の欄と、老健・介護医療院の許可の欄は、その種類を選んだときだけ出す（決裁の記録（66））。上の label の display より後に置く */
.request-form fieldset.for label.other-type, .request-form .ad-rules { display: none; }
.request-form:has(input[name="service_types[]"][value="other"]:checked) fieldset.for label.other-type { display: block; }
.request-form:has(input[name="service_types[]"][value="52"]:checked) .ad-rules,
.request-form:has(input[name="service_types[]"][value="22"]:checked) .ad-rules,
.request-form:has(input[name="service_types[]"][value="55"]:checked) .ad-rules,
.request-form:has(input[name="service_types[]"][value="2A"]:checked) .ad-rules { display: block; }
/* ホームページの更新：「今のホームページを直す」を選んだときだけ、今のページを置く欄を出す（決裁の記録（79）） */
.request-form fieldset.for label.site-file { display: none; }
.request-form:has(input[name="mode"][value="update"]:checked) fieldset.for label.site-file { display: block; }
.hp-mode { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.work-doc { border: var(--border); border-radius: var(--radius-sm); background: #fff; padding: 14px 16px; margin: 10px 0; overflow-x: auto; }
.work-doc h1 { font-size: 18px; margin: 0 0 8px; }
.work-doc h2 { font-size: 16px; margin: 14px 0 6px; }
.work-doc h3 { font-size: 15px; margin: 10px 0 4px; }
.work-doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.work-doc th, .work-doc td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; }
.work-doc th { background: #faf5ec; }
.checks-note { border-left: 4px solid #e0a800; background: #fff8e1; padding: 10px 12px; border-radius: 6px; margin: 10px 0; font-size: 14px; }
.checks-note ul { margin: 4px 0 0; padding-left: 18px; }
.seg-table td.flag { background: #fff3cd; }
.file-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* サービス 8：老健・介護医療院を選んだときだけ、広告の制限の欄を出す */
.request-form .ad-rules { display: none; border-left: 4px solid #e0a800; padding: 6px 10px; margin: 8px 0; }
.request-form:has(input[name="facility_type"][value="rouken"]:checked) .ad-rules,
.request-form:has(input[name="facility_type"][value="iryoin"]:checked) .ad-rules { display: block; }

/* ホームページの途中の確認（決裁の記録（66）5）：ページの一覧と、ページを出す枠 */
.preview-pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.preview-pages a { padding: 4px 10px; border: var(--border); border-radius: var(--radius-sm); text-decoration: none; }
.preview-pages a[aria-current="page"] { background: var(--line); font-weight: bold; }
.preview-frame { width: 100%; height: 70vh; min-height: 420px; border: var(--border); border-radius: var(--radius-sm); background: #fff; }

/* デイサービス日報（決裁の記録（146））：スマートフォンは縦の 1 列、タブレットは 2 列。ボタンの高さ 48px 以上、文字 16px 以上 */
.day-back { margin: 4px 0 8px; }
.day-back a { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; color: var(--accent); text-decoration: none; font-weight: 700; }
.day-sub { margin: 0 0 12px; font-size: 16px; color: var(--muted); }
.day-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.day-soon { opacity: .55; }
.day-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.day-list.plain { gap: 0; }
.day-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 16px; background: var(--card); border: var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.day-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.day-row-main b { font-size: 18px; }
.day-row-main small { font-size: 16px; color: var(--muted); }
.day-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.day-tags .badge { font-size: 16px; }
.day-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.day-line:last-child { border-bottom: 0; }
.day-line button.small { min-height: 48px; font-size: 16px; }
.day-form { display: grid; gap: 4px 16px; grid-template-columns: minmax(0, 1fr); }
.day-form > label, .day-form > div, .day-form > fieldset { min-width: 0; }
/* 日付の欄：iPhone の Safari は日付の欄を中の文字の幅より狭くしないため、カードの右からはみ出す。ほかの欄と同じ幅に収める（日報の画面だけ） */
body.day input[type=date], body.day input[type=month] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; text-align: left; }
body.day input[type=date]::-webkit-date-and-time-value, body.day input[type=month]::-webkit-date-and-time-value { text-align: left; margin: 0; }
body.day input[type=date]::-webkit-datetime-edit, body.day input[type=month]::-webkit-datetime-edit { padding: 0; }
.day-form label { font-size: 16px; }
.day-form small { display: block; font-weight: 400; font-size: 16px; }
.day-chips { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.day-chips legend { font-weight: 700; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.day-chips label { margin: 0; flex: 0 0 auto; }
.day-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-chips span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 8px 16px; border-radius: var(--pill); border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.day-chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-chips input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.day-terms { max-height: 50vh; overflow-y: auto; padding: 12px 14px; margin: 12px 0; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
/* 規約の本文の題と条の見出し（決裁の記録（270）） */
.day-terms .day-terms-title { font-size: 18px; margin: 4px 0 10px; }
.day-terms .day-terms-head { font-size: 16px; margin: 16px 0 6px; }
.day-terms p { margin: 0 0 8px; line-height: 1.7; }
/* 規約の変更の前もっての知らせ：狭い画面ではリンクを文の下の行に出す（決裁の記録（270）） */
@media (max-width: 759px) { .day-terms-next { display: block; } .day-terms-next a { display: block; margin-top: 8px; } }
.day-addon { border-bottom: 1px solid var(--line); padding: 4px 0 10px; }
.day-addon label.check { min-height: 48px; align-items: center; margin: 4px 0; }
.day-addon-date { font-size: 16px; font-weight: 400; margin: 0; color: var(--muted); }
.day-addon:not(:has(input[type=checkbox]:checked)) .day-addon-date { display: none; }
.day-vehicle { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.day-vehicle:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.day-vehicle label:first-of-type { grid-column: 1 / -1; }
.day-vehicle button { margin: 12px 0 0; min-height: 48px; }
.day-vehicle:last-child button { grid-column: 1 / -1; }
.day-limit { border: 0; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; min-width: 0; }
.day-limit legend { font-weight: 700; padding: 0; float: left; width: 100%; grid-column: 1 / -1; }
.day-limit label { font-weight: 400; margin: 6px 0 0; }
.day-sections { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.day-sections .card { scroll-margin-top: 72px; }
.day-sections h3 { margin: 0 0 8px; }
/* デイサービス日報 段階4：①今日・②日報（決裁の記録（202））。スマホは縦 1 列、タブレットは 2 列。ボタン 48px 以上、文字 16px 以上 */
.day-record [hidden], .day-today [hidden] { display: none !important; }
.day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.day-head .day-sub { margin: 0; }
a.button.day-admin-link { background: var(--accent); color: var(--accent-ink); box-shadow: var(--button-shadow); }
/* 日報の画面のスマホ：見出しの「CAMP おまかせデスク」が切れないよう、芽の印を外して文字を少し小さくする（ほかの画面は変えない） */
/* 見出しの左のマークは CAMP のマーク 1 つ（提供記録の画面：bpo の日報と kiroku。若葉のマークはおまかせデスクのもの。決裁の記録（221）） */
body.day .head-row .mark, body.kiroku .head-row .mark { display: none; }
@media (max-width: 420px) { body.day .brand-name { font-size: 15px; overflow: visible; text-overflow: clip; } body.day .head-row { gap: 8px; } }
@media (max-width: 380px) { body.day .brand { gap: 6px; } body.day .brand-name { font-size: 14px; letter-spacing: 0; } body.day .brand-tag { margin-left: 2px; padding: 0 6px; font-size: 11px; } body.day .camp-logo { width: 32px; height: 32px; } }
@media (max-width: 340px) { body.day .head-row .camp-logo { display: none; } body.day .brand-name { font-size: 13px; } body.day .head-row { padding: 8px 12px; } }
#attend .day-chips:first-child { margin-top: 0; }
.day-head .button { width: auto; min-height: 48px; margin: 0; }
/* ①今日の「ほかの人を探す」（決裁の記録（222））。欄とボタンを横に並べ、結果は名前と押す所を横に */
.day-find { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 12px; }
.day-find label { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; }
.day-find .button, .day-find button { width: auto; flex: none; min-height: 50px; margin: 0; }
.day-found .day-list { margin: 0; }
.day-nowrap { white-space: nowrap; }
/* いつもの送迎表（段階5 便 1。決裁の記録（227））。曜日のタブは 7 つ。並べ替えは上下のボタン（スマホでも押しやすく） */
.day-tabs.day-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day-tabs.day-week a { padding-left: 0; padding-right: 0; }
/* 送迎表（車ごと。決裁の記録（229）（230））：上に車のカード、下に利用者の一覧。選ぶと下に車のボタンの帯 */
.rm-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.rm-right { margin-left: auto; display: flex; gap: 8px; }
.rm-right .button { margin: 0; }
.rm-seg { display: inline-flex; border: 2px solid var(--accent); border-radius: 999px; overflow: hidden; }
.rm-seg a { padding: 8px 22px; font-weight: 700; text-decoration: none; color: var(--accent); }
.rm-seg a[aria-current] { background: var(--accent); color: #fff; }
.rm-note { font-size: 14px; font-weight: 400; margin: 8px 0; }
.rm-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 14px; }
@media (max-width: 520px) { .rm-cars { grid-template-columns: 1fr 1fr; gap: 8px; } }
.rm-car { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); }
.rm-car b { font-size: 17px; }
.rm-car .rm-n { font-size: 22px; font-weight: 800; line-height: 1.1; }
.rm-car .rm-n small { font-size: 15px; font-weight: 700; color: inherit; }
.rm-car .rm-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
.rm-car.over { border-color: var(--bad); background: var(--bad-soft); }
.rm-car.over .rm-n, .rm-red { color: var(--bad); font-weight: 800; }
.rm-car.wait { border-style: dashed; background: rgba(255, 255, 255, .55); }
.rm-car.sel { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.rm-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 4px; }
.rm-filter a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; background: rgba(255, 255, 255, .7); color: var(--ink); border: 1px solid var(--line); font-size: 15px; }
.rm-filter a[aria-current] { background: var(--ink); color: #fff; }
.rm-filter input[type=search] { flex: 1 1 160px; min-width: 0; margin: 0; padding: 8px 12px; font-size: 16px; }
.rm-all { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-weight: 700; border-bottom: 2px solid var(--line); margin: 0; }
.rm-all input, .rm-list input[type=checkbox] { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--accent); }
.rm-list { list-style: none; padding: 0; margin: 0; }
.rm-list li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.rm-list li[hidden] { display: none; }
.rm-who { flex: 1; min-width: 0; }
.rm-who b { font-size: 17px; }
.rm-who small { display: block; font-size: 13px; }
.rm-who .badge { display: inline-block; width: auto; }
.rm-chip { flex: none; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.rm-diff { flex: none; font-size: 13px; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rm-bar { display: none; position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 15; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
form:has(.rm-list input:checked) .rm-bar, .rm-bar.show { display: block; }
@media (min-width: 760px) { .rm-bar { bottom: 12px; } }
.rm-bar p { margin: 0 0 8px; font-weight: 700; }
.rm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-btns button { width: auto; margin: 0; min-height: 46px; padding: 6px 16px; font-size: 16px; }
.rm-btns button.secondary { background: #fff; color: var(--ink); }
.rm-btns button.over { background: var(--bad); }
.rm-panel { border: 2px solid var(--accent); }
.rm-panel h3 { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.rm-spec { font-size: 15px; font-weight: 400; padding-top: 8px; }
.rm-pop > summary { list-style: none; cursor: pointer; min-height: 0; padding: 4px 14px; background: var(--accent-soft); box-shadow: none; border: 0; }
.rm-pop > summary::after, .rs-pop > summary::after, details.rm-pop[open] > summary::after, details.rs-pop[open] > summary::after { content: none; }
details.rm-pop, details.rs-pop { background: none; border: 0; border-radius: 0; margin: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.rs-pop { position: relative; }
.rm-pop > summary::-webkit-details-marker { display: none; }
.rm-namebtn { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 20px; background: var(--accent-soft); color: var(--accent); }
.rm-menu, .rs-menu { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; margin: 6px 0 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); font-size: 16px; font-weight: 400; }
.rm-menu form, .rs-menu form { margin: 0; }
.rm-menu .h, .rs-menu .h { display: block; font-size: 13px; color: var(--muted); padding: 6px 10px 2px; }
.rm-item { display: block; width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; text-align: left; justify-content: flex-start; background: transparent; color: var(--ink); box-shadow: none; font-weight: 700; font-size: 16px; border-radius: 8px; }
.rm-item:hover { background: var(--accent-soft); }
.rm-also { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }
.rm-also label { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 15px; }
.rm-staff { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin: 6px 0 10px; }
.rm-staff label { font-weight: 700; font-size: 14px; margin: 0; }
.rm-staff select { display: block; width: 100%; margin-top: 4px; }
.rm-staff button { margin: 0; }
@media (max-width: 520px) { .rm-staff { grid-template-columns: 1fr 1fr; } .rm-staff button { grid-column: 1 / -1; } }
.rm-order { list-style: none; padding: 0; margin: 0; counter-reset: o; }
.rm-order li { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); counter-increment: o; }
.rm-order li::before { content: counter(o); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rm-order form { margin: 0; }
.rm-order button { width: auto; margin: 0; min-height: 44px; min-width: 44px; padding: 4px 12px; font-size: 16px; }
.rm-order button:disabled { opacity: .3; }
.rm-copybox { padding: 0; }
/* 開いて閉じる帯（「ほかの曜日に写す」「文字で入れる」）：文字は 1 行、＋と－は右端、高さは 52px にそろえる */
.rm-copybox > summary, details.day-typed > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-size: 16px; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.rm-copybox > summary::after, details.day-typed > summary::after { float: none; margin-left: auto; flex: none; }
.rm-copybox > form { padding: 0 16px 16px; }
.rm-days { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.rm-days label { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; font-size: 17px; margin: 0; }
.rm-days label small { font-weight: 400; font-size: 12px; }
.rm-days input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
/* 送迎表の一覧表（決裁の記録（230））：車を横に並べ、迎えと送りを上下に。人・車の見出しを押すと小さなメニュー。印刷は A4 横 1 枚・表だけ */
body.day main:has(.rs-sheet) { max-width: none; }
.rs-tools { margin: 0; } /* 見出し・日付とボタン・知らせ・表の左端をそろえる（小濱、2026-11-09） */
.rs-help { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rs-help button { margin: 0; }
.rs-sheet { overflow-x: auto; background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.rs-title { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; font-size: 18px; }
.rs-title span { font-size: 14px; color: var(--muted); }
.rs-table { border-collapse: collapse; width: 100%; table-layout: fixed; min-width: calc(44px + var(--rs-cols, 4) * 150px); font-size: 15px; }
.rs-kindcol { width: 44px; }
.rs-table + .rs-table { margin-top: -1px; } /* 迎えと送りの 2 つの表を、1 つの表に見せる */
.rs-table th, .rs-table td { border: 1px solid #b8c2d0; vertical-align: top; text-align: left; padding: 4px 6px; white-space: normal; overflow-wrap: anywhere; }
/* 迎え・送りの縦の欄は 2 行にまたがない作りで、1 字ずつ縦に並べる（rowspan や writing-mode は、Chrome の印刷で分けられない塊になり、改ページの位置がずれるため）。見出しの段と中身の段の境の線を消して、1 つの欄に見せる */
.rs-table th.rs-kind-top { border-bottom: 0; }
.rs-table th.rs-kind { background: #e6edf5; }
.rs-table th.rs-kind-body { border-top: 0; }
.rs-kind { text-align: center !important; vertical-align: middle !important; font-size: 18px; line-height: 1.5; background: #e6edf5; padding: 6px 0 !important; }
.rs-head th { background: #f6f8fb; font-weight: 400; }
.rs-head th.rs-bad { background: var(--bad-soft); }
.rs-car { font-weight: 800; font-size: 16px; color: var(--ink); }
.rs-who, .rs-n { display: block; font-size: 13px; color: var(--muted); }
.rs-n { color: var(--ink); font-weight: 700; }
.rs-bad .rs-n { color: var(--bad); }
.rs-alert { display: block; font-size: 12px; color: var(--bad); font-weight: 700; white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
.rs-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 6px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); border: 1px solid currentColor; }
.rs-list { margin: 0; padding-left: 1.4em; }
.rs-list li { padding: 2px 0; border-bottom: 1px dotted #d6dce5; }
.rs-list li:last-child { border-bottom: 0; }
.rs-pop > summary { list-style: none; cursor: pointer; border-radius: 6px; min-height: 0; padding: 2px 4px; background: none; box-shadow: none; border: 0; font-weight: 400; }
.rs-pop > summary::-webkit-details-marker { display: none; }
.rs-pop > summary:hover { background: var(--accent-soft); }
.rs-name { font-weight: 700; }
.rs-chair { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; padding: 0 4px; border: 1px solid currentColor; border-radius: 4px; color: var(--warn); }
.rs-town { display: block; font-size: 12px; }
.rs-off .rs-name, .rs-off .rs-town { text-decoration: line-through; color: #999; }
.rs-menu { position: absolute; z-index: 30; min-width: 220px; }
.rs-staff label { display: flex; gap: 6px; align-items: center; margin: 4px 10px; font-size: 14px; }
.rs-staff select { margin: 0; flex: 1; min-height: 40px; }
.rs-staff button { margin: 4px 10px 8px; }
.rs-move { display: flex; gap: 6px; padding: 6px 10px; }
.rs-move form { margin: 0; }
/* 日付ごとの送迎表（決裁の記録（233）（234）。見本 1〜9） */
.rd-date { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.rd-date > b { font-size: 22px; }
.rd-date .sp { flex: 1; }
.rd-date form { margin: 0; }
.rd-date .button, .rd-date button { width: auto; margin: 0; min-height: 44px; }
.rd-jump { display: flex; gap: 4px; align-items: center; }
.rd-jump input { margin: 0; min-height: 44px; padding: 4px 8px; width: auto; }
.rd-plan { background: var(--accent-grad); color: #fff; }
.rd-plan:disabled { background: #c9d2dd; color: #fff; }
.rd-note { font-size: 14px; margin: 0 0 8px; }
.rd-sum { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; margin: 0 0 8px; }
.rd-sum b { font-size: 16px; }
.rd-unk { border-left: 6px solid #e6527e; }
.rd-empty { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; background: rgba(255, 255, 255, .6); margin: 0 0 12px; }
.rd-empty ul { columns: 3 160px; padding-left: 18px; margin: 8px 0; font-size: 14px; }
.rd-empty p { margin: 4px 0; }
.rd-eta { font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.rs-n .rd-eta { font-size: 1em; }
.rd-earlier { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; padding: 0 5px; border-radius: 4px; color: #fff; background: var(--bad); white-space: normal; } /* 家族への連絡が要る人（小濱、2026-11-09） */
.rs-printing .rd-earlier { color: #000; background: #fff; border: 1px solid #000; font-size: .85em; }
.rd-cue { font-size: 12px; color: var(--muted); }
.rd-bs-h { display: none; }
.rs-list li.rd-manual .rs-name::after, .rs-list li.rd-added .rs-name::after { content: "手で直した"; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--info); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.rs-list li.rd-added { background: var(--accent-soft); border-radius: 6px; }
.rs-list li.rd-added .rs-name::after { content: "追加"; }
.rs-menu .rm-item small { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 400; }
.rs-move { flex-wrap: nowrap; white-space: nowrap; }
.rs-move button { white-space: nowrap; width: auto; }
.rd-list { margin-top: 12px; }
.rd-list h3 { margin: 0 0 4px; font-size: 16px; }
.rd-list > p.muted { margin: 0 0 6px; font-size: 13px; }
.rd-list ul { list-style: none; padding: 0; margin: 0; }
.rd-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rd-list li > span { flex: 1; min-width: 0; }
.rd-list li form { margin: 0; }
.rd-list li button, .rd-list li .button { width: auto; min-height: 38px; margin: 0; padding: 4px 12px; font-size: 14px; }
.rd-list .badge { display: inline-block; width: auto; }
.rd-b-absent { background: var(--bad-soft); color: var(--bad); }
.rd-b-self { background: var(--accent-soft); color: var(--accent); }
.rd-place { position: relative; }
.rd-place > summary.button { list-style: none; }
.rd-place .rs-menu { right: 0; }
.rd-nofit { border-left: 6px solid var(--bad); }
.rd-dialog { max-width: 560px; margin: 12px 0; border: 2px solid var(--bad); }
.rd-dialog h3 { margin-top: 0; }
.rd-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rd-row form { margin: 0; }
.rd-row button, .rd-row .button { width: auto; margin: 0; }
.rd-res { border: 2px solid var(--accent); scroll-margin-top: 120px; }
.rd-res h3 { margin: 0 0 6px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-res h3 form { margin: 0; }
.rd-res ul { list-style: none; padding: 0; margin: 0; }
.rd-res li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.rd-res li > span { flex: 1; }
.rd-res li form { margin: 0; }
.rd-res button { width: auto; margin: 0; min-height: 38px; padding: 4px 14px; font-size: 14px; }
/* 取り消すの帯：スマホは下のボタンのすぐ上、PC は画面の下の端。表の最後の行が帯に隠れないよう、下に余白（決裁の記録（236）） */
.rd-toast { position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 45; background: var(--ink); color: #fff; padding: 8px 12px 8px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
body:has(.rd-toast) main { padding-bottom: 150px; }
.rd-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-toast form { margin: 0; flex: none; }
.rd-toast button { width: auto; margin: 0; min-height: 40px; padding: 4px 14px; background: #fff; color: var(--ink); }
@media (min-width: 760px) { .rd-toast { bottom: 0; padding: 8px max(16px, calc((100vw - 1240px) / 2)); } body:has(.rd-toast) main { padding-bottom: 90px; } }
.rd-credit { font-size: 11px; color: var(--muted); margin: 16px 0 0; }
.rd-credit-print { display: none; text-align: right; margin: 2px 0 0; }
.rs-printing .rd-credit-print { display: block; font-size: .7em; color: #000; }
@media print { .rd-credit-print { display: block; font-size: 7pt; color: #000; } }
.rs-menu .rm-item:disabled { color: #9aa4b2; background: #f1f4f8; cursor: not-allowed; }
.rs-menu .rm-item:disabled small { color: #9aa4b2; }
/* 印刷には「手で直した」の札を出さない（「追加」「時刻が早まった」「車椅子」は出す。決裁の記録（236）） */
.rs-printing .rs-list li.rd-manual .rs-name::after { content: none; }
@media print { .rs-list li.rd-manual .rs-name::after { content: none; } }
.rd-addlist h4.rd-onboard { background: #e6e9ee; color: var(--muted); }
/* 引っ張って移す（PC・タブレット） */
.rs-list li[data-stop], .rd-list li[data-client] { touch-action: pan-y; }
@media (hover: hover) { .rs-list li[data-stop] { cursor: grab; } }
.rd-ghost { position: fixed; z-index: 80; pointer-events: none; background: #fff; border: 2px solid var(--accent); border-radius: 10px; padding: 6px 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); transform: rotate(-2deg); font-weight: 700; white-space: nowrap; }
.rd-dropline { display: block; height: 0; border-top: 4px solid var(--accent); border-radius: 2px; margin: 2px 0; box-shadow: 0 0 0 3px var(--accent-soft); list-style: none; }
.rd-col-on { outline: 3px solid var(--accent); outline-offset: -3px; background: rgba(220, 243, 238, .5); }
.rd-moving { opacity: .35; }
body.rd-dragging { user-select: none; -webkit-user-select: none; }
/* 人を足す */
.rd-add { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; }
.rd-add[hidden] { display: none; }
.rd-addbox { background: #fff; border-radius: 18px; width: min(760px, 100%); max-height: calc(100vh - 80px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); margin: 0; }
.rd-addhead { padding: 14px 16px 8px; border-bottom: 1px solid var(--line); }
.rd-addhead h3 { margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rd-addhead h3 .button { width: auto; margin: 0; }
.rd-addhead input { width: 100%; margin: 0 0 8px; font-size: 16px; padding: 10px 12px; }
.rd-kana { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.rd-kana a { text-align: center; padding: 8px 0; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; text-decoration: none; }
.rd-addlist { overflow: auto; padding: 0 16px; flex: 1; }
.rd-addlist h4 { position: sticky; top: 0; background: #f1f5f9; margin: 0 -16px; padding: 4px 16px; font-size: 14px; z-index: 1; }
.rd-addlist label { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; font-weight: 400; }
.rd-addlist label[hidden], .rd-addlist h4[hidden] { display: none; }
.rd-addlist input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); flex: none; }
.rd-addlist .nm { flex: 1; min-width: 0; }
.rd-addlist .nm b { font-size: 17px; }
.rd-addlist .nm small { display: block; font-size: 12px; color: var(--muted); }
.rd-addlist .badge { flex: none; width: auto; }
.rd-addlist label.on, .rd-addlist label.on b { color: #999; }
.rd-addfoot { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.rd-addfoot button { margin: 0; }
.rd-addfoot p { margin: 6px 0 0; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.day-ride-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; align-items: end; }
.day-ride-set label { margin: 0; }
.day-ride-set .day-ride-wide { grid-column: 1 / -1; }
.day-ride-set small { display: block; font-weight: 400; }
.day-ride-set input { display: block; width: 100%; margin-top: 4px; }
.day-ride-cities { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.day-ride-cities legend { font-size: 14px; font-weight: 700; padding: 0 4px; }
.day-ride-cities label.check { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.day-ride-cities input { width: 22px; height: 22px; margin: 0; display: inline; }
.day-ride-set > button { grid-column: 1 / -1; width: auto; justify-self: start; }
/* スマホ：人や車を押すと、画面の下から出る板（見本 4）。後ろは暗くし、押すと閉じる */
@media (max-width: 700px) {
  .rd-add { padding: 0; }
  .rd-addbox { border-radius: 0; width: 100%; max-height: 100vh; height: 100vh; }
  [data-ride-page] details.rs-pop[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 55; }
  [data-ride-page] details.rs-pop[open] > .rs-menu { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; margin: 0; min-width: 0; max-height: 75vh; overflow: auto;
    border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
  [data-ride-page] .rs-menu .rd-bs-h { display: block; margin: 0 0 4px; font-size: 18px; font-weight: 800; }
  [data-ride-page] .rs-menu .rm-item { min-height: 48px; font-size: 16px; }
  [data-ride-page] .rs-move { flex-wrap: wrap; white-space: normal; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0 0; }
  [data-ride-page] .rs-move button { width: 100%; min-height: 48px; font-size: 16px; }
  .rd-date > b { font-size: 19px; width: 100%; order: -1; }
  .rd-date .sp { display: none; }
  .rd-jump:not(.cl-jump) { display: none; } /* 締め・印刷の日付と月は、狭い画面でも選べる（決裁の記録（272）） */
}
@page { size: A4 landscape; margin: 8mm; }
/* 印刷の形（印刷の前に JS が body に rs-printing を付け、この形で測って 1 枚に収まるよう縮める。JS が無くても @media print で表だけになる） */
@media print {
  body.day { background: #fff !important; }
  body.day .app-head, body.day .bottom-nav, body.day .top-nav, body.day .camp-top-bar, body.day .cheer, .no-print, [role=status], [role=alert], body.day main > h1 { display: none !important; }
  body.day main { padding: 0 !important; max-width: none !important; }
  .rs-pop > summary:hover { background: none; }
  /* 開いて閉じる部品（details・summary）は、Chrome の印刷では分けられない塊になり、送りの行が 2 枚目へ押し出される。印刷では普通の文字として扱う */
  details.rs-pop, details.rs-pop > summary { display: contents; }
}
.rs-printing details.rs-pop, .rs-printing details.rs-pop > summary { display: contents; } /* 測るときも印刷と同じ形にする */
body.rs-printing .app-head, body.rs-printing .bottom-nav, body.rs-printing .top-nav, body.rs-printing .camp-top-bar, body.rs-printing .cheer, body.rs-printing .no-print, body.rs-printing [role=status], body.rs-printing [role=alert], body.rs-printing main > h1 { display: none !important; }
body.rs-printing main { padding: 0 !important; max-width: none !important; }
.rs-printing .rs-sheet { width: 281mm; box-shadow: none; padding: 0; overflow: visible; border-radius: 0; font-size: var(--rs-pt, 9pt); }
.rs-printing .rs-table { min-width: 0 !important; font-size: 1em; }
.rs-printing .rs-table th, .rs-printing .rs-table td { border-color: #000; padding: .4em .6em; }
.rs-printing .rs-head th, .rs-printing .rs-kind { background: #fff !important; }
.rs-printing .rs-n, .rs-printing .rs-who, .rs-printing .rs-town, .rs-printing .rs-title span { color: #000; }
.rs-printing .rs-car { font-size: 1.3em; } /* 車の名前は利用者の名前と同じ大きさ（小濱、2026-11-09） */
.rs-printing .rs-town, .rs-printing .rs-chair, .rs-printing .rs-tag { font-size: .85em; }
.rs-printing .rs-who, .rs-printing .rs-n { font-size: 1em; } /* 運転・添乗・人数の行は町名より大きく（小濱、2026-11-09） */
.rs-printing .rs-chair, .rs-printing .rs-tag { color: #000; background: #fff; }
.rs-printing .rs-kind { font-size: 1.2em; padding: .3em 0 !important; }
.rs-printing .rs-kindcol { width: 2.2em; }
.rs-printing .rs-name { font-size: 1.3em; }
.rs-printing .rs-title { font-size: 1.3em; margin-bottom: .4em; }
.rs-printing .rs-title span { font-size: .75em; }
.rs-printing .rs-list li { padding: .15em 0; }
/* CAMP LIFE から取り込む（決裁の記録（224）） */
.day-life-sum { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* 取り込みの一覧は PC の幅でも 1 列（.day-list.plain。人ごとに高さが違うため） */
.day-life-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.day-life-row .day-row-main .badge { display: inline-block; align-self: flex-start; width: auto; margin-top: 4px; }
.day-life-row:last-child { border-bottom: 0; }
.day-life-row label.check { align-items: center; margin: 0; }
.day-life-row .day-row-main { flex: 1 1 auto; min-width: 0; margin: 0; }
.day-life-row .day-row-main small { display: block; font-weight: 400; color: var(--muted); }
.day-life-notes { margin: 6px 0 0; padding-left: 1.2em; color: var(--warn-ink, #8a5a00); font-size: 15px; }
.day-life-days, .day-life-field { margin-top: 8px; }
.day-life-dup { border: 0; padding: 0; margin: 12px 0 0; }
.day-life-dup legend { font-weight: 700; }
/* 取り込むときに要る欄は、その人を選んだときだけ出す（決裁の記録（226）） */
.day-life-when { display: none; }
.day-life-row:has(input[name="add[]"]:checked) .day-life-when,
.day-life-row:has(input[type=radio][value="new"]:checked) .day-life-when,
.day-life-dup .day-life-row:has(input[type=radio]:checked) .day-life-when { display: block; }
/* 組ごとの「全員を選ぶ」と、画面の下にいつも出る「選んだ ○人を取り込む」の帯（スマホでは下のメニューの上） */
.day-life-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.day-life-head button { width: auto; min-height: 44px; margin: 0; flex: none; }
.day-life-bar { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 15; margin: 12px -16px 0; padding: 10px 16px; background: var(--card-solid, #fff); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(0, 0, 0, .08); } /* 白い下地で、後ろの文字が透けて重ならないようにする（小濱、2026-11-09） */
.day-life-bar button { margin: 0; box-shadow: var(--button-shadow); }
@media (min-width: 760px) { .day-life-bar { bottom: 0; margin: 12px 0 0; border-radius: 14px 14px 0 0; } }
.day-found-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.day-found-row:last-child { border-bottom: 0; }
.day-found-row .day-row-main { min-width: 0; }
.day-found-row form { margin: 0; flex: none; }
.day-found-row .button, .day-found-row button { width: auto; min-height: 48px; margin: 0; white-space: nowrap; }
/* 「管理」ボタン：事業所名が長くても縮めず、横書き 1 行のまま。事業所名のほうを折り返す */
.day-head > div { flex: 1 1 auto; min-width: 0; }
.day-head .day-name { overflow-wrap: anywhere; }
.day-head .button.day-admin-link { flex: none; white-space: nowrap; padding: 0 18px; }
/* PC の幅（上のメニューが出る 760px 以上）では、上のメニューに「管理」があるので、事業所名の右の「管理」ボタンは出さない。スマホの幅では出す（決裁の記録（221）） */
@media (min-width: 760px) { .day-head .button.day-admin-link { display: none; } }
.day-name { margin: 0; font-size: 22px; }
.day-pager { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.day-pager .button { width: auto; min-height: 48px; margin: 0; }
.day-saving { min-height: 24px; margin: 0 0 8px; padding: 0; font-size: 16px; color: var(--muted); background: none; border: 0; }
.day-voice textarea { font-size: 18px; min-height: 64px; }
.day-voice label small { display: block; font-weight: 400; font-size: 16px; color: var(--muted); }
.day-unread { margin-top: 8px; }
.day-unread p { margin: 0 0 6px; font-size: 16px; color: var(--warn); }
.day-unread-list { display: flex; flex-wrap: wrap; gap: 8px; }
.day-unread-list button { min-height: 48px; font-size: 16px; }
.day-time { display: flex; align-items: flex-end; gap: 12px; }
.day-time { margin-top: 8px; }
.day-time label { flex: 1; margin: 0; display: block; }
.day-time input[type=time] { display: block; width: 100%; min-height: 52px; font-size: 20px; margin-top: 4px; }
.day-time button { width: auto; min-width: 72px; min-height: 52px; margin: 0; }
.day-band { font-size: 16px; margin: 12px 0 0; }
.day-alert { color: var(--bad); font-weight: 700; margin: 8px 0 0; }
.day-vitals { display: grid; gap: 8px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.day-vital { margin: 0; font-size: 16px; }
.day-vital small { font-weight: 400; margin-left: 4px; color: var(--muted); }
.day-vital input { font-size: 20px; min-height: 52px; text-align: center; }
.day-vital.is-out input { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.day-vital.is-jump input { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.day-vital input.is-active { border: 2px solid var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.day-record .is-voice input, .day-record .is-voice textarea, .day-record textarea.is-voice { background: var(--accent-soft); }
/* 音声で選ばれた選ぶ欄：選ばれた色のまま、外側に印を付ける（ほかのボタンの色は変えない） */
.day-record fieldset.is-voice input:checked + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.day-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 0; font-size: 16px; }
.day-plus { display: flex; flex-wrap: wrap; gap: 8px; }
.day-plus button, .day-event-form > button { width: auto; min-height: 48px; margin: 0; }
.day-event-form { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.day-event-form:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.day-event-form > button { margin-top: 12px; }
.day-events { list-style: none; padding: 0; margin: 8px 0 0; }
.day-events li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 16px; }
.day-events li span { flex: 1; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.day-events li button { min-height: 48px; font-size: 16px; white-space: nowrap; flex: 0 0 auto; }
.day-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; padding: 4px; border-radius: var(--pill); background: var(--card); border: var(--border); }
.day-tabs a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--pill); font-size: 16px; font-weight: 700; color: var(--muted); text-decoration: none; }
.day-tabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.day-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.day-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--card); border: var(--border); border-left: 8px solid var(--bad); text-decoration: none; color: var(--ink); }
.day-person b { font-size: 18px; }
.day-person.is-partial { border-left-color: #f0a43a; }
.day-person.is-done { border-left-color: var(--ok); }
.day-person-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.day-person-tags .badge, .day-legend .badge, .day-state { font-size: 16px; }
.day-legend { font-size: 16px; color: var(--muted); margin: 12px 0; }
.day-vital-row h3 { margin: 0 0 8px; }
.day-pick { width: auto; min-height: 48px; margin: 0; padding: 6px 14px; font-size: 18px; background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.day-vital-row.is-active { outline: 3px solid var(--accent); }
.day-vital.is-active-label { color: var(--accent); }
.day-keypad { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 15; margin: 12px 0; padding: 10px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(60, 90, 140, .16); }
.day-keypad-target { margin: 0 0 8px; min-height: 30px; font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1.35; }
.day-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.day-keys button { min-height: 48px; padding: 4px; margin: 0; font-size: 22px; box-shadow: none; }
.day-common p { font-size: 16px; margin: 0; }
@media (min-width: 760px) {
  .day-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-vitals { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* タブレット：利用者の欄を左、テンキーを右に並べ、テンキーは画面の上に留める（欄に重ねない） */
  .day-vital-area { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
  .day-vital-area .day-vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day-keypad { position: sticky; top: calc(var(--day-head, 112px) + 12px); bottom: auto; margin: 0; }
  .day-cards, .day-list:not(.plain), .day-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 2 列のとき、カードの最初の欄は上の余白が 0（.card > :first-child）なので、横に並ぶ 2 つ目の欄も 0 にそろえる（「氏名」と「ふりがな」の高さ。決裁の記録（223）） */
  .day-form > label:first-child:not(.day-wide) + label:not(.day-wide) { margin-top: 0; }
  .day-wide { grid-column: 1 / -1; }
}
/* バイタルタブの広い画面（1000px 以上。iPad の横向きなど）：1 人を 1 行（名前と 5 つの欄を横に並べる）にして、全員を 1 画面に並べる */
@media (min-width: 1000px) {
  .day-vital-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 16px; margin-bottom: 10px; }
  .day-vital-row h3 { margin: 0; }
  .day-vital-row .day-pick { width: 100%; padding: 6px 8px; }
  .day-vital-area .day-vitals { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 8px; }
  .day-vital-row .day-vital small { display: none; } /* 単位は②日報の画面に出る。ここでは行を低くして全員を並べる */
  .day-vital-row .day-vital input { min-height: 48px; margin-top: 4px; padding: 8px 4px; font-size: 18px; }
}
/* 話して入力（決裁の記録（210））：大きなマイクのボタン。押して話し、読み取った内容を見てから「入れる」 */
.day-voice h3 { margin: 0 0 8px; }
.day-mic { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 72px; margin: 0; font-size: 20px; border-radius: var(--radius-sm); }
.day-mic svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.day-mic.is-listening { background: var(--bad); box-shadow: 0 0 0 6px var(--bad-soft); animation: day-mic 1.2s ease-in-out infinite; }
@keyframes day-mic { 50% { box-shadow: 0 0 0 12px var(--bad-soft); } }
@media (prefers-reduced-motion: reduce) { .day-mic.is-listening { animation: none; } }
.day-mic-note { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.day-interim { min-height: 24px; margin: 6px 0 0; font-size: 16px; color: var(--muted); }
.day-mic-help { margin: 8px 0 0; font-size: 16px; }
.day-mic-log { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.day-mic-log pre { margin: 4px 0 0; white-space: pre-wrap; font-size: 13px; }
.day-preview { margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.day-preview-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--accent); }
.day-preview-list { margin: 0; font-size: 18px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.day-preview .day-unread-list { display: flex; flex-wrap: wrap; gap: 6px; }
.day-preview .day-unread-list .badge { font-size: 16px; white-space: normal; }
.day-preview-buttons { display: flex; gap: 10px; margin-top: 10px; }
.day-preview-buttons button { flex: 1; min-height: 52px; margin: 0; }
.day-preview-buttons button.secondary { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.day-typed { margin-top: 10px; }
.day-typed summary { cursor: pointer; }
.day-typed button { width: auto; min-height: 48px; margin: 8px 0 0; }
.day-newer { margin: 0 0 12px; }
.day-newer p { margin: 0 0 8px; }
/* 一時停止中（見るだけ。決裁の記録（217））：送る形の欄と話して入力を出さない（ログアウトは見出しの帯なので残る） */
.day-read-only main form[method="post"], .day-read-only main .day-voice, .day-read-only main [data-vital-voice] { display: none; }

/* 二単位制（午前の部・午後の部。決裁の記録（243）。見本 1〜8 を 2026-11-10 に小濱が承認） */
.rd-units { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius); }
.rd-units a { flex-direction: column; gap: 2px; min-height: 56px; border-radius: var(--radius-sm); padding: 6px 8px; text-align: center; }
.rd-units a small { font-size: 12px; font-weight: 500; color: inherit; opacity: .9; }
.rd-unitmove { display: inline; }
.rd-printmenu { display: inline-block; }
.rd-flow-axis, .rd-flow-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; }
.rd-flow-axis { font-size: 11px; color: var(--muted); grid-template-columns: 72px repeat(var(--rd-cols, 5), 1fr) 0; }
.rd-flow-axis i { font-style: normal; border-left: 1px solid var(--line); padding-left: 3px; white-space: nowrap; }
.rd-flow-row { margin: 6px 0; }
.rd-flow-bar { position: relative; height: 30px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--rd-cols, 5) - 1px), var(--line) calc(100% / var(--rd-cols, 5) - 1px) calc(100% / var(--rd-cols, 5))); border-radius: 6px; }
.rd-flow-bar .leg { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; font-size: 11px; line-height: 24px; padding: 0 4px; overflow: hidden; white-space: nowrap; color: #fff; text-align: center; text-overflow: clip; }
.rd-flow-bar .leg.am, .rd-flow-legend .leg.am { background: var(--accent); }
.rd-flow-bar .leg.pm, .rd-flow-legend .leg.pm { background: var(--info); }
.rd-flow-bar .leg.clash, .rd-flow-legend .leg.clash { background: var(--bad); }
/* 足りない帯は下半分に出す（午前の送りと全部重なっても、送りの帯が見えるように） */
.rd-flow-bar .leg.clash { top: 15px; bottom: 1px; line-height: 14px; font-size: 10px; outline: 1px solid #fff; z-index: 1; }
.rd-flow-bar .leg.gap { background: repeating-linear-gradient(45deg, var(--muted) 0 3px, transparent 3px 6px); opacity: .6; padding: 0; z-index: 0; }
.rd-flow-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.rd-flow-legend .leg { display: inline-block; padding: 1px 8px; border-radius: 5px; color: #fff; font-size: 12px; }
.rd-flow-legend .leg.gap { color: var(--ink); background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .18) 0 3px, transparent 3px 6px); }
.rd-flow-text { display: none; }
@media (max-width: 560px) {
  .rd-flow-axis, .rd-flow-row { display: none; }
  .rd-flow-text { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 10px 0 4px; font-size: 13px; }
  .rd-flow-text b { grid-column: 1 / -1; }
  .rd-flow-text .clash { color: var(--bad); font-weight: 700; }
}
.rs-sheet-next { margin-top: 16px; }
@media print { .rs-sheet-next { break-before: page; margin-top: 0; } }
.rs-printing .rs-sheet-next { break-before: page; margin-top: 0; }
.day-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.day-unit { display: grid; gap: 8px; padding: 10px; border: var(--border); border-radius: var(--radius-sm); }
.day-unit-turn { grid-column: 1 / -1; max-width: 22em; }
.day-unit-note { grid-column: 1 / -1; margin: 0; }
.day-ride-set:has(input[name="units"][value="1"]:checked) .day-unit-pm { display: none; }
.day-ride-set:has(input[name="units"][value="1"]:checked) .day-unit-name { display: none; }
.day-ride-set:has(input[name="units"][value="1"]:checked) .day-unit { border: 0; padding: 0; grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 560px) { .day-units { grid-template-columns: 1fr; } }
.day-week-units { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.day-wrow { display: grid; grid-template-columns: 2em 1fr; align-items: center; gap: 8px; }
.day-wrow .day-chips { display: flex; gap: 6px; margin: 0; }
.day-two { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.day-unit-h { margin: 16px 4px 6px; }
.day-unit-pick { margin: 0 0 8px; }
/* 欠席の人は「未記入」の赤にしない（小濱、2026-11-10） */
.day-person.is-absent { border-left-color: var(--line); }
/* 日報：押した欄のそばの保存の知らせ（緑・時刻つき。できなければ赤で理由。小濱、2026-11-10） */
.day-autosave { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.day-saved, .day-chips .day-saved { display: block; flex-basis: 100%; min-width: 0; min-height: 0; margin: 6px 0 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 15px; font-weight: 700; cursor: default; }
.day-saved.is-ok { color: var(--ok); }
.day-saved.is-bad { color: var(--bad); }
/* 画面の再点検（決裁の記録（245）。見本 2 版）：②日報 */
.day-title h2 { margin: 4px 0 0; font-size: 26px; line-height: 1.3; }
.day-date { margin: 2px 0 6px; font-size: 22px; font-weight: 700; white-space: nowrap; }
.day-nw { white-space: nowrap; }
@media (max-width: 400px) { .day-title h2 { font-size: 23px; } .day-date { font-size: 20px; } }
.day-guide ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; font-size: 16px; }
.day-need-strip { position: sticky; top: var(--day-head, 0px); z-index: 15; margin: 0 0 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); font-size: 16px; border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.day-need-strip a { color: var(--bad); font-weight: 700; }
.day-need-strip.is-done { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.day-rule-1 { margin: 0 0 12px; font-size: 15px; }
.day-rule p { margin: 4px 0; font-size: 15px; }
.day-rule-h { font-weight: 700; }
.day-req, .day-chips .day-req { display: inline-block; min-width: 0; min-height: 0; margin-left: 6px; padding: 1px 8px; border: 0; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; cursor: default; }
.day-todo, .day-chips .day-todo { display: block; flex-basis: 100%; min-width: 0; min-height: 0; margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--bad); font-size: 15px; font-weight: 700; }
.day-todo[hidden] { display: none; }
.day-offnote { display: none; margin: 0 0 6px; font-weight: 700; color: var(--muted); }
.day-offable.is-off { opacity: .45; }
.day-offable.is-off .day-offnote { display: block; }
.day-absent-note { margin: 10px 0; }
.day-prev { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--ink); }
.day-voiced, .day-chips .day-voiced { display: block; flex-basis: 100%; min-width: 0; min-height: 0; margin: 4px 0 0; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--info); }
.day-voice-res { margin: 10px 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--ink); font-size: 15px; }
.day-voice-res ul { margin: 6px 0 0; padding-left: 1.2em; }
.day-typed { display: block; margin: 10px 0 4px; font-size: 15px; font-weight: 700; }
.day-voice .day-voice-input { display: block; width: 100%; }
.day-report { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bad-soft); }
.day-small { font-size: 13px; margin-top: 8px; }
.day-event-form h4 { margin: 10px 0 4px; font-size: 17px; }
.day-event-form + .day-event-form { border-top: 1px solid var(--line); margin-top: 10px; }
.day-count p { margin: 12px 0 6px; }
/* 画面の再点検（決裁の記録（245））：①今日 */
.day-tabs-sub a { flex-direction: column; gap: 0; line-height: 1.25; }
.day-tabs-sub a small { font-size: 13px; font-weight: 600; color: inherit; opacity: .9; }
.day-list-h { margin: 18px 4px 2px; font-size: 22px; }
.day-list-lead { margin: 0 4px 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.day-legend-list { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.day-legend-list li { display: flex; align-items: center; gap: 8px; }
.day-legend-list .badge { min-width: 4.5em; text-align: center; flex: none; }
.badge.day-extra { background: #efe6ff; color: #5b34a8; border: 1px solid #c9b3f2; } /* 「追加」は「欠席」と違う色（小濱、2026-11-10） */
.day-common-form { align-items: start; } /* 「今日のプログラム」と「昼食」の見出しの高さをそろえる（小濱、2026-11-10） */
.day-steps { margin: 0 0 12px; padding-left: 1.4em; display: grid; gap: 4px; font-size: 16px; }
.day-pick small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.day-ride-view h4 { margin: 12px 0 6px; font-size: 17px; }
.day-ride-cars { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.day-ride-car { padding: 10px 12px; border: var(--border); border-radius: var(--radius-sm); }
.day-ride-car p { margin: 0; }
.day-ride-car .day-ride-name { margin-bottom: 2px; }
.day-ride-car .day-ride-meta { font-size: 14px; color: var(--muted); }
.day-ride-car ol { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 2px; }
/* ②日報：「済」の行と「① 出欠」の箱の間を、ほかの箱の間と同じに（保存の知らせが空のときは高さを取らない。小濱、2026-11-10） */
.day-record .day-rule-1 { margin-bottom: 0; }
.day-saving:empty { min-height: 0; margin: 0; }
/* ポータルのヘルプ：操作説明書を開くボタン（白地に枠）とよくある問い */
.help-open { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.help-open a.help-open-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 48px; padding: 8px 22px;
  background: #fff; color: var(--accent); border: 2px solid var(--accent); border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; }
.help-open a.help-open-btn:hover { background: var(--accent-soft); }
.help-open a.help-open-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
@media (max-width: 640px) { .help-open a.help-open-btn { width: 100%; } }
.help-faq details.faq { box-shadow: none; margin: 8px 0; }
.help-faq details.faq > summary { font-size: 16px; line-height: 1.6; padding-right: 40px; }
.help-faq details.faq > summary::after { float: none; position: absolute; right: 16px; }
.help-faq details.faq > summary { position: relative; }
.help-faq .faq-a { padding: 0 16px 12px; }
.help-faq .faq-a p { margin: 6px 0; line-height: 1.8; }
.head-manual { white-space: nowrap; }
/* 狭い画面では帯の「操作説明書」を出さない（名前が切れるため）。下のメニューの「ヘルプ」から開く */
@media (max-width: 759px) { .head-row .head-manual { display: none; } }
/* 確かめてほしい箇所：見当たらない数字は 1 つを 1 行に（・「12」：…） */
.checks-note ul.fact-lines { list-style: none; padding-left: 4px; margin: 4px 0 6px; }
.checks-note ul.fact-lines li { overflow-wrap: anywhere; }
.checks-note ul.fact-lines li::before { content: "・"; }
/* 受け取る：取り下げるの折りたたみに色の型のぼかしをかけない（白い帯が出るため）。仕上がりの行のボタン（ファイル・削除の依頼）は 1 つの並び。決裁の記録（187） */
.item-act details.withdraw { -webkit-backdrop-filter: none; backdrop-filter: none; }
.file-links { align-items: center; }
.file-links form { margin: 0; }
@media (max-width: 560px) {
  .list.cards > li.item > .item-main { flex: 1 1 calc(100% - 52px); }
  .list.cards > li.item > .file-links { flex-basis: 100%; }
  .list.cards > li.item > .file-links .button.small, .list.cards > li.item > .file-links button.small { min-height: 44px; }
}
@media (max-width: 560px) { .list.cards > li.item > a.button.small { margin-left: auto; } }
/* おまかせデスクの帯（420px 以下）：名前を切らずに全部出し、ベータ版の札は名前の下に小さく置く。768・1280 は変えない（決裁の記録（187）） */
@media (max-width: 420px) {
  body.portal:not(.day) .head-row { gap: 8px; padding: 8px 12px; }
  body.portal:not(.day) .head-row .brand { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 6px; align-items: center; }
  body.portal:not(.day) .head-row .brand > .camp-logo, body.portal:not(.day) .head-row .brand > .mark { grid-row: 1 / span 2; }
  body.portal:not(.day) .head-row .brand-name { grid-column: 3; grid-row: 1; font-size: 16px; overflow: visible; text-overflow: clip; line-height: 1.3; }
  body.portal:not(.day) .head-row .brand-tag { grid-column: 3; grid-row: 2; justify-self: start; margin: 1px 0 0; padding: 0 6px; font-size: 11px; line-height: 1.5; }
}
/* ヘルプ（説明書の入口は白地に枠のボタン。よくある問いはスマホで読む前提。決裁の記録（248）） */
.day-help-open { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 18px; }
a.button.day-help-btn { background: #fff; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; min-height: 56px; font-size: 17px; justify-content: center; }
a.button.day-help-btn:hover { background: var(--accent-soft); }
.day-help-faq h2 { margin: 0 0 8px; font-size: 20px; }
.day-help-index { margin: 0; padding-left: 1.6em; display: grid; gap: 6px; font-size: 16px; line-height: 1.6; }
.day-help-q h3 { display: flex; gap: 10px; align-items: baseline; font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.day-help-n { flex: 0 0 auto; font-size: 14px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 8px; }
.day-help-q p { font-size: 16px; line-height: 1.8; margin: 0 0 8px; }
.day-help-q p:last-child { margin-bottom: 0; }
/* お願いする：1. サービスを選ぶ画面と 2. お願いの画面（決裁の記録（301）） */
.req-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 12px; padding: 0; font-size: 14px; color: var(--muted); }
.req-steps li { padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.req-steps li.now { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.req-steps li.done { color: var(--ok, #2e7d32); font-weight: 700; }
.svc-links a.svc-option { text-decoration: none; color: var(--ink); min-height: 72px; }
.svc-links a.svc-option > span:nth-child(2) { flex: 1; min-width: 0; }
.svc-links a.svc-option:hover, .svc-links a.svc-option:focus-visible { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 6%, #fff); }
.svc-links a.svc-option .i.go { flex: none; width: 20px; height: 20px; color: var(--muted); }
.req-back { margin: 0 0 6px; }
.req-back a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.svc-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; font-size: 26px; line-height: 1.3; }
.svc-icon.big { width: 56px; height: 56px; border-radius: 16px; }
.svc-icon.big .i { width: 32px; height: 32px; }
@media (max-width: 420px) { .svc-head { font-size: 22px; } .svc-icon.big { width: 48px; height: 48px; } }
/* 提供記録の帯（420px 以下）：ベータ版の札を名前の下に小さく置き、名前に重ならないようにする（おまかせデスクと同じ形。決裁の記録（187）（252）） */
@media (max-width: 420px) {
  body.day .head-row .brand { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; row-gap: 0; align-items: center; }
  body.day .head-row .brand > .camp-logo, body.day .head-row .brand > .mark { grid-row: 1 / span 2; }
  body.day .head-row .brand-name { grid-column: 2; grid-row: 1; }
  body.day .head-row .brand-tag { grid-column: 2; grid-row: 2; justify-self: start; margin: 2px 0 0; padding: 0 6px; font-size: 11px; line-height: 1.5; }
}
.day-kb-note { margin: 6px 0; font-size: 14px; line-height: 1.6; } /* キーボードのマイクの案内（決裁の記録（252）） */
/* 送迎の人数（乗る予定）。送迎表の題と、今日の送迎の札のいちばん上に同じ形で（決裁の記録（258）） */
.rd-count { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.rd-count > span { white-space: nowrap; }
.rs-title .rd-count { flex-basis: 100%; margin: 0; }
.rs-title .rd-count span { color: var(--ink); }
.day-typed-h { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--accent); }
/* 「話して入れる」「まとめて話す」の横の知らせ：中身が無いときは出さず、知らせの色（緑の地）も付けない（決裁の記録（302）） */
.dictate small[role=status], .dictate-fill small[role=status] { background: none; padding: 0; border-radius: 0; color: var(--muted); }
.dictate small[role=status]:empty, .dictate-fill small[role=status]:empty { display: none; }
/* おまかせデスクの帯（420px 以下）で「経営分析へ」「LIFE へ」の家の印があるとき：名前・ベータ版の札がボタンに重ならないよう、
   芽の印を外し、ロゴとボタンを少し小さくする。家の印が無いときと 421px 以上は今のまま（決裁の記録（305）） */
@media (max-width: 420px) {
  body.portal:not(.day) .head-row:has(.head-camp) { gap: 6px; }
  body.portal:not(.day) .head-row:has(.head-camp) .brand > .mark { display: none; }
  body.portal:not(.day) .head-row:has(.head-camp) .brand { grid-template-columns: auto 0 minmax(0, 1fr); column-gap: 6px; }
  body.portal:not(.day) .head-row:has(.head-camp) .camp-logo { width: 32px; height: 32px; }
  body.portal:not(.day) .head-row:has(.head-camp) .brand-name { font-size: 15px; }
  body.portal:not(.day) .head-row:has(.head-camp) .icon-button { min-width: 36px; min-height: 40px; padding: 0 7px; justify-content: center; }
  body.portal:not(.day) .head-row:has(.head-camp) .head-camp { margin-left: 0; }
}

/* 導線の整理（決裁の記録（307））：帯の「確認する」の印、「確認する」の 3 段、前に使ったお願い、受け取るの上の 1 行 */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.bottom-nav a { position: relative; }
.bottom-nav a .nav-count { position: absolute; top: 2px; left: calc(50% + 6px); }
.check-part h2, .check-part h3 { margin: 0 0 6px; }
.check-part h3 { font-family: var(--font-head); font-weight: var(--weight-head); font-size: 17px; }
h2.check-head { margin-top: 26px; }
.draft-card h3 { font-family: var(--font-head); font-weight: var(--weight-head); font-size: 19px; margin: 0 0 4px; }
.recent-head { font-size: 16px; margin: 22px 0 8px; }
.svc-links.recent a.svc-option { min-height: 56px; }
.keep-sum { margin: 0 0 12px; }

/* 導線の便（D の共通部品 CampNav の帯・タイル・案内図。決裁の記録（313））。部品の CSS は /ui/campnav.css。ここは A の画面に合わせる分だけ */
body.cnav-page main { max-width: 1000px; }
/* 帯のログアウトは送り出すボタン。A の button の形（上の余白・影・押したときの沈み）を外し、ほかの 4 つと同じ形にする */
body.cnav-page button.cnav-btn { margin: 0; box-shadow: none; transform: none; transition: none; }
/* 案内図の「最初の画面から ○回（…から）」は、手前の画面の名前が長いと 375 で横にはみ出すので折り返す（部品は写したまま。D に知らせる） */
body.cnav-page .cnav-cl { white-space: normal; }

/* 締め・印刷（決裁の記録（271））。月の記録は A4 縦（名前つきのページ。全体の @page は送迎表の A4 横。画面の中の <style> は CSP で止まるので使わない） */
@page day-month { size: A4 portrait; margin: 12mm; }
.day-print { page: day-month; }
.day-close-reds .badge.red { background: #fde2e2; color: #b42318; }
/* 足りない項目は、いつも名前の下の 1 行に（長さで並びが変わらないように） */
.day-close-reds .day-line { justify-content: flex-start; }
.day-close-reds .day-close-need { flex-basis: 100%; }
.day-close-reds .day-line, .day-pdf-list .day-line, .day-close-history .day-line, .day-pdf-log .day-line { gap: 8px; flex-wrap: wrap; }
.day-reopen { margin-top: 12px; }
.day-reopen summary { cursor: pointer; font-weight: 700; }
.day-print-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.day-print-head h2 { margin: 0 0 4px; }
.day-print-sub { color: var(--muted, #555); font-size: .9em; }
.day-print-day { margin: 14px 0; break-inside: avoid; }
.day-print-day h3 { font-size: 1.05em; margin: 0 0 4px; display: flex; gap: 12px; align-items: baseline; }
.day-print-state { font-size: .8em; font-weight: 400; color: var(--muted, #555); }
.day-print-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.day-print-table th, .day-print-table td { border: 1px solid #bbb; padding: 3px 6px; text-align: left; vertical-align: top; }
.day-print-table th { width: 8.5em; background: #f5f5f5; font-weight: 600; white-space: nowrap; }
@media print {
  .day-print { font-size: 9.5pt; color: #000; }
  .day-print-table th { background: #fff !important; }
  .day-print-table th, .day-print-table td { border-color: #000; }
}
/* D の共通部品の帯（camp_nav_band）のログアウトは form の中の button。上の button の決まり（余白・影・色・幅）が重ならないように、帯の中だけ部品の形に戻す（部品は変えない。決裁の記録（271）） */
.cnav-band button.cnav-btn { margin: 0; box-shadow: none; transform: none; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: normal; }
.cnav-band button.cnav-btn:hover { background: rgba(255,255,255,.22); }
@media (min-width: 760px) { .cnav-band button.cnav-btn { min-height: 44px; font-size: 16px; padding: 0 14px; width: auto; } }
@media (max-width: 759px) { .cnav-band button.cnav-btn { min-height: 56px; padding: 4px 2px; width: 100%; } }
