.contact {
  padding: 4rem 1.35rem;
}

.section-title__ja {
  font-size: 1.8rem;
  line-height: 2.6rem;
}

.contact__title {
  font-size: 2rem;
  line-height: 1.45;
  text-align: center;
  font-weight: 700;
  margin: 4rem auto 1.6rem;
}

.contact__intro {
  text-align: center;
  margin-bottom: 40px;
}

::placeholder {
  font-weight: 500;
  color: #c7c7c7;
  font-family: var(---sans-font), sans-serif;
}

.contact-form {
  max-width: 744px;
  margin: 4rem auto 0;
  font-size: 1.6rem;
  line-height: 1.5;
}

.contact__item {
  width: 100%;
  margin-bottom: 4rem;
}

.contact__item:nth-child(6) {
  margin-bottom: 1.8rem;
}

.contact__label {
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact__badge {
  background-color: #ca3c38;
  border-radius: 4px;
  margin-right: 1rem;
  width: 4.4rem;
  padding: 2px 7px 4px 7px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  height: 26px;
  line-height: 2rem;
  font-family: var(---sans-font), sans-serif;
}

.contact__badge--optional {
  background-color: #888a86;
}

.contact__inputs {
  display: flex;
  gap: 2rem;
}

.contact__input {
  border: 1px solid #707070;
  padding: 0.8rem 1.6rem;
  height: 4rem;
  width: 100%;
  background-color: #f7f7f7;
  border-radius: 0.4rem;
  font-size: inherit;
  font-family: inherit;
}

.contact__item-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact__input-wrapper {
  width: fit-content;
}

.contact__textarea {
  border: 1px solid #707070;
  border-radius: 4px;
  padding: 8px 16px;
  height: 200px;
  width: 100%;
  background-color: #f7f7f7;
  font-size: inherit;
  font-family: inherit;
}

.submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px;
  color: #fff;
  height: 50px;
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 25px;
  background-color: #d61518;
  margin: 0 auto;
}

.contact__radio-buttons > div {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  position: relative;
}

.mwform-radio-field label {
  display: flex;
  align-items: center;
  gap: 8px;
}

input.contact__radio-button {
  width: 24px;
  height: 24px;
}

.mwform-radio-field label {
  font-size: 1.6rem;
  font-weight: 500;
}

input[type="radio"] {
  accent-color: #2d4074;
}

.input__wrapper {
  position: relative;
}

.mw_wp_form .error {
  position: absolute;
  font-size: 12px !important;
  bottom: -18px;
  white-space: nowrap;
}

@media (max-width: 370px) {
  .mw_wp_form .error {
    position: relative;
    font-size: 10px;
    position: relative;
    white-space: unset;
    word-break: break-all;
    top: 0px;
  }
}

.mw_wp_form .horizontal-item + .horizontal-item {
  margin-left: 0px !important;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mw_wp_form_complete + .contact__intro,
.mw_wp_form_complete .contact__title {
  display: none;
}

.contact-complete__txt {
  text-align: center;
}

@media (min-width: 768px) {
  .section-title__ja {
    font-size: 2.4rem;
    line-height: 3.5rem;
  }

  .contact {
    padding: 8rem 2rem;
  }

  .contact__intro {
    margin-bottom: 30px;
  }

  .contact__title {
    margin-top: 8rem;
    margin-bottom: 1rem;
    font-size: 2.4rem;
    line-height: 3.5rem;
  }

  .contact-form {
    margin-top: 3rem;
  }

  .submit-button {
    background-color: #2d4074;
    transition: all 0.3s;
  }

  .submit-button:hover {
    background-color: #d61518;
  }

  .contact__item:nth-child(6) {
    margin-bottom: 6rem;
  }
}

.faq {
  padding: 4rem 2.75rem 8rem;
}

.faq__title {
  font-size: 2rem;
  line-height: 1.45;
  text-align: center;
}

.faq__container {
  margin: 4rem auto 0;
  font-size: 1.6rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 656px;
}

.faq__header {
  position: relative;
  color: #fff;
  background-color: #2d4074;
  border-radius: 10px 10px 0 0;
  padding: 10px;
  display: flex;
  gap: 1rem;
}

.faq__header span {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.5;
  position: relative;
  top: 3px;
}

.faq__answer {
  padding: 10px;
  border-radius: 0 0 10px 10px;
  background-color: #fff;
  border: 1px solid #707070;
  display: flex;
  gap: 1rem;
}

.faq__answer span {
  font-weight: 700;
}

@media (min-width: 768px) {
  .faq {
    padding: 8rem 2rem 14.4rem;
  }

  .faq__title {
    font-size: 2.4rem;
    line-height: 3.5rem;
  }

  .faq__container {
    margin: 3rem auto 0;
  }

  .faq__header {
    padding: 2rem 1.2rem;
  }

  .faq__answer {
    padding: 2rem 1.2rem;
  }
}
