@charset "UTF-8";
/* ============================================================
   form-steps.css — 2 段階フォーム（お問い合わせ）専用の追加スタイル

   renewal.css は SCSS からのコンパイル成果物で、原本の scss/ が
   このテーマに入っていない。再コンパイルで消えないよう、
   ここに閉じ込めて renewal.css の後ろに読み込む。

   色・角丸・入力高さは renewal.css の既存トークンに揃えている。
   （枠 #e0e6ea / 主色 #1c88bf / CTA #e77e5c / 淡色面 #f2f5fa）
   ============================================================ */
/* ------------------------------------------------------------
   ステップインジケーター
   ------------------------------------------------------------ */
.c-steps {
  margin-bottom: 28px;
}

.c-steps__list {
  display: flex;
}

.c-steps__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.c-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d7e6ed;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: #697685;
}

.c-steps__label {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  color: #8794a1;
}

/* 現在のステップと、通過済みのステップを塗る。 */
.c-steps__item.is-done .c-steps__num,
.c-steps__item.is-current .c-steps__num {
  background: #1c88bf;
  color: #ffffff;
}

.c-steps__item.is-current .c-steps__label {
  color: #1c88bf;
}

.c-steps__bar {
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: #d7e6ed;
  overflow: hidden;
}

.c-steps__bar-fill {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1c88bf 0%, #5c86ca 100%);
  transition: width 0.35s ease;
}

.c-steps[data-current="2"] .c-steps__bar-fill {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .c-steps__bar-fill {
    transition: none;
  }
}
/* ------------------------------------------------------------
   ステップの出し分け
   ------------------------------------------------------------ */
.c-form__step {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .c-form__step {
    gap: 32px;
  }
}
.c-form__step[hidden] {
  display: none;
}

/* ------------------------------------------------------------
   アンケートの見出し
   ------------------------------------------------------------ */
.c-form__section-title {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: #192c40;
}

.c-form__section-lead {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.7;
  color: #667585;
}

/* ------------------------------------------------------------
   選択肢（ラジオ／チェックボックス）
   ------------------------------------------------------------ */
.c-field--choice {
  min-width: 0; /* fieldset は既定で min-width:min-content になり、grid がはみ出す。 */
  margin: 0;
  padding: 0;
  border: 0;
}

.c-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .c-choice-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.c-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #e0e6ea;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.c-choice:hover {
  border-color: #b9d6e8;
}

.c-choice:focus-within {
  border-color: #1c88bf;
  box-shadow: 0 0 0 3px rgba(28, 136, 191, 0.15);
}

.c-choice:has(input:checked) {
  border-color: #1c88bf;
  background: #f4faff;
}

.c-choice input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1c88bf;
  cursor: pointer;
}

/* 未選択で送信しようとしたときは、グループごと赤くする。 */
.c-choice-grid[aria-invalid=true] .c-choice {
  border-color: #d80c18;
  background: #fffafa;
}

.c-choice-grid__note {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8794a1;
}

.c-choice-grid__note a {
  color: #1c88bf;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------
   同意チェック
   ------------------------------------------------------------ */
.c-consent-box {
  padding: 16px;
  border: 1px solid #e0e6ea;
  border-radius: 8px;
  background: #f2f5fa;
}

.c-consent-box .c-consent {
  justify-content: flex-start;
  padding: 0;
}

/* ------------------------------------------------------------
   ステップ送りのボタン
   ------------------------------------------------------------ */
.c-form__nav {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 468px;
  margin-inline: auto;
}

.c-form__nav .c-form__submit {
  max-width: none;
  margin-inline: 0;
}

.c-form__nav--pair > * {
  flex: 1 1 0;
  min-width: 0;
}

/* 「次へ進む」は c-form__submit をそのまま使う（同じ導線なので見た目を分ける理由がない）。 */
.c-form__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
  border: 1px solid #cfd8e0;
  border-radius: 10px;
  background: #ffffff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #39414f;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.c-form__back:hover {
  border-color: #8794a1;
  background: #f2f5fa;
}

@media (min-width: 1024px) {
  .c-form__back {
    min-height: 72px;
  }
}
.c-form__nav--pair .c-form__submit {
  font-size: 17px;
}

.c-form__arrow {
  font-size: 0.9em;
}

.c-form__privacy-note {
  margin-top: 12px;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8794a1;
  text-align: center;
}

/* 狭い画面では横並びだと「この内容で送信する」が 2 行に折れて矢印が端に寄る。
   縦積みにして、押してほしい送信を上に置く。 */
@media (max-width: 479px) {
  .c-form__nav--pair {
    flex-direction: column-reverse;
  }
}
