.contact-page {
  min-height: 100svh;
  overflow: hidden;
  color: #3809b8;
  background: #241072;
}

.contact-page__plane {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-page__plane::before {
  position: absolute;
  top: 0;
  right: -8%;
  width: 58%;
  height: 100%;
  background: #35258d;
  clip-path: polygon(31% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.contact-page__plane::after {
  position: absolute;
  top: 0;
  right: -15%;
  width: 43%;
  height: 100%;
  background: rgba(87, 80, 181, .18);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.contact-page__section {
  z-index: 1;
  padding: clamp(110px, 9vw, 150px) 24px clamp(100px, 10vw, 170px);
}

.contact-page__inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.contact-page__title {
  color: #fff;
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: clamp(34px, 3.4907vw, 67px);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  letter-spacing: .03em;
}

.contact-page__lead {
  margin-top: clamp(26px, 2.4vw, 38px);
  color: #fff;
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

.contact-page__lead p + p {
  margin-top: 14px;
}

.contact-page__card {
  width: min(100%, 760px);
  margin: clamp(42px, 4vw, 60px) auto 0;
  padding: 54px clamp(30px, 5.2vw, 76px) 42px;
  border-radius: 3px;
  background: #fff;
}

.contact-page .contact-form__field + .contact-form__field {
  margin-top: 28px;
}

.contact-page .wpcf7-form p {
  margin: 0;
}

.contact-page .contact-form__checks {
  min-width: 0;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  border: 0;
}

.contact-page .contact-form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: #3809b8;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-page .contact-form__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 9px;
  border: 1px solid #3809b8;
  border-radius: 999px;
  color: #3809b8 !important;
  background: #fff !important;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.contact-page .contact-form__status--required {
  border-color: #3809b8 !important;
  color: #fff !important;
  background: #3809b8 !important;
}

.contact-page .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-page .wpcf7-text,
.contact-page .wpcf7-email,
.contact-page .wpcf7-textarea {
  display: block;
  width: 100%;
  border: 1px solid #b7ace0;
  border-radius: 1px;
  color: #241072;
  background: #f7f6f9;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.contact-page .wpcf7-text,
.contact-page .wpcf7-email {
  height: 48px;
  padding: 0 14px;
}

.contact-page .wpcf7-textarea {
  height: 108px;
  min-height: 108px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-page .wpcf7-text:focus,
.contact-page .wpcf7-email:focus,
.contact-page .wpcf7-textarea:focus {
  border-color: #3809b8;
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(56, 9, 184, .14);
}

.contact-page .contact-form__checks .wpcf7-list-item {
  display: block;
  margin: 0;
}

.contact-page .contact-form__checks .wpcf7-list-item + .wpcf7-list-item {
  margin-top: 10px;
}

.contact-page .contact-form__checks label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #3809b8;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}

.contact-page .contact-form__checks .wpcf7-list-item-label {
  color: #3809b8 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.contact-page .contact-form__checks input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #3809b8;
}

.contact-page .contact-form__submit {
  margin-top: 36px;
  text-align: center;
}

.contact-page .wpcf7-form .wpcf7-submit {
  display: block;
  width: min(100%, 460px);
  height: 64px;
  margin: 0 auto;
  border: 0;
  border-radius: 1px;
  color: #3809b8;
  background: #6ec0f9;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}

.contact-page .wpcf7-form .wpcf7-submit:hover {
  background: #8bcdfa;
}

.contact-page .wpcf7-form .wpcf7-submit:focus-visible {
  outline: 3px solid rgba(110, 192, 249, .55);
  outline-offset: 3px;
}

.contact-page .wpcf7-form .contact-form__notice {
  margin-top: 20px;
  color: #77727f;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.contact-page .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #c4384f;
  font-size: 12px;
  line-height: 1.5;
}

.contact-page .wpcf7-not-valid {
  border-color: #c4384f;
}

.contact-page .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 12px 14px;
  border-width: 1px;
  color: #3809b8;
  font-size: 13px;
  line-height: 1.7;
}

.contact-page .wpcf7-spinner {
  position: absolute;
  top: 20px;
  right: max(calc((100% - min(100%, 460px)) / 2 + 12px), 12px);
  margin: 0;
}

.contact-thanks-page__section {
  display: grid;
  min-height: 100svh;
  align-items: center;
}

.contact-thanks-page__card {
  margin-top: 0;
  padding-top: clamp(58px, 6vw, 82px);
  padding-bottom: clamp(54px, 5vw, 72px);
  text-align: center;
}

.contact-thanks-page__title {
  color: #3809b8;
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: clamp(28px, 2.45vw, 42px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .03em;
}

.contact-thanks-page__message {
  margin-top: 30px;
  color: #241072;
  font-size: 16px;
  line-height: 1.9;
}

.contact-thanks-page__message p + p {
  margin-top: 8px;
}

.contact-thanks-page__link {
  margin-top: 38px;
}

.contact-thanks-page__link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  min-height: 60px;
  color: #3809b8;
  background: #6ec0f9;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.contact-thanks-page__link a:hover {
  background: #8bcdfa;
}

@media screen and (max-width: 750px) {
  .contact-page__plane::before {
    right: -35%;
    width: 90%;
    clip-path: polygon(44% 0, 100% 0, 100% 100%, 0 100%);
  }

  .contact-page__section {
    padding: 92px 18px 96px;
  }

  .contact-page__lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .contact-page__card {
    margin-top: 38px;
    padding: 36px 22px 34px;
  }

  .contact-page .contact-form__field + .contact-form__field {
    margin-top: 25px;
  }

  .contact-page .wpcf7-form .wpcf7-submit {
    height: 64px;
    font-size: 16px;
  }

  .contact-thanks-page__section {
    padding-top: 96px;
    padding-bottom: 72px;
  }

  .contact-thanks-page__card {
    padding: 48px 24px 44px;
  }

  .contact-thanks-page__message {
    font-size: 14px;
  }
}
