/*
 * エリア別／車種別SEOページ専用のスタイル。
 * 既存の /kaitori/assets/css/style.css を上書きしないよう、すべて .seo-page 配下に限定する。
 * 配色・フォントは既存サイト（#333 / #C30300 / #DC0000 / #F3F8FB / #F2F2F2 / Noto Sans JP）に合わせている。
 * ブレイクポイントは既存サイトと同じ 768px。
 */
.seo-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 60px;
  color: #333;
  line-height: 1.8;
  font-size: 0.9375rem;
}

.seo-page__h1 {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.45;
  margin: 8px 0 12px;
}

.seo-page__lead { margin-bottom: 8px; }

.seo-page__updated {
  font-size: 0.75rem;
  color: #707070;
}

.seo-sec { margin-top: 40px; scroll-margin-top: 16px; }

.seo-sec__h2 {
  font-size: 1.25rem;
  font-weight: bold;
  border-left: 5px solid #C30300;
  padding-left: 10px;
  margin-bottom: 14px;
}

.seo-sec__h3 {
  font-size: 1.0625rem;
  font-weight: bold;
  margin: 24px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #E0E0E0;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.seo-stack { display: grid; gap: 12px; }

.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  background: #fff;
  font-size: 0.875rem;
}

.seo-table th,
.seo-table td {
  border: 1px solid #E0E0E0;
  padding: 8px 10px;
  text-align: left;
}

.seo-table th { background: #F2F2F2; font-weight: bold; white-space: nowrap; }
.seo-table td.is-num { text-align: right; white-space: nowrap; }
.seo-table a { color: #333; text-decoration: underline; }

.seo-note { font-size: 0.75rem; color: #707070; margin-top: 8px; }
.seo-note a { color: #707070; }

.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0; }

.seo-chips li {
  background: #F3F8FB;
  border: 1px solid #D5E5EF;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8125rem;
}

.seo-links { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 8px 0; }
.seo-links a { color: #333; text-decoration: underline; }

.seo-bars { list-style: none; padding: 0; margin: 10px 0; }
.seo-bars li { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 0.8125rem; }
.seo-bars__label { flex: 0 0 7.5em; }
.seo-bars__bar { flex: 1; height: 10px; background: #F2F2F2; border-radius: 999px; overflow: hidden; }
.seo-bars__bar i { display: block; height: 100%; background: #C30300; }
.seo-bars__value { flex: 0 0 3em; text-align: right; }

.seo-score { display: flex; align-items: center; gap: 10px; font-weight: bold; }

.seo-about {
  margin-top: 48px;
  padding: 16px;
  background: #F2F2F2;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #555;
}

.seo-about h2 { font-size: 0.875rem; font-weight: bold; margin-bottom: 6px; }

/* 相場カード（車種ページ） */
.seo-souba {
  border: 2px solid #C30300;
  border-radius: 6px;
  padding: 16px;
  background: #fff;
  text-align: center;
  margin: 16px 0;
}

.seo-souba__label { font-weight: bold; }
.seo-souba__range { font-size: 1.75rem; font-weight: bold; color: #C30300; line-height: 1.3; }
.seo-souba__note { font-size: 0.75rem; color: #707070; }
.seo-souba__link { display: inline-block; margin-top: 8px; color: #C30300; font-weight: bold; text-decoration: underline; }

/* 「もっと見る」で開く分。HTMLには出力したうえで表示だけ抑える */
.seo-sets > .is-collapsed { display: none; }

.seo-more {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #707070;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.seo-modellist { columns: 3; list-style: none; padding: 0; margin: 8px 0 20px; }
.seo-modellist li { break-inside: avoid; margin-bottom: 6px; }
.seo-modellist a { color: #333; text-decoration: underline; }

@media (max-width: 768px) {
  .seo-page { padding: 0 10px 48px; font-size: 0.875rem; }
  .seo-page__h1 { font-size: 1.25rem; }
  .seo-sec__h2 { font-size: 1.125rem; }
  .seo-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-modellist { columns: 1; }
  .seo-table { display: block; overflow-x: auto; }
}
