/* --------------------------------- Common --------------------------------- */
[class*="__wrapper-m"] {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.cmn-py {
  padding-block: var(--sp-2);
}

.sp-px {
  padding-inline: var(--sp-2);
}

/* ---------------------------------- Sec00 --------------------------------- */
.sec00 {
  /* background: #000000 !important; */
  /* background: no-repeat center right / contain url("../images/sec00_img1.png"),
    #000000 !important; */
  background: no-repeat center / cover url("../images/sec00_img1.png") !important;

  .sec00__wrapper {
    width: min(100%, 1920px);
    margin-inline: auto;
  }

  .sec00__header {
    width: fit-content;
    height: 100%;
    margin-inline: auto;
    padding-block: var(--sp-5);
    /* background-color: #000000; */
    /* padding-inline: var(--sp-5); */

    h2 {
      font-size: calc((22 / 390) * 100vw);
      font-weight: var(--bold);
      text-align: center;
      color: var(--clr-white);
    }
  }
}

/* ---------------------------------- Sec01 --------------------------------- */
.sec01 {
  .sp-cta__text {
    font-size: var(--body-fz);
    font-weight: var(--bold);
    text-align: center;
    margin-bottom: var(--sp-1);
  }

  .sp-cta__tel {
    display: block;
    width: fit-content;
    margin: 0 auto var(--sp-1);
  }

  .sp-cta__note {
    font-size: calc((12 / 390) * 100vw);
    font-weight: var(--regular);
    color: #727272;
    text-align: center;
  }
}

/* --------------------------------- Contact -------------------------------- */
.contact {
  padding-block: 0;

  .contact__header {
    padding-block: calc((20 / 390) * 100vw);
    background-color: #1b2951;

    h3 {
      font-size: var(--h4-fz);
      font-weight: var(--bold);
      color: var(--clr-white);
      text-align: center;
    }
  }

  .contact__textbox {
    background-color: #f5f5f5;
    padding-block: var(--sp-2) var(--sp-5);

    p {
      font-size: var(--body-fz);
      font-weight: var(--bold);
      text-align: center;
    }
  }
}

/* Form */
.form {
  padding-bottom: var(--sp-5);
  counter-reset: count;
  background-color: #f5f5f5;

  .form__header {
    margin-bottom: var(--sp-4);
    position: relative;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-flow: row nowrap;
    gap: var(--sp-1);

    &::before {
      counter-increment: count;
      content: "Step" counter(count);
      background-color: #1b2951;
      font-size: var(--px-18);
      font-weight: var(--bold);
      color: var(--clr-white);
      padding: var(--sp-05) var(--sp-2);
      border-radius: 0 var(--sp-3) var(--sp-3) 0;
    }

    h4 {
      font-size: var(--px-18);
      font-weight: var(--bold);
      text-align: left;
    }
  }

  .form__list {
    padding-inline: var(--sp-2);

    &:not(:last-of-type) {
      margin-bottom: calc((48 / 390) * 100vw);
    }
  }

  .form__item {
    &:not(:last-child) {
      margin-bottom: var(--sp-3);
    }

    .form__item-label {
      margin-bottom: var(--sp-1);
      display: flex;
      justify-content: start;
      align-items: center;
      flex-flow: row wrap;
      gap: var(--sp-1);

      label {
        font-size: var(--body-fz);
        font-weight: var(--bold);
      }

      span {
        font-size: calc((11 / 390) * 100vw);
        font-weight: var(--regular);
        color: var(--clr-white);
        padding: 0 var(--sp-1);
        background-color: #c71d1d;
        border-radius: var(--sp-05);
      }

      span.optional {
        background-color: #767676;
      }

      p {
        width: 100%;
        font-size: calc((12 / 390) * 100vw);
        font-weight: var(--regular);
      }
    }
  }
}

/* ラジオカード */
#contact-form .radio-cards {
  display: flex;
  flex-flow: column nowrap;
  gap: var(--sp-1);
}

#contact-form .radio-card {
  background-color: var(--clr-white);
  border: calc((2 / 390) * 100vw) solid #e0e0e0;
  border-radius: var(--sp-1);
  padding: var(--sp-1);
  cursor: pointer;
  display: flex;
  gap: var(--sp-1);
  justify-content: start;
  align-items: start;
  flex-flow: row nowrap;
  transition: border-color 0.3s;
}

/* #contact-form .radio-card:first-child {
  flex: 1;
}

#contact-form .radio-card:last-child {
  flex: 0 0 auto;
  width: 336px;
} */

#contact-form .radio-card:hover {
  border-color: #d0d0d0;
}

#contact-form .radio-card--active {
  border-color: #0472a9 !important;
  background-color: #f0f8ff;
}

#contact-form .radio-card input[type="radio"] {
  position: absolute;
  width: calc((1 / 390) * 100vw);
  height: calc((1 / 390) * 100vw);
  opacity: 0;
  margin: 0;
  padding: 0;
}

#contact-form .radio-card__icon {
  width: var(--sp-2);
  height: var(--sp-2);
  border: calc((1 / 390) * 100vw) solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  /* margin-top: 4px; */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-form .radio-card--active .radio-card__icon {
  border-color: #0472a9;
}

#contact-form .radio-card--active .radio-card__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc((10 / 390) * 100vw);
  height: calc((10 / 390) * 100vw);
  background-color: #0472a9;
  border-radius: 50%;
}

#contact-form .radio-card__content {
  flex: 1;
}

#contact-form .radio-card__title {
  font-weight: var(--bold);
  font-size: var(--body-fz);
  line-height: 1.5;
  margin-bottom: 0;
}

#contact-form .radio-card--active .radio-card__title {
  color: #0472a9;
}

#contact-form .radio-card__note {
  font-size: calc((14 / 390) * 100vw);
  font-weight: var(--regular);
  line-height: 1.5;
}

#contact-form .radio-card--active .radio-card__note {
  color: #0472a9;
}

/* セレクトボックス */
#contact-form .form-select {
  width: 100%;
  background-color: var(--clr-white);
  border: calc((1 / 390) * 100vw) solid #626262;
  border-radius: calc((4 / 390) * 100vw);
  padding: var(--sp-2);
  font-size: var(--body-fz);
  line-height: 1;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=''http://www.w3.org/2000/svg'' width=''30'' height=''20'' viewBox=''0 0 30 20''%3E%3Cpath d=''M15 13l-7-7h14z'' fill=''%23000''/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-2) center;
  cursor: pointer;
}

#contact-form .form-select::placeholder {
  color: #767676;
}

/* ラジオピル(ご相談の詳細用) */
#contact-form .radio-pills {
  display: flex;
  /* flex-wrap: wrap; */
  flex-flow: column nowrap;
  gap: var(--sp-1);
}

#contact-form .radio-pill {
  background-color: var(--clr-white);
  border: calc((1 / 390) * 100vw) solid #e0e0e0;
  border-radius: var(--sp-1);
  padding: var(--sp-1);
  display: flex;
  align-items: center;
  gap: var(--sp-05);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

#contact-form .radio-pill:hover {
  border-color: #d0d0d0;
}

#contact-form .radio-pill--full {
  width: 100%;
}

#contact-form .radio-pill input[type="radio"] {
  position: absolute;
  width: calc((1 / 390) * 100vw);
  height: calc((1 / 390) * 100vw);
  opacity: 0;
  margin: 0;
  padding: 0;
}

#contact-form .radio-pill:has(input[type="radio"]:checked) {
  border-color: #0472a9;
  background-color: #f0f8ff;
}

#contact-form .radio-pill input[type="radio"]:checked ~ .radio-pill__icon {
  border-color: #0472a9;
  background-color: transparent;
}

#contact-form
  .radio-pill
  input[type="radio"]:checked
  ~ .radio-pill__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc((8 / 390) * 100vw);
  height: calc((8 / 390) * 100vw);
  background-color: #0472a9;
  border-radius: 50%;
}

#contact-form .radio-pill input[type="radio"]:checked ~ .radio-pill__label {
  color: #0472a9;
}

#contact-form .radio-pill__icon {
  width: var(--sp-2);
  height: var(--sp-2);
  border: calc((2 / 390) * 100vw) solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-form .radio-pill__label {
  font-weight: var(--bold) !important;
  font-size: var(--body-fz);
  /* line-height: 18.75px; */
  transition: color 0.2s;
}

#contact-form .radio-pill__note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--clr-txt);
}

/* チェックボックスピル */
#contact-form .checkbox-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

#contact-form .checkbox-pill {
  background-color: var(--clr-white);
  border-radius: var(--sp-1);
  padding: calc((12 / 390) * 100vw);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  cursor: pointer;
  position: relative;
}

#contact-form .checkbox-pill--full {
  width: 100%;
}

#contact-form .checkbox-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#contact-form .checkbox-pill__icon {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

#contact-form
  .checkbox-pill
  input[type="checkbox"]:checked
  + .checkbox-pill__icon {
  border-color: #0472a9;
  background-color: #0472a9;
}

#contact-form
  .checkbox-pill
  input[type="checkbox"]:checked
  + .checkbox-pill__icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--clr-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#contact-form .checkbox-pill__label {
  font-weight: var(--bold);
  font-size: var(--body-fz);
  line-height: 1.2;
}

#contact-form .checkbox-pill__note {
  font-size: 14px;
  line-height: 1.2;
}

/* テキストエリア */
#contact-form .form-textarea {
  width: 100%;
  background-color: var(--clr-white);
  border: 1px solid #626262;
  border-radius: calc((4 / 390) * 100vw);
  padding: var(--sp-2);
  font-size: var(--body-fz);
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

#contact-form .form-textarea::placeholder {
  color: #767676;
}

/* インプット */
#contact-form .form-input {
  width: 100%;
  background-color: var(--clr-white);
  border: 1px solid #626262;
  border-radius: calc((4 / 390) * 100vw);
  padding: var(--sp-2);
  font-size: var(--body-fz);
  line-height: 1;
  box-sizing: border-box;
}

#contact-form .form-input::placeholder {
  color: #767676;
}

/* フォーム行 */
#contact-form .form-row--2col {
  display: flex;
  gap: var(--sp-2);
}

#contact-form .form-row--2col .form-group {
  flex: 0 0 426px;
  margin-bottom: 0;
}

/* 名前入力 */
#contact-form .form-name-row {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-flow: row nowrap;
  gap: calc((12 / 390) * 100vw);
}

#contact-form .form-name-group {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-flow: row nowrap;
  gap: var(--sp-05);
  flex-grow: 1;
}

#contact-form .form-name-label {
  font-size: var(--body-fz);
  line-height: 1.5;
  margin: 0;
  display: block;
  white-space: nowrap;
}

#contact-form .form-name-group .form-input {
  /* width: 196px; */
}

/* チェックボックス */
.form-checkboxes {
  display: flex;
  /* flex-direction: column; */
  flex-flow: column nowrap;
  gap: var(--sp-2);
}

.form-checkbox {
  display: flex;
  align-items: start;
  gap: var(--sp-1);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-checkbox__box {
  width: var(--sp-2);
  height: var(--sp-2);
  border: calc((1 / 390) * 100vw) solid var(--clr-txt);
  border-radius: calc((2 / 390) * 100vw);
  flex-shrink: 0;
  position: relative;
  margin-top: var(--sp-1);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__box {
  background-color: #0472a9;
  border-color: #0472a9;
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__box::after {
  content: "";
  position: absolute;
  /* top: calc((1 / 390) * 100vw);
  left: calc((4 / 390) * 100vw); */
  inset: 0;
  margin: auto;
  width: calc((4 / 390) * 100vw);
  height: calc((8 / 390) * 100vw);
  border: solid var(--clr-white);
  border-width: 0 calc((2 / 390) * 100vw) calc((2 / 390) * 100vw) 0;
  transform: rotate(45deg);
}

.form-checkbox__label {
  font-size: var(--body-fz);
  line-height: 1.5;
}

/* フッター */
#contact-form .contact-form__footer {
  margin-top: var(--sp-5);
}

#contact-form .contact-form__recaptcha {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--sp-3);
}

#contact-form .recaptcha-placeholder {
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  padding: var(--sp-3) var(--sp-2);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 302px;
  height: 76px;
}

#contact-form .recaptcha-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid #444746;
  border-radius: 2px;
  background-color: var(--clr-white);
}

#contact-form .recaptcha-logo {
  margin-left: auto;
  width: 32px;
  height: 32px;
  background-color: #ccc;
}

#contact-form .contact-form__consent {
  text-align: center;
  margin-bottom: var(--sp-3);
}

#contact-form .contact-form__consent p {
  font-size: var(--px-18);
  line-height: 1.5;
  letter-spacing: 1px;
  margin: 0;
}

#contact-form .contact-form__consent .link {
  color: #1e87f0;
  text-decoration: underline;
}

#contact-form .contact-form__submit-wrapper {
  text-align: center;
}

#contact-form .btn-submit {
  background-color: #00b873;
  color: var(--clr-white);
  border: none;
  border-radius: calc((33 / 390) * 100vw);
  padding: calc((12 / 390) * 100vw) var(--sp-1);
  width: calc((250 / 390) * 100vw);
  font-weight: var(--bold);
  font-size: var(--px-18);
  line-height: 1.5;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: var(--sp-1);
  transition: opacity 0.3s;
}

#contact-form .btn-submit:hover {
  opacity: 0.8;
}

#contact-form .submit-note {
  font-size: calc((12 / 390) * 100vw);
  color: #00b873;
  line-height: 1;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
}

/* Common */
input[type="email"],
input[type="tel"],
input[type="text"],
textarea,
select {
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--small-fz);
  font-weight: var(--regular);
  padding: var(--sp-1) !important;

  &::placeholder {
    color: #767676;
  }
}

select {
  /* appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: no-repeat center right 16px / 30px 20px
      url("../images/select_deco1.png"),
    var(--clr-white) !important; */
  /* padding-right: var(--sp-4); */
  /* position: relative; */

  /* &::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    margin-block: auto;
    width: 30px;
    height: 20px;
    background: no-repeat center / contain url("../images/select_deco1.png");
  } */
}

/* --------------------------------- finish -------------------------------- */
.contact-complete {
  min-height: 40vh;
}

.contact-complete_wrap {
  .title {
    font-size: var(--h4-fz);
    font-weight: var(--bold);
    text-align: center;
    margin-bottom: var(--sp-5);
  }
  .contact-complete_txt .txt {
    text-align: left;
    font-size: var(--body-fz);
    line-height: 1.8;
  }
}

/* エラーメッセージ */
.error-text {
  background: #ffebee;
  color: #d32f2f;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px !important;
  border-left: 4px solid #d32f2f;
}
