


.contact_fv {
  position: relative;
  /* height: 200px; */
  height: 19rem;
  margin-top: 7rem;
  font-family: var(--ZenMaru);
  margin-bottom: 4.5rem;
}

/* お問い合わせページ */
.contact_form_wrap {
  font-family: var(--ZenMaru);
}

.contact_title {
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact_step {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  margin-bottom: 6.3rem;
}

.step_folder {
  width: 6.4rem;
  text-align: center;
  
}

.step_logo_clip {
  position: relative;
}

.step_logo_clip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9.5rem;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.8rem;
  background-color: #707070;
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.step_logo_clip_none {
  position: relative;
}

.step_number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #707070;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step_logo {
  width: 4.942rem;
  height: 4.916rem;
  position: relative;
}

.step_text {
  margin-top: 0.984rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #707070;
}

/* 今のページのみ色変更 */
.step_number_active,
.step_text_active {
  color: #333333;
}


/* ここからform */
.contact_list {
  width: 70rem;
  margin: 0 auto;
}

.contact_label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 1.1rem;
}

.contact_required {
  font-size: 1.4rem;
  padding: 0.1rem 1.1rem 0.1rem 0.9rem;
  color: #FFFFFF;
  background-color: var(--terracotta);
}

.input_area_checkbox {
  width: 100%;
  margin-bottom: 3.2rem;
}

.input_area {
  width: 100%;
  margin-bottom: 3.2rem;
  border: 0.1rem solid #707070;
  padding: 0.7rem 1.5rem;
  overflow-wrap: break-word;
  word-break: break-all;
}

.input_message {
  height: 18rem;
}

.company_text,
.name_text,
.mail_text,
.tel_text,
.content_textarea {
  width: 100%;
  /* height: 3.4rem; */
  /* border: 0.1rem solid #707070; */
  /* padding: 0.7rem 1.5rem; */
}

.content_textarea {
  height: 18rem;
}

.form_submit {
  margin-bottom: 9rem;
}

.btn_main {
  width: fit-content;
  height: 4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: calc(32/16);
  color: #FFFFFF;
  background-color: var(--orange);
  padding: 0 6.1rem 0 6.2rem;
  transition: all 0.2s;
}
.btn_main:hover {
  cursor: pointer;
  background-color: var(--darkOrange);
}


/* チェックボタン */
.wpcf7-list-item {
  margin: 0 0 0 3.5rem;
}

.wpcf7-list-item:first-child {
  margin: 0;
}

.input_area,
.input_area_checkbox {
    position: relative;
}

.wpcf7-form-control-wrap {
  position: static !important;
}

.wpcf7-not-valid-tip {
    position: absolute;
    top: 100%; /* 入力枠の下に配置 */
    left: 0;
    z-index: 10; /* 入力枠に隠れないよう最前面にする */
    margin-top: 0.8rem; /* 枠との隙間を調整 */
}


/* デフォルトのチェックボックスを非表示にする */
.contact_checkbox input[type="checkbox"] {
  display: none;
}

.contact_checkbox .wpcf7-list-item-label {
  position: relative;
  padding-left: 2.2rem;
  cursor: pointer;
}

.contact_checkbox .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border: 0.1rem solid #333333;
  border-radius: 50%;
  background-color: #fff;
}

.contact_checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
  background-color: #fff;
  border-color: #333333;
}

.contact_checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  /* transform: translateY(-50%); */
  transform: translate(25%, -50%);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #333333;
}

.wpcf7-spinner {
  display: none;
}

/* 確認画面用css */
.input_area_confirm {
  color: #333333;
}

.form_submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.9rem;
  margin-top: 6rem;
}

.btn_back {
  width: 20.3rem;
  height: 4rem;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: calc(32/16);
  color: #333333;
  background-color: #FFFFFF;
  border: 0.1rem solid #707070;
  /* padding: 0 6.1rem 0 6.2rem; */
}

.btn_send {
  width: 20.3rem;
  height: 4rem;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: calc(32/16);
  color: #FFFFFF;
  background-color: var(--orange);
  /* padding: 0 6.1rem 0 6.2rem; */
}
.btn_send:hover {
  cursor: pointer;
  background-color: var(--darkOrange);
}

@media screen and (max-width: 699.98px) {
  /* レスポンシブ対応 */
  .contact_fv {
    height: 18.5rem;
  }

  .contact_title {
    font-size: 3rem;
  }

  .contact_step {
    gap: 3.6rem;
    margin-bottom: 4rem;
  }

  .step_logo_clip::before {
    left: 7.5rem;
  }


  .wpcf7-list-item {
    margin: 0 0 0 2rem;
  }

  .wpcf7-list-item:last-child {
    margin: 1rem 0 0 0;
  }
  .contact_checkbox .wpcf7-list-item-label {
    font-size: 1.4rem;
  }

  .contact_checkbox .wpcf7-list-item-label::before {
    width: 1.4rem;
    height: 1.4rem;
  }

  .contact_checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    width: 0.8rem;
    height: 0.8rem;
    transform: translate(35%, -50%);
  }

  .contact_list {
    width: 34.5rem;
  }

  .input_area_checkbox {
    margin-bottom: 3.5rem;
  }

  .input_area {
    margin-bottom: 2.5rem;
    padding: 0.7rem 0.8rem;
    font-size: 1.4rem;
  }

  .form_submit {
    margin-top: 0;
  }

  .wpcf7-not-valid-tip {
    margin-top: 0.1rem;
  }

}