

:root {
  --text: #222;
  --muted: #666;
  --border: #d9d9d9;
  --bg: #f5f6f8;
  --surface: #fff;
  --primary: #000;
  --error: #c62828;
  --error-bg: #fff5f5;
  --note-bg: #f7f9fb;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
}

button, input, textarea { font: inherit; }

button { cursor: pointer; }

.page { min-height: 100vh; padding-bottom: 80px; }

p {
  font-size: 15px;
}

.content .site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 30px;
  position: unset;
}

.container {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

h1, h2 { line-height: 1.4; }

.site-header h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: bold;
}

.card h2 {
  margin: 0 0 22px;
  font-size: 23px;
  border-bottom: 1px solid #1f2225;
  line-height: 1.5;
  padding-bottom: 10px;
  font-weight: bold;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 30px 0;
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  color: #999;
  border-bottom: 3px solid #ddd;
  font-weight: 700;
}

.step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-size: 13px;
}

.step.is-active {
  color: var(--primary);
  border-color: var(--primary);
}

.step.is-active span { background: var(--primary); }

.screen { display: none; }
.screen.is-visible { display: block; }

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

.error-message {
  display: none;
  align-items: center;
  gap: 6px;
}

.error-message.is-visible {
  display: flex;
}

.error-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--error);
}

.error-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.error-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--error);
}

.error-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.button-stack {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button-row .btn, .complete-card .btn {
  flex: 1;
  min-height: 52px;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 10px 22px;
  font-weight: 700;
  transition: .2s ease;
}

.button-row .btn-primary {
  color: #fff;
  background: var(--primary);
}
.button-row .btn-secondary,.complete-card .btn-secondary {
  color: #333;
  background: #fff;
  border-color: #bdbdbd;
}

.button-row .btn-secondary:hover, .complete-card .btn:hover {
  background: #f5f5f5;
}
.button-row .btn:hover, .complete-card .btn:hover {
  opacity: 1 !important;
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  border: 2px solid #000;
}

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

.form-error-summary {
  display: none;
  margin: -4px 0 24px;
  padding: 16px 18px;
  background: var(--error-bg);
  border: 1px solid #e7aaaa;
  border-radius: 5px;
  color: var(--error);
}
.form-error-summary strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-error-summary .error-icon {
  width: 18px;
  height: 18px;
}

.form-error-summary.is-visible {
  display: block;
}

.form-error-summary strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.form-error-summary p {
  margin: 0;
  font-size: 13px;
  color: #000;
}

.required, .required-note span { color: var(--error); }

.optional {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  color: #666;
  background: #eee;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  vertical-align: middle;
  line-height: 1.8;
}

.field { margin-bottom: 25px; }

.field label, .field legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

fieldset.field {
  border: 0;
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 5px;
  padding: 12px 14px;
  background: #fff;
  box-sizing: border-box;
}

.field input[type="text"],
.field input[type="email"] { min-height: 48px; }

.field textarea {
  min-height: 190px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: #aaa; }

.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
  background: var(--error-bg);
}
.field .field-note {
  margin: 15px 0;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.radio-group label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.radio-group input { accent-color: var(--primary); }

.lead {
  margin: -8px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.confirm-list {
  margin: 0;
  border-top: 1px solid var(--border);
}

.confirm-list > div {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--border);
}

.confirm-list dt,
.confirm-list dd {
  margin: 0;
  padding: 15px;
}

.confirm-list dt {
  background: #f7f7f7;
  font-weight: 700;
}

.pre-wrap { white-space: pre-wrap; }

.important-note {
  margin-top: 24px;
  padding: 15px 18px;
  background-color: #f7f7f7;
  font-size: 14px;
}

.dev-note {
  margin: 16px 0 0;
  color: #777;
  font-size: 12px;
  text-align: center;
}
.complete-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #edf5fa;
  color: var(--primary);
  font-size: 34px;
  font-weight: 700;
}
.complete-card {
  text-align: center;
  padding-top: 52px;
  padding-bottom: 52px;
}

.complete-card h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 5vw, 34px);
}

.complete-text {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #333;
  font-size: 15px;
}

.complete-mail-note {
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 18px 22px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
  text-align: center;
}

.complete-mail-note h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.5;
}

.complete-mail-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

.complete-caution {
  margin: 0 auto 30px;
  font-size: 14px;
  color: #333;
}

.complete-card .btn {
  min-width: 180px;
}

.complete-text {
  max-width: 620px;
  margin: 0 auto 30px;
  color: #555;
}
.privacy-consent {
  margin-top: 28px;
  padding: 40px;
  border: 1px solid #bbb;
  border-radius: 5px;
  background-color: #f2f3f6;
}

.privacy-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: #000;
  cursor: pointer;
}

.privacy-consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  margin: 2px 0 0;
  accent-color: #fff;
  cursor: pointer;
  appearance: checkbox;
}

.privacy-consent-label > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.privacy-consent-label strong {
  font-size: 16px;
  line-height: 1.6;
}
.privacy-consent-label strong a {
  color: #000;
  text-decoration: underline;
}

.privacy-consent-label small {
  font-size: 14px;
  line-height: 1.6;
  color: #000;
}

.privacy-consent .error-message {
  margin: 10px 0 0 32px;
}

.privacy-consent.has-error {
  background: var(--error-bg);
  border-color: #e7aaaa;
}

.privacy-consent.has-error .privacy-consent-label small {
  color: #000;
}

.privacy-consent.has-error .privacy-consent-label .required {
  color: var(--error);
}

.privacy-consent.has-error .error-message {
  color: var(--error);
}
.privacy-consent-label small a {
  color: #0094eb;
  text-decoration: none;
}
.privacy-consent-label small a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 900px); }

  .content .site-header { padding: 26px 0 24px; }

  .steps { margin: 20px 0; }
  .step { gap: 4px; font-size: 12px; }
  .step span { width: 24px; height: 24px; }

  .button-row { flex-direction: column-reverse; }
  .button-row .btn,.complete-card .btn { width: 100%; }

  .confirm-list > div { grid-template-columns: 1fr; }
  .confirm-list dt { padding-bottom: 6px; }
  .confirm-list dd { padding-top: 6px; }
}
