/* =============================================================
   お問い合わせ 3 ページ（contact.html・contact-step2.html・contact-step3.html）— v3（P920・2026-09-28）
   共通の部品は components.css。ここはお問い合わせだけの形（ct- で始める）。
   ※ 赤はゴールだけ: 「必須」の札も、選んだ項目の枠も、赤にしない（紺と青）。
     送信完了（STEP 3 にたどり着いたとき）だけ、進み具合の 3 つめの点を赤に
   ============================================================= */

/* ---------- ヒーロー（方眼の帯＝lc-grid-paper。左に文字、右に「5 つの安心」の紙） ---------- */
.ct-hero {
  border-bottom: 1px solid var(--lc-steel-200);
}

.ct-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding-block: clamp(40px, 5vw, 72px);
}

.ct-hero__title {
  font-size: clamp(1.875rem, 3.6vw, 2.875rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.ct-hero__lead {
  margin-top: 22px;
  font-size: var(--lc-fs-lead);
  font-weight: 500;
  line-height: 2;
  color: var(--lc-steel-700);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* 白い紙: ご相談前に — 5 つの安心 */
.ct-sheet {
  padding: clamp(20px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid var(--lc-steel-200);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(15, 44, 76, 0.05), 0 18px 40px rgba(15, 44, 76, 0.1);
}

.ct-sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--lc-navy-800);
  font-family: var(--lc-font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lc-navy-800);
}

.ct-sheet__head span:last-child {
  font-family: var(--lc-font-ja);
  letter-spacing: 0.08em;
}

.ct-promises {
  display: grid;
}

.ct-promise {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lc-steel-100);
}

.ct-promise:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.ct-promise__no {
  font-family: var(--lc-font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.9;
  color: var(--lc-blue-600);
}

.ct-promise__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--lc-ink);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-promise__text {
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--lc-steel-700);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .ct-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 28px 44px;
  }
}

/* ---------- お問い合わせの流れ（3 ステップ）の注記 ---------- */
.ct-flow-note {
  margin-top: 24px;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--lc-steel-700);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

/* ---------- 進み具合（1 ご入力 → 2 コード入力 → 3 送信完了） ---------- */
.ct-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.ct-progress__step {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lc-steel-500);
  white-space: nowrap;
}

.ct-progress__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--lc-steel-300);
  font-family: var(--lc-font-en);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lc-steel-500);
}

.ct-progress__line {
  flex: 1;
  height: 1px;
  background: var(--lc-steel-300);
}

/* いまの段階 */
.ct-progress__step[aria-current="step"] {
  font-weight: 700;
  color: var(--lc-ink);
}

.ct-progress__step[aria-current="step"] .ct-progress__dot {
  background: var(--lc-navy-800);
  border-color: var(--lc-navy-800);
  color: #fff;
}

/* 通り過ぎた段階（チェックの印） */
.ct-progress__step--done {
  color: var(--lc-steel-700);
}

.ct-progress__step--done .ct-progress__dot {
  background: var(--lc-blue-600);
  border-color: var(--lc-blue-600);
  color: #fff;
}

.ct-progress__step--done .ct-progress__dot svg {
  width: 14px;
  height: 14px;
}

.ct-progress__line--done {
  background: var(--lc-blue-600);
}

/* 送信完了＝ゴール（赤。STEP 3 の画面だけ） */
.ct-progress__step--goal[aria-current="step"] .ct-progress__dot {
  background: var(--lc-red);
  border-color: var(--lc-red);
  box-shadow: 0 0 0 4px var(--lc-red-soft);
}

@media (max-width: 479px) {
  .ct-progress {
    gap: 8px;
  }

  .ct-progress__step {
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
  }

  .ct-progress__line {
    margin-bottom: 20px;
  }
}

/* ---------- 入力フォーム（白い紙の上に） ---------- */
.ct-form-wrap {
  max-width: 800px;
  margin-inline: auto;
}

.ct-form {
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--lc-steel-200);
  border-radius: var(--lc-radius-m);
  box-shadow: var(--lc-shadow-card);
}

.ct-form > * + * {
  margin-top: 32px;
}

.ct-group-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lc-steel-200);
  font-family: var(--lc-font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lc-steel-500);
}

.ct-fields {
  display: grid;
  gap: 24px;
}

.ct-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ct-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--lc-ink);
}

/* 必須・任意の札（赤は使わない） */
.ct-req,
.ct-opt {
  flex: none;
  padding: 1px 8px;
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.ct-req {
  background: var(--lc-navy-800);
  color: #fff;
}

.ct-opt {
  background: var(--lc-steel-100);
  color: var(--lc-steel-700);
}

.ct-help {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--lc-steel-500);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--lc-steel-300);
  border-radius: var(--lc-radius-s);
  font: inherit;
  font-size: 1rem;
  color: var(--lc-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ct-textarea {
  min-height: 180px;
  line-height: 1.8;
  resize: vertical;
}

.ct-select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687586' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
  outline: none;
  border-color: var(--lc-blue-600);
  box-shadow: 0 0 0 3px var(--lc-blue-100);
}

/* ご相談の種別（選ぶ札） */
.ct-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ct-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--lc-steel-300);
  border-radius: var(--lc-radius-s);
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-choice:hover {
  border-color: var(--lc-blue-600);
}

.ct-choice:has(input:checked) {
  background: var(--lc-blue-50);
  border-color: var(--lc-blue-600);
  box-shadow: inset 0 0 0 1px var(--lc-blue-600);
}

.ct-choice input,
.ct-agree input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--lc-navy-800);
}

.ct-choice small {
  display: block;
  font-size: 0.75rem;
  color: var(--lc-steel-500);
}

.ct-agree {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--lc-steel-50);
  border: 1px solid var(--lc-steel-200);
  border-radius: var(--lc-radius-s);
  font-size: 0.9375rem;
  cursor: pointer;
}

.ct-agree a {
  font-weight: 700;
}

/* ロボットではないことの確かめ（Cloudflare Turnstile。同意のすぐ下。2026-10-16 追加）
   ふだんは何も見えないので、箱の余白も 0（いまの画面と画素で同じ）。
   確かめに操作が要るときだけ枠が出る。出たら .is-shown を付けて、同意の枠との間を 16px 空ける。
   line-height: 0 は、枠（iframe）の下に行の高さのすき間を作らないため。枠が出たとき、箱の高さが枠と同じ
   65px（compact は 140px）になる（2026-10-17。00002 の報告 2026-10-16 §3。ふだんの画面は変わらない） */
.ct-form > .ct-turnstile {
  margin-top: 0;
  line-height: 0;
}

.ct-form > .ct-turnstile.is-shown {
  margin-top: 16px;
}

/* ボット対策の欄（画面には出さない） */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 入力エラー（2026-09-28 段階 5 で追加） ----------
   赤は使わない（赤はゴールだけ）。紺の線と「！」の印で、はっきり伝える。
   ・まとめ（.ct-alert）: フォームの先頭に。どの項目かをリンクで並べる
   ・項目ごと（.ct-error）: 入力欄のすぐ下に。入力欄には aria-invalid="true" と aria-describedby
   ・「次の画面のご案内」（.ct-notice: 淡い青の地＋左の線）と見分けがつくよう、白い地を紺の枠で囲む
   00002 で ASP.NET の検証（asp-validation-for など）を使うときは、
   .field-validation-error に .ct-error、.input-validation-error に [aria-invalid="true"] と同じ見た目を当てる */
.ct-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px solid var(--lc-navy-800);
  border-radius: var(--lc-radius-s);
  color: var(--lc-navy-800);
}

.ct-alert:focus {
  outline: 3px solid var(--lc-blue-100);
  outline-offset: 2px;
}

/* フォームの先頭に置いたとき（すぐ下の .ct-field は余白を 0 にしているので、ここで空ける） */
.ct-form > .ct-alert {
  margin-bottom: 32px;
}

.ct-alert::before,
.ct-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lc-navy-800);
  color: #fff;
  font-family: var(--lc-font-en);
  font-weight: 700;
  line-height: 1;
}

.ct-alert::before {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  font-size: 0.875rem;
}

.ct-alert__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-alert__list {
  margin-top: 6px;
  padding-left: 1.2em;
  list-style: disc;
  font-size: 0.875rem;
  line-height: 1.85;
}

.ct-alert__list a {
  color: var(--lc-navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--lc-navy-800);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-error::before {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  font-size: 0.75rem;
}

.ct-input[aria-invalid="true"],
.ct-select[aria-invalid="true"],
.ct-textarea[aria-invalid="true"],
.ct-code__box[aria-invalid="true"] {
  border-color: var(--lc-navy-800);
  box-shadow: inset 0 0 0 1px var(--lc-navy-800);
}

/* 同意のチェックの下（フォーム直下の要素の間は 32px あるので、ここは詰める） */
.ct-agree + .ct-error {
  margin-top: 10px;
}

.ct-code__error {
  margin-top: 14px;
}

/* 次の画面のご案内 */
.ct-notice {
  padding: 18px 22px;
  background: var(--lc-blue-50);
  border-left: 3px solid var(--lc-blue-600);
  border-radius: 0 var(--lc-radius-s) var(--lc-radius-s) 0;
}

/* フォームへ戻ったときのご案内（フォームの先頭。2026-09-29 追加）
   エラーに見せないため、入力エラーの .ct-alert ではなく .ct-notice で出す。
   すぐ下の .ct-field は余白を 0 にしているので、.ct-alert と同じく、ここで空ける */
.ct-form > .ct-notice {
  margin-bottom: 32px;
}

.ct-notice__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--lc-navy-800);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-notice__text {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--lc-steel-700);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-submit {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  padding-block: 16px;
  font-size: 1rem;
}

@media (max-width: 639px) {
  .ct-choices {
    grid-template-columns: 1fr;
  }
}

/* ---------- 所在地と、受付について ---------- */
.ct-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ct-info__item {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--lc-steel-200);
  border-radius: var(--lc-radius-m);
}

.ct-info__label {
  font-family: var(--lc-font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lc-steel-500);
}

.ct-info__title {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
}

.ct-info__text {
  margin-top: 6px;
  line-height: 1.9;
  color: var(--lc-steel-700);
}

@media (max-width: 767px) {
  .ct-info {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   STEP 2・STEP 3 の画面（方眼の帯に、進み具合と見出し）
   ============================================================= */
.ct-step-hero {
  border-bottom: 1px solid var(--lc-steel-200);
}

.ct-step-hero__inner {
  max-width: 800px;
  margin-inline: auto;
  padding-block: clamp(32px, 4vw, 56px);
}

.ct-step-hero--center .ct-step-hero__inner {
  text-align: center;
}

.ct-step-hero__title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.ct-step-hero__lead {
  margin-top: 18px;
  font-size: var(--lc-fs-lead);
  font-weight: 500;
  line-height: 2;
  color: var(--lc-steel-700);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-step-hero__lead strong {
  color: var(--lc-ink);
}

.ct-mark {
  display: block;
  width: 52px;
  height: 52px;
  margin: 8px auto 20px;
  color: var(--lc-red); /* CI のロゴの色（ロゴの赤は、ゴールの赤の数に入れない） */
}

.ct-narrow {
  max-width: 800px;
  margin-inline: auto;
}

/* ---------- STEP 2: 4 桁のお問い合わせコード ---------- */
.ct-code {
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1.5px solid var(--lc-navy-800);
  border-radius: var(--lc-radius-m);
  box-shadow: var(--lc-shadow-card);
}

.ct-code__boxes {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.ct-code__box {
  width: 64px;
  height: 72px;
  padding: 0;
  background: #fff;
  border: 1.5px solid var(--lc-steel-300);
  border-radius: var(--lc-radius-s);
  font-family: var(--lc-font-en);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--lc-navy-800);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ct-code__box:focus {
  outline: none;
  border-color: var(--lc-blue-600);
  box-shadow: 0 0 0 3px var(--lc-blue-100);
}

.ct-code__limit {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--lc-steel-700);
}

.ct-code .ct-submit {
  margin-top: 24px;
}

/* メールが届かないとき */
.ct-help-box {
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--lc-steel-50);
  border: 1px solid var(--lc-steel-200);
  border-radius: var(--lc-radius-m);
}

.ct-help-box__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--lc-navy-800);
}

.ct-help-box .lc-checklist {
  margin-top: 12px;
  font-size: 0.875rem;
}

.ct-resend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 18px;
}

/* 再送の結果の 1 行も、スマホで言葉の途中で折れないように（2026-09-29 追加） */
.ct-resend .lc-note {
  font-size: 0.8125rem;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

/* ご入力内容の確認（開閉式） */
.ct-review {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--lc-steel-200);
  border-radius: var(--lc-radius-m);
}

.ct-review summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.ct-review summary::-webkit-details-marker {
  display: none;
}

.ct-review__open {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lc-blue-600);
}

.ct-review__open svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.ct-review[open] .ct-review__open svg {
  transform: rotate(180deg);
}

.ct-review__body {
  padding: 0 22px 22px;
}

.ct-review dl {
  margin: 0;
  border-top: 1px solid var(--lc-steel-200);
}

.ct-review__row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lc-steel-100);
  font-size: 0.9375rem;
}

.ct-review__row dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--lc-steel-500);
}

.ct-review__row dt small {
  font-weight: 500;
}

.ct-review__row dd {
  margin: 0;
  line-height: 1.8;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-review__back {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--lc-steel-700);
}

@media (max-width: 639px) {
  .ct-code__boxes {
    gap: 8px;
  }

  .ct-code__box {
    width: 56px;
    height: 64px;
  }

  .ct-review__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- STEP 3: このあとの流れ・お待ちいただく間に ---------- */
.ct-urgent {
  margin-top: 28px;
}

.ct-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ct-links a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 24px 20px;
  background: #fff;
  border: 1px solid var(--lc-steel-200);
  border-radius: var(--lc-radius-m);
  color: var(--lc-ink);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--lc-ease);
}

.ct-links a:hover {
  border-color: var(--lc-blue-200);
  box-shadow: var(--lc-shadow-card);
  transform: translateY(-2px);
  text-decoration: none;
}

.ct-links__label {
  font-family: var(--lc-font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--lc-steel-500);
}

.ct-links__name {
  margin-top: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.ct-links__text {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--lc-steel-700);
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.ct-links .lc-link-arrow {
  margin-top: auto;
  padding-top: 14px;
}

.ct-back {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 48px);
}

@media (max-width: 767px) {
  .ct-links {
    grid-template-columns: 1fr;
  }
}
