:root {
  color-scheme: light;
  --ink: #1e2633;
  --muted: #687385;
  --line: #dce2ea;
  --accent: #3c5d9a;
  --accent-dark: #2e4778;
  --surface: #ffffff;
  --background: #f3f6fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #eef3fb 0%, var(--background) 48%, #eef1f5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
}

.shell { width: min(100% - 32px, 720px); margin: 0 auto; padding: 48px 0 32px; }
.back-link { color: var(--accent); font-size: .9rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.card { margin-top: 18px; padding: clamp(24px, 5vw, 52px); background: var(--surface); border: 1px solid rgba(60, 93, 154, .1); border-radius: 18px; box-shadow: 0 18px 45px rgba(28, 44, 72, .08); }
.eyebrow { margin: 0; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .18em; }
h1 { margin: 6px 0 12px; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: .02em; }
.lead { margin: 0 0 32px; color: var(--muted); font-size: .96rem; }
.field { margin-top: 22px; }
label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 700; }
label span { margin-left: 6px; color: #bd5360; font-size: .72rem; font-weight: 600; }
input:not([type="checkbox"]), select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; color: var(--ink); background: #fbfcfe; font: inherit; font-size: .96rem; }
textarea { min-height: 160px; resize: vertical; }
input:not([type="checkbox"]):focus, select:focus, textarea:focus { outline: 3px solid rgba(60, 93, 154, .16); border-color: var(--accent); }
.consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 26px; font-weight: 400; }
.consent input { width: 17px; height: 17px; margin-top: 5px; flex: 0 0 auto; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.error { min-height: 1.2em; margin: 4px 0 0; color: #bd5360; font-size: .8rem; }
button { width: 100%; margin-top: 24px; padding: 13px 18px; border: 0; border-radius: 9px; color: #fff; background: var(--accent); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
button:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .65; }
.status { min-height: 1.6em; margin: 16px 0 0; text-align: center; font-size: .9rem; }
.status.success { color: #287353; }
.status.failure { color: #bd5360; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-note { margin: 20px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
