/* TOP 共通 — 変数・リセット・モバイルファースト（デフォルト） */
:root {
  --color-primary: #113c91;
  --color-primary-dark: #0e3074;
  --color-text: #1a202c;
  --color-muted: #718096;
  --container: min(1140px, calc(100% - 1.25rem));
  --radius: 15px;
  /* ブレークポイント: mobile ~767 / tablet 768~1023 / desktop 1024~ */
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); }

.container { width: var(--container); margin-inline: auto; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ヒーローバー */
.site-hero-bar {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1rem;
}
.site-hero-bar__title {
  margin: 0;
  font-size: clamp(0.9375rem, 4vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* セクション共通 */
.home-section { padding: 1.25rem 0; }
.home-section--tight { padding: 0.75rem 0; }
.home-section--blue-bg {
  position: relative;
  padding: 1.5rem 0;
}
.home-section--blue-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/assets/uploads/2025/12/354400.webp") center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}
.home-section--blue-bg > .container { position: relative; z-index: 1; }

.text-center { text-align: center; }
.spacer-sm { height: 1.25rem; }

.home-img { margin-inline: auto; width: 100%; }
.home-img--banner { max-width: 100%; }

/* TOP メインバナー（ローテーション） */
.home-banner {
  position: relative;
  margin-inline: auto;
  max-width: 100%;
}
.home-banner__track {
  position: relative;
  overflow: hidden;
}
.home-banner__slide {
  display: none;
}
.home-banner__slide.is-active {
  display: block;
}
/* ローテーション切替時のみフェード（初回描画のちらつき防止） */
.home-banner--animating .home-banner__slide.is-active {
  animation: home-banner-fade .45s ease;
}
/* JS 描画前は静的プレースホルダーを隠す */
.home-banner[aria-busy="true"] > .home-img--banner {
  visibility: hidden;
}
.home-banner__slide a {
  display: block;
  line-height: 0;
}
.home-banner__dots {
  display: flex;
  justify-content: center;
  gap: .375rem;
  margin-top: .5rem;
}
.home-banner__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .2s ease, transform .2s ease;
}
.home-banner__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.15);
}
@keyframes home-banner-fade {
  from { opacity: .2; }
  to { opacity: 1; }
}

/* 買取王の強み（単一バナー） */
.home-strengths-img {
  max-width: min(100%, 1100px);
  margin-inline: auto;
}
.home-strengths-link {
  display: block;
  line-height: 0;
}

.home-img--cta { max-width: 100%; }
.home-img--line { max-width: min(100%, 320px); }
.home-img--small { max-width: min(100%, 280px); }
.home-img--step { max-width: min(100%, 260px); }

/* 3カラム特徴 — モバイルは1列 */
.home-features {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: 1fr;
}
.home-feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 0.5rem;
  overflow: hidden;
}
.home-feature-card img { width: 100%; }
.home-note {
  font-size: 10px;
  text-align: right;
  margin: 0.5rem 0 0;
  color: #333;
}

/* CTA — モバイルは1列 */
.home-cta-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  grid-template-columns: 1fr;
}
.home-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  min-height: 44px;
}
.home-cta-label::before { font-size: 1.1em; }
.home-cta-label--net::before { content: "💻"; }
.home-cta-label--tel::before { content: "☎"; }

.home-panel {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.25rem 0;
}
.home-panel--light { background: #f7fafc; }

/* 買取の流れ — セクションは白、各 STEP カードは従来の薄グレー */
.home-section--steps { background: #fff; }

/* STEP — モバイルは縦積み */
.home-step {
  display: grid;
  gap: 1rem;
  background: #f7fafc;
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  margin-bottom: 1rem;
  grid-template-columns: 1fr;
}
.home-step__num {
  color: var(--color-primary);
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}
.home-step__num span { font-size: 2rem; }
.home-step p { margin: 0; }
.home-step img { width: 100%; border-radius: 8px; }

/* 見出し帯 */
.home-heading-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-style: italic;
}

/* FAQ */
.home-faq-wrap { padding: 1.25rem 0; background: rgba(17, 60, 145, 0.08); }
.home-faq-list { max-width: var(--container); margin: 0 auto; padding: 0 0.625rem; }
.home-faq {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.vk_faq_title {
  margin: 0;
  padding: 0.875rem 1rem;
  cursor: pointer;
  font-weight: 700;
  background: #edf2f7;
  font-size: 0.9375rem;
}
.vk_faq_content {
  margin: 0;
  padding: 0.875rem 1rem;
  display: none;
  font-size: 0.9375rem;
}
.vk_faq_content p { margin: 0; }

/* 住所 */
.home-address {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
}
.home-address p { margin: 0; line-height: 1.5; }

/* フッター */
.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
}
.footer-nav ul {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem;
}
.footer-nav a { text-decoration: none; color: var(--color-text); }
.site-footer-copyright p { margin: 0.25rem 0; }

/* TOP — 買取実績見出し */
.home-achievements-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0 0.625rem;
}
.home-achievements-head__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}
.home-achievements-head__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.home-achievements-head__link:hover {
  text-decoration: underline;
}

/* TOP — 買取実績4台グリッドは purchase-achievements.css */
