:root {
  --ink: #27231f;
  --muted: #746d64;
  --paper: #fbfaf7;
  --line: #ddd5ca;
  --accent: #8b7355;
  --accent2: #c4a882;
  --error: #b42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  line-height: 1.75;
}
a { color: inherit; }
.site-header {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 5vw;
}
.site-header img { width: 150px; height: auto; }
.wrap {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 34px 0 56px;
}
.intro { text-align: center; padding: 8px 8px 28px; }
.eyebrow {
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 9px;
}
.intro h1 {
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 400;
}
.intro h1 span { font-size: .62em; letter-spacing: .08em; }
.intro > p:not(.lead) { font-size: 14px; color: var(--muted); }
.lead { font-size: 15px; color: var(--muted); margin: 18px auto 0; max-width: 540px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(70, 50, 30, .06);
  padding: clamp(20px, 5vw, 42px);
  border-radius: 2px;
}
.form { display: grid; gap: 25px; }
.form fieldset { border: 0; border-top: 1px solid var(--line); padding: 23px 0 0; margin: 0; min-width: 0; }
.form legend { font-size: 20px; padding: 0 14px 0 0; font-weight: 400; }
.form label:not(.check) { display: block; font-size: 14px; margin: 16px 0 6px; }
.required { font-size: 11px; color: #fff; background: var(--accent); padding: 2px 6px; margin-left: 5px; }
.optional { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 2px 6px; margin-left: 5px; }
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="number"],
.form textarea,
.form input:not([type]) {
  font: inherit;
  font-size: 16px;
  width: 100%;
  border: 1px solid #cfc5b8;
  border-radius: 2px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
.form textarea { resize: vertical; }
.helper, .fine { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.age-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  margin: 10px 0;
}
.age-row label {
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.age-row label input { min-width: 0; }
.age-row label span { white-space: nowrap; }
.age-row .remove { grid-column: 1 / -1; width: 100%; }
.remove {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 9px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.remove:disabled { opacity: .35; cursor: not-allowed; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 8px 0; font: inherit; cursor: pointer; }
.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.slot {
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 12px 10px;
  cursor: pointer;
  min-width: 0;
}
.slot span { min-width: 0; }
.slot:has(input:checked) { border-color: var(--accent); background: #f5f0e9; }
.slot input { width: 19px; height: 19px; accent-color: var(--accent); flex: none; }
.slot.is-full { opacity: .55; cursor: not-allowed; background: #f4f1ed; }
.slot.is-full input { cursor: not-allowed; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin: 13px 0;
  min-width: 0;
}
.check span { min-width: 0; overflow-wrap: anywhere; }
.check input { margin-top: 6px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  padding: 14px 22px;
  min-height: 52px;
  cursor: pointer;
  letter-spacing: .05em;
}
.button:hover { background: #6e5942; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 25px; }
.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.error { color: var(--error); font-size: 13px; margin: 5px 0 0; }
.form-error { padding: 12px 15px; background: #fff1f0; border: 1px solid #f3c5c0; }
.fine { border-top: 1px solid var(--line); padding-top: 18px; }
.notice { padding: 12px 14px; background: #f5f0e9; font-size: 14px; }
.confirm-list, .confirmation {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
}
.confirm-list dt, .confirmation dt { color: var(--muted); }
.confirm-list dd, .confirmation dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.thanks { text-align: center; }
.thanks h1 { font-size: 30px; font-weight: 400; }
.receipt { background: #f5f0e9; margin: 24px 0; padding: 16px; }
.receipt span, .receipt strong { display: block; }
.receipt strong { font-size: 26px; letter-spacing: .1em; color: var(--accent); }
.thanks h2 { text-align: left; font-size: 18px; font-weight: 400; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.thanks dl { text-align: left; font-size: 14px; }
.thanks dt { color: var(--muted); }
.thanks dd { margin: 0 0 8px; }
.contact { margin-top: 28px; font-size: 14px; }
footer { text-align: center; padding: 26px 16px 40px; color: var(--muted); font-size: 12px; }
footer img { width: 125px; opacity: .7; }
.honeypot { position: absolute; left: -9999px; }

@media (min-width: 600px) {
  .slot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .age-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px; }
  .age-row .remove { grid-column: auto; width: auto; }
}

@media (max-width: 420px) {
  .wrap { width: min(100% - 20px, 720px); padding-top: 24px; }
  .card { padding: 20px 16px; }
  .actions { flex-direction: column-reverse; }
  .actions .button { width: 100%; }
  .confirm-list, .confirmation { grid-template-columns: 8em minmax(0, 1fr); font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
