main{
  position: relative;
  z-index: -11;
}

.sp_only_image {
  display: none;
}

/* メインビジュアル */
.contact_mainvisual {
  background-image: url(../img/contact_mainvisual.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 71.6rem;
}
.contact_mainvisual .contact_waveimage{
  width: 100%;
  height: 39.905rem;
  margin: 50rem 0 0 0;
}
.contact_mainvisual .contact_heading{
  width: 40rem;
  margin: -31rem 0 0 15rem;
}
.contact_mainvisual .contact_heading img:nth-of-type(1){
  height: 8rem;
  display: block;
}
.contact_mainvisual .contact_heading img:nth-of-type(2){
  height: 0.816rem;
  margin: -0.8rem 0 0 0;
  display: block;
}


/* .contact_heading_wrapper {
  background-image: url(../img/wave.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 39.905rem;
  position: absolute;
  top: 50rem;
}

.contact_heading {
  width: 40rem;
  height: 8rem;
  position: absolute;
  top: 9rem;
  left: 15rem;
}

.contact_heading img:nth-of-type(2) {
  width: 40rem;
  height: 0.816rem;
  position: absolute;
  top: 7.4rem;
  left: 50%;
  transform: translateX(-50%);
} */

/* アニメーション */
/* .contact_heading img:nth-of-type(1) {
  opacity: 0;
  transform: matrix(1, 0, 0, 1, 0, 100);
  transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact_heading img:nth-of-type(1).aos-animate {
  opacity: 1;
  transform: matrix(1, 0, 0, 1, 0, 0);
} */

/* お問い合わせフォーム */
/* お問い合わせフォームタイトル */
.contact_heading_jp {
  font-family: 'Noto Sans JP', serif;
  font-weight: 500;
  font-size: 2rem;
  color: #333333;
  position: relative;
  margin-top: 1.4rem;
  margin-bottom: 4rem;
  margin-left: 12.5rem;
}

.contact_heading_jp::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  background-color: #333333;
  position: absolute;
  top: 0.9rem;
  left: -2.4rem;
}

/* お問い合わせフォーム本体 */
/* 必須 */
.wpcf7-form .required {
  background-color: #B10000;
  font-size: 1.6rem;
  text-align: center;
  color: #FFFFFF;
  padding: 0.1rem 0.9rem;
  margin-left: 0.5rem;
}

/* バリデーション */
.wpcf7-not-valid-tip {
  display: block;
  width: 18rem;
  font-family: 'Noto Sans JP', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: #B10000;
  margin-left: 0.5rem;
}

.contact_area .must:nth-of-type(1) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: -4.5rem;
  left: 21.5rem;

}

.contact_area .must:nth-of-type(2) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: -4rem;
  left: 11.5rem;

}

.contact_area .must:nth-of-type(3) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: -4.2rem;
  left: 13.5rem;
}

.contact_area .must:nth-of-type(4) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: -4.2rem;
  left: 19.5rem;
  width: 30rem;
}

.contact_area .must:nth-of-type(5) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: -23rem;
  left: 21.5rem;
}


.input_label .must:nth-of-type(1) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: -4.3rem;
  left: 19.5rem;
}

.input_label .must:nth-of-type(2) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: -23rem;
  left: 21.5rem;
}

.flex_box p .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: 2.7rem;
  left: 2rem;
}

.wpcf7 form .wpcf7-response-output {
  display: block;
  margin: -18.5rem auto 16.3rem auto;
  width: 82rem;
  text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output{
  border: 2px solid #A1CD3A;
  /* border: 2px solid #F37E20; */
}

.wpcf7-spinner{
  display: block;
  margin: -18.5rem auto 17.5rem auto;
}

/* 共通コンポーネント */
.contact_area {
  width: 82rem;
  display: block;
  position: relative;
  top: 1.2rem;
  margin-left: auto;
  margin-right: auto;
}

.input_label {
  font-family: 'Noto Sans JP', serif;
  font-weight: 500;
  font-size: 2rem;
  color: #333333;
}

.input_label p {
  font-weight: 500;
}

.inputarea[type="text"],
.inputarea[type="email"],
.inputarea[type="tel"],
.input_textarea {
  width: 82rem;
  height: 5rem;
  background-color: #FFFFFF;
  border: 0.1rem solid #333333;
  border-radius: 1rem 1rem 1rem 1rem;
  box-shadow: inset 0.5rem 0.5rem 0.5rem #00000029;
  font-family: 'Noto Sans JP', serif;
  font-weight: 400;
  font-size: 2rem;
  padding-left: 1rem;
}

.input_textarea {
  height: 16rem;
}

.inputarea[type="text"],
.inputarea[type="email"],
.inputarea[type="tel"] {
  /* padding-top: 1.055rem; */
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.input_textarea {
  padding-top: 1.055rem;
  margin-top: 1rem;
  margin-bottom: 5.7rem;
}

.inputarea::placeholder,
.input_textarea::placeholder {
  font-family: 'Noto Sans JP', serif;
  font-weight: 400;
  font-size: 2rem;
  color: #e8e8e8;
  padding-left: 1rem;
}

.strong {
  font-weight: bold;
}

.strong p {
  margin-top: -0.5rem;
}

/* チェックボックス */
.checkbox_btn {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: 'Noto Sans JP', serif;
  font-weight: 400;
  font-size: 2rem;
  color: #333333;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.checkbox_btn input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1.6rem;
  height: 1.6rem;
  cursor: pointer;
}

.checkbox_btn label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 2.5rem;
}

.checkbox_btn label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border: 0.1rem solid #707070;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.checkbox_btn input[type="checkbox"]:checked+.wpcf7-list-item-label::before {
  background-color: #FFFFFF;
}

.checkbox_btn input[type="checkbox"]:checked+.wpcf7-list-item-label::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 21%;
  width: 0.935rem;
  height: 1.097rem;
  border: solid #707070;
  border-width: 0 0.1rem 0.1rem 0;
  transform: rotate(45deg);
}

.wpcf7-list-item {
  margin-left: 0;
}

/* プライバシーポリシー */
.scroll_box {
  width: 82rem;
  height: 18.9rem;
  background-color: #FFFFFF;
  border: 0.1rem solid #707070;
  overflow: scroll;
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.privacy_policy_text,
.privacy_policy_heading,
.privacy_list_item {
  width: 80rem;
  font-family: 'Noto Sans JP', serif;
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: #333333;
  margin-left: auto;
  margin-right: auto;
}

.privacy_policy_text,
.privacy_list_item p {
  font-weight: 400 !important;
}

.privacy_policy_text {
  margin-bottom: 2rem;
}

.privacy_policy_text:nth-of-type(4) {
  margin-bottom: 0;
}

.privacy_policy_heading {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.privacy_order_list {
  margin-bottom: 1rem;
}

.privacy_box {
  margin-top: 2rem;
}

.flex_box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.5rem;
}

.privacy_policy_btn {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0;
  background-color: #FFFFFF;
  border: 0.1rem solid #707070;
  margin-right: 1rem;
}

.privacy_agreetext {
  font-family: 'Noto Sans JP', serif;
  font-weight: 400;
  font-size: 1.5rem;
}

/* 送信ボタン */
input[type="submit"].subject_btn {
  display: block;
  width: 82rem;
  height: 5.5rem;
  font-family: 'Noto Sans JP', serif;
  font-weight: 400;
  font-size: 3rem;
  color: #333333;
  background-color: #FFFFFF;
  border: 0.1rem solid #707070;
  border-radius: 1rem;
  margin-top: 5.3rem;
  margin-bottom: 20rem;
}

input[type="submit"].subject_btn:hover {
  color: #FFFFFF;
  background-color: #A1CD3A;
  transition: 0.3s ease-out;
  border: 0.1rem solid #A1CD3A;
}

@media screen and (max-width: 680px) {
.contact_mainvisual {
  background-image: url(../img/contact_mainvisual_sp.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 30.7rem;
}
.contact_mainvisual .contact_waveimage{
  width: 100%;
  height: 13rem;
  margin: 22.9rem 0 0 0;
}
.contact_mainvisual .contact_heading{
  width: 18rem;
  margin: 23rem 0 0 0rem;
}
.contact_mainvisual .contact_heading img:nth-of-type(1){
  height: 3rem;
  display: block;
}
.contact_mainvisual .contact_heading img:nth-of-type(2){
  height: 0.395rem;
  margin: -0.8rem 0 0 0;
  display: none;
}



  .sp_only_image {
    display: block;
    height: 0.395rem;
    position: absolute;
    top: 3em;
    left: -2rem;
  }

  /* メインビジュアル */
  .contact_mainvisual {
    position: relative;
  }

  .mainvisual_image {
    height: 30.7rem;
  }

  .contact_heading_wrapper {
    height: 13rem;
    top: 22.9rem;
  }

  .contact_heading {
    width: 18rem;
    height: 3rem;
    position: absolute;
    top: 3.2rem;
    left: 5rem;
  }

  .contact_heading img:nth-of-type(1) {
    width: 14rem;
    opacity: 1;
  }

  .contact_heading img:nth-of-type(2) {
    display: none;
  }

  /* お問い合わせフォーム */

  /* お問い合わせフォームタイトル */
  .contact_heading_jp {
    font-size: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    margin-left: 5rem;
  }

  .contact_heading_jp::before {
    width: 1.25rem;
    height: 1.25rem;
    top: 0.2rem;
    left: -2rem;
  }

  /* お問い合わせフォーム本体 */
  /* 必須 */
  .wpcf7-form .required {
    font-size: 1.1rem;
    padding: 0.1rem 0.6rem 0;

  }

  /* バリデーション */
  .wpcf7-not-valid-tip {
    width: 12rem;
    font-size: 1rem;
  }

  .contact_area .must:nth-of-type(1) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    top: -2.9rem;
    left: 16rem;

  }

  .contact_area .must:nth-of-type(2) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    top: -3rem;
    left: 8.5rem;
  }

  .contact_area .must:nth-of-type(3) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    top: -3rem;
    left: 10rem;
  }

  .contact_area .must:nth-of-type(4) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    top: -3rem;
    left: 14.5rem;
  }

  .contact_area .must:nth-of-type(5) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    top: -13.8rem;
    left: 16rem;
  }

  .input_label .must:nth-of-type(1) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    top: -3rem;
    left: 14.5rem;
  }

  .input_label .must:nth-of-type(2) .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    top: -13.7rem;
    left: 15.8rem;
  }

  .flex_box p .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    top: 1.8rem;
  }

  .wpcf7 form .wpcf7-response-output {
    margin: -20rem auto 17.5rem auto;
    width: 31.5rem;
    text-align: center;
  }

  .wpcf7-spinner{
    display: block;
    margin: -16rem auto 17.5rem auto;
  }


  /* 共通コンポーネント */
  .contact_area {
    width: 31.5rem;
    top: -0.1rem;
  }

  .input_label {
    font-size: 1.5rem;
  }

  .inputarea[type="text"],
  .inputarea[type="email"],
  .inputarea[type="tel"],
  .input_textarea {
    width: 31.5rem;
    height: 3rem;
    border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
    box-shadow: inset 0rem 0.3rem 0.6rem #00000029;
  }

  .input_textarea {
    height: 10rem;
  }

  .inputarea[type="text"],
  .inputarea[type="email"],
  .inputarea[type="tel"] {
    padding-top: 0rem;
    padding-bottom: 0.5rem;
  }

  .input_textarea {
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
  }

  .inputarea::placeholder,
  .input_textarea::placeholder {
    font-size: 1.5rem;
  }

  /* チェックボックス */
  .checkbox_btn {
    font-size: 1.2rem;
    margin-top: 1rem;
  }

  .checkbox_btn label {
    padding-left: 2.5rem;
  }

  .checkbox_btn input[type="checkbox"]:checked+.wpcf7-list-item-label::after {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: -3%;
    width: 0.935rem;
    height: 1.097rem;
  }

  /* プライバシーポリシー */
  .scroll_box {
    width: 31.5rem;
    margin-top: 0.5rem;
  }

  .privacy_policy_text,
  .privacy_policy_heading,
  .privacy_list_item {
    width: 30rem;
    font-size: 1rem;
  }

  .privacy_box {
    margin-top: -0.5rem;
  }

  .flex_box {
    margin-top: 1.8rem;
  }

  .privacy_policy_btn {
    width: 1.6rem;
    height: 1.6rem;
  }

  /* 送信ボタン */
  input[type="submit"].subject_btn {
    width: 31.5rem;
    height: 3.5rem;
    font-weight: 400;
    /* あとで設定 */
    font-size: 2rem;
    margin-top: 6.3rem;
    margin-bottom: 17.3rem;
  }
}