/* =========================================================
   tokens
   ========================================================= */
:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --ink: #2c3e50;
  --ink_soft: #5a6b7a;
  --ink_faint: #8b98a3;
  --line: #dddddd;
  --accent: #2c3e50;
  --cta: #e67e22;
  --cta_hover: #d35400;
  --danger: #c0392b;
  --radius: 8px;
  --radius_sm: 4px;
  --shadow: 0 4px 15px rgba(0, 0, 0, .1);
  --field_label_w: 100%;
}

/* =========================================================
   base
   ========================================================= */
* { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
figure { margin: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Arial, Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
input, select, textarea, button { font-family: inherit; }

/* =========================================================
   layout
   ========================================================= */
.page_shell { max-width: 800px; margin: 0 auto; padding: 24px 16px 60px; }

.entry_header { text-align: center; padding: 20px 0 24px; }
.entry_header .entry_title { font-size: 21px; font-weight: 700; color: var(--ink); }
.entry_header .entry_lead { margin-top: 8px; font-size: 13px; color: var(--ink_soft); }
.entry_notice {
  margin-top: 14px; padding: 10px 14px;
  background: #fff6ec; border: 1px solid #f0d9b8;
  border-radius: var(--radius_sm);
  font-size: 12.5px; color: #8a5a1e; text-align: left;
}

.entry_card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
}
.entry_card + .entry_card { margin-top: 18px; }

/* =========================================================
   セクション見出し
   ========================================================= */
.heading_section {
  font-weight: 700; font-size: 16px; color: var(--ink);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 18px;
}

/* =========================================================
   フォーム部品
   ========================================================= */
.form_grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
  .form_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .form_grid .field.col_2 { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink_soft); }
.field > .hint { font-size: 11.5px; color: var(--ink_faint); }
.field > .hint_confirm { font-size: 11.5px; color: var(--danger); font-weight: 600; }
.req { color: var(--danger); font-size: 11px; margin-left: 4px; }

input[type=text], input[type=number], input[type=date],
input[type=email], input[type=tel], select, textarea {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius_sm);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, .12);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235a6b7a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.other_toggle_input[hidden] { display: none; }

.radio_row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pill_choice {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; background: var(--surface); color: var(--ink_soft);
}
.pill_choice input { accent-color: var(--accent); }
.pill_choice.checked { background: #eaeef1; border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* =========================================================
   規約同意
   ========================================================= */
.terms_box {
  max-height: 220px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius_sm);
  padding: 12px 14px; font-size: 12px; color: var(--ink_soft);
  background: #fafbfb;
}
.terms_box p + p { margin-top: 8px; }
.terms_agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13.5px; }
.terms_agree input { margin-top: 3px; accent-color: var(--accent); }

/* =========================================================
   送信ボタン・完了画面
   ========================================================= */
.btn_submit {
  display: block; width: 100%;
  padding: 16px; margin-top: 8px;
  background: var(--cta); color: #fff;
  border: none; border-radius: 5px;
  font-size: 17px; font-weight: 700;
  cursor: pointer;
  transition: background-color .12s;
}
.btn_submit:hover { background: var(--cta_hover); }

.error_summary {
  background: #fdecea; border: 1px solid #f5c6c0;
  color: var(--danger); border-radius: var(--radius_sm);
  padding: 12px 14px; margin-bottom: 18px; font-size: 13px;
}
.error_summary ul { margin: 6px 0 0; padding-left: 18px; }

.entry_footer { text-align: center; padding: 30px 0 10px; color: var(--ink_faint); font-size: 11.5px; }

/* utilities */
.mt_16 { margin-top: 16px; }

.thanks_card { text-align: center; padding: 48px 18px; }
.thanks_icon { font-size: 40px; }
.thanks_title { margin-top: 12px; font-size: 19px; font-weight: 700; color: var(--ink); }
.thanks_body { margin-top: 10px; font-size: 13.5px; color: var(--ink_soft); line-height: 1.8; }
