/* HERO */
.hero { position: relative; height: 100svh; overflow: hidden; background: var(--bc-ink-950); }
.hero__video-wrap { position: absolute; inset: 0; pointer-events: none; }
.hero__video-wrap iframe {
  width: 177.78vh; height: 56.25vw;
  min-width: 100%; min-height: 100%;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero__trust-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 0 clamp(24px, 6vw, 80px);
  background: linear-gradient(135deg, rgba(5,11,24,0.65) 0%, rgba(5,11,24,0.2) 100%);
}
.hero__overlay .en-hero { color: #fff; margin-top: var(--bc-sp-5); }
.hero__ja { font-size: clamp(1rem, 2.5vw, 1.5rem); color: rgba(255,255,255,0.75); margin-top: var(--bc-sp-4); font-weight: var(--bc-w-medium); }
.hero__overlay > div { display: flex; gap: var(--bc-sp-4); margin-top: var(--bc-sp-8); flex-wrap: wrap; }
.btn--outline-white { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.hero__scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); }
.hero__scroll-line { width: 1px; height: 48px; background: rgba(255,255,255,0.3); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(0.5)} }

/* ABOUT */
.top-about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bc-sp-16); align-items: center; }
.top-about__visual { height: 400px; opacity: 0.15; border-radius: var(--bc-radius-xl); }
@media (max-width: 900px) { .top-about__inner { grid-template-columns: 1fr; } .top-about__visual { display: none; } }

/* SERVICE */
.top-service {
  padding: var(--bc-sp-20) 0;
  background: var(--bc-bg);
}
.top-service__header { margin-bottom: var(--bc-sp-12); }
.top-service__heading {
  font-family: var(--bc-font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-top: var(--bc-sp-4);
  color: var(--bc-fg);
}

/* フィーチャードカード */
.top-service__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bc-ink-950);
  color: var(--bc-paper);
  border-radius: var(--bc-radius-xl);
  overflow: hidden;
  text-decoration: none;
  min-height: 280px;
  position: relative;
  transition: opacity var(--transition);
  margin-bottom: var(--bc-sp-2);
}
.top-service__featured::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,174,239,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.top-service__featured:hover { opacity: 0.9; }
.top-service__featured-body {
  padding: var(--bc-sp-10) var(--bc-sp-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; z-index: 1;
}
.top-service__featured-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bc-brand);
  margin-bottom: var(--bc-sp-4);
}
.top-service__featured-name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--bc-tracking-tight);
}
.top-service__featured-desc {
  font-size: 0.875rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  margin-top: var(--bc-sp-4);
  max-width: 360px;
}
.top-service__featured-cta {
  display: inline-block;
  margin-top: var(--bc-sp-6);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bc-brand);
}
.top-service__featured-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 1;
  overflow: hidden;
}
.top-service__featured-sub span {
  font-family: var(--bc-font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  user-select: none;
}

/* サービス一覧リスト */
.top-service__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--bc-border);
  border-left: 1px solid var(--bc-border);
  margin-top: 0;
}
.top-service__list-item {
  border-bottom: 1px solid var(--bc-border);
  border-right: 1px solid var(--bc-border);
}
.top-service__list-item a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--bc-sp-5) var(--bc-sp-5);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.top-service__list-item a:hover { background: var(--bc-paper-2); }
.top-service__list-item a:hover .top-service__list-arrow { color: var(--bc-brand); }
.top-service__list-en {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bc-fg-subtle);
}
.top-service__list-ja {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bc-fg);
}
.top-service__list-arrow {
  font-size: 0.8rem;
  color: var(--bc-fg-subtle);
  margin-top: var(--bc-sp-2);
  transition: color var(--transition);
}
.top-service__footer {
  margin-top: var(--bc-sp-10);
  text-align: center;
}
@media (max-width: 900px) {
  .top-service__featured { grid-template-columns: 1fr; }
  .top-service__featured-sub { display: none; }
  .top-service__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) { .top-service__list { grid-template-columns: 1fr; } }

/* WORKS MARQUEE */
.top-works-marquee {
  padding: var(--bc-sp-16) 0 var(--bc-sp-20);
  background: var(--bc-ink-950);
  overflow: hidden;
}
.top-works-marquee__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--bc-sp-12);
}
.top-works-marquee__header .en-label { color: var(--bc-brand); }
.top-works-marquee__header .en-heading { color: var(--bc-paper); }
.top-works-marquee__header .btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}
.top-works-marquee__header .btn--outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.top-works-marquee__stage {
  position: relative;
  height: 520px;
  overflow: hidden;
}

/* 共通レイヤー */
.marquee-layer {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
}
.marquee-layer--bg {
  top: -60px; bottom: -60px; /* 上下にはみ出して大きく見せる */
}
.marquee-layer--fg {
  top: 0; bottom: 0;
}
.marquee-track {
  display: flex;
  gap: 16px;
  align-items: center;
  will-change: transform;
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track--slow { animation: marquee-scroll 120s linear infinite reverse; }
.marquee-track--fast { animation: marquee-scroll 45s linear infinite; }

/* 背面レイヤー */
.marquee-layer--bg {
  z-index: 1;
  filter: blur(3px);
  opacity: 0.45;
}

/* 前面レイヤー */
.marquee-layer--fg { z-index: 2; }
.top-works-marquee__stage:hover .marquee-track { animation-play-state: paused; }

/* アイテム共通 */
.marquee-item {
  flex-shrink: 0;
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bc-ink-800);
}
.marquee-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.marquee-item__placeholder { width: 100%; height: 100%; }

/* 前面アイテム */
.marquee-item--fg { text-decoration: none; cursor: pointer; }
.marquee-item--fg:hover img { transform: scale(1.04); }
.marquee-item__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(to top, rgba(5,11,24,0.85) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.marquee-item--fg:hover .marquee-item__label { opacity: 1; }
.marquee-item__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  white-space: normal;
}

/* WORKS → TEAM 境界線 */
.top-team { border-top: 1px solid rgba(255,255,255,0.1); }

/* TEAM */
.top-team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--bc-sp-8); }
.top-team__avatar { aspect-ratio: 1; background-color: var(--bc-ink-800); border-radius: var(--bc-radius-lg); opacity: 0.3; }
.top-team__name { font-size: 1.1rem; font-weight: var(--bc-w-bold); color: var(--bc-paper); margin-top: var(--bc-sp-2); }
.top-team__role { font-size: 0.85rem; color: var(--bc-fg-muted); margin-top: 2px; }
@media (max-width: 900px) { .top-team__grid { grid-template-columns: repeat(2, 1fr); } }

/* NEWS */
.top-news__list { border-top: 1px solid var(--bc-border); }
.top-news__item { display: grid; grid-template-columns: 120px auto 1fr; align-items: center; gap: var(--bc-sp-6); padding: var(--bc-sp-5) 0; border-bottom: 1px solid var(--bc-border); }
.top-news__cat { font-size: 0.75rem; background: var(--bc-paper-2); padding: 3px 10px; border-radius: var(--bc-radius-full); }
.top-news__title { font-size: 0.95rem; }
@media (max-width: 700px) { .top-news__item { grid-template-columns: 1fr; gap: var(--bc-sp-2); } }
