/* 福祉アプリ 共通の見た目（ライブラリ不使用）。色は --accent だけ設計書で変える。 */
:root { --accent: #2f6f9f; --fg: #1d2329; --muted: #5b6670; --bg: #ffffff; --line: #d9dee3; --soft: #f4f7f9; --warn: #a15c00; --past: #8a8f94; }

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; color: var(--fg); background: var(--bg); line-height: 1.7; }
#app { max-width: 960px; margin: 0 auto; padding: 16px; }
header h1 { font-size: 1.5rem; margin: 8px 0 4px; }
.tagline { color: var(--muted); margin: 0 0 8px; }
.badge { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; border-bottom: 2px solid var(--line); }
.tabs button { border: 0; background: none; padding: 8px 12px; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
section h2 { font-size: 1.2rem; }
button { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 6px 14px; }
button.link, button.choice { background: none; color: var(--accent); }
button.choice[aria-pressed="true"] { background: var(--accent); color: #fff; }
button + button { margin-left: 6px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.checklist label { margin-left: 8px; }
.help { color: var(--muted); font-size: .9rem; margin: 4px 0 0 26px; }
.src { font-size: .85rem; margin-left: 8px; color: var(--accent); }
.q { padding: 10px 0; border-bottom: 1px solid var(--line); }
.q p { margin: 0 0 6px; }
.result { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--soft); border-left: 4px solid var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; align-items: end; margin-bottom: 12px; }
label { display: flex; flex-direction: column; font-size: .92rem; gap: 4px; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.calc-out { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; padding: 12px 14px; background: var(--soft); border-radius: 10px; }
.calc-out dt { color: var(--muted); }
.calc-out dd { margin: 0; font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; white-space: nowrap; }
.deadlines { list-style: none; padding: 0; }
.deadlines li { padding: 8px 10px; border-left: 4px solid var(--line); margin-bottom: 6px; background: var(--soft); border-radius: 6px; }
.deadlines li.soon { border-left-color: var(--warn); }
.deadlines li.past { color: var(--past); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); }
footer { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.disclaimer { font-weight: 700; color: var(--fg); }
.error { white-space: pre-wrap; color: #b00020; }

/* 見本データ（台帳）。見本の行は薄い色で、実データと見分けられるようにする */
.sample-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.sample-bar .sample-msg { flex-basis: 100%; margin: 0; font-size: .9em; }
tr.is-sample td { background: #f4f7fa; font-style: italic; }
.notice { border-left: 4px solid #b45309; background: #fff7ed; padding: .5rem .75rem; margin: .5rem 0; }
