:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #2b2724;
  --muted: #6f6861;
  --border: #ddd6cd;
  --accent: #8a6d4b;
  --accent-strong: #6e5538;
  --accent-contrast: #ffffff;
  --error: #b3261e;
  --error-bg: #fbeceb;
  --focus: #2f6fdf;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1917;
    --surface: #24211e;
    --text: #ece7e1;
    --muted: #a69e95;
    --border: #3d3832;
    --accent: #c9a77f;
    --accent-strong: #ddbf9a;
    --accent-contrast: #1b1917;
    --error: #f2b8b5;
    --error-bg: #3a1f1d;
    --focus: #8ab4f8;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.site-header, .site-footer {
  text-align: center;
  padding: 16px;
}
.brand {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.site-footer { color: var(--muted); font-size: 0.8rem; margin-top: 48px; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.hero { margin: 0 -16px; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
@media (min-width: 760px) { .hero { margin: 0; } .hero img { border-radius: 4px; } }

.title { text-align: center; font-size: 1.35rem; font-weight: 600; margin: 32px 0 8px; }
.title-brand { display: block; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.2em; font-weight: normal; }

.steps {
  display: flex; justify-content: center; gap: 8px;
  list-style: none; padding: 0; margin: 16px 0 24px;
  font-size: 0.85rem; color: var(--muted);
}
.steps li { padding: 4px 14px; border: 1px solid var(--border); border-radius: 999px; }
.steps li[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 24px 16px; }
@media (min-width: 600px) { .panel { padding: 32px; } }

.lead { margin-top: 0; font-size: 0.9rem; }
.req { color: var(--error); }

fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-weight: 600; font-size: 1rem; padding: 0 0 8px; border-bottom: 2px solid var(--accent); width: 100%; margin-bottom: 16px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 10px 12px;
}
.field input:focus-visible, .field select:focus-visible, .checkbox input:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field .input-short { max-width: 16rem; }
.field input[type="file"] { padding: 8px; cursor: pointer; }
.hint { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }
.error { margin: 4px 0 0; font-size: 0.85rem; color: var(--error); }
.error:empty { display: none; }
.error.banner { background: var(--error-bg); padding: 10px 12px; border-radius: 4px; }

.notice { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; }

.consent { margin: 16px 0; }
.consent .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; }
.consent a { color: var(--accent-strong); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.btn {
  font: inherit; font-weight: 600; min-width: 200px;
  padding: 12px 24px; border-radius: 999px; cursor: pointer; border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: transparent; color: var(--accent-strong); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 480px) { .btn { width: 100%; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { display: flex; justify-content: center; margin-top: 24px; min-height: 65px; }

.confirm-list { margin: 0; }
.confirm-list div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 600px) { .confirm-list div { grid-template-columns: 200px 1fr; } }
.confirm-list dt { font-size: 0.85rem; color: var(--muted); }
.confirm-list dd { margin: 0; overflow-wrap: anywhere; }

.complete-title { text-align: center; font-size: 1.2rem; margin-top: 0; }
