html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #1f2b3d;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
}

*, *::before, *::after {
  box-sizing: border-box;
}

a {
  color: #003a9b;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  margin: 0;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
}

button,
input[type=submit],
input[type=button],
input[type=reset] {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select::-ms-expand {
  display: none;
}

textarea {
  resize: vertical;
  overflow: auto;
}

::placeholder,
select:invalid {
  color: rgba(31, 43, 61, 0.32);
}

.contact-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 58, 155, 0.08);
  backdrop-filter: blur(10px);
}
.contact-header__inner {
  width: 100%;
  max-width: 65rem;
  margin: 0 auto;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.contact-header__logo {
  flex: 0 1 14rem;
  min-width: 0;
  margin: 0;
}
.contact-header__back {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0 1.6rem;
  border: 1px solid rgba(0, 58, 155, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #003a9b;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.contact-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 65rem;
  margin: 0 auto;
  padding: 4.8rem 1.6rem 4rem;
}

.contact-hero {
  padding: 0 0 2.4rem;
  text-align: center;
}
.contact-hero__eyebrow {
  margin: 0 0 1rem;
  color: #003a9b;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
}
.contact-hero__title {
  margin: 0;
  font-size: 4.8rem;
  line-height: 1.25;
  font-weight: 700;
}
.contact-hero__lead {
  margin: 1.6rem auto 0;
  color: #5d6b82;
  font-size: 1.8rem;
  line-height: 1.9;
  text-align: left;
}

.contact-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 58, 155, 0.08);
  box-shadow: 0 10px 26px rgba(0, 58, 155, 0.06);
  padding: 2.4rem 2rem 3.2rem;
}
.contact-card--thanks, .contact-card--error, .contact-card--confirm {
  max-width: 100%;
}

.contact-step {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.2rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.contact-step li {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 1.4rem 0.8rem 1.2rem;
  background: #eef2f7;
  color: #64748b;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}
.contact-step li::before,
.contact-step li::after {
  content: none;
}
.contact-step li span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.contact-step li span b {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 1.8rem;
  font-weight: 700;
}
.contact-step.step1 li:first-child, .contact-step.step2 li:nth-child(2), .contact-step.step3 li:last-child {
  background: #dbeafe;
  color: #003a9b;
}
.contact-step.step1 li:first-child span, .contact-step.step2 li:nth-child(2) span, .contact-step.step3 li:last-child span {
  color: #003a9b;
}

.contact-intro {
  margin-bottom: 2rem;
  padding: 1.6rem;
  background: #f5f9ff;
  color: #5d6b82;
  font-size: 1.6rem;
  line-height: 1.9;
}
.contact-intro p {
  margin: 0;
}
.contact-intro p + p {
  margin-top: 0.6rem;
}

.contact-form {
  width: 100%;
}
.contact-form dl {
  margin: 0;
}
.contact-form dt {
  padding: 2rem 0 0.8rem;
  border-top: 1px solid #bbbcbc;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.contact-form dd {
  margin: 0;
  padding: 0 0 2rem;
}
.contact-form__row {
  display: grid;
  gap: 0 1.6rem;
}

.form-control,
.contact-select select {
  display: block;
  width: 100%;
  border: 1px solid #bbbcbc;
  border-radius: 0.2rem;
  background: #fff;
  line-height: 1.4;
  padding: 1.4rem 1.2rem;
}

textarea.form-control {
  min-height: 18rem;
}

.required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.35rem 0.5rem;
  margin-left: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 0.2rem;
  color: #003a9b;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.contact-optional {
  display: inline-block;
  margin-left: 0.8rem;
  color: #5d6b82;
  font-size: 1.3rem;
  font-weight: 700;
}

.contact-note {
  margin: 0.8rem 0 0;
  color: #5d6b82;
  font-size: 1.3rem;
  line-height: 1.8;
}

.contact-select {
  position: relative;
  max-width: 100%;
}
.contact-select .icon {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 1.2rem;
  height: 1.2rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: #333;
}
.contact-select label {
  display: block;
}
.contact-select select {
  padding-right: 3.6rem;
}

.contact-file {
  width: 100%;
}
.contact-file__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.contact-file__box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 5.2rem;
  padding: 0.9rem;
  border: 1px solid #bbbcbc;
  border-radius: 0.2rem;
  background: #fff;
  cursor: pointer;
}
.contact-file__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid #c8d1df;
  border-radius: 0.2rem;
  background: #f7f9fc;
  color: #1f2b3d;
  font-size: 1.3rem;
  line-height: 1;
  white-space: nowrap;
}
.contact-file__name {
  flex: 1 1 auto;
  min-width: 0;
  color: #7a8699;
  font-size: 1.4rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry_btn,
.contact-submit {
  width: 100%;
  max-width: 24rem;
  margin: 2.4rem auto 0;
}

.entry_btn input[type=submit],
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.4rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.entry_btn input[type=submit],
.contact-btn--submit {
  background: #003a9b;
  color: #fff;
}

.contact-button-row {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.2rem;
  width: 100%;
  margin-top: 2.4rem;
}

.contact-btn--back {
  border: 1px solid #003a9b;
  color: #003a9b;
  background: #fff;
}

.contact-btn--single,
.contact-btn--link {
  width: 100%;
  max-width: 28rem;
  margin: 2.4rem auto 0;
}

.contact-confirm-table {
  width: 100%;
  border-collapse: collapse;
}
.contact-confirm-table th,
.contact-confirm-table td {
  display: block;
  width: 100%;
  padding: 1.2rem 1rem;
  text-align: left;
  vertical-align: top;
}
.contact-confirm-table tr {
  border-bottom: 1px solid #d7dde7;
}
.contact-confirm-table tr:first-child {
  border-top: 1px solid #d7dde7;
}
.contact-confirm-table th {
  background: #f5f9ff;
  font-weight: 700;
}
.contact-confirm-table td {
  word-break: break-word;
}

.contact-error-box {
  padding: 1.8rem 1.6rem;
  border: 1px solid #f1c8c8;
  background: #fff6f6;
}
.contact-error-box__title {
  margin: 0;
  color: #b42318;
  font-size: 2rem;
  font-weight: 700;
}
.contact-error-box__list {
  margin-top: 1rem;
  color: #7a271a;
  font-size: 1.5rem;
  line-height: 1.8;
}
.contact-error-box__list p {
  margin: 0;
}

.contact-thanks {
  text-align: center;
}
.contact-thanks__title {
  margin: 0 0 1rem;
  color: #003a9b;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.4;
}
.contact-thanks p {
  margin: 0;
  color: #5d6b82;
  font-size: 1.7rem;
  line-height: 2;
}
.contact-thanks p + p {
  margin-top: 1rem;
}

.contact-footer {
  width: 100%;
  max-width: 65rem;
  margin: 0 auto;
  padding: 0 1.6rem 2.4rem;
  text-align: center;
}
.contact-footer__logo {
  width: 100%;
  margin: 0 auto 1rem;
}
.contact-footer__logo img {
  width: 10rem;
  margin: 0 auto;
}

.copyRight {
  padding: 1.75em 0 0;
  color: #bbbcbc;
  font-size: 1.3rem;
  font-weight: 700;
}

.copyRight em {
  display: inline-block;
  font-size: 1.6em;
  line-height: 1;
  vertical-align: middle;
}

#family_name,
#family_kana {
  margin-bottom: 2em;
}

@media (min-width: 768px) {
  .contact-main {
    max-width: 110rem;
    padding: 5.6rem 2.4rem 6rem;
  }
  .contact-hero {
    padding-bottom: 3.2rem;
  }
  .contact-hero__title {
    font-size: 5.4rem;
  }
  .contact-hero__lead {
    max-width: 72rem;
    text-align: center;
  }
  .contact-card {
    padding: 3.2rem;
  }
  .contact-step {
    gap: 1.6rem;
  }
  .contact-step li {
    padding: 1.6rem 1rem 1.4rem;
    font-size: 1.7rem;
  }
  .contact-form__row--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-button-row {
    flex-direction: row;
    justify-content: center;
  }
  .contact-confirm-table th,
  .contact-confirm-table td {
    display: table-cell;
    padding: 1.5rem 1.6rem;
  }
  .contact-confirm-table th {
    width: 32%;
  }
}
@media (max-width: 767px) {
  .contact-header__inner {
    padding: 1.2rem 1.4rem;
  }
  .contact-header__logo {
    flex-basis: 11rem;
  }
  .contact-header__back {
    min-height: 3.8rem;
    padding: 0 1.2rem;
    font-size: 1.3rem;
  }
  .contact-main {
    padding: 3.6rem 1rem 3.2rem;
  }
  .contact-hero__eyebrow {
    font-size: 1.7rem;
  }
  .contact-hero__title {
    font-size: 2.8rem;
  }
  .contact-hero__lead {
    font-size: 1.6rem;
    line-height: 1.8;
  }
  .contact-card {
    padding: 1.6rem 1.2rem 2.4rem;
  }
  .contact-step {
    gap: 0.8rem;
  }
  .contact-step li {
    padding: 1rem 0.4rem 0.9rem;
    font-size: 1.2rem;
  }
  .contact-step li span {
    font-size: 1rem;
  }
  .contact-step li span b {
    font-size: 1.5rem;
  }
  .contact-intro {
    padding: 1.3rem 1.2rem;
    font-size: 1.4rem;
  }
  .contact-form__row {
    gap: 0;
  }
  .contact-thanks__title {
    font-size: 2rem;
  }
  .contact-thanks p {
    font-size: 1.5rem;
  }
}
