:root {
  --navy: #2c3a63;
  --text: #333a4d;
  --muted: #5f6880;
  --line: #d5dbe6;
  --ground: #f2f5f9;
  --surface: #ffffff;
  --error: #b3261e;
  --accent-soft: #e6ebf5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a { color: var(--navy); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-header a { text-decoration: none; }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.intro p, .notice p { margin: 0 0 12px; }

.required-note {
  margin: 24px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.required {
  display: inline-block;
  padding: 0 7px;
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  vertical-align: 2px;
}

.field {
  min-width: 0;
  margin: 0 0 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.field.has-error { border-color: var(--error); }

.field > label:not(.choice), legend {
  display: block;
  padding: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.6;
}

/* legend は fieldset の枠に重なるので、float で枠の内側へ入れる */
legend { float: left; width: 100%; margin-bottom: 8px; }
legend + * { clear: both; }

.help {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.help p { margin: 0 0 6px; }

input[type="email"], input[type="text"], input[type="tel"] {
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  cursor: pointer;
}
.choice input { flex: none; width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--navy); }

.file-input {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed #9aa5bd;
  border-radius: 6px;
  background: var(--ground);
  font: inherit;
  font-size: 14px;
}

.limit { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.file-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.file-preview img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.error { margin: 8px 0 0; color: var(--error); font-size: 14px; font-weight: 500; }

.notice {
  margin: 28px 0 16px;
  padding: 22px 20px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-size: 14px;
}
.notice h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}
.notice p:last-child { margin-bottom: 0; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile { margin: 20px 0; }

.progress { margin: 20px 0 0; }
.progress p { margin: 0 0 8px; }
.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}
.progress-bar {
  width: 0;
  height: 100%;
  background: var(--navy);
  transition: width 0.2s;
}
.progress .progress-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.form-error {
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--error);
  border-radius: 6px;
  background: #fff;
  color: var(--error);
  font-weight: 500;
}

.submit {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 28px auto 0;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.submit:hover { background: #222d4e; }
.submit:disabled { background: #8c94aa; cursor: wait; }

.complete { outline: none; }
.complete .receipt {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.back-link { display: inline-block; margin-top: 12px; }

.site-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  text-align: center;
}
