/* ============================================================
   service.css — 奥田商工 事業案内（サービス）ページ共通
   給排水衛生設備・防災・消火設備ページでも読み込む
   ============================================================ */


/* ============================
   ページヒーロー（全画面画像）
============================ */
.svc-hero {
  margin-top: 110px;
  position: relative;
  height: 420px;
  overflow: hidden;
}

.svc-hero-img {
  position: absolute;
  inset: 0;
  background: #8aabb8 center/cover no-repeat;
  /* 画像は各ページで上書き */
}

/* 仮写真プレースホルダー背景色（ページ別） */
.svc-hero-img--aircon    { background-color: #7a9fb0; }
.svc-hero-img--plumbing  { background-color: #6a8fa0; }
.svc-hero-img--fire      { background-color: #8a7060; }


/* タイトル（右下） */
.svc-hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(13,43,78,0.82);
  padding: 18px 36px;
}

.svc-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

/* 仮素材のお知らせバナー */
.svc-hero-notice {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(41,171,226,0.88);
  padding: 10px 16px;
  max-width: 320px;
}

.svc-hero-notice p {
  font-size: 11px;
  color: #fff;
  line-height: 1.6;
}


/* ============================
   イントロ
============================ */
.svc-intro {
  padding: 72px 0 80px;
  background: #fff;
  overflow: hidden;
}

.svc-intro-inner {
  display: flex;
  align-items: stretch;
  gap: 64px;
}

.svc-intro-text {
  flex: 1;
  padding-left: calc((100vw - 1100px) / 2 + 20px);
  padding-top: 8px;
  min-width: 0;
}

.svc-intro-heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 20px;
}

.svc-intro-text p {
  font-size: 22px;
  font-weight: 500;
  color: #444;
  line-height: 2.4;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  max-width: 560px;
}

.svc-intro-text p:last-child {
  margin-bottom: 0;
}

.svc-intro-photo {
  flex: 0 0 600px;
  aspect-ratio: 3 / 4;
  border-radius: 12px 0 0 12px;
  background: #a0b8c8 center/cover no-repeat;
}

/* ページ別写真色 */
.svc-intro-photo--aircon   { /* background-image: ACF動的出力 (default: service-aircon2.png) */ }
.svc-intro-photo--plumbing { background-color: #80a0b0; }
.svc-intro-photo--fire     { background-color: #9a8880; }


/* ============================
   奥田クオリティ
============================ */
.svc-quality {
  padding: 64px 0 72px;
  background: #D0E9F54D;
}

.svc-quality-heading {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
  width: 360px;
  text-align: center;
}

.svc-quality-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: center;
}

/* quality.png 画像エリア */
.svc-quality-venn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quality-img {
  width: 100%;
  max-width: 340px;
  display: block;
  margin: 0 auto;
}

/* 技・知・心リスト */
.svc-quality-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-quality-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0 20px;
  position: relative;
  margin-bottom: 16px;
}

/* グラデーションアンダーライン（強みページ準拠） */
.svc-quality-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #BAEAED 0%, #61D9DD 42.79%, #2986B3 100%);
}

.svc-quality-icon {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 100;
  font-size: 70px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: var(--navy);
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.svc-quality-desc {
  flex: 1;
}

.svc-quality-desc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  padding-left: 13px;
  margin-bottom: 8px;
}

.svc-quality-desc-main {
  font-size: 13px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.8;
  padding-left: 13px;
}


/* ============================
   共通セクション見出し
============================ */
.svc-sec-heading {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  position: relative;
  padding: 0 24px 20px;
}

.svc-sec-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -12px;
  right: -12px;
  height: 6px;
  background: linear-gradient(90deg, #BAEAED 0%, #61D9DD 42.79%, #2986B3 100%);
}


/* ============================
   業務内容
============================ */
.svc-works {
  padding: 72px 0 80px;
  background: #fff;
}

.svc-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.svc-works-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.svc-work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-work-title {
  font-size: 17px;
  font-weight: 700;
  color: #0C2C5D;
}

.svc-work-img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #c8d8e4 center/cover no-repeat;
}

.svc-work-img--cad         { background-color: #c0d0dc; }
.svc-work-img--sales       { background-color: #b8cad8; }
.svc-work-img--supervision { /* background-image: ACF動的出力 (default: service-aircon3-3.png) */ }
.svc-work-img--maintenance { background-color: #b0c8d4; }

.svc-work-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-top: -2px;
}


/* ============================
   対応施設
============================ */
.svc-facilities {
  padding: 64px 0 72px;
  background: #fff;
}

.svc-facility-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  list-style: none;
}

.svc-facility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.svc-facility-icon {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #FFF3C0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  box-sizing: border-box;
}

.svc-facility-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.svc-facility-item span {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}


/* ============================
   施工事例
============================ */
.svc-cases {
  padding: 72px 0 88px;
  background: #fff;
}

.svc-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.svc-case-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-case-title {
  font-size: 17px;
  font-weight: 700;
  color: #0C2C5D;
}

.svc-case-img {
  aspect-ratio: 16 / 9;
  background: #c8d8e4;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.svc-case-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.svc-case-facility {
  font-size: 12px;
  color: var(--text-sub);
}

.svc-case-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-top: -2px;
}

/* もっと見るボタン */
.svc-cases-btn {
  display: flex;
  justify-content: center;
}

.svc-more-btn {
  min-width: 320px;
  font-size: 14px;
  padding: 16px 32px;
}


/* ============================
   RESPONSIVE — Tablet (≤ 1024px)
============================ */
@media (max-width: 1024px) {
  .svc-hero { height: 340px; }

  .svc-intro-inner {
    flex-direction: column;
    gap: 0;
  }

  .svc-intro-text {
    padding: 32px 28px 40px;
  }

  .svc-intro-heading {
    font-size: 26px;
  }

  .svc-intro-text p {
    font-size: 16px;
  }

  .svc-intro-photo {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .svc-quality-heading {
    width: auto;
    text-align: center;
    margin: 0 auto 40px;
  }

  .svc-quality-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .svc-quality-venn {
    justify-content: center;
  }

  .quality-img { max-width: 280px; }
}


/* ============================
   RESPONSIVE — Mobile (≤ 640px)
============================ */
@media (max-width: 640px) {

  /* イントロ */
  .svc-intro { padding: 40px 0 0; }
  .svc-intro-inner { flex-direction: column; gap: 32px; }
  .svc-intro-text {
    padding-left: 20px;
    padding-right: 20px;
  }
  .svc-intro-heading { font-size: 22px; }
  .svc-intro-text p { font-size: 15px; line-height: 2; max-width: 100%; }
  .svc-intro-photo {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  /* クオリティ */
  .svc-quality { padding: 48px 0 56px; }
  .svc-quality-heading { font-size: 24px; text-align: center; }
  .svc-quality-inner { grid-template-columns: 1fr; gap: 24px; }
  .svc-quality-venn { justify-content: center; }
  .quality-img { max-width: 200px; }
  .svc-quality-item { justify-content: center; }
  .svc-quality-icon { font-size: 56px; }
  .svc-quality-desc { text-align: left; }
  .svc-quality-desc-title { font-size: 16px; padding-left: 0; }
  .svc-quality-desc-main { font-size: 14px; padding-left: 0; }

  /* セクション見出し */
  .svc-sec-heading { font-size: 24px; }

  /* 業務内容 */
  .svc-works { padding: 48px 0 56px; overflow: hidden; }
  .svc-works-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-work-card { min-width: 0; }

  /* 対応施設 */
  .svc-facilities { padding: 48px 0 56px; }
  .svc-facility-list { gap: 16px; }
  .svc-facility-icon { width: 72px; height: 72px; padding: 16px; }

  /* 施工事例 */
  .svc-cases { padding: 48px 0 56px; overflow: hidden; }
  .svc-cases-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-case-card { min-width: 0; }
  .svc-case-img { width: 100%; }
  .svc-more-btn { min-width: 75vw; }
}
/* ページヒーロー */
.page-hero { background: #c0ccd8 center/cover no-repeat; }

/* ページヒーロー背景画像（ページ別） */
.page-hero--aircon {
  /* background-image: ACF動的出力 (default: service-aircon1.png) */
  background-size: cover;
  background-position: center;
}
.page-hero--plumbing {
  background: #6a8fa0 center/cover no-repeat;
}
.page-hero--fire {
  background: #8a7060 center/cover no-repeat;
}
