@charset "utf-8";

:root {
  --navy: #123653;
  --deep: #0d2a42;
  --ink: #172a39;
  --muted: #677681;
  --gold: #cda34f;
  --gold-light: #e8ca87;
  --cream: #f6f2e9;
  --paper: #fcfbf8;
  --line: #d9dedf;
  --error: #a33b2b;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: .03em;
}
a { color: inherit; }

.form-site-header {
  height: 84px;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100% - 1040px) / 2));
  background: #fff;
  border-bottom: 1px solid rgba(18, 54, 83, .12);
}
.form-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
}
.form-brand strong {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: .12em;
}
.form-brand span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: .12em;
}

#wrapper {
  width: min(900px, calc(100% - 48px));
  margin: 64px auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(16, 42, 61, .1);
}
#main { padding: 54px; }
.section { margin: 0; }
.eyebrow {
  margin: 0 0 15px;
  color: #8b6b2d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
}
.section__ttl {
  margin: 0 0 30px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 600;
  line-height: 1.45;
}
.section__ttl small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
}
.section__body { padding: 0; }
#txt_explain { margin-bottom: 30px; color: var(--muted); }
#txt_explain p { margin: 0 0 8px; }
.required-note { font-size: 11px; }
.required-note span, .red { color: var(--error); }
.red_txt { margin: 0 0 20px; color: var(--error); font-weight: 700; }

.table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
.table th, .table td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.table th {
  width: 32%;
  background: var(--cream);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.table td { background: #fff; font-size: 13px; }

input, textarea, select, button { font: inherit; }
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #b8c2c6;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(205, 163, 79, .28);
  border-color: #8b6b2d;
}
input[type="radio"], input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 7px 2px 0;
  vertical-align: middle;
}
label { display: inline-flex; align-items: center; min-height: 36px; margin-right: 18px; cursor: pointer; }

.button_box {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  padding: 0;
}
input[type="submit"] {
  min-width: 230px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: #182b36;
  font-weight: 700;
  cursor: pointer;
}
input[type="submit"]:hover { filter: brightness(.96); }
input[type="submit"][value="戻る"] {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}
.back-link { margin-top: 28px; text-align: center; }
.back-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 5px;
}
.form-footer {
  padding: 30px 20px;
  background: var(--deep);
  color: #b9c5cd;
  font-size: 9px;
  letter-spacing: .14em;
  text-align: center;
}

.complete-wrapper { max-width: 720px; }
.complete-section { text-align: center; }
.complete-section #txt_explain { max-width: 570px; margin: 0 auto; }
.complete-section a { color: var(--navy); font-weight: 700; }
.complete-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 35px auto 0;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: #8b6b2d;
  font-family: var(--serif);
  font-size: 30px;
}
.primary-back a {
  min-width: 250px;
  justify-content: center;
  padding: 14px 22px;
  background: var(--gold);
  color: #182b36;
  text-decoration: none;
}

@media (max-width: 640px) {
  .form-site-header { height: 68px; padding: 0 16px; }
  .form-brand strong { font-size: 22px; }
  .form-brand span { font-size: 7px; }
  #wrapper { width: calc(100% - 28px); margin: 24px auto; }
  #main { padding: 28px 18px; }
  .section__ttl { margin-bottom: 22px; font-size: 28px; overflow-wrap: anywhere; }
  #txt_explain { margin-bottom: 23px; font-size: 13px; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); }
  .table th, .table td { border-bottom: 0; }
  .table th { padding: 14px 13px 8px; }
  .table td { padding: 8px 13px 16px; }
  .button_box { flex-direction: column; }
  input[type="submit"] { width: 100%; min-width: 0; }
  .confirm-buttons input[value="送信"] { order: 1; }
  .confirm-buttons input[value="戻る"] { order: 2; }
}

@media (max-width: 350px) {
  .form-brand span { display: none; }
  .section__ttl { font-size: 25px; }
}