/*
  研削工事詳細ページ 専用CSS
  ヒーローは shitaji.css の .page-shitaji 版と同じ構造を .page-kensaku にスコープして再利用。
  works.css / shitaji.css 自体は変更しない（共通仕様書の方針）。
  .shitaji-heading / .shitaji-cta 等の共通クラスは shitaji.css を読み込んで流用する。
  今回の指示により、パン移動量はメインビジュアルの最新仕様（150px・左→右・10秒・ループなし）に合わせている。
*/

.page-kensaku .works-loop-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #eef6fb;
  border-bottom: 1px solid rgba(5, 38, 79, .08);
}
.page-kensaku .works-loop-hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-kensaku .works-loop-hero__track {
  width: 100%;
  height: 100%;
}
.page-kensaku .works-loop-hero__image {
  width: calc(100% + 150px);
  height: 100%;
  object-fit: cover;
  object-position: center calc(50% + 40px);
  display: block;
  user-select: none;
  pointer-events: none;
  transform: translateX(-150px);
  animation: kensaku-hero-pan 10s ease-out forwards;
}
@keyframes kensaku-hero-pan {
  from { transform: translateX(-150px); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-kensaku .works-loop-hero__image {
    animation: none;
    transform: translateX(0);
    width: 100%;
  }
}
.page-kensaku .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-kensaku .works-loop-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-kensaku .works-loop-hero__content {
  width: min(560px, 48vw);
  padding-left: 18px;
}
.page-kensaku .works-loop-hero__en {
  margin: 0 0 8px;
  color: #c8a24a;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
}
.page-kensaku .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-kensaku .works-loop-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: #c8a24a;
  margin-top: 14px;
}
.page-kensaku .works-loop-hero__lead {
  color: #08264d;
  font-weight: 700;
  line-height: 1.8;
  margin: 18px 0 0;
  font-size: 15px;
}
.page-kensaku .works-loop-hero__breadcrumb {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  padding: 0;
  z-index: 4;
  font-size: 12px;
}
.page-kensaku .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-kensaku .works-loop-hero__breadcrumb li,
.page-kensaku .works-loop-hero__breadcrumb a {
  color: rgba(5, 38, 79, .72);
  text-decoration: none;
}
.page-kensaku .works-loop-hero__breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(5, 38, 79, .35);
}

/* 共通の小見出し（英字キッカー） */
.kensaku-kicker {
  margin: 0 0 8px;
  color: #b5a067;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}
.kensaku-section-head--center {
  text-align: center;
  margin-bottom: 40px;
}
.kensaku-section-head--center .kensaku-kicker { justify-content: center; }
.kensaku-section-head--center h2 {
  margin: 0;
  color: #05264f;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 900;
  position: relative;
  padding-bottom: 16px;
}
.kensaku-section-head--center h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: #b5a067;
}

/* 研削工事とは */
.kensaku-about {
  padding: 110px 0;
  background: #eef1f6;
}
.kensaku-about__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.kensaku-about__photo-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.kensaku-about__deco {
  position: absolute;
  top: -30px;
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  z-index: 0;
  pointer-events: none;
}
.kensaku-about__photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid #fff;
  box-shadow: 0 20px 40px rgba(5, 38, 79, .14);
}
.kensaku-about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kensaku-about__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #b5a067;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(5, 38, 79, .18);
}
.kensaku-about__text h2 {
  margin: 0 0 20px;
  color: #05264f;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.4;
}
.kensaku-about__lead {
  margin: 0 0 24px;
  color: #444;
  font-size: 14.5px;
  line-height: 2;
}
.kensaku-about__note {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #d8dde5;
  color: #05264f;
  font-weight: 800;
  font-size: 14px;
}

/* 4つの特徴 */
.kensaku-features {
  padding: 76px 0;
}
.kensaku-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.kensaku-feature-card {
  background: #fff;
  border-top: 3px solid #b5a067;
  box-shadow: 0 10px 26px rgba(5, 38, 79, .06);
  padding: 24px 20px;
}
.kensaku-feature-card__top {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.kensaku-feature-card__num {
  color: #dfe3e9;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.kensaku-feature-card h3 {
  margin: 0 0 10px;
  color: #05264f;
  font-size: 15.5px;
  font-weight: 800;
}
.kensaku-feature-card p {
  margin: 0;
  color: #555;
  font-size: 12.5px;
  line-height: 1.75;
}

/* 主な作業内容 */
.kensaku-applications {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.kensaku-applications__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kensaku-applications__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.kensaku-applications__copy {
  color: #fff;
  max-width: 480px;
}
.kensaku-applications__copy h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
}
.kensaku-applications__copy-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  color: #e7c789;
  font-size: 15px;
  font-weight: 700;
}
.kensaku-applications__copy-bar {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: #b5a067;
  flex: none;
}
.kensaku-applications__copy-en {
  margin: 0;
  padding-left: 48px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  letter-spacing: .22em;
}
.kensaku-applications__panel {
  width: min(460px, 100%);
  background: #fff;
  padding: 40px 36px;
  box-shadow: 0 24px 50px rgba(5, 38, 79, .2);
}
.kensaku-applications__panel h2 {
  margin: 0 0 20px;
  color: #05264f;
  font-size: 22px;
  font-weight: 900;
  position: relative;
  padding-bottom: 14px;
}
.kensaku-applications__panel h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #b5a067;
}
.kensaku-applications__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kensaku-applications__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #eceff3;
  color: #222;
  font-size: 14px;
  font-weight: 700;
}
.kensaku-applications__num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #b5a067;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kensaku-applications__note {
  margin: 18px 0 0;
  color: #777;
  font-size: 12px;
}

/* 施工実績 */
.kensaku-works {
  padding: 76px 0;
  background: #f7f9fb;
}
.kensaku-works__lead {
  margin: 10px 0 34px;
  color: #666;
  font-size: 13.5px;
}
.kensaku-works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.kensaku-works-card {
  display: block;
  background: #fff;
  border: 1px solid #e7ecf1;
  text-decoration: none;
}
.kensaku-works-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.kensaku-works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.kensaku-works-card:hover .kensaku-works-card__image img,
.kensaku-works-card:focus-visible .kensaku-works-card__image img {
  transform: scale(1.06);
}
.kensaku-works-card__badge {
  display: inline-block;
  margin: 16px 16px 8px;
  padding: 4px 10px;
  background: #05264f;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 2px;
}
.kensaku-works-card h3 {
  margin: 0 16px 16px;
  color: #222;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

/* ==================== レスポンシブ ==================== */
@media (max-width: 960px) {
  .page-kensaku .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-kensaku .works-loop-hero__content {
    width: min(500px, 72vw);
  }
  .kensaku-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .kensaku-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kensaku-applications__inner {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .kensaku-applications__copy-sub {
    justify-content: center;
  }
  .kensaku-applications {
    min-height: 0;
    padding: 40px 20px;
  }
  .kensaku-applications__bg { position: absolute; }
  .kensaku-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kensaku-about__deco {
    display: none;
  }
  .page-kensaku .works-loop-hero {
    height: 280px;
  }
  .page-kensaku .works-loop-hero__breadcrumb {
    left: 0;
    bottom: 12px;
    font-size: 11px;
  }
  .page-kensaku .works-loop-hero__content {
    width: 88vw;
    padding-left: 0;
  }
  .page-kensaku .works-loop-hero h1 {
    font-size: 28px;
  }
  .page-kensaku .works-loop-hero__lead {
    font-size: 12.5px;
    line-height: 1.75;
  }
  .kensaku-about,
  .kensaku-features,
  .kensaku-works {
    padding-top: 44px;
    padding-bottom: 48px;
  }
  .kensaku-features__grid {
    grid-template-columns: 1fr;
  }
  .kensaku-works__grid {
    grid-template-columns: 1fr;
  }
  .kensaku-applications__panel {
    padding: 28px 22px;
  }
}
