body {
  background: black;
  color: white;
  overflow-x: hidden;
}

/* 進捗バー */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 4px;
  width: 100%;
  background: transparent;
  z-index: 50;
}
.progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

/* セクション */
.sec {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  height: 700px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .kv {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.hero .kv img {
  width: 140%;
  height: 140%;
  margin-left: -20%;
  margin-top: -20%;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
}
.hero .title {
  position: relative;
  color: white;
  text-align: center;
  font-size: clamp(28px, 4.5vw, 48px);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.features {
  display: grid;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
}

.horizontal {
  position: relative;
  overflow: hidden;
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem + 48px);
}

.pin .track {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 0 1rem;
  width: max-content;
  will-change: transform;
}

.pin .panel {
  flex: 0 0 480px;
}

.pin .panel-item {
  width: 480px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  background: lightgray;
  color: black;
  height: 360px;
}

.footer {
  min-height: 80svh;
  display: grid;
  place-items: center;
  color: white;
}

/* 初期のリビール状態（JSで解除） */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  .progress {
    display: none;
  }
}

/* --- Counters (scroll-driven) --- */
.counters .counter-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}
.counters .counter-box {
  text-align: center;
  border: 1px solid rgba(229, 229, 229, 0.5);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
}
.counters .counter {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.counters .counter-box p {
  margin: 8px 0 0;
  color: #d1d5db;
}

/* --- SVG line draw (scroll-scrub) --- */
.svgline svg {
  width: min(92vw, 900px);
  height: 200px;
  display: block;
  margin: 0 auto;
}
.svgline path {
  stroke: currentColor;
  stroke-width: 4;
  fill: none;
}
.svgline .caption {
  text-align: center;
  margin-top: 12px;
  color: #d1d5db;
}
