:root {
  --paper: #faf7ef;
  --paper-light: #fffdf8;
  --paper-deep: #f1e7d6;
  --ink: #233049;
  --navy: #152c4c;
  --soft: #566176;
  --gold: #a8742f;
  --dawn: #dfb66e;
  --line: #ded1bc;
  --danger: #9b2d20;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 0;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 var(--sans);
  overflow-wrap: anywhere;
}

.wrap { width: min(100%, 1120px); margin-inline: auto; padding-inline: 28px; }
.narrow { max-width: 816px; }

.site-header { border-bottom: 1px solid rgba(222, 209, 188, .8); background: rgba(250, 247, 239, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 17px; }
.brand { color: var(--navy); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.back-link { color: var(--ink); font-size: .92rem; font-weight: 600; text-underline-offset: .22em; }

.intro { padding-block: clamp(54px, 9vw, 104px) clamp(38px, 6vw, 68px); background: var(--navy); color: var(--paper-light); }
.intro h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .015em; }
.intro h1 { max-width: 13em; margin: .3em 0 .65em; font-size: clamp(2rem, 5.4vw, 3.7rem); line-height: 1.38; text-wrap: balance; }
.intro p:not(.eyebrow) { max-width: 42em; margin: 0 0 1.2em; color: rgba(255, 253, 248, .9); }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .18em; line-height: 1.5; }
.intro .eyebrow { color: var(--dawn); }

.form-section { padding-block: clamp(42px, 7vw, 80px); }
form, .success-panel { padding: clamp(22px, 5vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper-light); box-shadow: 0 18px 48px rgba(21, 44, 76, .08); }
.field { margin-bottom: 2.1rem; }
.field label { display: block; margin-bottom: .7rem; color: var(--navy); font-family: var(--serif); font-size: clamp(1.06rem, 2.5vw, 1.25rem); font-weight: 600; line-height: 1.65; }
.question-number { display: inline-block; margin-right: .55em; color: var(--gold); font-family: var(--sans); font-size: .76em; letter-spacing: .08em; }
textarea, input[type="email"] { display: block; width: 100%; border: 1px solid #bcb09c; border-radius: 7px; background: #fffefb; color: var(--ink); font: inherit; line-height: 1.65; }
textarea { min-height: 10rem; padding: .8rem .95rem; resize: vertical; }
input[type="email"] { min-height: 3rem; padding: .55rem .8rem; }
.field-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; color: var(--soft); font-size: .82rem; }
.field-error { min-height: 1.7em; margin: .35rem 0 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.consent-row { display: flex; align-items: flex-start; gap: .75rem; margin-top: .25rem; }
.consent-row input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; margin-top: .38rem; accent-color: var(--navy); }
.consent-row label { color: var(--navy); font-size: .96rem; font-weight: 600; line-height: 1.65; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

button { width: 100%; min-height: 3.5rem; margin-top: 1.1rem; border: 1px solid var(--navy); border-radius: 7px; background: var(--navy); color: var(--paper-light); cursor: pointer; font: 700 1rem/1.3 var(--sans); letter-spacing: .06em; }
button:hover:not(:disabled) { background: #24466e; }
button:disabled { cursor: wait; opacity: .62; }
.form-status { margin-bottom: 1.5rem; padding: .85rem 1rem; border-left: 4px solid var(--danger); background: #fbebe8; color: #702116; font-weight: 600; }
.noscript-message { margin: 1rem 0 0; color: var(--danger); font-weight: 600; }
.success-panel h2 { margin: .3em 0 .65em; color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.4rem); }
.success-panel p:last-child { margin-bottom: 0; }
#receipt-id { color: var(--navy); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; overflow-wrap: anywhere; }

a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .wrap { padding-inline: 19px; }
  .header-inner { align-items: flex-start; padding-block: 14px; }
  .brand { max-width: 10em; line-height: 1.45; }
  .back-link { font-size: .85rem; }
  form, .success-panel { padding: 20px 16px; border-radius: 14px; }
  .field-meta { font-size: .77rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
