:root {
  --primary: #2b4c7e;
  --primary-light: #4a7cb8;
  --accent: #c97b4b;
  --background: #f9f6f2;
  --panel: #ffffff;
  --text: #2d3748;
  --muted: #5f6b7a;
  --border: #dce3eb;
  --error: #a61b1b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}
a { color: var(--primary-light); }
.page-header {
  padding: 28px 20px;
  color: #fff;
  background: var(--primary);
}
.page-header-inner, main { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.page-header p { margin: 0 0 4px; font-size: .85rem; opacity: .85; }
.page-header h1 { margin: 0; font-size: clamp(1.35rem, 4vw, 2rem); }
main { padding: 32px 0 56px; }
.panel {
  padding: clamp(20px, 4vw, 36px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(31, 52, 78, .08);
}
.intro { margin-top: 0; color: var(--muted); }
.required { color: #b42318; font-size: .78rem; margin-left: 6px; }
.field { margin: 0 0 24px; }
.field > label, .field > legend { display: block; margin-bottom: 8px; font-weight: 700; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choice-list { display: grid; gap: 8px; }
.choice-list label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #aeb9c6;
  border-radius: 7px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(74, 124, 184, .2); border-color: var(--primary-light); }
.note { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.errors { margin-bottom: 24px; padding: 16px 20px; color: var(--error); background: #fff3f3; border: 1px solid #efb8b8; border-radius: 8px; }
.errors p { margin: 0 0 6px; font-weight: 700; }
.errors ul { margin: 0; padding-left: 1.2em; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block;
  min-width: 180px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--primary-light); }
.button.secondary { color: var(--primary); background: #eaf0f7; }
.confirm-list { margin: 0; }
.confirm-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.confirm-row dt { font-weight: 700; }
.confirm-row dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.complete { text-align: center; }
.complete h2 { color: var(--primary); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 560px) {
  .button-row { flex-direction: column; }
  .button { width: 100%; }
}
