body:has(#contact) .c-heading {
  --heading_en: 24.1rem;
}
@media screen and (max-width: 767px) {
  body:has(#contact) .c-heading {
    --heading_en: 10.3rem;
  }
}

body:has(.p-contact.confirm) .c-heading {
  margin-top: 22rem;
}
@media screen and (max-width: 767px) {
  body:has(.p-contact.confirm) .c-heading {
    margin-top: 9.6rem;
  }
}
body:has(.p-contact.confirm) .c-heading__en {
  display: none;
}
@media screen and (min-width: 767.1px) {
  body:has(.p-contact.confirm) .c-heading__ja {
    font-size: 4.5rem;
  }
}
@media screen and (max-width: 767px) {
  body:has(.p-contact.confirm) .c-heading__ja {
    font-size: 2.3rem;
    letter-spacing: 0.04em;
  }
}

body:has(.p-contact.thanks) .c-heading {
  margin-top: 22rem;
}
@media screen and (max-width: 767px) {
  body:has(.p-contact.thanks) .c-heading {
    margin-top: 5.5rem;
  }
}
body:has(.p-contact.thanks) .c-heading__en {
  display: none;
}
@media screen and (min-width: 767.1px) {
  body:has(.p-contact.thanks) .c-heading__ja {
    font-size: 4.5rem;
  }
}
@media screen and (max-width: 767px) {
  body:has(.p-contact.thanks) .c-heading__ja {
    font-size: 2.3rem;
    letter-spacing: 0.04em;
  }
}

.p-contact {
  max-width: 77.2rem;
  margin-inline: auto;
  padding-bottom: 20rem;
}
@media screen and (max-width: 767px) {
  .p-contact {
    padding: 0 2.4rem 13rem;
  }
}
@media screen and (min-width: 767.1px) {
  .p-contact.confirm {
    max-width: 78.7rem;
  }
}
@media screen and (max-width: 767px) {
  .p-contact.confirm {
    padding: 0 3.3rem 13rem;
  }
}
@media screen and (min-width: 767.1px) {
  .p-contact.thanks {
    max-width: inherit;
  }
}
.p-contact__txt {
  color: #231815;
  font-size: 2.8rem;
  text-align: center;
  letter-spacing: 0.12em;
  margin-top: 5rem;
}
@media screen and (max-width: 767px) {
  .p-contact__txt {
    font-size: 1.6rem;
    margin-top: 3rem;
  }
}
.p-contact-form {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 100%;
  gap: 3.7rem;
}
@media screen and (max-width: 767px) {
  .p-contact-form {
    margin-top: 2.5rem;
    gap: 2rem;
  }
}
@media screen and (min-width: 767.1px) {
  .p-contact.confirm .p-contact-form {
    margin-top: 15.5rem;
  }
}
@media screen and (max-width: 767px) {
  .p-contact.confirm .p-contact-form {
    margin-top: 3.8rem;
  }
}

.p-contact.confirm .p-contact-item {
  display: grid;
  grid-template-columns: 24.5rem 1fr;
  gap: 3rem;
}
@media screen and (max-width: 767px) {
  .p-contact.confirm .p-contact-item {
    grid-template-columns: 11.5rem 1fr;
    gap: 1.5rem;
  }
}

.p-contact-item__ttl {
  font-size: 2.5rem;
  letter-spacing: 0.12em;
}
@media screen and (max-width: 767px) {
  .p-contact-item__ttl {
    font-size: 1.6rem;
    letter-spacing: 0.1em;
  }
}
.p-contact.confirm .p-contact-item__ttl {
  font-size: 2.8rem;
  text-align: right;
  line-height: 1.7678571429;
}
.p-contact.confirm .p-contact-item__ttl .u-orange {
  display: none;
}
@media screen and (max-width: 767px) {
  .p-contact.confirm .p-contact-item__ttl {
    font-size: 1.4rem;
    line-height: 1.45;
  }
}

.p-contact-item__body {
  font-size: 2.5rem;
  word-break: break-all;
  word-break: break-word;
}
@media screen and (max-width: 767px) {
  .p-contact-item__body {
    font-size: max(16px, 1.6rem);
  }
}
.p-contact.confirm .p-contact-item__body {
  font-size: 2.8rem;
  line-height: 1.7678571429;
  letter-spacing: 0.12em;
}
@media screen and (max-width: 767px) {
  .p-contact.confirm .p-contact-item__body {
    font-size: 1.4rem;
    line-height: 1.45;
  }
}

.p-contact-item__textarea {
  width: 100%;
  height: 32.4rem;
  resize: vertical;
  border: 1px solid #2b3f3d;
  border-radius: 0.3rem;
  padding: 1em;
  font-size: inherit;
}
@media screen and (max-width: 767px) {
  .p-contact-item__textarea {
    height: 17.4rem;
  }
}
.p-contact-item__input {
  width: 100%;
  height: 7rem;
  border: 1px solid #2b3f3d;
  border-radius: 0.3rem;
  padding: 1em;
  font-size: inherit;
}
@media screen and (max-width: 767px) {
  .p-contact-item__input {
    height: 3.7rem;
  }
}
.p-contact-item__submit {
  margin: 9.4rem auto 0;
  width: 47.4rem;
  height: 12.3rem;
  border-radius: 1.3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  background: #4d110f;
  color: #fff;
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: 0.16em;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  will-change: transform, opacity;
}
@media (any-hover: hover) {
  .p-contact-item__submit:hover {
    text-decoration: none;
    opacity: 0.5;
  }
}
@media screen and (max-width: 767px) {
  .p-contact-item__submit {
    margin: 6.5rem auto 0;
    width: 25.5rem;
    height: 6.6rem;
    border-radius: 1.2rem;
    font-size: 1.9rem;
  }
}
.p-contact-item__back {
  margin: 2.5rem auto 0;
  width: 47.4rem;
  height: 12.3rem;
  border-radius: 1.3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  background: #c0bac1;
  color: #fff;
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: 0.16em;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  will-change: transform, opacity;
}
@media (any-hover: hover) {
  .p-contact-item__back:hover {
    text-decoration: none;
    opacity: 0.5;
  }
}
@media screen and (max-width: 767px) {
  .p-contact-item__back {
    margin: 1.7rem auto 0;
    width: 25.5rem;
    height: 6.6rem;
    border-radius: 1.2rem;
    font-size: 1.9rem;
  }
}
.p-contact .wpcf7-spinner {
  display: block;
  margin: 2.5rem auto;
}
@media screen and (max-width: 767px) {
  .p-contact .wpcf7-spinner {
    margin: 1.7rem auto;
  }
}
.p-contact .wpcf7 form.invalid .wpcf7-response-output,
.p-contact .wpcf7 form.unaccepted .wpcf7-response-output,
.p-contact .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #4d110f;
  font-size: 1.4rem;
}
.p-contact .wpcf7-not-valid-tip {
  margin-top: 0.5em;
  font-size: 1.6rem;
}
.p-contact-thanks {
  margin-top: 7rem;
}
@media screen and (max-width: 767px) {
  .p-contact-thanks {
    margin-top: 3rem;
  }
}
.p-contact-thanks__txt {
  color: #231815;
  font-size: 3rem;
  line-height: 2.3666666667;
  letter-spacing: 0.12em;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .p-contact-thanks__txt {
    font-size: 1.3rem;
    line-height: 1.7692307692;
  }
}
.p-contact-thanks .c-btn-brown {
  width: 47.4rem;
  margin: 8.5rem auto 0;
}
@media screen and (max-width: 767px) {
  .p-contact-thanks .c-btn-brown {
    width: 21.7rem;
    margin: 4.5rem auto 0;
  }
}