:root {
  --bg: #F6F1E7; --ink: #14182A; --muted: #5a6275; --line: #E4DCCB; --card: #FFFFFF;
  --navy: #1F2A44; --navy-soft: #E9EDF6; --red: #D7412E; --red-soft: #FBE9E4;
  --gold: #E8B94A; --gold-soft: #FFF7DF; --green: #3FA66B; --green-soft: #E6F4EA;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1.6;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
a { color: var(--navy); }
header.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 18px; padding: 10px 20px; flex-wrap: wrap; }
header .brand { color: #fff; font-weight: 900; font-size: 20px; text-decoration: none; }
header nav a { color: #fff; text-decoration: none; font-weight: 700; margin-right: 10px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.12); }
header nav a:hover { background: var(--gold); color: var(--navy); }
header .who { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
header .who a { color: var(--gold); font-weight: 700; text-decoration: none; }
button.small { font-size: 15px; padding: 5px 12px; background: rgba(255,255,255,.18); }
main.login { max-width: 440px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: 0 6px 18px rgba(31,42,68,.08); }
main.login h1 { font-size: 24px; margin: 0 0 16px; text-align: center; }
main.login label { display: block; margin: 12px 0; font-weight: 700; }
main.login input { width: 100%; font-size: 20px; margin-top: 4px; }
button.big { width: 100%; font-size: 20px; padding: 12px; margin-top: 12px; }
select, input[type=text], input[type=number], input[type=time], textarea {
  font: inherit; font-size: 18px; padding: 8px 10px; border: 1px solid #b9b3a6; border-radius: 8px; background: #fff; }
button { font: inherit; font-size: 18px; font-weight: 700; padding: 8px 16px; border-radius: 10px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }
button:hover { background: var(--red); }
button.danger { background: #fff; color: var(--red); border: 2px solid var(--red); }
button.danger:hover { background: var(--red); color: #fff; }
button.ok { background: var(--green); }
main { max-width: 1120px; margin: 0 auto; padding: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 4px 14px rgba(31,42,68,.06); }
.card.holiday { background: #ECE9E2; color: var(--muted); }
.card h2 { margin: 0 0 8px; font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.b-none { background: #e6e6e6; color: #555; }
.b-skel { background: var(--gold-soft); color: #7a5a00; }
.b-adj  { background: var(--navy-soft); color: var(--navy); }
.b-ok   { background: var(--green-soft); color: #1d6b3d; }
.b-open { background: var(--red-soft); color: var(--red); }
.b-end  { background: #e6e6e6; color: #555; }
.warn { margin-top: 8px; padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.warn.red { background: var(--red-soft); color: var(--red); }
.warn.yellow { background: var(--gold-soft); color: #7a5a00; }
.warn.info { background: var(--navy-soft); color: var(--navy); }
.meta { color: var(--muted); font-size: 16px; }
section.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 18px 0; }
section.box h2 { margin: 0 0 12px; font-size: 22px; border-left: 8px solid var(--red); padding-left: 10px; }
section.box h3 { margin: 18px 0 8px; font-size: 19px; color: var(--navy); }
.grid-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.grid-check label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #f5f3ee; cursor: pointer; }
.grid-check input { width: 22px; height: 22px; }
label.chk input { width: 22px; height: 22px; vertical-align: middle; }
.grp { font-weight: 900; color: var(--navy); margin: 12px 0 4px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--navy-soft); font-size: 16px; }
.row-form { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
footer { text-align: center; color: var(--muted); padding: 24px; font-size: 15px; }
a.btnlink { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 900; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
a.btnlink:hover { background: var(--red); color: #fff; }
.done { color: #1d6b3d; font-weight: 700; }
.notyet { color: var(--muted); }
table.kv th { width: 260px; text-align: left; background: var(--navy-soft); font-weight: 700; }
table.kv td { background: #fff; }
ul.rules { margin: 0; padding-left: 24px; font-size: 18px; line-height: 1.9; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: #fbfaf7; }
.item-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 19px; }
.b-kind { background: var(--gold-soft); color: #7a5a00; }
.slots { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
optgroup { font-weight: 900; }
