/*
  下地処理工事ページ 専用CSS
  ヒーローは施工実績／新着情報／採用情報と同じ .works-loop-hero を .page-shitaji にスコープして再利用。
  works.css 自体は変更しない（共通仕様書の方針）。
*/

.page-shitaji .works-loop-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid rgba(5, 38, 79, .08);
}
.page-shitaji .works-loop-hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-shitaji .shitaji-video-hero__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease-in-out;
  will-change: opacity;
}
.page-shitaji .shitaji-video-hero__layer.is-active { opacity: 1; }
.page-shitaji .shitaji-video-hero__layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 76%;
  display: block;
  user-select: none;
  pointer-events: none;
}
.page-shitaji .shitaji-video-hero__layer:nth-child(2) video { object-position: center 72%; }
.page-shitaji .shitaji-video-hero__layer:nth-child(3) video { object-position: center 78%; }
.page-shitaji .works-loop-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,21,42,.88) 0%, rgba(5,21,42,.68) 29%, rgba(5,21,42,.18) 53%, rgba(5,21,42,.08) 100%);
  z-index: 1;
}
.page-shitaji .works-loop-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-shitaji .works-loop-hero__content {
  width: min(560px, 48vw);
  padding-left: 18px;
  text-shadow: 0 2px 15px rgba(0,0,0,.25);
}
.page-shitaji .works-loop-hero__en {
  margin: 0 0 8px;
  color: #c8a45a;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
}
.page-shitaji .works-loop-hero h1 {
  color: #fff;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.28;
  letter-spacing: .04em;
  margin: 0;
  font-weight: 900;
}
.page-shitaji .works-loop-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: #c8a24a;
  margin-top: 14px;
}
.page-shitaji .works-loop-hero__lead {
  color: #fff;
  font-weight: 700;
  line-height: 1.8;
  margin: 18px 0 0;
  font-size: 15px;
}
.page-shitaji .works-loop-hero__breadcrumb {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  padding: 0;
  z-index: 4;
  font-size: 12px;
}
.page-shitaji .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-shitaji .works-loop-hero__breadcrumb li,
.page-shitaji .works-loop-hero__breadcrumb a {
  color: rgba(5, 38, 79, .72);
  text-decoration: none;
}
.page-shitaji .works-loop-hero__breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(5, 38, 79, .35);
}

/* 共通見出し */
.shitaji-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #05264f;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
}
.shitaji-heading__bar {
  display: inline-block;
  width: 6px;
  height: 22px;
  background: #c8a24a;
  border-radius: 2px;
}
.shitaji-heading--light {
  color: #fff;
  justify-content: center;
  text-align: center;
}

/* 下地処理工事とは */
.shitaji-intro {
  padding: 76px 0;
}
.shitaji-intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.shitaji-intro__lead {
  margin: 0 0 30px;
  color: #444;
  font-size: 14.5px;
  line-height: 2;
}
.shitaji-intro__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.shitaji-intro__points li {
  background: #f7f9fb;
  border: 1px solid #e7ecf1;
  border-radius: 4px;
  padding: 20px 10px 16px;
  text-align: center;
}
.shitaji-intro__points-label {
  display: block;
  margin-top: 10px;
  color: #05264f;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
}
.shitaji-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: #05264f;
}
.shitaji-icon svg { width: 100%; height: 100%; }
.shitaji-icon--light { color: #fff; width: 34px; height: 34px; }

.shitaji-intro__photo {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 16px 34px rgba(5, 38, 79, .10);
}
.shitaji-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 施工の流れ */
.shitaji-flow {
  position: relative;
  padding: 64px 0;
  background-image: url('../images/shitaji/flow-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.shitaji-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19, 25, 53, 0.7);
  pointer-events: none;
}
.shitaji-flow > .container {
  position: relative;
  z-index: 1;
}
.shitaji-flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.shitaji-flow__list li {
  position: relative;
  text-align: center;
  padding: 0 14px;
}
.shitaji-flow__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -6px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 255, 255, .35);
  border-right: 2px solid rgba(255, 255, 255, .35);
  transform: translateY(-50%) rotate(45deg);
}
.shitaji-flow__num {
  display: block;
  color: #c8a24a;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.shitaji-flow__list .shitaji-icon {
  margin: 0 auto 10px;
}
.shitaji-flow__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.shitaji-flow__text {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11.5px;
  line-height: 1.7;
}

/* 5つの下地処理工事 */
.shitaji-methods {
  padding: 76px 0;
}
.shitaji-methods__lead {
  margin: 0 0 34px;
  color: #444;
  font-size: 14px;
  line-height: 2;
  max-width: 860px;
}
.shitaji-methods__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.shitaji-method-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7e7e7;
  box-shadow: 0 10px 26px rgba(5, 38, 79, .06);
  text-decoration: none;
}
.shitaji-method-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.shitaji-method-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.shitaji-method-card:hover .shitaji-method-card__image img,
.shitaji-method-card:focus-visible .shitaji-method-card__image img {
  transform: scale(1.06);
}
.shitaji-method-card__num {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: #05264f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 10px;
}
.shitaji-method-card h3 {
  margin: 16px 16px 8px;
  color: #05264f;
  font-size: 14.5px;
}
.shitaji-method-card p {
  margin: 0 16px 14px;
  color: #555;
  font-size: 12.5px;
  line-height: 1.75;
  flex: 1;
}
.shitaji-method-card__link {
  margin: 0 16px 16px;
  color: #05264f;
  font-size: 12.5px;
  font-weight: 800;
}

/* 保有機械・設備 */
.shitaji-machine {
  background: #0a2a52;
  padding: 40px 0;
}
.shitaji-machine__row {
  padding: 30px 0;
}
.shitaji-machine__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.shitaji-machine__row--reverse .shitaji-machine__inner {
  grid-template-columns: 1fr 1.1fr;
}
.shitaji-machine__row--reverse .shitaji-machine__body { order: 1; }
.shitaji-machine__row--reverse .shitaji-machine__photo { order: 2; }
.shitaji-machine__photo {
  overflow: hidden;
  border-radius: 4px;
}
.shitaji-machine__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 900 / 620;
}
.shitaji-machine__label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  background: rgba(181, 160, 103, .1);
  border: 1px solid #b5a067;
  border-radius: 999px;
  color: #fff;
  font-size: 11.5px;
  letter-spacing: .04em;
}
.shitaji-machine__body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
}
.shitaji-machine__bar {
  display: inline-block;
  width: 6px;
  height: 22px;
  background: #b5a067;
  border-radius: 2px;
  flex: none;
}
.shitaji-machine__text {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
  line-height: 1.9;
}
.shitaji-machine__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.shitaji-machine__btn:hover {
  background: #b5a067;
  border-color: #b5a067;
  color: #fff;
}
.shitaji-machine__ghost {
  position: absolute;
  right: 4%;
  bottom: -18px;
  color: rgba(255, 255, 255, .06);
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

/* 最新施工実績 */
.shitaji-works {
  padding: 76px 0;
  background: #f7f9fb;
}
.shitaji-works__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.shitaji-works__head .shitaji-heading { margin-bottom: 0; }
.shitaji-works__all {
  color: #05264f;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.shitaji-works__all:hover { text-decoration: underline; }
.shitaji-works__note {
  margin: 10px 0 28px;
  color: #999;
  font-size: 11.5px;
}
.shitaji-works__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

/*
  施工実績カード（独自デザイン）。
  データ取得は /works/_functions.php（jf_db・jf_normalize_work等）を使い、
  desk配下には一切依存しない。見た目はこのページ専用に組んでいる。
*/
.shitaji-work-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7ecf1;
}
.shitaji-work-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.shitaji-work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.shitaji-work-card__image:hover img,
.shitaji-work-card__image:focus-visible img {
  transform: scale(1.06);
}
.shitaji-work-card__location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 12px 12px 2px;
  color: #05264f;
  font-size: 14.5px;
  font-weight: 800;
}
.shitaji-work-card__pin {
  width: 13px;
  height: 13px;
  flex: none;
  display: block;
}
.shitaji-work-card h3 {
  margin: 4px 12px 16px;
  color: #333;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

/* CTA */
.shitaji-cta {
  background: #0a2a52;
  padding: 40px 0;
}
.shitaji-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}
.shitaji-cta__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 800;
}
.shitaji-cta__note {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
}
.shitaji-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: #fff;
  color: #05264f;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
}
.shitaji-cta__btn:hover { opacity: .9; }

/* ==================== レスポンシブ ==================== */
@media (max-width: 960px) {
  .page-shitaji .works-loop-hero__shade {
    background: linear-gradient(90deg, rgba(5,21,42,.88) 0%, rgba(5,21,42,.64) 42%, rgba(5,21,42,.16) 76%, rgba(5,21,42,.06) 100%);
  }
  .page-shitaji .works-loop-hero__content {
    width: min(500px, 72vw);
  }
  .shitaji-intro__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .shitaji-intro__photo { order: -1; }
  .shitaji-flow__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .shitaji-flow__list li:nth-child(3)::after { content: ""; }
  .shitaji-methods__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shitaji-machine__inner,
  .shitaji-machine__row--reverse .shitaji-machine__inner {
    grid-template-columns: 1fr;
  }
  .shitaji-machine__row--reverse .shitaji-machine__body,
  .shitaji-machine__row--reverse .shitaji-machine__photo { order: initial; }
  .shitaji-works__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shitaji .works-loop-hero {
    height: 280px;
  }
  .page-shitaji .works-loop-hero__breadcrumb {
    left: 0;
    bottom: 12px;
    font-size: 11px;
  }
  .page-shitaji .works-loop-hero__content {
    width: 88vw;
    padding-left: 0;
  }
  .page-shitaji .works-loop-hero h1 {
    font-size: 28px;
  }
  .page-shitaji .works-loop-hero__lead {
    font-size: 12.5px;
    line-height: 1.75;
  }
  .shitaji-intro,
  .shitaji-methods,
  .shitaji-works {
    padding-top: 44px;
    padding-bottom: 48px;
  }
  .shitaji-intro__points {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .shitaji-flow__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }
  /* 2カラム表示では行末（偶数番目）の矢印のみ非表示にする */
  .shitaji-flow__list li:nth-child(2)::after,
  .shitaji-flow__list li:nth-child(4)::after { content: "" !important; }
  .shitaji-methods__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shitaji-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shitaji-works__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .shitaji-cta__inner {
    flex-direction: column;
    text-align: center;
  }
}
