@charset "UTF-8";
/* =========================================================
   お問い合わせ（入力・確認・完了）
   Figma：PC 入力 951:1273 ／ 確認 953:1295 ／ 完了 953:1496
          SP 入力 1056:2087 ／ 確認 1056:2416 ／ 完了 1056:2710
   ページの枠・ページ見出し・パンくずは css/common.css（.page / .page-title）
   ========================================================= */

/* 中身は幅800。ページ見出しとの間は80、ブロックの間は48 */
.contact { max-width: 800px; margin: 80px auto 0; display: flex; flex-direction: column; gap: 48px; }
.contact__intro { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 26px; letter-spacing: .01em; }
.contact__note { font-size: 14px; line-height: 22px; color: var(--text-muted); }

/* 灰色の囲み（個人情報の取り扱い・完了画面の注意書き） */
.notice-box { padding: 20px 24px; background: var(--surface-gray); font-size: 13px; line-height: 18px; letter-spacing: .01em; }

/* ---------- お電話でのお問い合わせ（Figma 部品 Contact/PhoneCard） ---------- */
.phone-contact { display: flex; flex-direction: column; gap: 16px; }
.phone-contact__title { font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em; }
.phone-contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phone-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; background: var(--surface-gray); }
.phone-card__purpose { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--text-sub); }
.phone-card__name { font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em; }
.phone-card__tel { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-latin); font-weight: 700; font-size: 22px; line-height: 30px; letter-spacing: .01em; color: var(--brand); }
.phone-card__tel-label { font-size: 15px; line-height: 22px; letter-spacing: .05em; }

/* ---------- ステップ（Figma 部品 Form/Step） ---------- */
/* 右端は「>」、2つ目以降は左端が「>」の形にへこむ。最初は左端まっすぐ、最後は右端まっすぐ */
.steps { display: flex; }
.step {
  --tip: 10px; /* 「>」の出幅 */
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px; height: 36px;
  background: var(--surface-gray); color: var(--text-muted);
  font-weight: 700; font-size: 15px; line-height: 22px; letter-spacing: .1em;
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%, var(--tip) 50%);
}
.step:first-child { clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); }
.step:last-child  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--tip) 50%); }
.step + .step { margin-left: calc(4px - var(--tip)); } /* 前の「>」を次のへこみに差し込み、白いすき間4だけ残す */
.step.is-current { background: var(--brand); color: #fff; }
.step__number { font-family: var(--font-latin); letter-spacing: .05em; }

/* ---------- 入力フォーム ---------- */
.contact-form { display: flex; flex-direction: column; gap: 48px; }
/* まとまり（お車の情報・お問い合わせ内容・お客様情報）の間は48、まとまりの中の項目の間は32 */
.contact-form__fields { display: flex; flex-direction: column; gap: 48px; }
.form-group { display: flex; flex-direction: column; gap: 32px; }
.form-group__head { display: flex; flex-direction: column; gap: 8px; }
/* まとまりの見出し：文字スタイル「見出し／中」（Bold 20／27）。青いバーなし（2026-10-30 ユーザー指示。PC・SP共通） */
.form-group__title { font-weight: 700; font-size: 20px; line-height: 27px; letter-spacing: .01em; }
.form-group__lead { font-size: 14px; line-height: 22px; letter-spacing: .01em; color: var(--text-sub); }
/* 2列に並べる行（車種・型式など）。郵便番号は幅240 */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-row--postal { grid-template-columns: 240px 1fr; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
fieldset.form-field { margin: 0; padding: 0; border: 0; } /* ラジオボタン・写真の添付のまとまり。ブラウザ標準の枠を消す */
legend.form-field__label { padding: 0; margin-bottom: 8px; } /* legend は gap が効かないので余白で離す */
.form-field__note { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--text-sub); }
.form-field__error { font-size: 13px; line-height: 18px; color: var(--accent); }
.form-field__error:empty { display: none; }
/* 種別で出し分ける項目（js/contact.js が hidden を付け外し）。.form-group などの display より優先させる */
.contact-form [hidden] { display: none; }
.form-field__label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em; }
/* 必須（赤枠）／任意（グレー枠）：Figma 部品 Form/Label */
.form-badge { padding: 0 8px; border: 1px solid var(--text-muted); font-weight: 500; font-size: 10px; line-height: 14px; color: var(--text-muted); }
.form-badge--required { border-color: var(--accent); color: var(--accent); }

/* 入力欄（Figma 部品 Form/Input） */
.form-input {
  width: 100%; height: 52px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 0; background: #fff;
  font: inherit; font-size: 14px; line-height: 22px; letter-spacing: .01em; color: var(--text);
  -webkit-appearance: none; appearance: none; transition: border-color .2s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; border-color: var(--brand); }
.form-input--textarea { height: 220px; resize: vertical; }
.form-input--short { height: 140px; } /* 現在の仕様 */
/* セレクト：右端に青い「∨」を重ねる。未選択（「選択してください」）はグレー */
.form-select { position: relative; }
.form-select::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.4px solid var(--brand); border-bottom: 2.4px solid var(--brand); transform: rotate(45deg); pointer-events: none; }
.form-select select { padding-right: 48px; cursor: pointer; }
.form-select select:invalid { color: var(--text-muted); }
.form-select option { color: var(--text); }

/* ラジオボタン（Figma 部品 Form/Radio）：円20、選ぶと青い枠＋青い点。入力欄と同じ高さ52に上下中央で並べる */
.radio-group { display: flex; align-items: center; gap: 32px; height: 52px; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; letter-spacing: .01em; cursor: pointer; }
.radio input { flex: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 0; border: 1px solid var(--border); border-radius: 50%; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; }
.radio input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); visibility: hidden; }
.radio input:checked { border-color: var(--brand); }
.radio input:checked::before { visibility: visible; }
.radio input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 写真の添付（Figma 部品 Form/File）：空＝点線の枠＋青い「＋」、選択済み＝サムネイル＋右上の×（js/contact.js） */
.photo-upload { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-slot { position: relative; height: 160px; }
.photo-slot__picker {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; height: 100%; padding: 0 12px;
  border: 1px dashed var(--border); background: #fff; color: var(--text-sub);
  font-size: 13px; line-height: 18px; letter-spacing: .01em; text-align: center; word-break: break-all; cursor: pointer; transition: border-color .2s;
}
/* 「＋」は太さ2・長さ18の線を2本重ねて描く */
.photo-slot__picker::before { content: ""; width: 24px; height: 24px; background: linear-gradient(var(--brand), var(--brand)) center / 2px 18px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 18px 2px no-repeat; }
.photo-slot__picker:hover { border-color: var(--brand); }
.photo-slot:focus-within .photo-slot__picker { outline: 2px solid var(--brand); outline-offset: 2px; }
.photo-slot.is-filled .photo-slot__picker::before { content: none; } /* 選択済み：サムネイルが出せない形式（HEICなど）はファイル名だけ表示 */
/* サムネイルはクリックを下の枠に通す（押すと写真を選び直せる） */
.photo-slot__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo-slot__remove {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Cpath d='m1 1 8 8M9 1 1 9'/%3E%3C/svg%3E") no-repeat center / 10px 10px;
}
.photo-slot__remove:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 個人情報の取り扱い ＋ 同意 */
.agree { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.agree__text { align-self: stretch; }
.agree__checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 22px; letter-spacing: .01em; cursor: pointer; }
.agree__checkbox input { flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--border); background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; }
.agree__checkbox input:checked { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='m1 5 3.5 3.5L11 1.5'/%3E%3C/svg%3E") no-repeat center / 12px 10px; }
/* キーボードで選んでいるときは枠を表示（見た目を作り直しているため、ブラウザ標準の枠の代わり） */
.agree__checkbox input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.agree__checkbox a { color: var(--brand); }
.agree__checkbox a:hover { text-decoration: underline; }

/* ---------- ボタン（Figma 部品 Button/Form）：進む＝青枠、戻る＝青枠＋左矢印、送信＝青塗り ---------- */
.form-buttons { display: flex; justify-content: center; gap: 24px; }
.button-form {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  width: 360px; max-width: 100%; height: 60px;
  border: 1px solid var(--brand); background: #fff; color: var(--brand);
  font: inherit; font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em;
  cursor: pointer; transition: background .25s, color .25s, opacity .25s;
}
.button-form--next::after, .button-form--send::after { content: "→"; }
.button-form--back::before { content: "←"; }
.button-form--next:hover, .button-form--back:hover { background: var(--brand); color: #fff; }
.button-form--send { background: var(--brand); color: #fff; }
.button-form--send:hover { opacity: .85; }

/* ---------- 確認画面（Figma 部品 Form/ConfirmRow） ---------- */
.confirm-list { border-top: 1px solid var(--border); }
.confirm-list__row { display: flex; padding: 20px 0; border-bottom: 1px solid var(--border); }
.confirm-list__row dt { flex: none; width: 224px; font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: .01em; }
.confirm-list__row dd { flex: 1; font-size: 14px; line-height: 22px; letter-spacing: .01em; }

/* ---------- 完了画面 ---------- */
.thanks { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.thanks__title { font-weight: 900; font-size: 25px; line-height: 33px; }
.thanks__text { font-size: 16px; line-height: 26px; letter-spacing: .01em; }

/* =========================================================
   スマホ（767px以下）
   ========================================================= */
@media (max-width: 767px) {
  .contact { margin-top: 40px; gap: 40px; }
  .contact__intro { font-size: 14px; line-height: 22px; }

  /* 電話窓口カードは縦積み */
  .phone-contact__cards { grid-template-columns: 1fr; gap: 16px; }
  .phone-card { padding: 20px; }

  .step { --tip: 8px; gap: 8px; font-size: 12px; }

  .contact-form { gap: 40px; }
  /* まとまりの間40、項目の間24。2列の行は縦積み */
  .contact-form__fields { gap: 40px; }
  .form-group { gap: 24px; }
  .form-row, .form-row--postal { grid-template-columns: 1fr; }
  .photo-upload { gap: 12px; }
  .photo-slot { height: 104px; }

  /* ボタンは幅いっぱい・高さ54・縦積み（確認画面は「送信する」が上） */
  .form-buttons { flex-direction: column; gap: 12px; }
  .form-buttons--confirm { flex-direction: column-reverse; }
  .button-form { width: 100%; height: 54px; }

  /* 確認画面：項目名の下に内容 */
  .confirm-list__row { flex-direction: column; gap: 4px; padding: 16px 0; }
  .confirm-list__row dt { width: auto; }

  /* 完了画面：見出しは SPの日本語大見出し（Black 24／34） */
  .thanks__title { font-size: 24px; line-height: 34px; }
  .thanks__text { font-size: 14px; line-height: 22px; text-align: left; }
  .thanks__text br { display: none; }
}
