:root {
  color-scheme: light;
  --navy: #07386e;
  --teal: #008da6;
  --ink: #152e45;
  --muted: #526779;
  --line: #d6e1e9;
  --pale: #f1f7fa;
}
* {
  box-sizing: border-box;
}
html {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
#hearing-card {
  max-width: 800px;
  margin: auto;
  padding: 32px 30px 24px;
}
.intro {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(29px, 5vw, 44px);
  line-height: 1.45;
  letter-spacing: 0.015em;
  margin: 0 0 20px;
  color: var(--navy);
}
.intro > p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}
.facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.facts span {
  padding: 4px 12px;
  background: var(--pale);
  font-size: 13px;
  color: var(--navy);
  border-radius: 30px;
}
.mobile-break {
  display: none;
}
#progress {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 24px;
}
#progress li {
  border-top: 4px solid #e1e9ef;
  padding-top: 7px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
#progress .current {
  border-color: var(--teal);
  color: var(--navy);
  font-weight: 700;
}
#progress .done {
  border-color: #81bac6;
}
.step-count {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
}
h2 {
  font-size: clamp(22px, 4vw, 29px);
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--navy);
  outline: none;
}
.step-intro {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 8px;
}
.input-help {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 28px;
}
.question {
  margin: 0 0 32px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.question > label,
.question legend {
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
  padding: 0;
  line-height: 1.65;
}
.required,
.optional {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 3px;
}
.required {
  background: #e2f3f6;
  color: #006579;
}
.optional {
  background: var(--pale);
  color: var(--muted);
}
.question small.hint {
  display: block;
  font-size: 12px;
  margin: -5px 0 12px;
  color: var(--muted);
}
input[type='text'],
input[type='email'],
input[type='url'],
input[type='date'],
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #acbdcb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
textarea {
  min-height: 104px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #718393;
  font-size: 14px;
}
input:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid #008da620;
  outline-offset: 1px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice {
  display: flex;
  position: relative;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid #c5d4df;
  background: #fff;
  border-radius: 8px;
  padding: 13px 12px;
  min-height: 54px;
  cursor: pointer;
  line-height: 1.5;
}
.choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  margin: 0;
}
.choice span {
  overflow-wrap: anywhere;
  font-size: 15px;
}
.choice:has(input:checked) {
  border-color: var(--teal);
  background: #eaf7fa;
  box-shadow: inset 0 0 0 1px var(--teal);
}
.choice:has(input:focus-visible) {
  outline: 3px solid #008da645;
  outline-offset: 2px;
}
.field-error {
  color: #a52c2c;
  font-size: 13px;
  margin: 8px 0 0;
}
.field-error:empty {
  display: none;
}
[aria-invalid='true'] {
  border-color: #bd3838 !important;
}
.navigation {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  min-height: 54px;
  padding: 12px 24px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}
.primary {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  min-width: 210px;
}
.primary:not(:disabled):hover {
  background: #005a86;
}
.secondary {
  background: white;
  color: var(--navy);
  border: 1px solid #a8bccb;
}
.session-note,
.note {
  font-size: 13px;
  color: var(--muted);
}
.session-note {
  margin: 16px 0 0;
}
#validation-error,
#send-error {
  color: #a52c2c;
  font-size: 14px;
}
a {
  color: #006d88;
  text-underline-offset: 3px;
}
#review > p {
  color: var(--muted);
}
.summary-group {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--pale);
  gap: 12px;
}
.summary-head h3 {
  font-size: 16px;
  margin: 0;
}
.summary-head button {
  border: 0;
  padding: 8px 0;
  background: none;
  color: #006d88;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.summary-group dl {
  padding: 6px 16px 16px;
  margin: 0;
}
.summary-group dt {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.summary-group dd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  font-size: 15px;
}
.consent {
  display: flex;
  gap: 12px;
  font-size: 14px;
  align-items: flex-start;
  line-height: 1.85;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.consent input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 3px 0;
  accent-color: var(--teal);
}
#service-status {
  font-size: 13px;
  color: var(--muted);
}
#turnstile {
  margin-top: 20px;
  min-height: 65px;
}
.contact-note {
  border-top: 1px solid var(--line);
  margin: 36px 0 0;
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e4f5f0;
  color: #20785e;
  font-size: 30px;
  margin: 0 0 22px;
}
#success {
  padding: 12px 0 24px;
}
.link-button {
  margin-top: 16px;
}
#receipt {
  font-size: 13px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}
@media (max-width: 540px) {
  #hearing-card {
    padding: 22px 16px;
  }
  .intro {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .mobile-break {
    display: initial;
  }
  .choices {
    gap: 8px;
  }
  .choice {
    padding: 11px 10px;
    min-height: 58px;
    gap: 8px;
  }
  .choice span {
    font-size: 14px;
  }
  #progress {
    gap: 4px;
  }
  #progress li {
    font-size: 10px;
  }
  .question > label,
  .question legend {
    font-size: 16px;
  }
  .navigation {
    gap: 10px;
  }
  .primary {
    min-width: 0;
    flex: 1;
    padding: 13px 14px;
  }
  .secondary {
    padding: 13px 16px;
  }
  .session-note {
    font-size: 12px;
  }
  .question {
    margin-bottom: 28px;
  }
  .summary-head {
    padding: 10px 12px;
  }
  .summary-group dl {
    padding: 4px 12px 14px;
  }
  #review .navigation {
    flex-direction: column-reverse;
  }
  #review .navigation button {
    width: 100%;
  }
  .consent {
    padding: 12px;
  }
  h1 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
