:root {
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans JP",
    sans-serif;
  color: #243451;
  background: #e8edf3;
  font-synthesis: none;
  line-height: 1.8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #2154ad;
  text-underline-offset: 4px;
}
header,
footer {
  max-width: 1120px;
  margin: auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 30px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -1px;
}
header > a:last-child {
  font-size: 14px;
}
main {
  max-width: 780px;
  margin: 32px auto 72px;
  padding: 0 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 750;
  color: #47688c;
}
h1 {
  font-size: clamp(27px, 4.5vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.45;
  margin: 12px 0 16px;
}
.intro {
  color: #52627a;
  margin-bottom: 32px;
}
.card {
  padding: 36px;
  background: #e8edf3;
  border-radius: 26px;
  box-shadow:
    12px 12px 28px #c7d0dd,
    -12px -12px 28px #fff;
  margin: 28px 0;
}
label {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 24px;
}
label > span {
  font-size: 12px;
  font-weight: 500;
  color: #65758b;
  margin-left: 8px;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #c6d1df;
  border-radius: 12px;
  background: #f4f7fb;
  color: #243451;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  margin-top: 8px;
  box-shadow: inset 3px 3px 7px #dae1eb;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 3px solid #7fa2df;
  outline-offset: 2px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
.consent input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 5px;
  accent-color: #285db7;
}
.consent > span {
  margin: 0;
  font-size: 13px;
  color: #46566f;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  padding: 12px 23px;
  background: #285db7;
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 12px #bcc9dc;
}
form > button {
  width: 100%;
}
button:hover,
.button:hover {
  background: #1e4a95;
}
button:focus-visible,
.button:focus-visible {
  outline: 3px solid #7fa2df;
  outline-offset: 4px;
}
.hint {
  font-size: 13px;
  line-height: 1.85;
  color: #596980;
}
.notice {
  padding: 18px 22px;
  border-radius: 12px;
}
.error {
  color: #8b2638;
  background: #f7e7eb;
}
.success {
  padding: 48px;
}
.success code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  letter-spacing: 1px;
}
.success .button {
  margin-top: 20px;
}
.inquiry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.badge {
  font-size: 12px;
  background: #d7e2f4;
  padding: 4px 12px;
  border-radius: 30px;
  white-space: nowrap;
}
.inquiry p {
  overflow-wrap: anywhere;
}
.inquiry pre {
  font: inherit;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f5fa;
  border-radius: 12px;
  padding: 20px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.actions form {
  margin: 0;
}
.secondary {
  background: #dce4ef;
  color: #304764;
  box-shadow: none;
}
.secondary:hover {
  background: #ccd8e7;
}
footer {
  font-size: 13px;
  color: #596980;
  border-top: 1px solid #cbd5e1;
}
@media (max-width: 600px) {
  header,
  footer {
    padding: 20px 24px;
    flex-wrap: wrap;
  }
  main {
    margin: 14px auto 48px;
    padding: 0 20px;
  }
  .card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .success {
    padding: 30px 24px;
  }
  .actions {
    align-items: stretch;
  }
  .actions > a,
  .actions > form {
    width: 100%;
  }
  .inquiry-heading {
    align-items: flex-start;
  }
}

.captcha-panel {
  margin: 24px 0;
  min-height: 88px;
}
.captcha-panel > p {
  margin-bottom: 12px;
}
.inbox-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}
.notice:not(.error) {
  background: #eaf2ff;
  color: #274c80;
  padding: 18px;
  border-radius: 12px;
}

select {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #c6d1df;
  border-radius: 12px;
  padding: 13px 12px;
  background: #f4f7fb;
  color: #243451;
  font: inherit;
}
input[type="radio"] {
  display: inline-block;
  width: 19px;
  height: 19px;
  margin: 5px 0 0;
  padding: 0;
}
.split-row {
  display: flex;
  gap: 12px;
}
.split-row > label {
  flex: 1;
  min-width: 0;
}
fieldset {
  border: 1px solid #c6d1df;
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 24px;
  min-width: 0;
}
legend {
  padding: 0 8px;
  font-weight: 650;
}
.test-cases {
  padding-left: 20px;
}
.test-cases li {
  padding: 8px 0;
}
.test-cases p {
  margin: 2px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 400px) {
  .split-row {
    gap: 8px;
  }
  .split-row input {
    padding: 12px 7px;
  }
}
