/* ═══════════════════════════════════════════
   KNOWAVE / 論文ラジオ — CASE STUDY
   既存 style.css のトークンを継承。新規トークンは
   アクセント2色のみ、すべて .kw スコープに閉じる。
   ═══════════════════════════════════════════ */

.kw {
  /* ── ページ限定アクセント ──────────────────
     ロゴは完全なモノクロのため、色はキャラクター
     (フクロウ) から抽出。自動化レベルを寒色→暖色
     の温度勾配で表現する。
     コントラスト比は背景 #131315 に対する実測値。 */
  --kw-auto:  #4d84f7;   /* Full AI            5.27:1  既存 --blue は 3.98:1 で不足 */
  --kw-mixed: #a3a19a;   /* AI + Human Review  7.18:1  = --ink-dim */
  --kw-human: #e8a33d;   /* Human-led          8.60:1  フクロウ由来のアンバー */

  /* ── 余白スケール(既存セクションの値を踏襲) ── */
  --kw-pad-y: clamp(4rem, 9vw, 7rem);
  --kw-pad-x: clamp(1.2rem, 4vw, 3.5rem);

}

/* main には overflow を掛けない。overflow-x:hidden は overflow-y を
   auto に昇格させ、不要なスクロールコンテナを作ってしまうため
   (横あふれの抑制は body 側の overflow-x:hidden が担当する)。 */

/* 日本語プロースの基本 */
.kw p { font-weight: 500; }

/* セクション共通の小見出し */
.kw-sec-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.kw-asof {
  display: inline-block;
  margin-left: 0.9em;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

/* ══════════ BACK LINK ══════════ */
.kw-back {
  position: fixed;
  top: clamp(1rem, 2.5vw, 1.8rem);
  left: clamp(1.2rem, 4vw, 3.5rem);
  z-index: 9994;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
  mix-blend-mode: difference;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.kw-back:hover { opacity: 0.55; }
/* 固定表示のままだとスクロール中のコンテンツと重なるため、
   下方向へのスクロール中だけ引っ込める(上方向で即復帰)。 */
.kw-back.is-tucked {
  opacity: 0;
  transform: translateY(-140%);
  pointer-events: none;
}

/* ══════════ 01 HERO ══════════ */
.kw-hero {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.6rem, 3.5vw, 2.6rem);
  padding: calc(var(--kw-pad-y) + 2rem) var(--kw-pad-x) var(--kw-pad-y);
}
.kw-hero__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-family: var(--font-body);
}
.kw-hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin: 0;
}
.kw-hero__logo {
  width: min(72vw, 620px);
  height: auto;
}
.kw-hero__sub {
  width: min(34vw, 250px);
  height: auto;
  opacity: 0.9;
}
.kw-hero__thesis {
  font-size: clamp(1.05rem, 2.3vw, 1.7rem);
  font-weight: 500;
  line-height: 1.85;
  max-width: 34em;
}
.kw-hero__thesis em {
  font-style: normal;
  color: var(--kw-human);
  font-weight: 600;
}
.kw-hero__meta {
  font-size: 0.82rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.kw-hero__meta a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dim);
  margin-left: 0.8em;
  padding-bottom: 2px;
  transition: border-color 0.4s var(--ease);
}
.kw-hero__meta a:hover { border-color: var(--line); }

/* ══════════ 02 OVERVIEW / ROLE ══════════ */
.kw-overview {
  position: relative;
  padding: var(--kw-pad-y) var(--kw-pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line-dim);
}
.kw-overview__vline {
  left: calc(var(--kw-pad-x) - 1.6rem);
  top: var(--kw-pad-y);
  height: calc(100% - var(--kw-pad-y) * 2);
}
.kw-overview__text { max-width: 46em; }
.kw-overview__role {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.kw-overview__body {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  line-height: 1.95;
  color: var(--ink-dim);
  max-width: 38em;
}

/* ── 見出し数値 ── */
.kw-headline {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line-dim);
}
.kw-headline__value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kw-headline__arrow { color: var(--kw-human); margin: 0 0.15em; }
.kw-headline__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 0.9rem;
}
.kw-headline__context {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.8;
  color: var(--ink-dim);
  margin-top: 0.7rem;
  max-width: 30em;
}

/* ── フクロウ(アンビエントループ) ── */
.kw-overview__char {
  position: relative;
  justify-self: end;
  align-self: end;
  pointer-events: none;
}
.kw-owl {
  display: block;
  width: clamp(200px, 26vw, 380px);
  height: auto;
  will-change: transform;
}
/* 影はアルファ付き(WebM/VP9)が再生できるときだけ。合成済み MP4 に
   drop-shadow を掛けると矩形の箱が浮いて見えるため。JS が付与する。 */
.kw-owl--alpha { filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.55)); }

/* ══════════ 03 PIPELINE — SIGNATURE ══════════ */
.kw-pipe {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) var(--kw-pad-x) var(--kw-pad-y);
  border-top: 1px solid var(--line-dim);
  overflow: hidden;
}
.kw-pipe__head {
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  max-width: 62em;
}
.kw-pipe__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.kw-pipe__title span { display: block; }
.kw-pipe__lede {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  line-height: 1.95;
  color: var(--ink-dim);
  max-width: 40em;
}
.kw-pipe__lede strong { color: var(--ink); font-weight: 600; }

/* ── 再生成したマスコット ── */
.kw-character {
  margin: 0;
  pointer-events: none;
  user-select: none;
}
.kw-character img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.48));
  animation: kwMascotFloat 6.4s ease-in-out infinite;
}
.kw-character--director {
  position: absolute;
  z-index: 1;
  top: clamp(4.4rem, 8vw, 6.8rem);
  right: clamp(-2.2rem, 0.5vw, 0.5rem);
  width: clamp(190px, 24vw, 330px);
}
.kw-character--director img { animation-delay: -1.7s; }

@keyframes kwMascotFloat {
  0%, 100% { transform: translateY(0) rotate(-0.35deg); }
  50% { transform: translateY(-10px) rotate(0.35deg); }
}

/* ── スケール表示 ── */
.kw-pipe__scale {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.6rem;
  padding-left: clamp(0, 3vw, 3.4rem);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.kw-pipe__scale-line {
  flex: 1 1 auto;
  max-width: 46%;
  height: 1px;
  background: linear-gradient(90deg, var(--kw-auto), var(--kw-mixed), var(--kw-human));
  opacity: 0.55;
}

/* ── 工程リスト(= 図の本体。CSSなしでも番号付きリストとして読める) ── */
.kw-pipe__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(1.4rem, 3vw, 3.4rem);
}
/* 縦のスパイン */
.kw-pipe__list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 1.5px;
  background: var(--line-dim);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease);
}
.kw-pipe__list.is-drawn::before { transform: scaleY(1); }

.kw-pipe__stage {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 15rem) minmax(0, 1fr);
  align-items: center;
  gap: 0 1rem;
  padding: clamp(0.9rem, 1.8vw, 1.5rem) 0;
  border-bottom: 1px solid rgba(245, 244, 241, 0.07);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.kw-pipe__stage.is-in { opacity: 1; transform: none; }
.kw-pipe__stage:last-child { border-bottom: 0; }

/* スパイン上のドット */
.kw-pipe__stage::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.4rem, 3vw, 3.4rem) * -1 - 4px);
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line-dim);
  transform: translateY(-50%) scale(0);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + 200ms);
}
.kw-pipe__stage.is-in::before { transform: translateY(-50%) scale(1); }
.kw-pipe__stage[data-level="1"].is-in::before { border-color: var(--kw-auto); }
.kw-pipe__stage[data-level="2"].is-in::before { border-color: var(--kw-mixed); }
.kw-pipe__stage[data-level="3"].is-in::before { border-color: var(--kw-human); }

.kw-pipe__num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.kw-pipe__name {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* バーの長さ = 人間の判断の度合い。バッジがバーの先端に乗るので、
   7工程のバッジ位置が階段状に右へ移動する = 受け渡しの形が図になる。 */
.kw-pipe__track {
  --w: 4%;
  display: flex;
  align-items: center;
  min-width: 0;
}
.kw-pipe__stage[data-level="1"] .kw-pipe__track { --w: 4%;  color: var(--kw-auto); }
.kw-pipe__stage[data-level="2"] .kw-pipe__track { --w: 26%; color: var(--kw-mixed); }
.kw-pipe__stage[data-level="3"] .kw-pipe__track { --w: 52%; color: var(--kw-human); }

.kw-pipe__bar {
  flex: 0 0 var(--w);
  height: 1.5px;
  background: currentColor;
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + 120ms);
}
.kw-pipe__stage.is-in .kw-pipe__bar { transform: scaleX(1); }

/* バッジ。ラベルは指定された表記のまま(大文字変換しない) */
.kw-pipe__badge {
  flex: 0 0 auto;
  margin-left: 0.85rem;
  padding: 0.42em 0.95em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.kw-badge--auto  { color: var(--kw-auto);  background: rgba(77, 132, 247, 0.09); }
.kw-badge--mixed { color: var(--kw-mixed); background: rgba(163, 161, 154, 0.09); }
.kw-badge--human { color: var(--kw-human); background: rgba(232, 163, 61, 0.09); }

/* Human-led の工程はわずかに強調 */
.kw-pipe__stage--human .kw-pipe__name { color: var(--ink); }
.kw-pipe__stage:not(.kw-pipe__stage--human) .kw-pipe__name { color: rgba(245, 244, 241, 0.82); }

/* ── Human-led の引用 ── */
.kw-quote {
  position: relative;
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  padding: clamp(2rem, 4vw, 3rem) 0 0;
  border-top: 1px solid var(--line-dim);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 3.5vw, 3rem);
}
.kw-quote__char {
  width: clamp(84px, 12vw, 160px);
  height: auto;
  align-self: center;
}
.kw-quote__body { margin: 0; }
.kw-quote__body p {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(1rem, 1.9vw, 1.45rem);
  line-height: 2.05;
  max-width: 34em;
}
.kw-quote__body p + p { margin-top: 0.9em; }
.kw-quote__body p:first-child {
  color: var(--kw-human);
}

/* ── 図の下の注記 ── */
.kw-pipe__note {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-left: 2.2rem;
  max-width: 46em;
}
.kw-pipe__note .vline { left: 0; top: 0.35rem; height: calc(100% - 0.7rem); }
.kw-pipe__note p {
  font-size: clamp(0.85rem, 1.2vw, 0.98rem);
  line-height: 1.95;
  color: var(--ink-dim);
}
.kw-pipe__note p + p { margin-top: 0.75em; }
.kw-pipe__note-small { font-size: 0.78rem !important; opacity: 0.72; }

/* ══════════ 04 NUMBERS ══════════ */
.kw-stats {
  position: relative;
  padding: var(--kw-pad-y) var(--kw-pad-x);
  border-top: 1px solid var(--line-dim);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 290px);
  column-gap: clamp(1.8rem, 4vw, 4rem);
  align-items: end;
  overflow: hidden;
}
.kw-stats > .kw-sec-label { grid-column: 1 / -1; }
.kw-stats__grid {
  grid-column: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
}
.kw-character--analyst {
  grid-column: 2;
  width: min(100%, 270px);
  justify-self: end;
  align-self: end;
  margin-bottom: -1.5rem;
}
.kw-character--analyst img { animation-delay: -3.2s; }
.kw-stat {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dim);
  transition: transform 0.55s var(--ease), border-color 0.45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .kw-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 163, 61, 0.6);
  }
}
.kw-stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.kw-stat__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: 0.5rem;
}
.kw-stat__note {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ink-dim);
  margin-top: 0.45rem;
}

/* ══════════ 05 WORKED / DIDN'T ══════════ */
.kw-plays {
  padding: var(--kw-pad-y) var(--kw-pad-x);
  border-top: 1px solid var(--line-dim);
}
.kw-plays__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.kw-plays__head {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 0.7rem;
  border-bottom: 1.5px solid currentColor;
}
.kw-plays__head--up { color: var(--kw-human); }
.kw-plays__head--down { color: var(--ink-dim); }
.kw-plays__sub {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ink-dim);
  margin-top: 0.8rem;
}
.kw-plays__list {
  list-style: none;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  padding: 0;
  counter-reset: play;
}
.kw-play {
  position: relative;
  padding: 1.4rem 0 1.4rem 2.6rem;
  border-top: 1px solid rgba(245, 244, 241, 0.09);
}
.kw-play::before {
  counter-increment: play;
  content: counter(play, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.55rem;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.kw-play__row {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr);
  gap: 0.2rem 0.8rem;
  align-items: baseline;
}
.kw-play__row + .kw-play__row { margin-top: 0.5rem; }
.kw-play__key {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.kw-play__val {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.8;
}
.kw-play__val--empty { color: rgba(245, 244, 241, 0.3); font-style: italic; }
.kw-play__status {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35em 0.85em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--kw-human);
  border: 1px solid currentColor;
  border-radius: 2px;
  background: rgba(232, 163, 61, 0.09);
}
.kw-play__status::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: currentColor;
  animation: kwPulse 2.4s var(--ease) infinite;
}
@keyframes kwPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ══════════ 06 VIDEOS ══════════ */
.kw-videos {
  padding: var(--kw-pad-y) var(--kw-pad-x);
  border-top: 1px solid var(--line-dim);
}
.kw-videos__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.kw-embed {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #1a1a1e;
  cursor: pointer;
}
.kw-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease), opacity 0.5s;
}
.kw-embed:hover img { transform: scale(1.04); }
.kw-embed.is-blank img { display: none; }
.kw-embed.is-blank::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(232, 163, 61, 0.07), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(245,244,241,0.03) 0 2px, transparent 2px 9px);
}
.kw-embed__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(19, 19, 21, 0.38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), background 0.35s;
}
.kw-embed__play::after {
  content: "";
  width: 0; height: 0;
  margin-left: 3px;
  border-left: 9px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.kw-embed:hover .kw-embed__play { transform: translate(-50%, -50%) scale(1.08); }
.kw-embed:focus-visible { outline: 2px solid var(--kw-human); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .kw-embed__play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
  }
  .kw-embed:hover .kw-embed__play,
  .kw-embed:focus-visible .kw-embed__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.kw-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.kw-video__title {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ══════════ 07 OUTRO ══════════ */
.kw-outro {
  position: relative;
  min-height: clamp(360px, 48vw, 580px);
  padding: clamp(5rem, 12vw, 9rem) var(--kw-pad-x);
  border-top: 1px solid var(--line-dim);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kw-character--wave {
  position: absolute;
  z-index: 1;
  right: clamp(-1.5rem, 2vw, 2rem);
  bottom: clamp(-3rem, -2vw, -1rem);
  width: clamp(180px, 25vw, 330px);
}
.kw-character--wave img { animation-delay: -4.6s; }
.kw-outro__link {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.kw-outro__back {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.kw-outro__back:hover { color: var(--ink); }

/* ══════════ RESPONSIVE ══════════ */
@media (min-width: 720px) {
  .kw-plays__cols { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .kw-videos__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* パイプライン: 名前とバッジを2段に。バーは幅いっぱいのトラックに */
  .kw-pipe__stage {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.45rem 0.8rem;
  }
  .kw-pipe__name  { grid-column: 2; }
  .kw-pipe__track { grid-column: 2; }
  .kw-pipe__bar   { flex-basis: calc(var(--w) + 12%); }
}

@media (max-width: 720px) {
  .kw-overview {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .kw-overview__char { justify-self: center; margin-top: 1rem; }
  .kw-owl { width: min(52vw, 260px); }
  .kw-overview__vline { display: none; }

  .kw-quote { grid-template-columns: 1fr; justify-items: start; }
  .kw-quote__char { width: 96px; }

  .kw-character--director {
    position: relative;
    top: auto;
    right: auto;
    width: min(56vw, 230px);
    margin: -1rem auto 1.5rem;
  }

  .kw-stats { display: block; }
  .kw-character--analyst {
    width: min(52vw, 210px);
    margin: 2.5rem auto -1.5rem;
  }

  .kw-outro { min-height: auto; }
  .kw-character--wave {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(50vw, 210px);
    margin: 0 auto -0.75rem;
  }

  .kw-hero__logo { width: 84vw; }
  .kw-hero__sub  { width: 42vw; }
}

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  .kw-pipe__stage,
  .kw-pipe__stage::before,
  .kw-pipe__bar,
  .kw-pipe__list::before {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .kw-pipe__stage::before { transform: translateY(-50%) !important; }
  .kw-pipe__list::before  { transform: scaleY(1) !important; }
  .kw-pipe__bar           { transform: scaleX(1) !important; }
  .kw-embed:hover img,
  .kw-embed:hover .kw-embed__play { transform: none; }
  .kw-embed__play { transform: translate(-50%, -50%) !important; }
  .kw-play__status::before { animation: none; }
  .kw-owl { transform: none !important; }
  .kw-character img { animation: none !important; }
  .kw-stat { transform: none !important; transition: none !important; }
}
