/* ==========================================================================
   サービスページ共通スタイル（販売・買取・車検整備）
   ========================================================================== */

/* ヒーローセクション */
.service-hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-hero-label {
  display: inline-block;
  background-color: var(--green);
  color: white;
  padding: 0.4rem 1.5rem;
  border-radius: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.service-hero h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  color: var(--DarkGray);
  line-height: 1.4;
  margin: 0 0 1.5rem;
}

.service-hero-lead {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  color: #666;
}

/* コンテンツエリア（single-content を継承） */
.service-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 4rem;
  line-height: 2;
}

.service-body h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--green);
  color: var(--green);
}

.service-body h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  margin: 2.5rem 0 1rem;
  color: var(--DarkGray);
}

.service-body p {
  margin-bottom: 1.5rem;
}

.service-body ul,
.service-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.service-body li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

/* 特徴カード（3カラム） */
.service-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.service-feature-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.service-feature-card .feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--green);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-feature-card h3 {
  margin: 0 0 0.8rem;
  color: var(--DarkGray);
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
}

.service-feature-card p {
  margin: 0;
  color: #666;
  line-height: 1.8;
}

/* フロー（ステップ） */
.service-flow {
  margin: 2rem 0 3rem;
}

.service-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--Greige);
}

.service-flow-step:last-child {
  border-bottom: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background-color: var(--yellow);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
}

.step-content p {
  margin: 0;
  color: #666;
}

/* FAQ */
.service-faq {
  margin: 2rem 0 3rem;
}

.service-faq-item {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-faq-item dt {
  font-weight: bold;
  color: var(--green);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.service-faq-item dt::before {
  content: "Q. ";
  font-weight: bold;
}

.service-faq-item dd {
  margin: 0;
  line-height: 1.8;
  color: #444;
}

.service-faq-item dd::before {
  content: "A. ";
  font-weight: bold;
  color: var(--yellow);
}

/* エリアタグ */
.service-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.service-area-tag {
  background-color: white;
  color: var(--DarkGray);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--Greige);
  font-weight: 500;
}

/* プランカード（車検ページ用 - front-page の .plan を拡張） */
.service-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.service-plan-card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-plan-header {
  background-color: var(--green);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.service-plan-header.recommended {
  background-color: var(--yellow);
}

.service-plan-badge {
  font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem);
  margin-bottom: 0.25rem;
}

.service-plan-name {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
}

.service-plan-body {
  padding: 1.5rem;
}

.service-plan-body p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.service-plan-divider {
  height: 1px;
  background-color: var(--Greige);
  margin: 1rem 0;
}

.no-extra {
  color: #999;
  font-style: italic;
}

/* 関連記事グリッド */
.service-related {
  margin: 2rem 0 3rem;
}

.service-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-related-card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-related-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-related-card .card-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-related-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-related-card:hover .card-thumb img {
  transform: scale(1.05);
}

.service-related-card .card-title {
  padding: 1rem;
  margin: 0;
  color: var(--DarkGray);
  font-size: clamp(1rem, 0.9rem + 0.25vw, 1.15rem);
  line-height: 1.4;
}

/* 全幅リンクボタン */
.service-more-link {
  display: block;
  text-align: center;
  margin: 2rem 0;
}

.service-more-link a {
  display: inline-block;
  background-color: #000;
  color: white;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #000;
  transition: all 0.3s;
}

.service-more-link a:hover {
  background-color: white;
  color: #000;
}

/* クロスリンク */
.section-cross-link {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--OffWhite);
  border-radius: 1rem;
  text-align: center;
}

.section-cross-link p {
  margin: 0 0 1rem;
  color: var(--DarkGray);
}

.cross-link-btn {
  display: inline-block;
  background-color: var(--green);
  color: white;
  font-weight: bold;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: all 0.2s;
}

.cross-link-btn:hover {
  background-color: white;
  color: var(--green);
}


/* ==========================================================================
   レスポンシブ - タブレット (1024px以下)
   ========================================================================== */
@media (max-width: 1024px) {
  .service-body {
    padding: 0 3rem 3rem;
  }

  .service-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .service-plan-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .service-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   レスポンシブ - スマートフォン (768px以下)
   ========================================================================== */
@media (max-width: 768px) {
  .service-hero {
    padding: 3rem 1.5rem 2rem;
  }

  .service-body {
    padding: 0 2rem 3rem;
  }

  .service-body h2 {
    margin: 2rem 0 1rem;
  }

  .service-body h3 {
    margin: 1.5rem 0 0.75rem;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .service-plan-cards {
    grid-template-columns: 1fr;
  }

  .service-flow-step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .service-related-grid {
    grid-template-columns: 1fr;
  }

  .service-related-card .card-thumb {
    height: 200px;
  }

  .service-area-tags {
    gap: 0.4rem;
  }

  .section-cross-link {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
  }
}

/* ==========================================================================
   レスポンシブ - 小型スマートフォン (480px以下)
   ========================================================================== */
@media (max-width: 480px) {
  .service-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .service-body {
    padding: 0 1rem 2rem;
  }

  .service-feature-card {
    padding: 1.5rem;
  }

  .service-faq-item {
    padding: 1.25rem 1.5rem;
  }
}
