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

.mail-form {
  padding-top: 82px;
  padding-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 20px;
  background-color: #E5E7E7;
  font-family: "Zen Kaku Gothic New", sans-serif;;
}

@media screen and (max-width: 768px) {
  .mail-form {
    padding-top: 48px;
    padding-bottom: 32px;
    padding-inline: 20px;
  }
}

.mail-form__inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  row-gap: 16px;
}

@media screen and (max-width: 768px) {
  .mail-form__inner {
    row-gap: 12px;
  }
}

@media screen and (max-width: 768px) {
  .mail-form__inner {
    width: 100%;
  }
}

.mail-form__item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  column-gap: 54px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .mail-form__item {
    flex-direction: column;
    row-gap: 8px;
    align-items: flex-start;
  }
}

.mail-form__item dt {
  font-size: 18px;
  font-weight: 500;
  width: 259px;
  padding-right: 82px;
}

@media screen and (max-width: 768px) {
  .mail-form__item dt {
    font-size: 16px;
    width: auto;
    padding-right: unset;
  }
}

.mail-form__item dd {
  flex: 1;
}

@media screen and (max-width: 768px) {
  .mail-form__item dd {
    width: 100%;
  }
}

.mfp_col10 {
  width: 100%;
}

input.mfp_element_all, textarea.mfp_element_all {
  background-color: white;
  width: 100%;
  height: 55px;
  border-radius: 5px;
  padding: 0.5em 1em;
}

@media screen and (max-width: 768px) {
  input.mfp_element_all, textarea.mfp_element_all {
    height: 40px;
  }
}

textarea.mfp_element_all {
  width: 100% !important;
  height: 102px !important;
}

input.mfp_element_checkbox {
  background-color: white;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: solid 1px #898989;
  margin-right: 10px;
}

.mfp.required {
  position: relative;
}

.mfp.required::before {
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  display: block;
  content: '必須';
  color: white;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .mfp.required::before {
    right: -67px;
  }
}

.mfp.required::after {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  display: block;
  width: 82px;
  height: 22px;
  border-radius: 999px;
  content: '';
  background-color: #25A09A;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  .mfp.required::after {
    right: -95px;
  }
}

.mail-form__item--contact dt p {
  font-size: 13px;
  font-weight: 400;
  margin-top: 1em;
}

.mail-form__item--check {
  font-size: 16px;
  font-weight: 400;
  align-self: center;
  user-select: none;
}

@media screen and (max-width: 768px) {
  .mail-form__item--check {
    font-size: 14px;
  }
}

.mail-form__item--check a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mail-form__item--check input {
  display: none;
}

.mail-form__item--check ol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 4px;
}

.mail-form__item--check .checkmark {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  background-color: #fff;
  border-radius: 5px;
  border: solid 1px #898989;
  color: white;
  margin-right: 10px;
}

.mail-form__item--check .mfp_err {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}

.mail-form__item--confirm {
  font-size: 16px;
  font-weight: 400;
  align-self: center;
  user-select: none;
}

@media screen and (max-width: 768px) {
  .mail-form__item--confirm {
    font-size: 14px;
  }
}

.mail-form__item--confirm a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mail-form__item--confirm dt {
  display: none;
}

.mail-form__item--confirm input {
  display: none;
}

.mail-form__item--confirm .checkmark {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  background-color: #fff;
  border-radius: 5px;
  border: solid 1px #898989;
  color: white;
  margin-right: 10px;
}

.mail-form__item--confirm .mfp_err {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.mfp_checked .checkmark {
  background-color: #25A09A;
  border: none;
}

.mail-form__flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mail-form__flex-left {
  display: flex;
  justify-content: flex-start ;
  align-items: center;
}

.mfp_rows {
  display: flex;
  column-gap: 23px;
}

.mfp_buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 26px;
  font-weight: 700;
  background-color: #25A09A;
  border-radius: 9999px;
}

@media screen and (max-width: 768px) {
  .mfp_buttons {
    font-size: 18px;
  }
}

.mfp_buttons button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  max-width: calc(100vw - 40px);
  height: 78px;
  transition: 0.2s;
}

.mfp_buttons button:hover {
  opacity: 0.7;
}

@media screen and (max-width: 768px) {
  .mfp_buttons button {
    width: 280px;
    height: 56px;
  }
}

.mfp_err {
  font-size: 12px;
  color: red;
  margin-top: 8px;
}


/* mail form proのJSで生成される不要な画面を非表示に
---------------------------------------------------------*/
#mfp_loading {
  display: none !important;
}

#mfp_loading_screen {
  display: none !important;
}

#mfp_overlay_background {
  display: none !important;
}

#mfp_hidden {
  display: none !important;
}


/* ==========================================================
!サンクスページ
========================================================== */

.mail-form-thanks-outer {
  padding-top: 192px;
  padding-bottom: 100px;
}

@media screen and (max-width: 768px) {
  .mail-form-thanks-outer {
    padding-top: 100px;
    padding-top: 56px;
  }
}

.mail-form-thanks {
  background-color: #E5E7E7;
  padding: 80px 40px;
  font-family: "Zen Kaku Gothic New", sans-serif;;
  width: calc(100% - 40px);
  max-width: 960px;
  margin-inline: auto;
}

@media screen and (max-width: 768px) {
  .mail-form-thanks {
    padding: 64px 24px;
  }
}

.mail-form-thanks__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.mail-form-thanks__heading {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 32px;
}

@media screen and (max-width: 768px) {
  .mail-form-thanks__heading {
    font-size: 24px;
    margin-bottom: 24px;
  }
}

.mail-form-thanks__content {
  font-size: 18px;
  text-align: center;
  margin-bottom: 56px;
}

@media screen and (max-width: 768px) {
  .mail-form-thanks__content {
    font-size: 16px;
    margin-bottom: 40px;
  }
}

.mail-form-thanks__content p+p {
  margin-top: 1em;
}

.mail-form-thanks__button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  font-weight: 700;
  background-color: #25A09A;
  border-radius: 9999px;
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .mail-form-thanks__button {
    font-size: 22px;
  }
}

.mail-form-thanks__button a {
  color: white !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  max-width: calc(100vw - 40px);
  height: 78px;
}

@media screen and (max-width: 768px) {
  .mail-form-thanks__button a {
    height: 56px;
  }
}