/* ============ TOP page specific ============ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--txt-light);
  overflow: hidden;
}
/* HERO slider — 背景4枚を横スライス（帯）でスライドアウトして下の画像を露出 + Ken Burns
   ・中央のロゴ/コピーは .hero__inner（z上位）で常時固定表示
   ・.hero__layer = 表示中の1枚絵（フルブリード）＋ゆっくりズーム
   ・.hero__bands = 切替時だけ、前の画像を帯に分割して横へ stagger スライドアウト */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__src {
  display: none;
}
.hero__stage {
  position: absolute;
  inset: 0;
}
.hero__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
}
.hero__layer.kb {
  animation: heroKenBurns 6s linear both;
}
@keyframes heroKenBurns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.1) translate(1.2%, -1.2%);
  }
}
.hero__bands {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
/* 縦横どちらのスライスにも対応（位置・寸法はJSがインラインで指定） */
.hero__strip {
  position: absolute;
  overflow: hidden;
  will-change: transform;
}
.hero__strip-img {
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    linear-gradient(
      180deg,
      rgba(18, 19, 22, 0.55) 0%,
      rgba(18, 19, 22, 0.2) 35%,
      rgba(18, 19, 22, 0.85) 100%
    ),
    linear-gradient(90deg, rgba(18, 19, 22, 0.7) 0%, rgba(18, 19, 22, 0) 55%);
}
.hero__vlabel {
  position: absolute;
  right: 18px;
  top: 55%;
  transform: rotate(90deg);
  transform-origin: right center;
  color: var(--yellow);
  white-space: nowrap;
  z-index: 3;
  font-size: 0.66rem;
  opacity: 0.85;
}
.hero__inner {
  position: relative;
  z-index: 4;
  padding-top: clamp(110px, 16vh, 170px);
  padding-bottom: clamp(70px, 10vw, 120px);
  width: 100%;
}
.hero__eyebrow {
  color: var(--yellow);
  margin-bottom: 22px;
}
.hero__catch {
  font-size: clamp(50px, 11vw, 138px);
  line-height: 1.04;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.hero__catch .hi {
  color: var(--yellow);
}
.hero__sub {
  margin-top: 26px;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 2;
  color: #e7e3d9;
  max-width: 46ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero__mark {
  position: absolute;
  right: -2vw;
  bottom: -3vw;
  z-index: 2;
  pointer-events: none;
  font-size: 24vw;
  line-height: 0.7;
  color: rgba(47, 128, 80, 0.16);
  letter-spacing: -0.02em;
}
.hero__scroll {
  position: absolute;
  left: var(--gut);
  bottom: 26px;
  z-index: 4;
  color: #e7e3d9;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
}
.hero__scroll span {
  width: 50px;
  height: 1px;
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-100%);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% {
    transform: translateX(-100%);
  }
  60% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ---------- INTRO ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.intro__head .tag {
  margin-bottom: 18px;
}
.intro__head h2 {
  font-family: var(--f-disp);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.25;
}
.intro__body {
  display: grid;
  gap: 22px;
}
@media (max-width: 820px) {
  .intro__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- STAT BAND ---------- */
.statband {
  padding: clamp(40px, 6vw, 68px) 0;
}
.statband__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid rgba(245, 197, 24, 0.4);
  padding-left: 20px;
}
.stat b {
  font-size: clamp(34px, 5vw, 60px);
  color: var(--yellow);
  line-height: 1;
}
.stat span {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat small {
  color: var(--txt-lmut);
}
@media (max-width: 680px) {
  .statband__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }
}

/* ---------- SERVICES ---------- */
.svc__list {
  display: grid;
  gap: 0;
}
.svc {
  display: grid;
  grid-template-columns: 120px 280px 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: 30px 0;
  border-top: 1px solid var(--ink-3);
  transition: padding-left 0.35s var(--ease);
}
.svc:last-child {
  border-bottom: 1px solid var(--ink-3);
}
.svc:hover {
  padding-left: 18px;
}
.svc .bignum {
  transition: transform 0.35s var(--ease);
}
.svc:hover .bignum {
  transform: translateY(-4px);
}
.svc__pic {
  aspect-ratio: 16/10;
}
.svc__txt h3 {
  font-size: clamp(20px, 2.4vw, 30px);
}
.svc__txt small {
  color: var(--yellow);
  display: block;
  margin: 6px 0 12px;
}
.svc__txt p {
  color: var(--txt-lmut);
  font-size: 14px;
  line-height: 1.9;
  max-width: 52ch;
}
.svc__ar {
  font-size: 34px;
  color: var(--ink-3);
  transition:
    color 0.3s,
    transform 0.3s var(--ease);
}
.svc:hover .svc__ar {
  color: var(--yellow);
  transform: translateX(8px);
}
@media (max-width: 1000px) {
  .svc {
    grid-template-columns: 80px 1fr;
    grid-template-areas: "num txt" "pic pic";
    gap: 18px 24px;
  }
  .svc .bignum {
    grid-area: num;
  }
  .svc__txt {
    grid-area: txt;
  }
  .svc__pic {
    grid-area: pic;
    aspect-ratio: 16/7;
  }
  .svc__ar {
    display: none;
  }
}

/* ---------- WORKS ---------- */
.works__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.wcard {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.wcard .ph {
  aspect-ratio: 4/3;
  transition: transform 0.6s var(--ease);
}
.wcard--lg {
  grid-row: span 2;
}
.wcard--lg .ph {
  aspect-ratio: auto;
  height: 100%;
  min-height: 340px;
}
.wcard:hover .ph {
  transform: scale(1.05);
}
.wcard__meta {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(18, 19, 22, 0.9), transparent);
  color: #fff;
  display: grid;
  gap: 8px;
}
.wcard__meta .tag {
  color: var(--yellow);
  width: fit-content;
}
.wcard__meta h3 {
  font-size: 18px;
  font-weight: 700;
}
.wcard__meta small {
  color: var(--txt-lmut);
}
@media (max-width: 760px) {
  .works__grid {
    grid-template-columns: 1fr;
  }
  .wcard--lg {
    grid-row: auto;
  }
  .wcard--lg .ph {
    min-height: 0;
    aspect-ratio: 4/3;
  }
}

/* ---------- WHY ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.why {
  border-top: 3px solid var(--green);
  padding-top: 26px;
}
.why .bignum {
  font-size: clamp(40px, 5vw, 64px);
}
.why h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 14px 0 12px;
}
.why p {
  color: var(--txt-lmut);
  font-size: 14px;
  line-height: 1.95;
}
@media (max-width: 820px) {
  .why__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* ---------- COMPANY TEASER ---------- */
.company-t__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.company-t__pic {
  aspect-ratio: 4/5;
  min-height: 340px;
}
.minitable {
  margin: 26px 0 30px;
  border-top: 1px solid var(--paper-line);
}
.minitable > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-line);
}
.minitable dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green);
  padding-top: 3px;
}
.minitable dd {
  font-size: 14px;
  font-weight: 500;
}
@media (max-width: 820px) {
  .company-t__grid {
    grid-template-columns: 1fr;
  }
  .company-t__pic {
    aspect-ratio: 16/10;
    min-height: 0;
  }
}
