/*
* [全体]
*/

main {
  background-color: white;
  overflow: hidden;
}

.contact_page_wrap {
  padding: 10rem 0 22rem;
}

/*
* [タイトル]
* .contact_title_wrap
* .contact_title
* .contact_title_image
* .js_float
*/

.contact_title_wrap {
  background-color: #EFEEDF;
  width: 100%;
  height: 25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact_title {
  width: 92rem;
  display: flex;
  justify-content: space-between;
}

.contact_title_image {
  width: 7.824rem;
  height: 13.9rem;
  object-fit: cover;
}

.js_float {
  opacity: 0;
}


/*
 * [ちょうちょ]
 * .contact_butterfly_wrap
 * .contact_butterfly_image
 */

.contact_butterfly_wrap {
  position: relative;
}

.contact_butterfly_image {
  width: 9.8rem;
  height: 8.712rem;
  object-fit: cover;
  position: absolute;
  top: 8.1rem;
}

/*
* [フォーム全体]
*/

.form_content_wrap {
  width: 92rem;
  margin: 25rem auto 0;
}

/*
 * [共通パーツ]
 */

.margin_adjustment {
  margin-bottom: 4rem;
}

.input_title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #484848;
  display: block;
  margin-bottom: 1.1rem;
  letter-spacing: 0.08rem;
}

.required {
  font-size: 1.4rem;
  color: #FF0000;
  letter-spacing: 0rem;
  visibility: hidden;
  margin: 0.2rem 0 0 0.5rem;
}

.order_writing:has(.wpcf7-not-valid) .required {
  visibility: visible;
}

input[type="tel"],
input[type="email"],
input[type="text"] {
  display: block;
  width: 100%;
  padding: 2rem 0 1.3rem 2rem;
  box-sizing: border-box;
  border: 0.1rem solid #707070;
  border-radius: 0.5rem;
}

.wpcf7-text::placeholder {
  font-size: 1.6rem;
  color: #B2B2B2;
}

.wpcf7-textarea {
  display: block;
  width: 100%;
  height: 20rem;
  padding: 1.6rem 0 0 1.9rem;
  box-sizing: border-box;
  margin-top: -0.3rem;
  border: 0.1rem solid #707070;
  border-radius: 0.5rem;
  resize: none;
}

.wpcf7-textarea::placeholder {
  font-size: 1.6rem;
  color: #B2B2B2;
}

/*
 * [Contact Form 7 デフォルトタグ削除]
 */

.wpcf7-not-valid-tip {
  display: none;
}

.wpcf7-response-output {
  display: none;
}

.wpcf7-list-item {
  margin: 0;
}

/*
 * [プライバシーポリシー]
 * .privacy_policy_title
 * .privacy_policy
 * .privacy_policy_article_title
 * .privacy_policy_article
 */

.privacy_policy_title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #484848;
  margin-bottom: 2.2rem;
  letter-spacing: 0.08rem;
}

.privacy_policy {
  font-size: 1.2rem;
  color: #484848;
  font-weight: 500;
  letter-spacing: 0.08rem;
  line-height: 1.8rem;
  overflow-wrap: anywhere;
  word-break: normal;
  width: 100%;
  height: 30rem;
  padding: 0.75rem;
  box-sizing: border-box;
  border: 0.1rem solid #707070;
  overflow-y: scroll;
  margin-bottom: 2rem;
}

.privacy_policy_article_title {
  margin: 2.6rem 0 0;
}

.privacy_policy_article {
  margin: 0;
}

/*
 * [同意チェックボックス]
 * .wpcf7-list-item
 * .agreement_wrap
 * .agreement_adjustment
 * .agreement
 */

/* Contact Form 7 チェックボックス固有クラス */
.wpcf7-list-item {
  letter-spacing: 0.08rem;
}

.agreement_wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.8rem;
}

.agreement_adjustment {
  display: flex;
  flex-direction: column;
}

.agreement {
  font-size: 1.8rem;
  color: #484848;
}

input[type="checkbox"] {
  margin: 0;
}

/* バリデーションチェック用 */
.required_checkbox {
  margin: 0;
}

/*
 * [送信ボタン]
 * .submit_button
 */

.submit_button {
  font-size: 1.6rem;
  font-weight: 500;
  color: #FFFFFF;
  background-color: #EE7E00;
  text-align: center;
  width: 100%;
  padding: 1.3rem 0;
  border: none;
  border-radius: 1rem;
  letter-spacing: 0.08rem;
}

/*
 * [送信完了]
 * .submit_success
 * .sp_br
 */

/* 通常時は非表示にする */
.wpcf7 .submit_success {
  display: none;
}

/* 送信完了（.sent）のときだけ表示する */
.wpcf7:has(.sent) .submit_success {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  display: block;
}

.sp_br {
  display: none;
}

/* レスポンシブ対応 */
@media screen and (max-width:700px) {

  /*
* [全体]
*/

  .contact_page_wrap {
    padding: 6rem 0 17.2rem;
  }

  /*
* [タイトル]
* .contact_title_wrap
* .contact_title
* .contact_title_image
*/

  .contact_title_wrap {
    height: 9rem;
  }

  .contact_title {
    width: 25.504rem;
  }

  .contact_title_image {
    width: 2.887rem;
    height: 5.129rem;
  }


  /*
 * [ちょうちょ]
 * .contact_butterfly_image
 */

  .contact_butterfly_image {
    width: 3.26rem;
    height: 2.898rem;
    top: 3.551rem;
  }

  /*
* [フォーム全体]
*/

  .form_content_wrap {
    width: 25.5rem;
    margin: 10rem auto 0;
  }

  /*
 * [共通パーツ]
 */

  .margin_adjustment {
    margin-bottom: 3.1rem;
  }

  .input_title {
    font-size: 1.4rem;
    letter-spacing: 0;
    margin-bottom: 1.148rem;
  }

  .required {
    font-size: 1.2rem;
    letter-spacing: 0;
  }

  input[type="tel"],
  input[type="email"],
  input[type="text"] {
    padding: 1rem 0 1rem 1rem;
  }

  .wpcf7-text::placeholder {
    font-size: 1.4rem;
  }

  .wpcf7-textarea {
    height: 20rem;
    padding: 1.2rem 0 0 1rem;
    margin-top: 1.5rem;
  }

  .wpcf7-textarea::placeholder {
    font-size: 1.2rem;
  }


  /*
 * [プライバシーポリシー]
 * .privacy_policy_title
 * .privacy_policy
 * .privacy_policy_article_title
 */

  .privacy_policy_title {
    font-size: 1.4rem;
    margin: -0.3rem 0 1rem;
  }

  .privacy_policy {
    margin-bottom: 1rem;
    line-height: 2.01rem;
    letter-spacing: 0.04rem;
    padding: 0.5rem 1rem;
  }

  .privacy_policy_article_title {
    margin: 2rem 0 0;
  }

  /*
 * [同意チェックボックス]
 * .agreement_wrap
 * .agreement_adjustment
 * .agreement
 */

  .agreement_wrap {
    display: flex;
    justify-content: flex-end;
    margin: 1.1rem 0 2.2rem;
  }

  .agreement_adjustment {
    display: flex;
    flex-direction: column;
  }

  .agreement {
    font-size: 1.4rem;
  }

  input[type="checkbox"] {
    margin-right: -0.5rem;
  }

  /* バリデーションチェック用 */
  .required_checkbox {
    padding: 0.5rem 0 0.6rem;
  }

  /*
 * [送信ボタン]
 * .submit_button
 */

  .submit_button {
    border-radius: 0.5rem;
  }

  /*
 * [送信完了]
 * .submit_success
 */

  /* 送信完了（.sent）のときだけ表示する */
  .wpcf7:has(.sent) .submit_success {
    font-size: 1.5rem;
  }

  .sp_br {
    display: inline;
  }

}