/* 送迎表と入力画面で共通の色・文字・部品 */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5f6b7a;
  --line: #d9dee5;
  --head: #eef2f6;
  --accent: #2f6f9f;
  --accent-soft: #e3eef7;
  --warn: #b42318;
  --warn-soft: #fdecea;
  --ok: #1f7a4d;
  --radius: 8px;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15191e;
    --surface: #1e242b;
    --text: #e6e9ed;
    --muted: #9aa5b1;
    --line: #36404b;
    --head: #262e37;
    --accent: #7fb3dc;
    --accent-soft: #23384a;
    --warn: #f28b82;
    --warn-soft: #3b2220;
    --ok: #6fcf97;
    --on-accent: #10202e;
  }
}
:root[data-theme="dark"] {
  --bg: #15191e;
  --surface: #1e242b;
  --text: #e6e9ed;
  --muted: #9aa5b1;
  --line: #36404b;
  --head: #262e37;
  --accent: #7fb3dc;
  --accent-soft: #23384a;
  --warn: #f28b82;
  --warn-soft: #3b2220;
  --ok: #6fcf97;
  --on-accent: #10202e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 48px; }

header.top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.facility { color: var(--muted); font-size: 13px; }
h1 { margin: 2px 0 0; font-size: 22px; letter-spacing: .02em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs button {
  border: 0; background: var(--surface); color: var(--text);
  padding: 8px 18px; font: inherit; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn {
  display: inline-block; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: var(--radius); font: inherit; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:hover:not(:disabled), .tabs button:hover { filter: brightness(.97); }

input[type="date"], input[type="time"], input[type="text"], select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px;
}

.alerts { margin: 0; padding: 8px 14px; list-style: none; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }
.alerts li::before { content: "⚠ "; }
.sheet-alerts { border: 1px solid var(--warn); border-radius: var(--radius); margin-bottom: 16px; }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); margin: 0 4px 2px 0; background: var(--surface);
}
.tag.wc { border-color: var(--accent); color: var(--accent); }

.mock-note { margin-top: 20px; color: var(--muted); font-size: 12px; }

[hidden] { display: none !important; }

.notices { margin: 0 0 16px; padding: 8px 14px; list-style: none; background: var(--head); color: var(--muted); border-radius: var(--radius); font-size: 13px; }
.notices li::before { content: "ℹ "; }
.tag.cond { border-style: dashed; color: var(--muted); }
.tag.flag { border-color: var(--text); }
nav.pages { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
nav.pages a { padding: 4px 10px; border-radius: 999px; color: var(--accent); text-decoration: none; border: 1px solid transparent; }
nav.pages a[aria-current="page"] { border-color: var(--accent); font-weight: 600; }
@media print { nav.pages { display: none; } }
