/**
 * STORY — sticky 3幕（front page限定・2026-08-20）
 * 色・書体はテーマトークンに従う（navy #0A1628 / accent #00D9FF）。
 * 900px以下と prefers-reduced-motion では sticky を解除して縦積み。
 */
.p-story {
  position: relative;
  height: 340vh;
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  z-index: 4;
  background-image:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 30px 30px;
  background-position: 0 0;
  background-color: var(--color-bg-dark, #0A1628);
  background-blend-mode: normal;
}
.p-story::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 76% 22%, rgba(0, 217, 255, .10), transparent 68%),
    radial-gradient(40% 34% at 12% 84%, rgba(0, 153, 204, .12), transparent 70%);
}
.p-story__vp {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.p-story__eyebrow {
  font-family: var(--font-mono, "Courier New", monospace);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-primary, #00D9FF);
  margin: 0;
}
.p-story__heading {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  color: #fff;
}
.p-story__panels {
  position: relative;
  margin-top: 30px;
  min-height: 19em;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 26px;
}
.p-story__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.p-story__panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.p-story__panel .p-story__title {
  clip-path: inset(0 0 102% 0);
  transform: translateY(14px);
  transition: clip-path .6s cubic-bezier(.22,.61,.36,1) .08s, transform .6s cubic-bezier(.22,.61,.36,1) .08s;
}
.p-story__panel.is-on .p-story__title { clip-path: inset(0 0 -10% 0); transform: none; }
.p-story__phase {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.66);
}
.p-story__phase-no {
  color: var(--color-primary, #00D9FF);
  font-variant-numeric: tabular-nums;
  margin-right: 12px;
}
.p-story__title {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .03em;
  color: #fff;
  margin: 0;
}
.p-story__body {
  margin: 18px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 15.5px;
  line-height: 2;
  max-width: 27em;
}
.p-story__list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.p-story__list li {
  font-size: 14.5px;
  color: rgba(255,255,255,.86);
  padding-left: 20px;
  position: relative;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s cubic-bezier(.22,.61,.36,1), transform .45s cubic-bezier(.22,.61,.36,1);
}
.p-story__panel.is-on .p-story__list li { opacity: 1; transform: none; }
.p-story__panel.is-on .p-story__list li:nth-child(1) { transition-delay: .18s; }
.p-story__panel.is-on .p-story__list li:nth-child(2) { transition-delay: .30s; }
.p-story__panel.is-on .p-story__list li:nth-child(3) { transition-delay: .42s; }
.p-story__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 8px;
  height: 1px;
  background: var(--color-primary, #00D9FF);
}
.p-story__cta { margin: 24px 0 0; }
.p-story__cta a {
  display: inline-block;
  font-size: 14.5px;
  letter-spacing: .04em;
  color: var(--color-primary, #00D9FF);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,217,255,.45);
  padding-bottom: 3px;
  transition: border-color .25s ease, transform .25s ease;
}
.p-story__cta a:hover, .p-story__cta a:focus-visible { border-color: var(--color-primary, #00D9FF); transform: translateX(4px); }
.p-story__bar { display: flex; gap: 8px; margin-top: 34px; }
.p-story__seg {
  flex: 1;
  height: 18px;
  padding: 8px 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  display: block;
}
.p-story__seg::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255,255,255,.18); }
.p-story__seg b { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--color-primary, #00D9FF); transform: scaleX(0); transform-origin: left; transition: transform .35s linear; display: block; }
.p-story__seg:hover::before, .p-story__seg:focus-visible::before { background: rgba(255,255,255,.36); }
.p-story__seg:focus-visible { outline: 2px solid var(--color-primary, #00D9FF); outline-offset: 2px; }

.p-story__stage { position: relative; height: min(62vh, 500px); }
.p-story__art {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: scale(.96) translateY(20px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 42px 96px rgba(0,0,0,.55);
  background: #12233b;
}
.p-story__art.is-on { opacity: 1; transform: none; z-index: 3; }
.p-story__art.is-prev {
  opacity: .28;
  transform: scale(.94) translateY(-18px);
  z-index: 1;
  filter: saturate(.6) brightness(.7);
}
.p-story__art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transform: scale(1.0);
  transition: transform 7s linear;
}
.p-story__art.is-on img { transform: scale(1.07); }
.p-story__art--browser { background: #131F33; }
.p-story__art--browser::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 34px;
  background: #131F33;
  border-bottom: 1px solid rgba(255,255,255,.10);
  z-index: 4;
}
.p-story__art--browser::after {
  content: "";
  position: absolute;
  left: 16px; top: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.34);
  box-shadow: 14px 0 0 rgba(255,255,255,.22), 28px 0 0 rgba(255,255,255,.14);
  z-index: 3;
}
.p-story__art--browser img { padding-top: 34px; object-position: top center; background: #fff; }
.p-story__capno {
  color: var(--color-primary, #00D9FF);
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}
.p-story__num { /* 常に画像より前 */
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  z-index: 4;
  pointer-events: none;
  font-weight: 800;
  font-size: clamp(5rem, 9vw, 8.5rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.p-story__num span {
  position: absolute;
  right: 0;
  bottom: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 217, 255, .5);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
.p-story__num span.is-on { opacity: 1; transform: none; }
.p-story__art figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  color: #fff;
  background: rgba(10,22,40,.94);
}

@media (max-width: 900px) {
  .p-story { height: auto; padding: 88px 0 72px; }
  .p-story__num { display: none; }
  .p-story__vp { position: static; height: auto; grid-template-columns: 1fr; gap: 30px; }
  .p-story__panels { position: static; min-height: 0; display: flex; flex-direction: column; gap: 44px; margin-top: 22px; }
  .p-story__panel { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .p-story__bar { display: none; }
  .p-story__stage { height: 46vh; }
  .p-story__art { position: relative; opacity: 1; transform: none; height: 100%; }
  .p-story__art:not(:first-of-type) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p-story { height: auto; padding: 88px 0 72px; }
  .p-story__num { display: none; }
  .p-story__list li { opacity: 1; transform: none; transition: none; }
  .p-story__art img { transition: none; transform: none; }
  .p-story__panel .p-story__title { clip-path: none; transform: none; transition: none; }
  .p-story__art.is-prev { opacity: 1; transform: none; filter: none; }
  .p-story__vp { position: static; height: auto; }
  .p-story__panel, .p-story__art { position: static; opacity: 1; transform: none; transition: none; }
  .p-story__panels { display: flex; flex-direction: column; gap: 44px; min-height: 0; }
  .p-story__bar { display: none; }
  .p-story__art:not(:first-of-type) { display: none; }
}
