/* contact */
.contact {
  padding: 10rem 14.45rem 10.4rem;
  background-color: #C4C4C4;
}

.contact_title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1em;
}

.contact_desc {
  display: block;
  margin: 3.8rem auto 0;
  width: 44.8rem;
  font-size: 1.6rem;
  letter-spacing: 0;
  line-height: calc(32em/16);
}

.contact_inner {
  background-color: #fff;
  margin-top: 3.8rem;
  padding: 10.2rem 10.45rem 10.4rem;
}

.contect_content {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.contect_content:not(:nth-last-child(-n+3)) {
  padding-bottom: 3.55rem;
  border-bottom: solid .3rem #F0F0F0;
}

.contect_content:nth-child(n+2) {
  margin-top: 3.5rem;
}

.contact_content_title {
  display: block;
  width: 25.7rem;
  position: relative;
  margin-top: 1.6rem;
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1em;
}

.contact_content_title.checkbox {
  width: 28.1rem;
}

.contact_content_title.important::after {
  content: "必須";
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: #D32F2F;
  aspect-ratio: 53/27;
  width: 5.3rem;
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1em;
}

.contact_form {
  padding: .5rem;
  display: flex;
  align-items: center;
  width: 50.8rem;
  height: 5.6rem;
  border: solid .3rem #F0F0F0;
  border-radius: .5rem;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1em;
}

.contact_form.text_area {
  display: block;
  min-height: 32.2rem;
  resize: none;
}


.contact_form.checkbox {
  padding: 0;
  border: unset;
  width: 46.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.checkbox_text {
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1em;
}

.checkbox_link{
  position: relative;
}

.checkbox_link::after{
  position: absolute;
  content:"";
  left: 0;
  bottom: -.5rem;
  width: 100%;
  height: .1rem;
  background-color: black;
}

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

.check_box {
  aspect-ratio: 1/1;
  width: 2.9rem;
  border: solid .1rem #000000;
  border-radius: .2rem;
  appearance:auto;
  -webkit-appearance:auto;
}

.check_box.conf{
  pointer-events: none;
}

.contact_buttons {
  margin: 8.8rem auto 0;
  width: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}

.contact_button {
  background-color: #D43282;
  aspect-ratio: 438/64;
  width: 43.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  letter-spacing: 0;
  line-height: 1em;
}

.wpcf7-spinner{
  display: none;
}

@media screen and (max-width: 699.98px) {
  /* contact */
  .contact {
    padding: 5.8rem 1.2rem 9.1rem;
  }

  .contact_title {
    font-size: 2.8rem;
    line-height: 1em;
  }

  .contact_desc {
    margin: 3.4rem auto 0;
    width: 100%;
    line-height: calc(30em/16);
  }

  .contact_inner {
    margin-top: 5.7rem;
    padding: .1rem 1.6rem 9.1rem;
  }

  .contect_content {
    flex-direction: column;
    gap: .9rem;
  }

  .contect_content:not(:nth-last-child(-n+2)) {
    padding-bottom: 1.5rem;
    border-bottom: solid .2rem #F0F0F0;
  }

  .contect_content:nth-child(n+3) {
    margin-top: 2.1rem;
  }

  .contect_content.checkbox{
    gap: 0;
  }

  .contact_content_title,
  .contact_content_title.checkbox {
    width: fit-content;
    margin-top: 0;
  }

  .contact_content_title.important::after {
    right: -6.2rem;
  }

  .contact_form {
    width: 100%;
    border: solid .2rem #F0F0F0;
    font-size: 1.5rem;
    letter-spacing: 0;
    line-height: 1em;
  }

  .contact_form.text_area {
    min-height: 16.7rem;
    resize: none;
  }


  .contact_form.checkbox {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .9rem;
  }

  .checkbox_text {
    font-size: 2rem;
    text-wrap-mode: nowrap;
    letter-spacing: 0;
    line-height: 1em;
  }

  .check_box {
    width: 2.3rem;
    flex-shrink: 0;
  }

  .contact_buttons {
    margin: 5.3rem auto 0;
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact_button {
    aspect-ratio: 319/64;
    width: 31.9rem;
  }
}