/*
  環境への配慮ページ 専用CSS（v1.0）
  ヒーローは works-loop-hero を .page-kankyou にスコープして再利用。
  style.css / components.css / page.css / shitaji.css 自体は変更しない（共通仕様書の方針）。

  【重要】.page-kankyou .works-loop-hero 内の数値は、本番の style.css / components.css /
  採用情報ページ「works-loop-hero」の実物が手元にないため、共通仕様書に記載の基準値と
  shitaji/kensaku/kensaku.css の実装値（高さ320px・ホワイトフェードの構成など）を
  そのまま流用して再現したものです。実際の採用情報ページの数値とズレがあれば、
  このブロックだけ差し替えてください（本ファイル冒頭のブロックのみで完結します）。
  ページ固有のパン演出（研削工事ページで追加したもの）は、本ページでは追加していません。
*/

.page-kankyou .works-loop-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #eef6fb;
  border-bottom: 1px solid rgba(5, 38, 79, .08);
}
.page-kankyou .works-loop-hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-kankyou .works-loop-hero__track {
  width: 100%;
  height: 100%;
}
.page-kankyou .works-loop-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  pointer-events: none;
}
.page-kankyou .works-loop-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 28%, rgba(255,255,255,.72) 41%, rgba(255,255,255,.18) 58%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 55%, rgba(255,255,255,.26) 100%);
  z-index: 1;
}
.page-kankyou .works-loop-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-kankyou .works-loop-hero__content {
  width: min(560px, 48vw);
  padding-left: 18px;
}
.page-kankyou .works-loop-hero__en {
  margin: 0 0 8px;
  color: #c8a24a;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
}
.page-kankyou .works-loop-hero h1 {
  color: #05264f;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.28;
  letter-spacing: .04em;
  margin: 0;
  font-weight: 900;
}
.page-kankyou .works-loop-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: #c8a24a;
  margin-top: 14px;
}
.page-kankyou .works-loop-hero__lead {
  color: #08264d;
  font-weight: 700;
  line-height: 1.8;
  margin: 18px 0 0;
  font-size: 15px;
}
.page-kankyou .works-loop-hero__breadcrumb {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  padding: 0;
  z-index: 4;
  font-size: 12px;
}
.page-kankyou .works-loop-hero__breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  list-style: none;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(5, 38, 79, .10);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(5, 38, 79, .08);
  backdrop-filter: blur(6px);
}
.page-kankyou .works-loop-hero__breadcrumb li,
.page-kankyou .works-loop-hero__breadcrumb a {
  color: rgba(5, 38, 79, .72);
  text-decoration: none;
}
.page-kankyou .works-loop-hero__breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(5, 38, 79, .35);
}

/* 共通の小見出し（英字キッカー）。kensaku-kicker と同一仕様 */
.kankyou-kicker {
  margin: 0 0 10px;
  color: #b5a067;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
}

/* リード（私たちは、工事の品質だけでなく…） */
.kankyou-lead {
  padding: 100px 0 88px;
  text-align: center;
}
.kankyou-lead__inner {
  max-width: 760px;
}
.kankyou-lead__text {
  margin: 0 0 44px;
  color: #05264f;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 900;
  line-height: 1.9;
}

/* 目次（このページの内容へのアンカーリンク） */
.kankyou-toc {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.kankyou-toc a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(5, 38, 79, .16);
  border-radius: 999px;
  color: #05264f;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease;
}
.kankyou-toc a:hover,
.kankyou-toc a:focus-visible {
  border-color: #b5a067;
  background: #fbf8f1;
}
.kankyou-toc svg {
  width: 18px;
  height: 18px;
  color: #b5a067;
  flex: none;
}

/* 3つの取り組み */
.kankyou-features {
  padding: 0 0 116px;
}
.kankyou-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.kankyou-feature-card {
  scroll-margin-top: 24px;
  background: #fff;
  border-top: 3px solid #b5a067;
  box-shadow: 0 10px 26px rgba(5, 38, 79, .06);
  padding: 40px 30px 34px;
}
.kankyou-feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.kankyou-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f5f1e7;
  color: #b5a067;
}
.kankyou-feature-card__icon svg {
  width: 26px;
  height: 26px;
}
.kankyou-feature-card__num {
  color: #dfe3e9;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.kankyou-feature-card h3 {
  margin: 0 0 14px;
  color: #05264f;
  font-size: 18px;
  font-weight: 800;
}
.kankyou-feature-card p {
  margin: 0;
  color: #555;
  font-size: 13.5px;
  line-height: 1.9;
}

/* ==================== レスポンシブ ==================== */
@media (max-width: 960px) {
  .page-kankyou .works-loop-hero__shade {
    background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.28) 76%, rgba(255,255,255,0) 100%);
  }
  .page-kankyou .works-loop-hero__content {
    width: min(500px, 72vw);
  }
  .kankyou-features__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .page-kankyou .works-loop-hero {
    height: 280px;
  }
  .page-kankyou .works-loop-hero__breadcrumb {
    left: 0;
    bottom: 12px;
    font-size: 11px;
  }
  .page-kankyou .works-loop-hero__content {
    width: 88vw;
    padding-left: 0;
  }
  .page-kankyou .works-loop-hero h1 {
    font-size: 28px;
  }
  .page-kankyou .works-loop-hero__lead {
    font-size: 12.5px;
    line-height: 1.75;
  }
  .kankyou-lead {
    padding: 48px 0 40px;
  }
  .kankyou-lead__text {
    margin-bottom: 32px;
  }
  .kankyou-toc {
    flex-direction: column;
    align-items: stretch;
  }
  .kankyou-features {
    padding-bottom: 48px;
  }
  .kankyou-feature-card {
    padding: 30px 24px 26px;
  }
}
