/* contact
========================================= */
.contact-page {
  background-color: #ffffff;
  padding: 0 0 8rem;
}
@media (max-width: 768px) {
  .contact-page {
    padding-bottom: 4rem;
  }
}
.contact-page__inner {
  width: 91.6667%;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .contact-page__inner {
    width: 94.6667%;
  }
}
.contact-page .headline__inner {
  width: 100%;
  max-width: none;
}
.contact-page__box {
  margin: 0 auto;
  padding: 5.6rem;
  background-color: #ffffff;
  border: 3px solid #F08F4E;
  border-radius: 50px;
}
@media (max-width: 768px) {
  .contact-page__box {
    padding: 2.4rem 1.6rem 3.2rem;
    border-radius: 12px;
  }
}

.contact__tabs {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  max-width: 662px;
  margin: 0 auto 4rem;
}
@media (max-width: 768px) {
  .contact__tabs {
    gap: 0.8rem;
    margin-bottom: 2.4rem;
  }
}
.contact__tab {
  width: 50%;
  min-width: 20rem;
  padding: 1.2rem 2rem;
  border: 1px solid #F08F4E;
  border-radius: 5px;
  background-color: #ffffff;
  color: #363D40;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: 0.3s;
}
@media (max-width: 768px) {
  .contact__tab {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 0.6rem;
    font-size: 1.4rem;
  }
}
.contact__tab.is-active {
  background-color: #F08F4E;
  color: #ffffff;
  border-color: #F08F4E;
}
.contact__panels {
  max-width: 662px;
  margin: 0 auto;
}
.contact__panels .contact__panel,
.contact__panels > .wpcf7 {
  display: none;
}
.contact__panels .contact__panel.is-active,
.contact__panels > .wpcf7.is-active {
  display: block;
}
.contact__panels .wpcf7 label,
.contact__panels .wpcf7 .label {
  display: block;
  margin-bottom: 2.4rem;
}
.contact__panels .wpcf7 label br,
.contact__panels .wpcf7 .label br {
  display: none;
}
@media (max-width: 768px) {
  .contact__panels .wpcf7 label,
  .contact__panels .wpcf7 .label {
    margin-bottom: 1.6rem;
  }
}
.contact__panels .wpcf7 .title,
.contact__panels .wpcf7 label > strong,
.contact__panels .wpcf7 .wpcf7-form-control-wrap + strong,
.contact__panels .wpcf7 label:has(> .wpcf7-form-control-wrap) {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #363D40;
}
@media (max-width: 768px) {
  .contact__panels .wpcf7 .title,
  .contact__panels .wpcf7 label > strong,
  .contact__panels .wpcf7 .wpcf7-form-control-wrap + strong,
  .contact__panels .wpcf7 label:has(> .wpcf7-form-control-wrap) {
    font-size: 1.4rem;
  }
}
.contact__panels .wpcf7 .title,
.contact__panels .wpcf7 label > strong,
.contact__panels .wpcf7 .wpcf7-form-control-wrap + strong {
  display: inline;
  margin-bottom: 0;
}
.contact__panels .wpcf7 .required,
.contact__panels .wpcf7 .wpcf7-form label .required {
  display: inline;
  margin-left: 2rem;
  padding: 0;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #E9573F;
  background-color: transparent;
  border-radius: 0;
  vertical-align: baseline;
}
@media (max-width: 768px) {
  .contact__panels .wpcf7 .required,
  .contact__panels .wpcf7 .wpcf7-form label .required {
    font-size: 1.4rem;
  }
}
.contact__panels .wpcf7 select,
.contact__panels .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.contact__panels .wpcf7 textarea {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 2px solid rgba(240, 143, 78, 0.45);
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  color: #363D40;
  transition: border-color 0.3s;
}
@media (max-width: 768px) {
  .contact__panels .wpcf7 select,
  .contact__panels .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]),
  .contact__panels .wpcf7 textarea {
    padding: 1rem 1.2rem;
    font-size: 1.4rem;
  }
}
.contact__panels .wpcf7 select:focus,
.contact__panels .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]):focus,
.contact__panels .wpcf7 textarea:focus {
  outline: none;
  border-color: #F08F4E;
}
.contact__panels .wpcf7 select::placeholder,
.contact__panels .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit])::placeholder,
.contact__panels .wpcf7 textarea::placeholder {
  color: #CBCBCB;
}
.contact__panels .wpcf7 select {
  appearance: none;
  cursor: pointer;
  padding-right: 3.2rem;
}
.contact__panels .wpcf7 .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  margin-top: 0.8rem;
}
.contact__panels .wpcf7 .wpcf7-select + .wpcf7-not-valid-tip {
  margin-top: 0.5rem;
}
.contact__panels .wpcf7 .wpcf7-form-control-wrap:has(select)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.6rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 0.45em solid transparent;
  border-right: 0.45em solid transparent;
  border-top: 0.6em solid #F08F4E;
  pointer-events: none;
}
.contact__panels .wpcf7 textarea {
  min-height: 16rem;
  resize: vertical;
}
@media (max-width: 768px) {
  .contact__panels .wpcf7 textarea {
    min-height: 12rem;
  }
}
.contact__panels .wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.contact__panels .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.contact__panels .wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
.contact__panels .wpcf7 .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0;
  cursor: pointer;
}
.contact__panels .wpcf7 .wpcf7-checkbox input[type=checkbox],
.contact__panels .wpcf7 .wpcf7-acceptance input[type=checkbox] {
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.2em;
  flex-shrink: 0;
  accent-color: #2E7D5B;
}
.contact__panels .wpcf7 .wpcf7-checkbox .wpcf7-list-item-label,
.contact__panels .wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.contact__panels .wpcf7 .wpcf7-checkbox .wpcf7-list-item-label a,
.contact__panels .wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a {
  color: #F08F4E;
  text-decoration: underline;
}
.contact__panels .wpcf7 .wpcf7-form-control.wpcf7-acceptance {
  margin-top: 1.6rem;
}
.contact__panels .wpcf7 .contact__submit {
  position: relative;
  width: 100%;
  max-width: 36.7rem;
  margin: 4rem auto 0;
  display: block;
  height: 57.2px;
}
@media (max-width: 768px) {
  .contact__panels .wpcf7 .contact__submit {
    margin-top: 2.4rem;
  }
}
.contact__panels .wpcf7 .contact__submit::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.6rem;
  transform: translateY(-50%);
  width: 2em;
  height: 2em;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: transparent;
  pointer-events: none;
  z-index: 1;
  transition: 0.3s;
}
.contact__panels .wpcf7 .contact__submit::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2.2rem;
  transform: translateY(-50%);
  width: 1.125em;
  height: 1.125em;
  background-color: #ffffff;
  mask: url(../img/common/icons/arrow_white.svg) no-repeat center/contain;
  -webkit-mask: url(../img/common/icons/arrow_white.svg) no-repeat center/contain;
  pointer-events: none;
  z-index: 2;
  transition: 0.3s;
}
.contact__panels .wpcf7 .contact__submit:has(.wpcf7-submit:disabled)::after, .contact__panels .wpcf7 .contact__submit:has(.wpcf7-submit:disabled)::before {
  opacity: 0.6;
}
.contact__panels .wpcf7 .contact__submit:has(.wpcf7-submit:not(:disabled)):hover .wpcf7-submit {
  background-color: #ffffff;
  color: #2E7D5B;
}
.contact__panels .wpcf7 .contact__submit:has(.wpcf7-submit:not(:disabled)):hover::after {
  background-color: #2E7D5B;
  border-color: #2E7D5B;
}
.contact__panels .wpcf7 .contact__submit:has(.wpcf7-submit:not(:disabled)):hover::before {
  background-color: #ffffff;
}
.contact__panels .wpcf7 .wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 1.4rem 4.8rem 1.4rem 2.4rem;
  border: 2px solid #2E7D5B;
  border-radius: 999px;
  background-color: #2E7D5B;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #ffffff;
  cursor: pointer;
  transition: 0.3s;
}
@media (max-width: 768px) {
  .contact__panels .wpcf7 .wpcf7-submit {
    padding: 1.2rem 4rem 1.2rem 2rem;
    font-size: 1.6rem;
  }
}
.contact__panels .wpcf7 .wpcf7-submit:disabled {
  background-color: #CBCBCB;
  cursor: not-allowed;
}
.contact__panels .wpcf7 .wpcf7-not-valid-tip {
  font-size: 1.2rem;
  color: #E9573F;
  margin-top: 0.5rem;
}
.contact__panels .wpcf7 .wpcf7-response-output {
  margin: 2rem 0 0;
  padding: 1.2rem;
  border-radius: 6px;
  font-size: 1.4rem;
  text-align: center;
}

.contact-page--complete .contact-complete {
  max-width: 662px;
  margin: 0 auto;
}
.contact-page--complete .contact-complete__text {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: center;
  color: #363D40;
}
@media (max-width: 768px) {
  .contact-page--complete .contact-complete__text {
    font-size: 1.4rem;
    line-height: 1.8;
  }
}
.contact-page--complete .contact-complete__text p {
  margin: 0;
}
.contact-page--complete .contact-complete__text p:not(:first-child) {
  margin-top: 1.6rem;
}
@media (max-width: 768px) {
  .contact-page--complete .contact-complete__text p:not(:first-child) {
    margin-top: 1.2rem;
  }
}
.contact-page--complete .contact-complete .contact__submit {
  position: relative;
  width: 100%;
  max-width: 36.7rem;
  margin: 4rem auto 0;
  display: block;
  height: 57.2px;
}
@media (max-width: 768px) {
  .contact-page--complete .contact-complete .contact__submit {
    margin-top: 2.4rem;
  }
}
.contact-page--complete .contact-complete .contact__submit::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.6rem;
  transform: translateY(-50%);
  width: 2em;
  height: 2em;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: transparent;
  pointer-events: none;
  z-index: 1;
  transition: 0.3s;
}
.contact-page--complete .contact-complete .contact__submit::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2.2rem;
  transform: translateY(-50%);
  width: 1.125em;
  height: 1.125em;
  background-color: #ffffff;
  mask: url(../img/common/icons/arrow_white.svg) no-repeat center/contain;
  -webkit-mask: url(../img/common/icons/arrow_white.svg) no-repeat center/contain;
  pointer-events: none;
  z-index: 2;
  transition: 0.3s;
}
.contact-page--complete .contact-complete .contact__submit:hover .contact-complete__btn {
  background-color: #ffffff;
  color: #2E7D5B;
}
.contact-page--complete .contact-complete .contact__submit:hover::after {
  background-color: #2E7D5B;
  border-color: #2E7D5B;
}
.contact-page--complete .contact-complete .contact__submit:hover::before {
  background-color: #ffffff;
}
.contact-page--complete .contact-complete__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1.4rem 4.8rem 1.4rem 2.4rem;
  border: 2px solid #2E7D5B;
  border-radius: 999px;
  background-color: #2E7D5B;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .contact-page--complete .contact-complete__btn {
    padding: 1.2rem 4rem 1.2rem 2rem;
    font-size: 1.6rem;
  }
}
