/* =========================================================================
   dododo eSports Recruit — SPORTS EDITORIAL × ESPORTS × STREET
   動きの約束: 大きく動くのは常に1つ / 読む文字は止める / 転換は「斜めの一閃」
   ========================================================================= */

:root {
  --black: #0A0A0A;
  --paper: #F2EFE8;
  --lime: #B9FF29;
  --blue: #175CFF;
  --red: #FF3B30;
  --ink-soft: rgba(242, 239, 232, 0.66);
  --ink-dim: rgba(242, 239, 232, 0.4);
  --vh: 1vh;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cut: cubic-bezier(0.77, 0, 0.18, 1);
  --f-en: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --f-ja: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-script: 'Permanent Marker', 'Comic Sans MS', cursive;
  --cut: 7vw; /* 斜めカットの落差。全セクション共通の角度 */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--f-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--lime); color: var(--black); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--lime); color: var(--black); padding: 8px 14px; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-ja); font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
}
.label b {
  font-family: var(--f-en); font-weight: 400; font-size: 22px; letter-spacing: 0.02em;
  padding-right: 14px; border-right: 1px solid currentColor; line-height: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 26px;
  font-family: var(--f-en); font-size: 18px; letter-spacing: 0.06em;
  border-radius: 0; position: relative; overflow: hidden;
  transition: color 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
.btn b { font-weight: 400; transition: transform 0.35s var(--ease-out); }
.btn:hover b { transform: translateX(6px); }
.btn--lime { background: var(--lime); color: var(--black); }
.btn--lime::after {
  content: ''; position: absolute; inset: 0; background: var(--paper);
  transform: translateX(-101%) skewX(-18deg); transform-origin: left;
  transition: transform 0.45s var(--ease-cut); z-index: -1;
}
.btn--lime { isolation: isolate; }
.btn--lime:hover::after { transform: translateX(0) skewX(-18deg) scaleX(1.3); }
.btn--line { border: 1px solid rgba(242, 239, 232, 0.45); color: var(--paper); }
.btn--line:hover { background: var(--paper); color: var(--black); }

/* ---------- NAV (位置に応じて自動で反転) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference; color: #fff;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo { font-family: var(--f-ja); font-weight: 900; font-size: 24px; letter-spacing: -0.04em; line-height: 1; }
.nav__links { display: flex; gap: 18px; margin-left: clamp(40px, 6vw, 96px); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; }
.nav__links i { font-style: normal; opacity: 0.5; }
.nav__links a { position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__entry { font-size: 12px; font-weight: 900; letter-spacing: 0.24em; margin-left: auto; margin-right: 22px; }
.nav__menu { width: 28px; height: 14px; display: grid; align-content: space-between; }
.nav__menu span { display: block; height: 2px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.nav__menu[aria-expanded='true'] span:first-child { transform: translateY(6px) rotate(20deg); }
.nav__menu[aria-expanded='true'] span:last-child { transform: translateY(-6px) rotate(-20deg); }
.nav.is-hidden { transform: translateY(-120%); }
.nav { transition: transform 0.5s var(--ease-out); }

.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--black);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 var(--gutter);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: drawerIn 0.6s var(--ease-cut);
}
.drawer[hidden] { display: none; }
.drawer a { font-family: var(--f-en); font-size: clamp(44px, 12vw, 96px); line-height: 1.05; }
.drawer a:hover { color: var(--lime); }
.drawer__entry { color: var(--lime); }
@keyframes drawerIn { from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } }

/* ---------- pin 共通 ---------- */
.pin { position: relative; }
.pin__stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; }

/* skew（スクロール速度で傾く大見出し）*/
.skew { transform: skewY(var(--skew, 0deg)); will-change: transform; }

/* =========================================================================
   01 HERO
   ========================================================================= */
.hero { height: calc(var(--vh) * 260); position: relative; z-index: 1; }
.hero__stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; background: #050505; }
.layer { position: absolute; will-change: transform; }

.hero__bg { inset: -6%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: grayscale(1) contrast(1.15); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 62% 45%, transparent 0%, rgba(5,5,5,0.55) 55%, #050505 92%); }

.hero__type {
  left: calc(var(--gutter) - 0.04em); top: calc(62px + 4vh);
  font-family: var(--f-en); font-size: clamp(110px, min(21vw, 32vh), 360px); line-height: 0.82;
  color: var(--paper); letter-spacing: -0.01em; white-space: nowrap;
}
.hero__typeInner { display: flex; transform: skewY(var(--skew, 0deg)) scaleY(1.18); transform-origin: left top; }
.hero__typeInner .do { display: inline-block; will-change: transform, opacity; }
/* 印刷ズレ：わずかに版がズレたシアン/ライムの影 */
.hero__typeInner { text-shadow: 0.012em 0.008em 0 rgba(23, 92, 255, 0.55), -0.008em -0.006em 0 rgba(185, 255, 41, 0.25); }

.hero__slash { left: 34%; top: 28%; width: 58vw; height: 34vw; max-width: 1000px; max-height: 590px; transform-origin: left center; }
.hero__slash i {
  position: absolute; inset: 0; background: var(--lime);
  -webkit-mask: url('../assets/img/brush-slash.png') center / contain no-repeat;
  mask: url('../assets/img/brush-slash.png') center / contain no-repeat;
}

.hero__person { right: 4vw; bottom: 0; height: 104vh; aspect-ratio: 2 / 3; transform-origin: 50% 100%; }
.hero__clip { position: absolute; inset: 0; }
.hero__clip img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.hero__clip img.is-breathing { animation: breath 7s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes breath { to { transform: scale(1.018) translateY(-0.4%); } }
/* 人物の足元に落ちる接地の影 */
.hero__person::after { content: ''; position: absolute; left: -20%; right: -20%; bottom: -4%; height: 18%; background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.9), transparent 70%); pointer-events: none; }

.hero__flick { right: 1vw; top: 54%; width: 22vw; height: 22vw; max-width: 340px; max-height: 340px; }
.hero__flick i {
  position: absolute; inset: 0; background: var(--blue);
  -webkit-mask: url('../assets/img/brush-flick.png') center / contain no-repeat;
  mask: url('../assets/img/brush-flick.png') center / contain no-repeat;
}

.hero__copy { position: absolute; left: var(--gutter); bottom: 7vh; max-width: 640px; z-index: 5; }
.hero__eyebrow { font-family: var(--f-en); font-size: 15px; letter-spacing: 0.24em; color: var(--lime); margin-bottom: 14px; }
.hero__title { font-weight: 900; font-size: clamp(30px, min(4.3vw, 7.4vh), 68px); line-height: 1.18; letter-spacing: -0.02em; }
.hero__lead { margin-top: 18px; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.9; color: var(--ink-soft); font-weight: 700; }
.hero__ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ln > span { display: block; will-change: transform; }

.hero__script {
  position: absolute; right: 25vw; bottom: 17vh; z-index: 4;
  font-family: var(--f-script); color: var(--lime); font-size: clamp(22px, 2.3vw, 38px); line-height: 1.08;
  transform: rotate(-12deg); transform-origin: left bottom;
}
.hero__script span { display: block; }

.hero__side { position: absolute; right: var(--gutter); top: 16vh; text-align: right; z-index: 5; }
.hero__sideJa { font-weight: 900; font-size: 15px; line-height: 1.7; }
.hero__sideEn { margin-top: 18px; font-family: var(--f-en); font-size: 13px; letter-spacing: 0.16em; line-height: 1.35; color: var(--ink-soft); }
.hero__sideEn::before { content: ''; display: block; width: 36px; height: 2px; background: var(--lime); margin: 0 0 16px auto; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%);
  font-family: var(--f-en); font-size: 11px; letter-spacing: 0.3em; color: var(--ink-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 5;
}
.hero__scroll i { width: 1px; height: 44px; background: rgba(242,239,232,0.2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--lime); animation: scrollDrip 2.2s var(--ease-cut) infinite; }
@keyframes scrollDrip { to { top: 110%; } }

/* イントロ前の状態。head の小さなスクリプトが .is-intro を付けた時だけ隠す（JSが動かなければ全部見える） */
.is-intro .hero__copy .ln > span { transform: translateY(110%); }
.is-intro .hero__side, .is-intro .hero__scroll, .is-intro .hero__bg img, .is-intro .hero__ctas, .is-intro .hero__typeInner .do, .is-intro .hero__flick i { opacity: 0; }
.is-intro .hero__clip { clip-path: polygon(-46% 0, -46% 0, -92% 100%, -92% 100%); }
.is-intro .hero__slash i { clip-path: inset(0 100% 0 0); }
.is-intro .hero__script span { clip-path: inset(-10% 100% -10% 0); }

/* 一閃（イントロで画面を横切る切り口）と、奥へ沈む時の影 */
.hero__edge {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 26vw; z-index: 8; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(185,255,41,0) 0%, rgba(185,255,41,0.22) 97%, #B9FF29 97%, #B9FF29 100%);
}
.hero__shade { position: absolute; inset: 0; z-index: 7; background: #000; opacity: 0; pointer-events: none; }

/* =========================================================================
   02 MISSION（HEROの上に斜めに切り込む）
   ========================================================================= */
.mission {
  position: relative; z-index: 2;
  margin-top: calc(var(--vh) * -100);
  background: var(--paper); color: var(--black);
  clip-path: polygon(0 var(--mcut, var(--cut)), 100% 0, 100% 100%, 0 100%);
  padding: calc(var(--cut) + 11vh) 0 16vh;
  min-height: calc(var(--vh) * 115);
  overflow: hidden;
}
.mission__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end;
}
.mission .label { grid-column: 1 / -1; margin-bottom: 4vh; }
.mission__title {
  grid-column: 1 / 9;
  font-family: var(--f-en); font-weight: 400; font-size: clamp(76px, 11.4vw, 184px); line-height: 0.86; letter-spacing: -0.01em;
}
.mission__title > span { display: block; white-space: nowrap; will-change: transform; transform-origin: left center; }
.mission__l2 { padding-left: 0.5em; }
.mission__title em { font-style: normal; position: relative; display: inline-block; color: var(--paper); padding: 0 0.08em; }
.mission__title em span { position: relative; }
.band {
  position: absolute; inset: 0.02em -0.16em -0.04em -0.2em; background: var(--blue);
  -webkit-mask: url('../assets/img/brush-band.png') center / 100% 100% no-repeat;
  mask: url('../assets/img/brush-band.png') center / 100% 100% no-repeat;
  transition: clip-path 0.9s var(--ease-cut) 0.15s;
}
.js .band { clip-path: inset(0 100% 0 0); }
.js .is-drawn .band { clip-path: inset(0 0 0 0); }
.mission__body { grid-column: 9 / 13; padding-bottom: 1.2vh; }
.mission__ja { font-weight: 900; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.5; margin-bottom: 18px; }
.mission__body p:not(.mission__ja) { font-size: 14px; line-height: 2; color: rgba(10,10,10,0.72); }
.mission__photo {
  grid-column: 1 / 6; grid-row: 4; margin-top: 7vh;
  clip-path: polygon(0 4%, 100% 0, 97% 100%, 2% 96%);
}
.mission__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mission__script {
  grid-column: 6 / 10; grid-row: 4; align-self: center; margin-left: 4vw;
  font-family: var(--f-script); color: var(--blue); font-size: clamp(30px, 3.2vw, 52px); line-height: 1.05; transform: rotate(-8deg);
}

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 見出しの文字が1字ずつ起き上がる */
.js [data-split] .ch { display: inline-block; opacity: 0; transform: translate3d(0, 0.55em, 0) rotate(7deg); transform-origin: left bottom; transition: opacity 0.6s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i) * 26ms); }
.js [data-split].is-in .ch { opacity: 1; transform: none; }

/* =========================================================================
   INTERLUDE: DO BETTER / DIFFERENT / TOGETHER
   ========================================================================= */
.dos { height: calc(var(--vh) * 330); z-index: 3; background: var(--black); }
.dos::before { /* MISSIONからの斜めカット */
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: var(--cut); z-index: 5;
  background: var(--paper); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.dos__stage { background: var(--black); }
.dos__panel { position: absolute; inset: -2px; will-change: clip-path; }
.dos__panel--1 { background: var(--black); }
.dos__panel--2 { background: var(--blue); clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.dos__panel--3 { background: var(--paper); clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.dos__blade { position: absolute; left: 0; top: 50%; width: 3px; margin-left: -1.5px; background: var(--lime); opacity: 0; pointer-events: none; will-change: transform; }
.dos__ghost {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font-family: var(--f-en); font-size: 44vw; line-height: 0.8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 239, 232, 0.14);
  pointer-events: none;
}
.dos__inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; color: var(--paper); transition: color 0.5s var(--ease-out); }
.dos__label { position: absolute; top: 16vh; left: var(--gutter); }
.dos__line {
  font-family: var(--f-en); font-weight: 400; font-size: clamp(78px, 13.5vw, 228px); line-height: 0.9;
  display: flex; align-items: flex-start; gap: 0.18em; white-space: nowrap;
}
.dos__do { color: inherit; }
.dos__roll { display: block; height: 0.9em; overflow: hidden; }
.dos__words { display: flex; flex-direction: column; will-change: transform; }
.dos__words span { display: block; height: 0.9em; color: var(--lime); transition: color 0.4s; }
.dos__ja { position: relative; height: 1.9em; margin-top: 4vh; font-weight: 900; font-size: clamp(18px, 1.9vw, 30px); overflow: hidden; }
.js .dos__ja li { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(100%); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.js .dos__ja li.is-on { opacity: 1; transform: none; }
.dos__idx { position: absolute; right: var(--gutter); bottom: 12vh; display: flex; gap: 18px; font-family: var(--f-en); font-size: 15px; letter-spacing: 0.08em; }
.dos__idx li { opacity: 0.3; transition: opacity 0.4s; }
.dos__idx li.is-on { opacity: 1; }
.dos__idx li.is-on::before { content: ''; display: inline-block; width: 26px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 8px; }
/* 状態ごとの配色 */
.dos[data-step='1'] .dos__words span { color: var(--paper); }
.dos[data-step='2'] .dos__inner { color: var(--black); }
.dos[data-step='2'] .dos__words span { color: var(--black); }
.dos[data-step='2'] .dos__ghost { -webkit-text-stroke-color: rgba(10,10,10,0.12); }
.dos[data-step='2'] .dos__words span:nth-child(3) { color: var(--black); }

/* =========================================================================
   03 RECRUIT ROLES（横スクロール）
   ========================================================================= */
.roles { z-index: 4; background: var(--black); }
.roles::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: var(--cut); z-index: 5; background: var(--paper); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.roles__stage { display: flex; align-items: center; }
.roles__intro {
  position: relative; z-index: 3; flex: 0 0 max(34vw, 380px); height: 100%;
  padding: 0 3vw 0 var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(90deg, var(--black) 82%, rgba(10,10,10,0));
}
.roles__title { font-weight: 900; font-size: clamp(26px, 2.5vw, 42px); white-space: nowrap; line-height: 1.32; letter-spacing: -0.02em; margin: 4vh 0 3vh; }
.roles__sub { font-size: 14px; color: var(--ink-soft); line-height: 2; }
.roles__count { margin-top: 6vh; font-family: var(--f-en); font-size: 15px; letter-spacing: 0.08em; color: var(--ink-dim); }
.roles__now { color: var(--paper); font-size: 30px; }
.roles__script { position: absolute; left: var(--gutter); bottom: 9vh; font-family: var(--f-script); font-size: clamp(22px, 2vw, 32px); line-height: 1.1; color: var(--paper); transform: rotate(-9deg); opacity: 0.85; }
.roles__viewport { position: absolute; inset: 0; z-index: 1; }
.roles__track { position: absolute; top: 50%; left: 0; display: flex; gap: 2.2vw; transform: translate3d(0, -50%, 0); will-change: transform; }
.role {
  --a: 0; position: relative; flex: 0 0 auto; width: clamp(240px, 23vw, 380px); aspect-ratio: 3 / 4.3;
  background: #111; overflow: hidden;
  will-change: transform;
}
.role__img { position: absolute; inset: 0; overflow: hidden; }
.role__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.5) contrast(1.1);
  transform: scale(1.12);
  transition: filter 0.7s var(--ease-out);
}
.role::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.92)); pointer-events: none; }
.role__no { position: absolute; left: 22px; top: 18px; z-index: 2; font-family: var(--f-en); font-size: 18px; color: var(--ink-soft); }
.role__txt { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; transition: transform 0.6s var(--ease-out); }
.role__name { font-family: var(--f-en); font-weight: 400; font-size: clamp(34px, 3vw, 50px); line-height: 1; transform-origin: left bottom; transition: transform 0.6s var(--ease-out), color 0.5s; }
.role__txt p { margin-top: 12px; font-size: 13px; line-height: 1.75; color: var(--ink-soft); font-weight: 700; }
.role__more { display: inline-block; margin-top: 14px; font-family: var(--f-en); font-size: 12px; letter-spacing: 0.18em; }
.role__more b { font-weight: 400; display: inline-block; transition: transform 0.4s var(--ease-out); margin-left: 6px; }
.role__line { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--ac); z-index: 3; transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-cut); }
.role.is-active .role__img img { filter: grayscale(0) brightness(1) contrast(1.05); }
.role.is-active .role__name { transform: scale(1.14); color: var(--ac); }
.role.is-active .role__line { transform: scaleX(1); }
.role:hover .role__txt { transform: translateX(6px); }
.role:hover .role__more b { transform: translateX(6px); }

/* =========================================================================
   04 TEAM SYSTEM（白へ転換）
   ========================================================================= */
.team { height: calc(var(--vh) * 420); z-index: 5; background: var(--paper); color: var(--black); }
.team::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: var(--cut); z-index: 5; background: var(--black); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.team__stage { background: var(--paper); display: flex; align-items: center; transform-origin: 50% 40%; }
.team__grid { display: grid; grid-template-columns: 30% 1fr; gap: 3vw; align-items: center; }
.team__intro { position: relative; }
.team__script {
  position: relative; display: inline-block; margin: 3vh 0 2vh 1vw; transform: rotate(-6deg);
  font-family: var(--f-script); font-size: clamp(18px, 1.6vw, 26px); line-height: 1.1; color: var(--paper); padding: 0.35em 0.6em;
}
.team__script span { position: relative; }
.team__title { font-weight: 900; font-size: clamp(28px, 2.9vw, 46px); line-height: 1.34; letter-spacing: -0.02em; }
.team__sub { margin-top: 2.4vh; font-size: 13px; line-height: 2; color: rgba(10,10,10,0.7); }
.team__progress { margin-top: 5vh; display: flex; align-items: center; gap: 14px; font-family: var(--f-en); font-size: 14px; }
.team__now { font-size: 30px; }
.team__bar { flex: 0 0 120px; height: 2px; background: rgba(10,10,10,0.15); position: relative; overflow: hidden; }
.team__bar i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0.2); transition: transform 0.6s var(--ease-out); }
.team__cards { display: flex; gap: 12px; height: min(58vh, 560px); }
.tcard {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--black); color: var(--paper);
  transition: flex-grow 0.8s var(--ease-cut);
}
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.42); transform: scale(1.12); transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.tcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,0.85)); }
.tcard__txt { position: absolute; left: 18px; right: 18px; bottom: 20px; z-index: 2; }
.tcard h3 { font-family: var(--f-en); font-weight: 400; font-size: clamp(18px, 1.7vw, 28px); line-height: 1; transform-origin: left bottom; transition: transform 0.7s var(--ease-out); white-space: nowrap; }
.tcard p { margin-top: 8px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.tcard__more { max-height: 0; opacity: 0; overflow: hidden; font-weight: 500 !important; color: var(--ink-soft); white-space: normal !important; transition: max-height 0.7s var(--ease-out), opacity 0.5s; }
.tcard.is-active { flex-grow: 2.6; }
.tcard.is-active img { filter: grayscale(0.15) brightness(0.95); transform: scale(1); }
.tcard.is-active h3 { transform: scale(1.45); }
.tcard.is-active .tcard__more { max-height: 5em; opacity: 1; transition-delay: 0.25s; }
.tcard.is-active::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--blue); z-index: 3; animation: grow 0.8s var(--ease-cut) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }

/* =========================================================================
   05 MEMBERS（斜めの帯が広がって全画面になる / menuchi の動きの原理）
   ========================================================================= */
.members { position: relative; z-index: 6; margin-top: calc(var(--vh) * -200); height: calc(var(--vh) * 655); }
.members__stage { position: sticky; top: 0; height: calc(var(--vh) * 100); overflow: hidden; }
.members__head {
  position: absolute; left: var(--gutter); top: 13vh; z-index: 30;
  color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity 0.5s;
}
.members__title { margin-top: 12px; font-weight: 900; font-size: 15px; letter-spacing: 0.04em; }
.members__count { position: absolute; right: var(--gutter); top: 13vh; z-index: 30; font-family: var(--f-en); font-size: 15px; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity 0.5s; }
.members__now { font-size: 30px; }
.members.is-live .members__head, .members.is-live .members__count { opacity: 1; }

.mslide {
  --reveal: 0; --copy: 0; --zoom: 0; --exit: 0;
  --span: calc(75vw + 75vh);
  position: absolute; top: 50%; left: 50%;
  width: calc(var(--reveal) * var(--span)); height: var(--span);
  transform: translate(-50%, -50%) rotate(calc(var(--reveal) * 45deg));
  overflow: hidden; background: var(--bg); color: var(--fg);
  visibility: hidden; will-change: width, transform;
}
.mslide__inner {
  position: absolute; top: 50%; left: 50%; width: 100vw; height: calc(var(--vh) * 100);
  transform: translate(-50%, -50%) rotate(calc(var(--reveal) * -45deg)) scale(calc(1 - var(--exit) * 0.1));
  background: var(--bg);
}
.mslide__giant {
  position: absolute; left: 50%; top: 46%;
  transform: translate(calc(-50% - var(--zoom) * 7vw - var(--mx, 0) * 26px), calc(-50% - var(--my, 0) * 14px));
  font-family: var(--f-en); font-size: 50vh; line-height: 0.8; letter-spacing: -0.02em; white-space: nowrap;
  color: var(--ac); opacity: calc(0.25 + var(--copy) * 0.75);
}
.mslide__person {
  position: absolute; left: 56%; bottom: 0; height: 94%; width: auto; max-width: none;
  transform: translate(calc(-50% + var(--mx, 0) * 14px), calc(var(--my, 0) * 6px)) scale(calc((1 + var(--zoom) * 0.12) * (1 - var(--exit) * 0.16)));
  transform-origin: 50% 100%;
  filter: brightness(calc(1 - var(--exit) * 0.6));
  user-select: none;
}
.mslide__shadow { position: absolute; left: 30%; right: 20%; bottom: -6%; height: 22%; background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.55), transparent 70%); }
.it { opacity: calc(var(--k) * (1 - var(--xk, 0))); transform: translateY(calc((1 - var(--k)) * 26px - var(--xk, 0) * 14px)); }
.mslide__head { --k: clamp(0, calc(var(--copy) / 0.35), 1); position: absolute; left: var(--gutter); top: 30vh; }
.mslide__role { display: inline-block; font-family: var(--f-en); font-size: 15px; letter-spacing: 0.2em; background: var(--ac); color: var(--black); padding: 4px 10px 3px; }
.mslide__name { margin-top: 14px; font-family: var(--f-en); font-weight: 400; font-size: clamp(64px, 7.4vw, 124px); line-height: 0.9; }
.mslide__name span { display: block; margin-top: 12px; font-family: var(--f-ja); font-size: 15px; font-weight: 700; letter-spacing: 0.3em; }
.mslide__no { --k: clamp(0, calc((var(--copy) - 0.2) / 0.33), 1); position: absolute; left: var(--gutter); bottom: 24vh; font-family: var(--f-en); font-size: 22px; }
.mslide__no::after { content: ''; display: inline-block; width: 40px; height: 2px; background: var(--ac); vertical-align: middle; margin-left: 12px; }
.mslide__quote { --k: clamp(0, calc((var(--copy) - 0.38) / 0.33), 1); position: absolute; left: var(--gutter); bottom: 7vh; width: min(420px, 38vw); }
.mslide__quote strong { display: block; font-weight: 900; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.45; }
.mslide__quote span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.9; opacity: 0.72; }
.mslide__chip { --k: clamp(0, calc((var(--copy) - 0.58) / 0.42), 1); position: absolute; right: var(--gutter); bottom: 7vh; width: clamp(200px, 17vw, 280px); }
.mslide__chip div { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.mslide__chip div::after { content: ''; position: absolute; inset: 0; background: var(--ac); mix-blend-mode: multiply; opacity: 0.22; }
.mslide__chip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transform: scale(calc(1.15 - var(--k) * 0.15)); }
.mslide__chip figcaption { margin-top: 10px; font-family: var(--f-en); font-size: 12px; letter-spacing: 0.2em; display: flex; justify-content: space-between; }
.mslide__head { --xk: clamp(0, calc((var(--exit) - 0.45) / 0.3), 1); }
.mslide__no { --xk: clamp(0, calc((var(--exit) - 0.3) / 0.3), 1); }
.mslide__quote { --xk: clamp(0, calc((var(--exit) - 0.15) / 0.3), 1); }
.mslide__chip { --xk: clamp(0, calc(var(--exit) / 0.3), 1); }

/* =========================================================================
   06 JOIN FLOW / FAQ
   ========================================================================= */
.flow { position: relative; z-index: 7; background: var(--black); padding: 18vh 0 16vh; }
.flow__title { margin-top: 5vh; font-family: var(--f-en); font-weight: 400; font-size: clamp(56px, 8.4vw, 138px); line-height: 0.9; }
.flow__title > span:not(.ch) { color: var(--lime); }
.flow__steps { position: relative; margin-top: 10vh; }
.flow__line { position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: rgba(242,239,232,0.16); }
.flow__line i { position: absolute; inset: 0; background: var(--lime); transform-origin: left; transform: scaleX(var(--flow, 0)); }
.flow__steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 70px; opacity: 0.35; transition: opacity 0.6s var(--ease-out); }
.step::before { content: ''; position: absolute; left: 0; top: 29px; width: 11px; height: 11px; border-radius: 50%; background: var(--black); border: 1px solid rgba(242,239,232,0.4); transition: background 0.4s, border-color 0.4s; }
.step.is-on { opacity: 1; }
.step.is-on::before { background: var(--lime); border-color: var(--lime); }
.step__no { position: absolute; top: 0; left: 26px; font-family: var(--f-en); font-size: 15px; color: var(--ink-dim); }
.step h3 { font-family: var(--f-en); font-weight: 400; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.05; }
.step p { margin-top: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.note { margin-top: 5vh; font-size: 12px; color: var(--ink-dim); }
.faq { margin-top: 14vh; border-top: 1px solid rgba(242,239,232,0.18); }
.faq__title { font-family: var(--f-en); font-weight: 400; font-size: 20px; letter-spacing: 0.1em; padding: 28px 0 18px; }
.faq__item { border-bottom: 1px solid rgba(242,239,232,0.18); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; text-align: left; font-weight: 700; font-size: clamp(15px, 1.4vw, 19px); }
.faq__q i { position: relative; flex: 0 0 18px; height: 18px; }
.faq__q i::before, .faq__q i::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease-out); }
.faq__q i::after { transform: rotate(90deg); }
.faq__q[aria-expanded='true'] i::after { transform: rotate(0); }
.faq__q[aria-expanded='true'] { color: var(--lime); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 0 26px; font-size: 14px; color: var(--ink-soft); max-width: 760px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* =========================================================================
   07 FINAL ENTRY
   ========================================================================= */
.final { height: calc(var(--vh) * 270); z-index: 8; background: var(--black); }
.final__stage { background: var(--black); }
.final__bg { position: absolute; inset: -4%; will-change: transform, opacity; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.final__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.8)); }
.final__dos { position: absolute; inset: 0; pointer-events: none; }
.fdo {
  position: absolute; left: 50%; top: 44%; font-family: var(--f-en); font-size: clamp(90px, 15vw, 260px); line-height: 0.8;
  color: var(--paper); will-change: transform, opacity; opacity: 0;
}
.fdo--dot { color: var(--lime); }
.final__title {
  position: absolute; left: var(--gutter); top: 16vh; font-family: var(--f-en); font-weight: 400;
  font-size: clamp(70px, 11vw, 190px); line-height: 0.88; letter-spacing: -0.005em;
}
.final__title > span { display: block; will-change: clip-path; }
.js .final__title > span { clip-path: polygon(0 0, 0 0, -35% 100%, 0 100%); }
.final__l2 { padding-left: 0.6em; }
.final__title em { font-style: normal; color: var(--lime); }
.final__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 8vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.final__jaBig { font-weight: 900; font-size: clamp(26px, 2.8vw, 44px); line-height: 1.35; margin-bottom: 14px; }
.final__ja p:not(.final__jaBig) { font-size: 14px; color: var(--ink-soft); }
.final__cta { display: flex; align-items: center; gap: 44px; }
.final__btn {
  display: flex; align-items: center; gap: 18px; font-family: var(--f-en); font-size: clamp(26px, 2.4vw, 40px); color: var(--lime);
  will-change: transform;
}
.final__btnIcon { display: grid; place-items: center; width: 74px; height: 74px; border: 1.5px solid var(--lime); border-radius: 50%; font-size: 26px; transition: background 0.35s, color 0.35s; }
.final__btn:hover .final__btnIcon { background: var(--lime); color: var(--black); }
.final__links { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; }
.final__links a { border-bottom: 1px solid rgba(242,239,232,0.25); padding-bottom: 6px; min-width: 140px; }
.final__links a:hover { color: var(--lime); }

.footer { position: relative; z-index: 9; background: var(--black); border-top: 1px solid rgba(242,239,232,0.12); padding: 34px var(--gutter); display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.footer__note { font-size: 12px; color: var(--ink-dim); flex: 1; min-width: 260px; }
.footer__copy { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.1em; }

.entry-dialog { margin: auto; max-width: 480px; width: calc(100% - 40px); background: var(--black); color: var(--paper); border: 1px solid var(--lime); padding: 34px; }
.entry-dialog::backdrop { background: rgba(0,0,0,0.7); }
.entry-dialog h2 { margin: 18px 0 10px; font-size: 20px; font-weight: 900; }
.entry-dialog p:not(.label) { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- grain & cursor ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1.5px solid var(--lime); border-radius: 50%; pointer-events: none;
  opacity: 0; transform: translate3d(-100px, -100px, 0) scale(0.35);
  transition: opacity 0.3s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }

/* =========================================================================
   SP（PCを縮小せず再編集）
   ========================================================================= */
@media (max-width: 899px) {
  :root { --cut: 12vw; }
  .nav { padding: 16px var(--gutter); }
  .nav__links { display: none; }
  .nav__entry { margin-right: 18px; }

  .hero__type { top: 11vh; font-size: 36vw; line-height: 0.8; }
  .hero__typeInner { flex-wrap: wrap; width: 2.3em; }
  .hero__person { right: -18vw; height: 74vh; }
  .hero__slash { left: 10%; top: 44%; width: 110vw; height: 60vw; }
  .hero__flick { right: -4vw; top: 38%; width: 36vw; height: 36vw; }
  .hero__side { display: none; }
  .hero__script { right: auto; left: 52vw; bottom: 34vh; font-size: 20px; }
  .hero__copy { bottom: 6vh; right: var(--gutter); }
  .hero__copy::before { content: ''; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); bottom: -6vh; height: 150%; background: linear-gradient(0deg, rgba(5,5,5,0.95) 40%, transparent); z-index: -1; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 13px; }
  .btn { height: 52px; padding: 0 20px; font-size: 16px; }
  .hero__scroll { display: none; }

  .mission { padding-top: calc(var(--cut) + 9vh); }
  .mission__grid { display: block; }
  .mission__title { font-size: 21vw; margin-bottom: 5vh; }
  .mission__l2 { padding-left: 0; }
  .mission__photo { margin-top: 6vh; }
  .mission__script { margin: 4vh 0 0; }

  .dos { height: calc(var(--vh) * 300); }
  .dos__line { flex-direction: column; font-size: 23vw; gap: 0; }
  .dos__label { top: 12vh; }

  .roles { height: auto !important; }
  .roles__stage { position: relative; height: auto; display: block; padding: 16vh 0 12vh; }
  .roles__intro { height: auto; background: none; padding: 0 var(--gutter); }
  .roles__script, .roles__count { display: none; }
  .roles__viewport { position: relative; margin-top: 6vh; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .roles__viewport::-webkit-scrollbar { display: none; }
  .roles__track { position: relative; top: auto; transform: none !important; padding: 2vh var(--gutter); gap: 14px; }
  .role { width: 74vw; scroll-snap-align: center; }

  .team { height: auto; }
  .team__stage { position: relative; height: auto; padding: 18vh 0 34vh; display: block; }
  .team__grid { display: block; }
  .team__cards { flex-direction: column; height: auto; margin-top: 6vh; gap: 10px; }
  .tcard { flex: none; height: 38vh; }
  .tcard.is-active { flex-grow: 0; }
  .tcard h3 { font-size: 26px; }
  .tcard.is-active h3 { transform: scale(1.2); }
  .team__progress { display: none; }

  .members { margin-top: 0; height: calc(var(--vh) * 620); }
  .members__stage { background: var(--paper); }
  .members__head { top: 10vh; }
  .members__count { top: 10vh; }
  .mslide__giant { font-size: 38vh; top: 38%; }
  .mslide__person { left: 60%; height: 72%; }
  .mslide__head { top: 19vh; }
  .mslide__name { font-size: 64px; }
  .mslide__no { bottom: auto; top: 44vh; }
  .mslide__quote { width: auto; right: var(--gutter); bottom: 5vh; }
  .mslide__quote::before { content: ''; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); bottom: -5vh; height: 180%; background: linear-gradient(0deg, var(--bg) 45%, transparent); z-index: -1; }
  .mslide__chip { display: none; }

  .flow__steps ol { grid-template-columns: 1fr; gap: 0; }
  .flow__line { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow__line i { transform: scaleY(var(--flow, 0)); transform-origin: top; }
  .step { padding: 0 0 5vh 36px; }
  .step::before { top: 6px; }
  .step__no { position: static; display: block; margin-bottom: 4px; }

  .final { height: calc(var(--vh) * 240); }
  .final__title { top: 14vh; font-size: 17vw; }
  .final__l2 { padding-left: 0; }
  .final__foot { flex-direction: column; align-items: flex-start; gap: 26px; bottom: 6vh; }
  .final__cta { gap: 28px; }
  .final__links { display: none; }
  .final__btnIcon { width: 60px; height: 60px; }
  .cursor { display: none; }
}

/* =========================================================================
   動きを減らす設定：全情報を通常の縦スクロールで読める
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .hero, .dos, .team, .final { height: auto; }
  .pin__stage, .hero__stage { position: relative; height: auto; min-height: 100vh; }
  .mission { margin-top: 0; }
  .roles { height: auto !important; }
  .roles__stage { display: block; padding: 14vh 0; }
  .roles__intro { height: auto; background: none; }
  .roles__viewport { position: relative; overflow-x: auto; margin-top: 5vh; }
  .roles__track { position: relative; top: auto; transform: none !important; padding: 0 var(--gutter); }
  .team__stage { padding: 14vh 0; }
  .members { margin-top: 0; height: auto; }
  .members__stage { position: relative; height: auto; }
  .members__head, .members__count { opacity: 1; position: relative; top: auto; left: auto; right: auto; padding: 14vh var(--gutter) 4vh; }
  .members__count { display: none; }
  .mslide { position: relative; top: auto; left: auto; width: 100%; height: 100vh; transform: none; visibility: visible; --reveal: 1; --copy: 1; }
  .mslide__inner { transform: translate(-50%, -50%); }
  .dos__panel--2, .dos__panel--3 { display: none; }
  .dos { height: auto; }
  .dos__stage { min-height: 100vh; }
  .dos__roll { height: auto; }
  .dos__ja { height: auto; }
  .js .dos__ja li { position: static; opacity: 1; transform: none; }
  .dos__blade { display: none; }
  .fdo { display: none; }
  .js .final__title > span { clip-path: none; }
  .final__stage { min-height: 100vh; }
  .js .reveal { opacity: 1; transform: none; }
  .js .band { clip-path: none; }
}
