/* =====================================================
   CARLABO 修理版LP（/lp-repair/）追加スタイル
   ・既存 /lp/assets/css/style.css のデザインを最大限尊重
   ・新規セクション（対応エリア／修理統計／footer 3ブロック）と
     新規フィールド（checkbox 複数選・radio 群）のスタイルのみ追記
===================================================== */

:root {
  --lp-area-tier-primary: #1e9986;
  --lp-24hr-bg: linear-gradient(135deg, #1e9986, #0e2e54);
}

/* ------------------------------------------------------
   hidden 属性を優先（.form-group の display:flex に負けないように）
   → Turnstile 未設定時にチェックボックス下に謎の空白が出ていた不具合を修正
------------------------------------------------------ */
[hidden] { display: none !important; }
.form-group[hidden] { display: none !important; }

/* 空の form-error（エラーメッセージ未表示）は高さを持たない */
.form-error:empty { display: none !important; margin: 0 !important; padding: 0 !important; }

/* プライバシーポリシー同意の直下 gap を詰める（Turnstile無設定時の空白除去） */
.form-group--consent + .form-group[hidden] + .form-submit,
.form-group--consent + .form-submit {
  margin-top: 4px;
}

/* 送信ボタン：改行させないフォントサイズ・余白 */
.form-submit {
  white-space: nowrap !important;
  font-size: 15px !important;
  letter-spacing: 0.02em;
  padding: 14px 18px !important;
}
@media (max-width: 380px) {
  .form-submit { font-size: 14px !important; padding: 13px 12px !important; }
}

/* phone-bar 電話番号パネルのフォールバック注記 */
.phone-bar__tel-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}
.phone-bar__tel-note a {
  color: #ffd300;
  font-weight: 700;
  text-decoration: underline;
}

/* ------------------------------------------------------
   フォーム：損傷状況・希望対応のチェックグループ
------------------------------------------------------ */
.form-check-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #e0e8f0;
}
@media (min-width: 640px) {
  .form-check-group { grid-template-columns: 1fr 1fr; }
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.form-check:hover {
  background: #f0fbf8;
  border-color: var(--lp-area-tier-primary);
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--lp-area-tier-primary);
}
.form-check:has(input:checked) {
  background: #e1f5f2;
  border-color: var(--lp-area-tier-primary);
  font-weight: 600;
}

.form-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.form-radio:hover {
  background: #f0fbf8;
  border-color: var(--lp-area-tier-primary);
}
.form-radio input[type="radio"] {
  accent-color: var(--lp-area-tier-primary);
}
.form-radio:has(input:checked) {
  background: #e1f5f2;
  border-color: var(--lp-area-tier-primary);
  font-weight: 600;
}

/* ------------------------------------------------------
   修理実績カードのタグ表示
   ・2タグ横並びだと狭い swiper スライドで折り返しが起きて醜くなるため縦並びに
------------------------------------------------------ */
.car-card__tags {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}
.car-card__year,
.car-card__brand {
  white-space: nowrap !important;
  width: fit-content;
}

/* ------------------------------------------------------
   修理実績：統計カード
------------------------------------------------------ */
.repair-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 680px;
  margin: 20px auto 24px;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .repair-stats { grid-template-columns: repeat(4, 1fr); }
}
.repair-stats__item {
  background: var(--lp-24hr-bg);
  color: #fff;
  padding: 16px 12px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.repair-stats__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.repair-stats__unit {
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
}
.repair-stats__label {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.9;
}

/* 修理 vs 買取の対比メッセージ */
.repair-vs-buyout {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 16px 20px;
  background: #fef9e7;
  border-left: 4px solid #ffd300;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #5c4b00;
}
.repair-vs-buyout strong { color: #0e2e54; }

/* ------------------------------------------------------
   対応エリアセクション
------------------------------------------------------ */
.area-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(14, 46, 84, 0.08);
}
.area-section__head { text-align: center; margin-bottom: 24px; }
.area-section__title {
  font-size: 24px;
  font-weight: 800;
  color: #0e2e54;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.area-section__lead { font-size: 14px; color: #475569; line-height: 1.7; }
.area-tier {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-left: 4px solid #c0cfe0;
}
.area-tier--primary {
  background: linear-gradient(135deg, #e1f5f2 0%, #f7f9fc 100%);
  border-left-color: var(--lp-area-tier-primary);
  box-shadow: 0 3px 8px rgba(30, 153, 134, 0.15);
}
.area-tier__label {
  font-size: 14px;
  font-weight: 700;
  color: #0e2e54;
  margin-bottom: 8px;
}
.area-tier--primary .area-tier__label { color: var(--lp-area-tier-primary); }
.area-tier__list {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  list-style: none; padding: 0; margin: 0;
}
.area-tier__list li {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #c0cfe0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #0e2e54;
}
.area-tier--primary .area-tier__list li {
  background: var(--lp-area-tier-primary);
  color: #fff;
  border-color: var(--lp-area-tier-primary);
}
.area-section__note {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fef9e7;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #5c4b00;
  text-align: center;
}

/* 10市の固有情報アコーディオン */
.area-cities { margin-top: 22px; }
.area-cities__title {
  font-size: 17px;
  font-weight: 800;
  color: #0e2e54;
  margin: 0 0 8px;
  text-align: center;
}
.area-cities__lead {
  font-size: 13px;
  color: #475569;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 14px;
}
.area-city {
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.area-city[open] {
  border-color: var(--lp-area-tier-primary);
  box-shadow: 0 2px 8px rgba(30, 153, 134, 0.1);
}
.area-city__q {
  position: relative;
  padding: 11px 40px 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0e2e54;
  cursor: pointer;
  list-style: none;
}
.area-city__q::-webkit-details-marker { display: none; }
.area-city__q::after {
  content: '＋';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lp-area-tier-primary);
  font-size: 16px;
  font-weight: 700;
}
.area-city[open] .area-city__q::after { content: '−'; }
.area-city__a {
  padding: 4px 14px 14px;
  font-size: 13px;
  line-height: 1.85;
  color: #334155;
  border-top: 1px solid #eef2f6;
}
.area-city__a p { margin: 4px 0; }
.area-city__a strong { color: #0e2e54; }

/* ------------------------------------------------------
   FAQ セクション（LLMO対応・アコーディオン形式）
------------------------------------------------------ */
.faq-section {
  max-width: 820px;
  margin: 40px auto 30px;
  padding: 30px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(14, 46, 84, 0.08);
}
.faq-section__head { text-align: center; margin-bottom: 20px; }
.faq-section__title {
  font-size: 26px;
  font-weight: 800;
  color: #0e2e54;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.faq-section__lead {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.faq-item {
  background: #f7f9fc;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item[open] {
  background: #fff;
  border-color: var(--lp-area-tier-primary);
  box-shadow: 0 3px 12px rgba(30, 153, 134, 0.12);
}
.faq-item__q {
  position: relative;
  padding: 14px 46px 14px 46px;
  font-size: 15px;
  font-weight: 700;
  color: #0e2e54;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::before {
  content: 'Q';
  position: absolute;
  left: 14px; top: 14px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lp-area-tier-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
}
.faq-item__q::after {
  content: '＋';
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-area-tier-primary);
  transition: transform 0.2s;
}
.faq-item[open] .faq-item__q::after {
  content: '−';
}
.faq-item__a {
  position: relative;
  padding: 4px 20px 18px 46px;
  font-size: 14px;
  line-height: 1.85;
  color: #334155;
}
.faq-item__a::before {
  content: 'A';
  position: absolute;
  left: 14px; top: 4px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 2px solid var(--lp-area-tier-primary);
  color: var(--lp-area-tier-primary);
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
}
.faq-item__a a {
  color: var(--lp-area-tier-primary);
  font-weight: 700;
  text-decoration: underline;
}
@media (max-width: 480px) {
  .faq-section {
    margin: 30px 12px;
    padding: 20px 14px;
  }
  .faq-section__title { font-size: 22px; }
  .faq-item__q { padding: 12px 40px 12px 40px; font-size: 14px; }
  .faq-item__a { padding: 4px 16px 14px 40px; font-size: 13.5px; }
}

/* ------------------------------------------------------
   Footer（修理版：会社情報3ブロック）
------------------------------------------------------ */
.site-footer--repair {
  padding: 40px 20px 30px;
  background: #0e2e54;
  color: rgba(255, 255, 255, 0.88);
}
.site-footer--repair .site-footer__brand {
  justify-content: center;
  margin-bottom: 24px;
}
.footer-company {
  max-width: 900px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .footer-company { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-company__block {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.75;
}
.footer-company__label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 6px;
  letter-spacing: 0.05em;
}
.footer-company__name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.footer-company a { color: #7fc7b6; text-decoration: underline; }
.site-footer--repair .site-footer__copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  letter-spacing: 0.03em;
}

/* ------------------------------------------------------
   SP調整
------------------------------------------------------ */
@media (max-width: 480px) {
  .area-section { margin: 30px 12px; padding: 20px 14px; }
  .area-section__title { font-size: 20px; }
  .repair-stats__num { font-size: 22px; }
  .repair-stats__label { font-size: 10.5px; }
}
