/* ==========================================================================
   components.css — 共通UIパーツ
   全ページで必ず読み込む
   ========================================================================== */

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 56px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.section-title span {
  display: block;
  font-size: 11px;
  color: var(--color-cta);
  font-weight: 600;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-cta);
  margin: 16px auto 0;
}

.section-lead {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: -36px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  cursor: pointer;
  border: none;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-cta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(48, 117, 47, 0.25);
}

.btn--primary:hover {
  background: var(--color-cta-hover);
  box-shadow: 0 6px 20px rgba(48, 117, 47, 0.4);
}

.btn--secondary {
  background: #fff;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn--large {
  padding: 20px 52px;
  font-size: 17px;
  min-height: 56px;
}

.btn--white {
  background: #fff;
  color: var(--color-brand);
  font-weight: 700;
}

.btn--white:hover {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn--white-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--white-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ===== HERO (共通・ライト) ===== */
.hero {
  background: var(--hero-bg);
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-body {
  text-align: left;
}

.hero-catch {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero-catch em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 16px;
  color: var(--color-text-sub);
  margin-bottom: 16px;
  line-height: 1.8;
}

.hero-area {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.hero-image {
  width: 100%;
  height: 380px;
  background: var(--color-placeholder);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-placeholder-text);
  font-size: 14px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== MV (トップページ専用フルスクリーンスライダー) ===== */
/* MV の詳細スタイルは top.css で定義 */

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--color-bg-gray);
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.trust-item {
  text-align: center;
}

.trust-number {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--color-brand);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.trust-number small {
  font-size: 16px;
  font-weight: 600;
}

.trust-label {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* ===== REASONS ===== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-default);
}

.reason-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.reason-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.reason-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.reason-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.reason-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== BLOG-STYLE RESULTS (12 cards) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blog-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
  height: 160px;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-placeholder-text);
  font-size: 13px;
}

.blog-card-body {
  padding: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-card-date {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.blog-card-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-brand);
  background: var(--color-bg-gray);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.blog-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-cta);
  letter-spacing: 0.02em;
}

.blog-card-area {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.section-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== RESULTS (5 cards - service/area pages) ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.result-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.result-card-img {
  height: 140px;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-placeholder-text);
  font-size: 13px;
}

.result-card-body {
  padding: 16px;
}

.result-card-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

.result-card-price {
  font-size: 22px;
  color: var(--color-cta);
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.result-card-area {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

/* ===== FLOW ===== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-default);
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step-num {
  width: 44px;
  height: 44px;
  background: var(--color-brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.flow-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.flow-step-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 22px;
  width: 0;
  height: 0;
  border-left: 7px solid var(--color-brand);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  padding: 24px 0;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0.02em;
  gap: 16px;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--color-brand);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.faq-item.open .faq-question::after {
  content: "\2212";
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

.faq-answer {
  display: none;
  padding: 0 0 24px;
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-brand);
  padding: 72px 0;
  text-align: center;
  color: #fff;
}

.cta-section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.cta-section-sub {
  font-size: 15px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA内のボタン上書き */
.cta-section .btn--white {
  color: var(--color-brand);
}

/* ===== NAVY SECTION OVERRIDES ===== */
/* 紺ダーク背景内のカード：半透明白で浮かせる */
.section--navy .reason-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--navy .reason-card:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.section--navy .reason-icon {
  color: #c8973e;
}

.section--navy .reason-title {
  color: #fff;
}

.section--navy .reason-text {
  color: rgba(255, 255, 255, 0.65);
}

/* 紺ダーク内のフローステップ */
.section--navy .flow-step-num {
  background: #c8973e;
}

.section--navy .flow-step-title {
  color: #fff;
}

.section--navy .flow-step-text {
  color: rgba(255, 255, 255, 0.65);
}

.section--navy .flow-step + .flow-step::before {
  border-left-color: #c8973e;
}

/* 紺ダーク内のFAQ */
.section--navy .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.section--navy .faq-question {
  color: #fff;
}

.section--navy .faq-question::after {
  color: #c8973e;
  border-color: rgba(255, 255, 255, 0.2);
}

.section--navy .faq-item.open .faq-question::after {
  background: #c8973e;
  color: #fff;
  border-color: #c8973e;
}

.section--navy .faq-answer {
  color: rgba(255, 255, 255, 0.7);
}

/* 紺ダーク内のお客様の声 */
.section--navy .voice-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--navy .voice-card-quote {
  color: rgba(255, 255, 255, 0.8);
}

.section--navy .voice-card-quote::before {
  color: #c8973e;
}

.section--navy .voice-card-meta {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.section--navy .voice-card-info {
  color: rgba(255, 255, 255, 0.5);
}

.section--navy .voice-card-info strong {
  color: #fff;
}

/* 紺ダーク内のブログカード */
.section--navy .blog-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--navy .blog-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.section--navy .blog-card-title {
  color: #fff;
}

.section--navy .blog-card-category {
  background: rgba(200, 151, 62, 0.2);
  color: #c8973e;
}

/* ゴールドライト背景内のアクセント調整 */
.section--gold-light .sellnow-num {
  background: #c8973e;
}

.section--gold-light .section-title::after {
  background: #c8973e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .section-title::after {
    margin-top: 12px;
  }

  .section-lead {
    margin-top: -24px;
    margin-bottom: 36px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero--dark {
    padding: 64px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-body {
    text-align: center;
  }

  .hero-catch {
    font-size: 28px;
  }

  .hero--dark .hero-catch {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-image {
    height: 220px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .trust-items {
    gap: 24px;
    flex-wrap: wrap;
  }

  .trust-number {
    font-size: 28px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .flow-step + .flow-step::before {
    display: none;
  }

  .cta-section {
    padding: 56px 0;
  }

  .cta-section-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero--dark .hero-catch {
    font-size: 26px;
  }

  .hero-catch {
    font-size: 24px;
  }

  .trust-items {
    gap: 16px;
  }

  .trust-number {
    font-size: 24px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .btn--large {
    padding: 18px 36px;
    font-size: 16px;
    width: 100%;
  }
}

/* ==========================================================================
   Dynamic Content Placeholders (hp-api.js 連動)
   ========================================================================== */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 60px;
  background: #1E293B;
  color: #64748B;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 8px;
}
.track-case .img-placeholder {
  background: rgba(255,255,255,0.04);
  color: #64748B;
}
