@charset "UTF-8";

/* お問い合わせ（無料相談・無料査定）— Figma: PC 1165:18810
   フォーム送信は marks-form-gateway（Cloudflare Worker）へ POST する
   ※SPは Figma 実寸（1165:18946）での作り直し未着手
***************************************************************/
.w-contact {
  background: var(--w-green02);
  padding: 100px 20px;
}
.w-contact__inner {
  width: min(800px, 100%);
  margin: 0 auto;
}
.w-contact .w-cvBtn {
  margin: 0 0 100px;
}
/* Figma: お問い合わせページの電話ボタンは赤（#fc2a62）・472x125 の1つだけ */
.w-cvBtn--tel .w-cvBtn__tel {
  background: var(--w-red);
}

/* 進行ステップ（必須項目の入力 → 送信完了） */
.w-contact__step {
  display: flex;
  justify-content: center;
  margin-bottom: 63px;
}
.w-contact__step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 302px;
  max-width: 50%;
  height: 58px;
  background: #d5d5d5;
  /* 未通過のステップは濃い文字色、通過済み（緑）は白 */
  color: var(--w-black);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  /* 1つ目は左が垂直、2つ目以降は左にV字の切り欠きが入る */
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
}
.w-contact__step span + span {
  margin-left: -24px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 24px 50%);
}
.w-contact__step span.is-active {
  background: var(--w-green);
  color: #fff;
}

/* フォーム本体（ラベル168 / 必須バッジ75 / 入力542） */
.w-form__row {
  display: grid;
  grid-template-columns: 168px 90px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 30px;
}
.w-form__row.is-top {
  align-items: start;
}
.w-form__row.is-top .w-form__label {
  padding-top: 5px;
}
.w-form__label {
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: 0.9px;
  color: #000;
}
.w-form__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 40px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  line-height: 27.2px;
  letter-spacing: 1.6px;
  color: #fff;
}
.w-form__badge.is-required {
  background: var(--w-red);
}
.w-form__badge.is-optional {
  background: var(--w-green);
}

.w-form input[type="text"],
.w-form input[type="tel"],
.w-form input[type="email"],
.w-form select {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  background: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  color: var(--w-black);
}
.w-form textarea {
  width: 100%;
  height: 230px;
  padding: 20px;
  background: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--w-black);
}
.w-form ::placeholder {
  color: #9b9b9b;
}
.w-form [aria-invalid="true"] {
  outline: 2px solid var(--w-red);
}

/* ラジオ（20px・枠#767676・選択時は緑） */
.w-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-left: 5px;
}
.w-form__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: 1.6px;
  color: #000;
  cursor: pointer;
}
.w-form__radio input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  background: #fff;
  border: 1px solid #767676;
  border-radius: 50px;
  cursor: pointer;
}
.w-form__radio input:checked {
  border-color: var(--w-green);
  background: radial-gradient(var(--w-green) 0 45%, #fff 50% 100%);
}

/* 住所（都道府県セレクト125px + 市町村・番地） */
.w-form__address {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  align-items: center;
  row-gap: 22px;
}
.w-form__sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 27.2px;
  letter-spacing: 1px;
  color: #000;
}
.w-form__pref select {
  width: 125px;
  appearance: none;
  padding-right: 40px;
  background: #fff url("../img/common/chevron_down_green.svg") no-repeat right 15px center / 17px 12px;
  cursor: pointer;
}

/* 同意チェック */
.w-form__agree {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}
.w-form__check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.9px;
  color: #000;
  cursor: pointer;
}
.w-form__check input {
  appearance: none;
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  background: #fff;
  border: 1px solid #767676;
  border-radius: 4px;
  cursor: pointer;
}
.w-form__check input:checked {
  background: var(--w-green) url("../img/common/arrow_white.svg") no-repeat center / 14px auto;
  border-color: var(--w-green);
}
.w-form__check a {
  color: var(--w-green);
  text-decoration: underline;
}

.w-form__response {
  margin-top: 20px;
  padding: 12px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--w-red);
}
.w-form__error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--w-red);
}
.w-form .cf-turnstile {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* 送信ボタン 488x116（Figmaはグレー。右に白丸＋緑▶） */
.w-form__submit {
  margin-top: 40px;
  text-align: center;
}
.w-form__btn {
  position: relative;
  width: 488px;
  max-width: 100%;
  height: 116px;
  background: #9b9b9b;
  border: none;
  border-radius: 100px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2.6px;
  cursor: pointer;
}
.w-form__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: #fff url("../img/common/arrow_green.svg") no-repeat center / 14px auto;
  border-radius: 50%;
}
.w-form__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 完了ページ（Figma 1165:18918）— 白カードは無し・中央揃え・電話ボタンは本文の下 */
.w-contact__thanks {
  font-size: 16px;
  line-height: 30px;
  color: var(--w-black);
  text-align: center;
}
.w-contact__thanks .w-more {
  margin: 50px auto 0;
}
.w-contact__thanks + .w-cvBtn {
  margin: 60px 0 0;
}

@media all and (max-width: 680px) {
  .w-contact {
    padding: 40px 25px;
  }
  .w-contact .w-cvBtn {
    margin-bottom: 40px;
  }
  .w-contact__step {
    margin-bottom: 30px;
  }
  .w-contact__step span {
    height: 44px;
    font-size: 14px;
  }
  /* SP: ラベル＋必須バッジ → 区切り線 → 入力（Figma 1165:18946） */
  .w-form__row {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 24px;
  }
  .w-form__label {
    font-size: 16px;
    font-weight: 600;
  }
  .w-form__label br {
    display: none;
  }
  .w-form__row.is-top .w-form__label {
    padding-top: 0;
  }
  .w-form__badge {
    width: 60px;
    height: 32px;
    font-size: 14px;
    letter-spacing: 1px;
  }
  .w-form__control {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid #d9d9d9;
  }
  /* ラジオはSPでは縦1列 */
  .w-form__radios {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-left: 20px;
  }
  .w-form__address {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .w-form__sub {
    font-weight: 600;
  }
  .w-form__address .w-form__sub br {
    display: none;
  }
  .w-form__pref select {
    width: 200px;
  }
  .w-form__agree {
    margin-top: 30px;
  }
  .w-form__check {
    font-size: 15px;
    letter-spacing: 0;
  }
  .w-form__btn {
    height: 90px;
    font-size: 20px;
  }
  .w-form__btn::after {
    width: 40px;
    height: 40px;
    right: 20px;
  }
  /* SPは本文左揃え・ボタンは226px（Figma 1165:19102） */
  .w-contact__thanks {
    font-size: 15px;
    line-height: 26px;
    text-align: left;
  }
  .w-contact__thanks .w-more {
    width: 226px;
    margin-top: 40px;
  }
  .w-contact__thanks + .w-cvBtn {
    margin-top: 40px;
  }
}
