:root {
  --text: #1f2933;
  --muted: #5f6c7b;
  --border: #c5ced8;
  --accent: #1d5fd1;
  --accent-dark: #174ca6;
  --error: #b42318;
  --bg: #f3f5f8;
}

* { box-sizing: border-box; }

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

.card {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

h1 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.4; }
.lead { margin: 0 0 24px; color: var(--muted); white-space: pre-line; }
.message { margin: 0; }

.field { margin-bottom: 20px; }
.field > label, .field > legend { display: block; margin-bottom: 6px; font-weight: 600; padding: 0; }
fieldset.field { border: 0; margin-left: 0; margin-right: 0; padding: 0; min-width: 0; }

.req {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: inherit;
}
textarea { resize: vertical; min-height: 140px; }

input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(29, 95, 209, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }

.option, .consent { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; }
.option input, .consent input { margin-top: 0.45em; }

.help { margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; }
.error { margin: 4px 0 0; color: var(--error); font-size: 0.875rem; min-height: 0; }

/* ハニーポット: 人間には見えない・触れない位置に置く */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#captcha { margin: 8px 0 20px; min-height: 65px; }

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button[type="submit"]:hover:not(:disabled) { background: var(--accent-dark); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.status { margin: 16px 0 0; min-height: 1.7em; }
.status.is-error { color: var(--error); }

.done h1 { color: var(--accent-dark); }
