.tt-inquiry-shell {
  --tt-form-red: var(--tt-red, #e50019);
  --tt-form-red-strong: var(--tt-red-strong, #b80014);
  --tt-form-yellow: var(--tt-yellow, #ffd84d);
  --tt-form-blue: var(--tt-blue, #1565a7);
  --tt-form-blue-strong: var(--tt-blue-strong, #0c477a);
  --tt-form-ink: var(--tt-ink, #1a1a1a);
  --tt-form-muted: var(--tt-muted, #5c6268);
  --tt-form-line: var(--tt-line, #d9d5ca);
  --tt-form-white: #ffffff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 3px solid var(--tt-form-ink);
  border-radius: 30px;
  background: var(--tt-form-white);
  box-shadow: 0 12px 0 rgba(26, 26, 26, 0.14);
}

.tt-inquiry-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.68fr);
  align-items: end;
  gap: 32px;
  padding: 34px 42px;
  border-bottom: 2px solid var(--tt-form-ink);
  background: #fffdf7;
}

.is-kokukin .tt-inquiry-heading {
  background: #edf6ff;
}

.tt-inquiry-heading__label {
  margin: 0 0 5px;
  color: var(--tt-form-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.is-kokukin .tt-inquiry-heading__label {
  color: var(--tt-form-blue);
}

.tt-inquiry-heading h3,
.tt-step__header h4,
.tt-inquiry-complete h3 {
  font-family: var(--tt-font-heading, "Zen Maru Gothic", sans-serif);
  font-weight: 900;
  text-wrap: wrap;
  word-break: normal;
}

.tt-inquiry-heading h3 {
  font-size: 26px;
}

.tt-inquiry-heading > p {
  margin: 0;
  color: var(--tt-form-muted);
  font-size: 12px;
  line-height: 1.75;
}

.tt-inquiry-heading > p strong {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--tt-form-red);
  font-size: 10px;
}

.is-kokukin .tt-inquiry-heading > p strong {
  background: var(--tt-form-blue);
}

.tt-progress {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 0;
  border-bottom: 2px solid var(--tt-form-ink);
  background: #f4f1e9;
  list-style: none;
}

.tt-inquiry-shell.is-enhanced .tt-progress {
  display: grid;
}

.tt-progress li {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 8px;
  border-right: 1px solid var(--tt-form-line);
  color: #777b7f;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.tt-progress li:last-child {
  border-right: 0;
}

.tt-progress li::after {
  position: absolute;
  right: -7px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--tt-form-line);
  border-right: 1px solid var(--tt-form-line);
  background: #f4f1e9;
  content: "";
  transform: rotate(45deg);
}

.tt-progress li:last-child::after {
  display: none;
}

.tt-progress li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #a6a8aa;
  border-radius: 50%;
  background: #ffffff;
  font-size: 11px;
}

.tt-progress li.is-current {
  color: var(--tt-form-ink);
  background: var(--tt-form-yellow);
}

.is-kokukin .tt-progress li.is-current {
  color: #ffffff;
  background: var(--tt-form-blue);
}

.tt-progress li.is-current::after {
  border-color: var(--tt-form-ink);
  background: var(--tt-form-yellow);
}

.is-kokukin .tt-progress li.is-current::after {
  background: var(--tt-form-blue);
}

.tt-progress li.is-current span,
.tt-progress li.is-complete span {
  border-color: var(--tt-form-ink);
  color: var(--tt-form-ink);
  background: #ffffff;
}

.tt-progress li.is-complete {
  color: var(--tt-form-ink);
}

.tt-inquiry {
  position: relative;
}

.tt-step {
  padding: 46px 52px 50px;
  border-bottom: 2px solid var(--tt-form-line);
}

.tt-step:last-of-type {
  border-bottom: 0;
}

.tt-inquiry.is-enhanced .tt-step {
  display: none;
  border-bottom: 0;
}

.tt-inquiry.is-enhanced .tt-step.is-active {
  display: block;
  animation: tt-step-in 260ms ease-out both;
}

.tt-step__header {
  margin-bottom: 36px;
}

.tt-step__header > span {
  display: block;
  margin-bottom: 7px;
  color: var(--tt-form-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.is-kokukin .tt-step__header > span {
  color: var(--tt-form-blue);
}

.tt-step__header h4 {
  margin: 0;
  font-size: 27px;
}

.tt-step__header p {
  margin: 12px 0 0;
  color: var(--tt-form-muted);
  font-size: 13px;
}

.tt-fieldset {
  padding: 0;
  margin: 0 0 30px;
  border: 0;
}

.tt-fieldset legend,
.tt-field > span {
  display: block;
  margin-bottom: 10px;
  color: var(--tt-form-ink);
  font-size: 13px;
  font-weight: 800;
}

.tt-required,
.tt-field > span b,
.tt-consent b {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--tt-form-red);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.7;
  vertical-align: 2px;
}

.is-kokukin .tt-required,
.is-kokukin .tt-field > span b,
.is-kokukin .tt-consent b {
  background: var(--tt-form-blue);
}

.tt-field > span i {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  border: 1px solid #aaa7a0;
  border-radius: 999px;
  color: var(--tt-form-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 2px;
}

.tt-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tt-choice-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-choice-grid--contact {
  max-width: 520px;
}

.tt-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.tt-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tt-choice span {
  min-height: 54px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 11px 15px 11px 46px;
  border: 2px solid #b9b7b0;
  border-radius: 12px;
  color: #424548;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.tt-choice span::before {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid #8b8d8e;
  border-radius: 5px;
  background: #ffffff;
  content: "";
}

.tt-choice input[type="radio"] + span::before {
  border-radius: 50%;
}

.tt-choice input:checked + span {
  border-color: var(--tt-form-ink);
  color: var(--tt-form-ink);
  background: #fff8d9;
  box-shadow: 0 3px 0 rgba(26, 26, 26, 0.12);
}

.is-kokukin .tt-choice input:checked + span {
  background: #e5f2fc;
}

.tt-choice input:checked + span::before {
  border-color: var(--tt-form-ink);
  background: var(--tt-form-red);
  box-shadow: inset 0 0 0 4px #ffffff;
}

.is-kokukin .tt-choice input:checked + span::before {
  background: var(--tt-form-blue);
}

.tt-choice input[type="checkbox"]:checked + span::before {
  color: #ffffff;
  background: var(--tt-form-red);
  box-shadow: none;
  font-size: 13px;
  line-height: 16px;
  text-align: center;
  content: "✓";
}

.is-kokukin .tt-choice input[type="checkbox"]:checked + span::before {
  background: var(--tt-form-blue);
}

.tt-choice input:focus-visible + span {
  outline: 3px solid #1976d2;
  outline-offset: 3px;
}

.tt-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
}

.tt-field--full {
  grid-column: 1 / -1;
}

.tt-field--half {
  width: calc(50% - 11px);
  display: block;
}

.tt-field input,
.tt-field select,
.tt-field textarea {
  width: 100%;
  min-height: 54px;
  display: block;
  padding: 12px 14px;
  border: 2px solid #8b8d8e;
  border-radius: 10px;
  color: var(--tt-form-ink);
  background: #ffffff;
  font-size: 15px;
}

.tt-field textarea {
  min-height: 142px;
  resize: vertical;
}

.tt-field input::placeholder,
.tt-field textarea::placeholder {
  color: #85888b;
  opacity: 1;
}

.tt-field input:focus,
.tt-field select:focus,
.tt-field textarea:focus {
  border-color: var(--tt-form-ink);
  outline: 3px solid rgba(25, 118, 210, 0.28);
  outline-offset: 1px;
}

.tt-field input[aria-invalid="true"],
.tt-field select[aria-invalid="true"],
.tt-field textarea[aria-invalid="true"] {
  border-color: #b80014;
  background: #fff6f6;
}

.tt-field small {
  display: block;
  margin-top: 7px;
  color: var(--tt-form-muted);
  font-size: 10px;
  line-height: 1.6;
}

.tt-field-error {
  margin: 8px 0 0;
  color: #b80014;
  font-size: 12px;
  font-weight: 800;
}

.tt-consents {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding: 22px;
  border-radius: 14px;
  background: #f4f2ec;
}

.tt-consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  cursor: pointer;
}

.tt-consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--tt-form-red);
}

.is-kokukin .tt-consent input {
  accent-color: var(--tt-form-blue);
}

.tt-consent > span {
  color: #45494c;
  font-size: 12px;
  line-height: 1.7;
}

.tt-consent a {
  color: var(--tt-form-red);
  font-weight: 800;
}

.is-kokukin .tt-consent a {
  color: var(--tt-form-blue);
}

.tt-step__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--tt-form-line);
}

.tt-step__actions--end {
  justify-content: flex-end;
}

.tt-inquiry:not(.is-enhanced) [data-next],
.tt-inquiry:not(.is-enhanced) [data-prev] {
  display: none;
}

.tt-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 24px;
  border: 2px solid var(--tt-form-ink);
  border-radius: 999px;
  color: var(--tt-form-ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(26, 26, 26, 0.15);
}

.tt-button:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(26, 26, 26, 0.15);
}

.tt-button--primary,
.tt-button--submit {
  color: #ffffff;
  background: var(--tt-form-red);
}

.is-kokukin .tt-button--primary,
.is-kokukin .tt-button--submit {
  background: var(--tt-form-blue);
}

.tt-button--primary:hover,
.tt-button--submit:hover {
  background: var(--tt-form-red-strong);
}

.is-kokukin .tt-button--primary:hover,
.is-kokukin .tt-button--submit:hover {
  background: var(--tt-form-blue-strong);
}

.tt-button--submit {
  min-width: 250px;
  min-height: 60px;
  font-size: 15px;
}

.tt-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.tt-confirm {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 2px solid var(--tt-form-ink);
  border-radius: 16px;
}

.tt-confirm__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid var(--tt-form-line);
}

.tt-confirm__row:last-child {
  border-bottom: 0;
}

.tt-confirm__row dt,
.tt-confirm__row dd {
  padding: 13px 17px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.tt-confirm__row dt {
  background: #f4f2ec;
  font-weight: 800;
}

.tt-confirm__row dd {
  overflow-wrap: anywhere;
}

.tt-submit-notice {
  margin-top: 22px;
  padding: 17px 20px;
  border-left: 5px solid var(--tt-form-yellow);
  background: #fff9df;
}

.is-kokukin .tt-submit-notice {
  border-left-color: var(--tt-form-blue);
  background: #edf6ff;
}

.tt-submit-notice strong {
  font-size: 13px;
}

.tt-submit-notice p {
  margin: 4px 0 0;
  color: var(--tt-form-muted);
  font-size: 11px;
}

.tt-live-region {
  min-height: 1px;
  margin: 0;
}

.tt-alert {
  margin: 26px 42px 0;
  padding: 18px 22px;
  border: 2px solid #8f1020;
  border-radius: 12px;
  color: #64101b;
  background: #fff1f2;
}

.tt-alert strong {
  display: block;
  font-size: 14px;
}

.tt-alert p {
  margin: 4px 0 0;
  font-size: 12px;
}

.tt-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.tt-inquiry-complete {
  padding: 54px 58px;
  text-align: center;
}

.tt-inquiry-complete__mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 3px solid var(--tt-form-ink);
  border-radius: 50%;
  color: #ffffff;
  background: #18864b;
  box-shadow: 0 5px 0 rgba(26, 26, 26, 0.15);
  font-size: 31px;
  font-weight: 900;
}

.tt-inquiry-complete__label {
  margin: 0 0 5px;
  color: var(--tt-form-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.is-kokukin .tt-inquiry-complete__label {
  color: var(--tt-form-blue);
}

.tt-inquiry-complete h3 {
  margin: 0;
  font-size: 30px;
}

.tt-inquiry-complete > p:not(.tt-inquiry-complete__label):not(.tt-inquiry-complete__help) {
  max-width: 580px;
  margin: 14px auto 0;
  color: var(--tt-form-muted);
  font-size: 14px;
}

.tt-inquiry-complete dl {
  width: min(100%, 380px);
  display: grid;
  grid-template-columns: 110px 1fr;
  overflow: hidden;
  margin: 26px auto 0;
  border: 2px solid var(--tt-form-ink);
  border-radius: 10px;
  text-align: left;
}

.tt-inquiry-complete dt,
.tt-inquiry-complete dd {
  padding: 11px 14px;
  margin: 0;
}

.tt-inquiry-complete dt {
  background: #f2f0e9;
  font-size: 11px;
  font-weight: 800;
}

.tt-inquiry-complete dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tt-next-actions {
  max-width: 650px;
  margin: 30px auto 0;
  padding: 22px 26px;
  border-radius: 14px;
  background: #fff8d9;
  text-align: left;
}

.is-kokukin .tt-next-actions {
  background: #eaf4ff;
}

.tt-next-actions > strong {
  font-size: 13px;
}

.tt-next-actions ol {
  padding-left: 24px;
  margin: 8px 0 0;
}

.tt-next-actions li {
  margin-top: 5px;
  color: #45494c;
  font-size: 12px;
}

.tt-inquiry-complete__help {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--tt-form-muted);
  font-size: 11px;
}

.tt-inquiry-complete__help a {
  color: var(--tt-form-red);
  font-weight: 800;
}

.is-kokukin .tt-inquiry-complete__help a {
  color: var(--tt-form-blue);
}

@keyframes tt-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .tt-inquiry-shell {
    border-radius: 22px;
  }

  .tt-inquiry-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 27px 26px;
  }

  .tt-progress li {
    min-height: 70px;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
  }

  .tt-progress li span {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }

  .tt-step {
    padding: 34px 26px 38px;
  }

  .tt-choice-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-field--half {
    width: 100%;
  }

  .tt-alert {
    margin-inline: 26px;
  }

  .tt-inquiry-complete {
    padding: 42px 26px;
  }
}

@media (max-width: 520px) {
  .tt-inquiry-heading h3,
  .tt-step__header h4 {
    font-size: 22px;
  }

  .tt-progress li strong {
    max-width: 5em;
    line-height: 1.35;
  }

  .tt-choice-grid,
  .tt-choice-grid--wide,
  .tt-field-grid {
    grid-template-columns: 1fr;
  }

  .tt-field--full {
    grid-column: auto;
  }

  .tt-step__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .tt-step__actions--end {
    flex-direction: column;
  }

  .tt-button,
  .tt-button--submit {
    width: 100%;
    min-width: 0;
  }

  .tt-confirm__row {
    grid-template-columns: 1fr;
  }

  .tt-confirm__row dt {
    padding-bottom: 5px;
  }

  .tt-confirm__row dd {
    padding-top: 5px;
  }

  .tt-inquiry-complete dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-inquiry.is-enhanced .tt-step.is-active {
    animation: none;
  }
}
