@charset "UTF-8";
#contact {
  background-image: url(../img/contact/bg.jpg);
  background-size: cover;
  position: relative;
}

#contact::before {
  content: '';
  width: 12rem;
  aspect-ratio: 240 / 276;
  background-image: url(../img/common/cta_icon01.svg);
  background-size: cover;
  position: absolute;
  bottom: 0;
  left: 0;
}

#contact::after {
  content: '';
  width: 14rem;
  aspect-ratio: 32 / 28;
  background-image: url(../img/common/cta_icon02.svg);
  background-size: cover;
  position: absolute;
  top: -1.4rem;
  right: 0;
}

#contact .text {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 4rem;
}

#contact .form_item {
  margin-bottom: 2.4rem;
}

#contact .form_ttl {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

#contact .form_ttl .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 2.4rem;
  font-size: 1.3rem;
  font-weight: 700;
}

#contact .form_ttl .icon.required {
  background-color: #004f3c;
  color: #fff;
}

#contact .form_ttl .icon.any {
  border: 1px solid #004f3c;
}

#contact .form_ttl .ttl {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

#contact .input input,
#contact .input select,
#contact .input textarea {
  width: 100%;
  padding: 1.6rem;
  border: 1px solid #004f3c;
  border-radius: 0.5rem;
  font-size: max(16px, 1.6rem);
}

#contact .input input,
#contact .input select {
  height: 3.8rem;
  min-height: 3.8rem;
  padding: 0 1.6rem;
  font-family: 'Zen Old Mincho', 游明朝, 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', HGS明朝E, MS明朝, serif;
}

#contact .input textarea {
  height: 18rem;
  min-height: 18rem;
  font-family: 'Zen Old Mincho', 游明朝, 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', HGS明朝E, MS明朝, serif;
}

.policy {
  overflow-y: auto;
  height: 19.6rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  background-color: #fff;
  border: 1px solid #004f3c;
  border-radius: 0.5rem;
}

.policy_ttl {
  margin-bottom: 1.6rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.policy_text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.05em;
  margin: 1.6rem 0;
}

.policy_sec_ttl {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin: 2.4rem 0 1.6rem;
}

.policy_consent label {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.policy_consent input {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #004f3c;
  border-radius: 0.5rem;
  accent-color: #b0974b;
}

.submit_wrap {
  position: relative;
}

.submit_wrap input {
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
}

.submit_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25.6rem;
  height: 4.8rem;
  margin: 0 auto;
  color: #fff;
  background-color: #004f3c;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 0;
  cursor: pointer;
}

.wpcf7-spinner {
  display: none;
}

.submit_btn::before {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: calc(100% - 0.6rem);
  height: calc(100% - 0.6rem);
  border: 1px solid #fff;
}

#contact .wpcf7-not-valid-tip {
  margin-top: 0.8rem;
  font-size: 1.8rem;
}

.wpcf7 form .wpcf7-response-output {
  font-size: 1.8rem;
}

#thanks {
  background-image: url(../img/contact/bg.jpg);
  background-size: cover;
  position: relative;
}

#thanks .text {
  margin-bottom: 4.8rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

#thanks .btn {
  margin: 0 auto;
}

/* thanks ページのみ footer を常にウィンドウの一番下に固定 */
body.thanks_page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.thanks_page main.thanks_wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.thanks_page #thanks {
  flex: 1;
}

@media (min-width: 769px) {
  #contact::before {
    width: 18rem;
  }

  #contact::after {
    width: 28rem;
  }

  #contact .text {
    font-size: 2rem;
  }

  #contact .form_ttl .ttl {
    font-size: 1.8rem;
  }

  #contact .submit_wrap .submit_btn {
    opacity: 1;
    transition: all 0.4s;
  }

  #contact .submit_wrap:hover .submit_btn {
    opacity: 0.8;
  }

  #thanks .text {
    font-size: 2rem;
  }
}
