* { box-sizing: border-box; }
html, body {
  min-height: 100%; margin: 0; background: #f6f8fa; color: #263238;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 400; line-height: 1.6; overflow-wrap: break-word;
}
main {
  width: 840px; max-width: calc(100% - 32px); margin: 24px auto 48px;
  padding: 28px 32px 36px; background: #fff; border: 1px solid #d9e0e5;
  border-radius: 8px; box-shadow: 0 2px 10px rgba(31, 45, 61, .06);
}
h1 { margin: 0 0 20px; color: #1f3547; font-size: 1.65rem; line-height: 1.4; }
h2 {
  margin: 28px 0 12px; padding: 0 0 8px 12px; border-left: 5px solid #376b91;
  border-bottom: 1px solid #d7e0e7; color: #253b4a; font-size: 1.08rem;
  font-weight: 700; text-decoration: none;
}
.center { padding-left: 0; border-left: 0; text-align: center; }
.completion-header {
  display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 28px;
  padding: 18px 20px; border: 1px solid #9ac4aa; border-left: 5px solid #2f7d4a;
  border-radius: 6px; background: #f1f8f3; color: #173d27;
}
.completion-header .completion-mark {
  display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center;
  border-radius: 50%; background: #2f7d4a; color: #fff; font-size: 1.15rem;
  font-weight: 700; line-height: 1;
}
.completion-header h2 {
  margin: 0 0 4px; padding: 0; border: 0; color: #173d27;
  font-size: 1.2rem; line-height: 1.45;
}
.completion-header p { margin: 0; color: #304f3a; }
.confirm-intro {
  margin: 4px 0 26px; padding: 15px 17px; border-left: 5px solid #376b91;
  background: #f2f7fa; color: #263b49;
}
.confirm-intro h2 {
  margin: 0 0 4px; padding: 0; border: 0; color: #253b4a;
  font-size: 1.12rem; line-height: 1.45;
}
.confirm-intro p { margin: 0; }
.billing-summary {
  display: flex; gap: 16px; margin: 16px 0 22px; padding: 10px 12px;
  border: 1px solid #d4dde3; border-radius: 5px; background: #f7f9fa; color: #263b49;
}
.billing-summary span { min-width: 128px; font-weight: 700; }
.completion-guidance {
  margin-top: 24px; padding: 14px 16px; border-top: 1px solid #cbd5dc;
  background: #f7f9fa; color: #344852;
}
.completion-guidance p { margin: 3px 0; }
.completion-guidance p:last-child { margin-top: 9px; color: #52636c; font-size: .9rem; }
.process-guidance {
  margin-top: 24px; padding: 13px 16px; border-top: 1px solid #cbd5dc;
  background: #f7f9fa; color: #344852;
}
.process-guidance p { margin: 3px 0; }
.process-guidance p:last-child { color: #52636c; }
table { width: 100%; margin-bottom: 20px; border-collapse: separate; border-spacing: 0; border: 1px solid #cbd5dc; border-radius: 6px; overflow: hidden; }
th, td { padding: 11px 12px; border: 0; border-bottom: 1px solid #dce3e8; vertical-align: top; text-align: left; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
th {
  width: 185px; background: #eef3f6; color: #263b49; font-weight: 700;
  border-right: 1px solid #d5dee4;
}
.required-badge {
  display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 3px;
  background: #b42318; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.5;
  vertical-align: .08em;
}
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #788791;
  border-radius: 4px; background: #fff; color: #111820; font: inherit;
  font-size: 1rem; font-weight: 500; line-height: 1.5; caret-color: #111820;
}
input[type=tel] { max-width: none; }
textarea { min-height: 88px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #687680; font-weight: 400; opacity: 1; }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111820;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out 0s;
}
input:hover, textarea:hover { border-color: #465e6d; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid #8bc4ff; outline-offset: 2px; border-color: #245d87;
}
.field-help { display: block; margin-top: 6px; color: #4f5f69; font-size: .875rem; }
.info-box {
  margin: 0 0 24px; padding: 14px 16px; border: 1px solid #9eb9cb;
  border-left: 5px solid #376b91; border-radius: 5px; background: #f0f7fb; color: #263b49;
}
.info-box strong { display: block; margin-bottom: 3px; }
.info-box p { margin: 2px 0; }
.billing-toggle {
  margin: 20px 0; padding: 13px 15px; border: 1px solid #ccd6dc; border-radius: 5px;
  background: #f7f9fa;
}
.billing-toggle input { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; }
.billing-toggle label { font-weight: 600; cursor: pointer; }
.buttons { display: flex; justify-content: center; gap: 24px; margin: 28px 0 8px; }
.buttons button {
  min-width: 240px; min-height: 46px; padding: 9px 20px; border: 1px solid #244b68;
  border-radius: 5px; background: #315f80; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.buttons button:hover { background: #244d6a; }
.buttons .secondary { background: #5f6870; border-color: #454d53; }
.notices {
  margin: 24px 0 0; padding: 14px 16px; border: 1px solid #d5c48d;
  border-radius: 5px; background: #fff9e8; color: #594b20; font-weight: 600;
}
.notices p { margin: .2em 0; }
.errors { margin-bottom: 18px; padding: 10px 16px; border: 2px solid #b00020; border-radius: 5px; background: #fff4f5; color: #8b0018; }
.errors ul { margin: 4px 0; padding-left: 1.5em; }
.hidden, [hidden] { display: none !important; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.completion-note, .status-box { margin: 24px 0; padding: 16px; border: 1px solid #8b9499; border-radius: 5px; background: #f5f7f8; font-weight: 600; }
.button-link { display: inline-block; padding: 8px 18px; border: 1px solid #24445e; border-radius: 4px; background: #385d7a; color: #fff; text-decoration: none; }
.buttons button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 600px) {
  main { max-width: calc(100% - 16px); margin: 8px auto 24px; padding: 20px 14px 28px; border-radius: 4px; }
  h1 { font-size: 1.35rem; }
  .completion-header { gap: 10px; padding: 15px 14px; }
  .completion-header .completion-mark { flex-basis: 28px; width: 28px; height: 28px; }
  .billing-summary { display: block; }
  .billing-summary span { display: block; margin-bottom: 2px; }
  th, td { display: block; width: 100%; }
  th { padding: 8px 10px; border-right: 0; border-bottom: 1px solid #d5dee4; }
  td { padding: 10px; }
  tr:last-child > th { border-bottom: 1px solid #d5dee4; }
  .confirm-intro { padding: 13px 14px; }
  .buttons { flex-direction: column-reverse; gap: 12px; }
  .buttons button { width: 100%; min-width: 0; }
}
