/* =============== お問い合わせページ CSS =============== */
#page-contact {
  position: relative;
  padding-bottom: 90px;
}
#page-contact .sec-inner {
  position: relative;
  z-index: 1;
}
#page-contact .sec-title-wrap .script-img {
  -webkit-transform: rotate(-5deg);
  -ms-transform: rotate(-5deg);
  transform: rotate(-5deg);
}
#page-contact .access-info-wrap {
  max-width: 752px;
  margin: 40px auto 0;
  padding: 40px 60px;
  background-color: #faf7f2;
}
#page-contact .map-info {
  width: 50%;
}
#page-contact .map-info:last-of-type {
  margin-right: 0;
}
#page-contact .map-info .tel-btn {
  margin-bottom: 0;
}
#page-contact .rotate-img {
  width: 270px;
  position: fixed;
  top: auto;
  bottom: -120px;
  right: auto;
  left: -120px;
  z-index: 0;
}

/* フォーム CSS調整 */
.contents-wrap.contact-form {
  margin-top: 60px;
}
.contact-form-caption {
  display: block;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: #999999;
  margin-bottom: 20px;
}
.contact-form-caption .red {
  color: #962427;
}
.contact-form-wrap .row {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  align-items: center;
  margin-bottom: 32px;
}
.contact-form-wrap .row.last {
  margin-bottom: 0;
  -webkit-box-align: start;
  align-items: flex-start;
}
.contact-form-wrap .row.last .form-title {
  padding-top: 12px;
}
.contact-form-wrap .form-title {
  width: 20%;
  font-size: 1.6rem;
  font-weight: 600;
}
.contact-form-wrap .form-title .red {
  color: #962427;
}
.contact-form-wrap .form-txt {
  width: 80%;
}
.contact-form-wrap .row .contact-txt-box {
  width: 100%;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  border: 1px solid #faf7f2;
  outline: 0;
  background-color: #faf7f2;
  padding: 12px 10px;
  transition: all .4s ease-in-out;
}
.contact-form-wrap .row .contact-txt-box:focus {
  border: 1px solid #1a1a1a;
  transition: all .4s ease-in-out;
}
.form-radio .wpcf7-list-item-label {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}
.privacy-check-wrap {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  width: 80%;
  margin-left: auto;
  margin-top: 60px;
}
.privacy-check-wrap a {
  text-decoration: underline;
  transition: all .4s ease-in-out;
}
.privacy-check-wrap a:hover {
  color: #962427;
  text-decoration: underline;
  transition: all .4s ease-in-out;
}
.privacy-check-btn {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 20px;
}
.privacy-check-btn .wpcf7-list-item label {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  align-items: center;
}
.privacy-check-btn .wpcf7-list-item-label::before {
  content: none;
}
.privacy-check-btn .wpcf7-list-item-label::after {
  content: none;
}
.privacy-check-btn input[type="checkbox"] {
  margin: 0;
  margin-right: 10px;
}

.wpcf7-list-item.first {
  margin: 0;
  margin-right: 20px;
}
.wpcf7-list-item-label {
  cursor: pointer;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}
/* デフォルトのボタン */
input[type="radio"] {
  opacity: 0;
  position: absolute;
}
/* チェック前のボタン */
.wpcf7-list-item-label::before {
  background: #fff;
  border: 1px solid #1a1a1a;
  border-radius: 100%;
  content: "";
  height: 1.2em;
  margin-bottom: auto;
  margin-right: .5em;
  margin-top: auto;
  transition: background-color .5s;
  width: 1.2em;
}
/* チェック後のボタン */
input[type="radio"]:checked+.wpcf7-list-item-label::before {
  background-color: #962427;
  box-shadow: inset 0 0 0 2.5px #fff;
}

/* 「同意ボタン」既存のチェックボックスを見えなくする */
.privacy-check-btn input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}
/* 「同意ボタン」チェックボックスの枠 */
.privacy-check-btn .wpcf7-list-item-label:before {
  background: #fff;
  border: 1px solid #1a1a1a;
  border-radius: 100%;
  content: "";
  height: 1.2em;
  margin-bottom: auto;
  margin-right: .5em;
  margin-top: auto;
  transition: background-color .5s;
  width: 1.2em;
}
 /* 「同意ボタン」チェックアイコン */
.privacy-check-btn input[type="checkbox"]:checked+.wpcf7-list-item-label:before {
  background-color: #962427;
  box-shadow: inset 0 0 0 2.5px #fff;
}

/* 送信ボタンリセット及び調整CSS */
.submit-btn input[type="submit"],
.submit-btn input[type="button"] {
  border-radius: 10px;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}
.submit-btn input[type="submit"]::-webkit-search-decoration,
.submit-btn input[type="button"]::-webkit-search-decoration {
  display: none;
}
.submit-btn input[type="submit"]::focus,
.submit-btn input[type="button"]::focus {
  outline-offset: -2px;
}
.submit-btn {
  position: relative;
  width: 80%;
  margin-left: auto;
  margin-top: 32px;
}
.submit-btn input.wpcf7-form-control.wpcf7-submit.submit {
  cursor: pointer;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #1a1a1a;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-block;
  margin: 0 auto;
  padding: 12px 20px;
  border-radius: 0;
  transition: all .4s ease-in-out;
}
.submit-btn input.wpcf7-form-control.wpcf7-submit.submit:hover {
  background: #962427;
  border: 1px solid #962427;
  color: #fff;
  transition: all .4s ease-in-out;
}

/* =============== エラーメッセージ =============== */
.wpcf7 form .wpcf7-response-output {
  display: none!important;
}
.wpcf7-not-valid-tip {
  color: #dc3232!important;
  font-size: 1.4rem!important;
  font-weight: 400!important;
  display: block!important;
}
.wpcf7-spinner {
  position: absolute!important;
}

/* =============== reCAPTCHA 非表示 =============== */
.grecaptcha-badge {
  visibility: hidden;
}
.recaptcha-txt {
  width: 80%;
  margin-left: auto;
  margin-top: 20px;
  font-size: 1.1rem;
}
.recaptcha-txt a {
  text-decoration: underline;
}

@media screen and (max-width: 768px){
  /* =============== お問い合わせページ CSS =============== */
  #page-contact {
    padding-bottom: 60px;
  }
  #page-contact .access-info-wrap {
    padding: 30px;
  }
  #page-contact .map-info {
    width: 100%;
  }
  #page-contact .map-info:last-of-type {
    margin-bottom: 0;
  }
  #page-contact .sec-title-wrap .script-img {
    width: 120px;
    top: -40px;
    right: -4%;
  }
  #page-contact .rotate-img {
    width: 160px;
    bottom: -70px;
    left: -70px;
  }

  /* フォームCSS調整 */
  .contact-form-wrap .row {
    display: block;
  }
  .contact-form-wrap .form-title {
    width: 100%;
    margin-bottom: 6px;
    font-size: 1.4rem;
  }
  .contact-form-wrap .form-radio {
    width: 100%;
  }
  .contact-form-wrap .form-txt {
    width: 100%;
  }
  .privacy-check-wrap {
    width: 100%;
    margin: 60px auto 0;
    text-align: center;
    font-size: 1.4rem;
  }
  .privacy-check-btn {
    font-size: 1.4rem;
  }
  /* 送信ボタン */
  .submit-btn {
    width: 100%;
    margin: 32px auto 0;
    text-align: center;
  }
  /* =============== reCAPTCHA 非表示 =============== */
  .recaptcha-txt {
    width: 100%;
    text-align: center;
    margin: 30px auto 0;
    font-size: 1rem;
  }
}
