/* ==========================================================================
   お問い合わせ — design/Contact.dc.html
   入力 → 確認 → 完了 の3ステップ + 送信失敗画面。
   ========================================================================== */

/* --- ステップインジケータ ------------------------------------------------- */
.ct-steps {
  background: #fff;
  padding: clamp(40px, 10vw, 64px) clamp(20px, 8vw, 100px) 0;
  display: flex;
  justify-content: center;
}
.ct-steps__inner { display: flex; align-items: center; gap: 0; max-width: 560px; width: 100%; }
.ct-step { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ct-step__n {
  width: 36px; height: 36px;
  border-radius: 50%;              /* 円形バッジ。角丸禁止の例外 */
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-en);
  font-weight: 800;
  font-size: 15px;
  background: var(--bg-page);
  color: var(--c-muted);
}
.ct-step__label { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.ct-step__line { flex: 1; height: 1px; background: rgba(16, 28, 76, .15); margin: 0 8px 22px; }

/* 現在のステップ（赤）／通過済み（紺） */
.ct-step.is-active .ct-step__n { background: var(--c-red); color: #fff; }
.ct-step.is-active .ct-step__label { color: var(--c-navy); }
.ct-step.is-done   .ct-step__n { background: var(--c-navy); color: #fff; }
.ct-step.is-done   .ct-step__label { color: var(--c-navy); }
.ct-step__line.is-done { background: var(--c-navy); }

/* --- 画面共通 ------------------------------------------------------------ */
.ct-screen {
  background: #fff;
  padding: clamp(48px, 10vw, 80px) clamp(20px, 8vw, 100px) clamp(64px, 14vw, 180px);
  display: flex;
  justify-content: center;
}
.ct-screen--result { padding: clamp(64px, 14vw, 140px) clamp(20px, 8vw, 100px) clamp(80px, 16vw, 200px); }
.ct-screen__inner { max-width: 640px; width: 100%; }
.ct-screen--result .ct-screen__inner { text-align: center; }

/* --- 入力フォーム -------------------------------------------------------- */
.ct-field { margin-bottom: 28px; }
.ct-field--last { margin-bottom: 44px; }

.ct-label { display: block; font-size: 15px; font-weight: 700; color: var(--c-navy); margin-bottom: 10px; }
.ct-required { color: var(--c-red); margin-left: 6px; font-size: 12px; }

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  border: 1px solid rgba(16, 28, 76, .2);
  background: #fff;
  font-family: var(--f-body);
  color: var(--c-navy);
}
.ct-textarea { resize: vertical; }
/* エラー時は枠線を赤に */
.ct-input.is-error,
.ct-select.is-error,
.ct-textarea.is-error { border-color: var(--c-red); }

.ct-error { font-size: 13px; line-height: 1.7; color: var(--c-red); margin-top: 8px; }

/* フォーム上部のエラーサマリー */
.ct-summary {
  border-left: 3px solid var(--c-red);
  background: var(--bg-section);
  padding: 18px 22px;
  margin: 0 0 36px;
}
.ct-summary__title { font-size: 14px; font-weight: 700; color: var(--c-red); margin-bottom: 6px; }
.ct-summary__body { font-size: 13px; line-height: 1.8; color: var(--c-text); }

/* 同意チェックボックス */
.ct-agree { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ct-agree input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.ct-agree span { font-size: 14px; line-height: 1.8; color: var(--c-text); }
.ct-agree a { text-decoration: underline; }

/* --- ボタン -------------------------------------------------------------- */
.ct-submit {
  width: 100%;
  background-image: linear-gradient(to right, var(--c-navy) 50%, var(--c-red) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position .35s ease;
  color: #fff;
  font-family: var(--f-head);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  padding: 22px;
  border: none;
  cursor: pointer;
  letter-spacing: var(--ls-en);
}
.ct-submit:hover { background-position: 0 0; }

.ct-btn-row { display: flex; gap: 20px; }
.ct-btn-back {
  flex: 1;
  background: #fff;
  color: var(--c-navy);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  padding: 20px;
  border: 1px solid rgba(16, 28, 76, .3);
  cursor: pointer;
  transition: transform .25s ease;
  text-align: center;
}
.ct-btn-back:hover { transform: scale(1.06); color: var(--c-navy); }
.ct-btn-go { flex: 1.4; padding: 20px; }

/* --- 確認画面（入力値は読み取り専用） -------------------------------------- */
.ct-field--confirm { margin-bottom: 24px; }
.ct-readonly {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  border: 1px solid var(--line-navy);
  background: var(--bg-section);
  color: var(--c-text);
  font-family: var(--f-body);
}
.ct-readonly--area { resize: none; }
.ct-confirm__lead { font-size: 15px; line-height: 1.9; color: var(--c-text); margin: 0 0 40px; }

/* --- 完了 / 失敗 --------------------------------------------------------- */
.ct-mark {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 40px;
}
.ct-mark--done { border-radius: 50%; background: var(--c-navy); }
.ct-mark--fail { background: var(--c-red); transform: var(--skew-frame); }

.ct-result__title {
  font-family: var(--f-head);
  font-size: 36px;
  font-weight: 900;
  color: var(--c-navy);
  line-height: var(--lh-head);
  margin: 0 0 24px;
}
.ct-result__text { font-size: 16px; line-height: 2; color: var(--c-text); margin: 0; }
.ct-result__text--fail { margin: 0 0 12px; }
.ct-result__sub { font-size: 15px; line-height: 1.9; color: var(--c-muted); margin: 0; }
.ct-result__sub a { color: var(--c-navy); font-weight: 700; text-decoration: underline; }

.ct-home {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  background-image: linear-gradient(to right, var(--c-red) 50%, var(--c-navy) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position .35s ease;
  color: var(--c-offwhite);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  padding: 20px 44px;
}
.ct-home:hover { background-position: 0 0; color: var(--c-offwhite); }

.ct-fail-row { display: flex; gap: 20px; justify-content: center; margin-top: 48px; }

/* ==========================================================================
   SP（768px 以下）
   ========================================================================== */
@media (max-width: 768px) {
  .ct-result__title { font-size: 26px; }
  /* 主ボタンが上に来るよう縦積みを逆順にする */
  .ct-btn-row,
  .ct-fail-row { flex-direction: column-reverse; gap: 14px; }
}
