/* XLG — モノクロ・シンプル・動き多め */
:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --mute: #8a8a8a;
  --line: rgba(255, 255, 255, .12);
  --card: #111;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }
@media (hover: hover) { body, a, button { cursor: none; } }

/* ---------- 読み込み ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: #000; display: grid; place-items: center; align-content: center; gap: 28px; transition: transform 1s var(--ease) .1s; }
.loader.done { transform: translateY(-100%); }
.loader-logo { display: flex; gap: 6px; font-weight: 900; font-size: clamp(64px, 12vw, 140px); letter-spacing: -.04em; overflow: hidden; }
.loader-logo span { display: inline-block; transform: translateY(110%); animation: up .9s var(--ease) forwards; }
.loader-logo span:nth-child(2) { animation-delay: .08s; }
.loader-logo span:nth-child(3) { animation-delay: .16s; }
@keyframes up { to { transform: none; } }
.loader-bar { width: min(260px, 60vw); height: 1px; background: var(--line); }
.loader-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .2s; }
.loader-num { font-size: 12px; letter-spacing: .3em; color: var(--mute); font-variant-numeric: tabular-nums; }

/* ---------- カーソル ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 38px; height: 38px; border: 1px solid #fff; margin: -19px 0 0 -19px; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; }
.cursor.big { width: 80px; height: 80px; margin: -40px 0 0 -40px; background: #fff; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #fff; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); z-index: 600; }
.grain { position: fixed; inset: -50%; z-index: 500; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 30% { transform: translate(-5%, 3%); } 60% { transform: translate(4%, -4%); } 100% { transform: translate(-2%, 5%); } }

/* ---------- ナビ ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 400; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 4vw, 56px); mix-blend-mode: difference; transition: transform .5s var(--ease); }
.nav.hide { transform: translateY(-110%); }
.nav-logo { font-weight: 900; font-size: 22px; letter-spacing: -.03em; display: inline-block; }
.nav-links { display: flex; gap: 34px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { position: relative; display: inline-block; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-menu { display: none; background: none; border: 0; width: 32px; height: 20px; position: relative; }
.nav-menu i { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-menu i:first-child { top: 4px; } .nav-menu i:last-child { top: 14px; }
.nav-menu.open i:first-child { top: 9px; transform: rotate(45deg); } .nav-menu.open i:last-child { top: 9px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 390; background: #fff; color: #000; display: flex; flex-direction: column; justify-content: center; padding: 0 32px; gap: 8px; clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); }
.mobile-menu.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mobile-menu a { font-size: 44px; font-weight: 900; letter-spacing: -.03em; }
@media (max-width: 760px) { .nav-links { display: none; } .nav-menu { display: block; } }

/* ---------- 共通 ---------- */
section { position: relative; padding: clamp(90px, 14vw, 180px) clamp(20px, 6vw, 96px); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.sec-no { font-size: 13px; color: var(--mute); letter-spacing: .2em; }
.sec-head h2 { font-size: clamp(40px, 7vw, 96px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.split { display: inline-block; }
.split .ch { display: inline-block; transform: translateY(105%) rotate(6deg); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.split.in .ch { transform: none; opacity: 1; }
.outline { -webkit-text-stroke: 1.5px #fff; color: transparent; }

/* ---------- ボタン ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 30px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 14px; letter-spacing: .08em; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; background: #000; transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover { color: #fff; outline: 1px solid #fff; }
.btn:hover::before { transform: none; }
.btn.ghost { background: transparent; color: #fff; outline: 1px solid rgba(255, 255, 255, .4); }
.btn.ghost::before { background: #fff; }
.btn.ghost:hover { color: #000; }
.btn span { transition: color .3s; }

/* ---------- ヒーロー ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 120px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; }
.hero-kicker { font-size: 12px; letter-spacing: .35em; color: var(--mute); margin-bottom: 26px; }
.hero-title { font-size: clamp(64px, 15vw, 230px); font-weight: 900; line-height: .86; letter-spacing: -.055em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-sub { margin-top: 34px; font-size: clamp(15px, 1.6vw, 20px); color: #cfcfcf; letter-spacing: .08em; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.scroll-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 10px; letter-spacing: .4em; color: var(--mute); z-index: 2; }
.scroll-hint i { width: 1px; height: 54px; background: linear-gradient(#fff, transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 流れる帯 ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 44px; width: max-content; font-size: clamp(28px, 4.5vw, 64px); font-weight: 900; letter-spacing: -.03em; white-space: nowrap; will-change: transform; }
.marquee-track span:nth-child(4n+3) { -webkit-text-stroke: 1.2px #fff; color: transparent; }

/* ---------- About ---------- */
.big-text { font-size: clamp(22px, 3.3vw, 46px); line-height: 1.55; font-weight: 700; letter-spacing: -.01em; max-width: 1200px; }
.big-text .w { color: #333; transition: color .25s; }
.big-text .w.on { color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 90px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 40px 28px; display: grid; gap: 8px; }
.stat b { font-size: clamp(56px, 8vw, 120px); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.stat span { font-size: 12px; letter-spacing: .3em; color: var(--mute); text-transform: uppercase; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* ---------- 名前 ---------- */
.name-list { display: grid; gap: 0; }
.name-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 38px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.name-row::before { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: 0; }
.name-row:hover::before { transform: scaleY(1); }
.name-row > * { position: relative; z-index: 1; transition: color .4s, transform .6s var(--ease); }
.name-row:hover > * { color: #000; }
.name-row:hover .name-word { transform: translateX(24px); }
.name-word { font-size: clamp(48px, 8vw, 120px); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.name-cap { -webkit-text-stroke: 2px currentColor; color: transparent; }
.name-row p { font-size: clamp(16px, 1.6vw, 22px); color: #bdbdbd; }
.name-row:hover p { color: #000; }
@media (max-width: 760px) { .name-row { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- 部門 ---------- */
.div-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.div-card { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 30px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--card); transform-style: preserve-3d; transition: transform .4s var(--ease), border-color .4s; }
.div-card:hover { border-color: #fff; }
.div-card .glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 60%); left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.div-card:hover .glow { opacity: 1; }
.div-no { font-size: 12px; letter-spacing: .3em; color: var(--mute); }
.div-en { font-size: 42px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-top: 18px; transform: translateZ(40px); }
.div-ja { font-size: 14px; color: #bbb; margin-top: 8px; }
.div-members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.div-members span { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s; }
.div-card:hover .div-members span { background: #fff; color: #000; }
.div-count { position: absolute; right: 24px; top: 18px; font-size: 90px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .15); letter-spacing: -.05em; }

/* ---------- メンバー ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { position: relative; background: none; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font: 600 13px 'Inter', 'Noto Sans JP', sans-serif; letter-spacing: .06em; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s; }
.filters button::before { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: -1; }
.filters button.on { color: #000; border-color: #fff; }
.filters button.on::before { transform: none; }
.filters button em { font-style: normal; opacity: .55; margin-left: 6px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.m-card { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 22px; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--card); transition: transform .6s var(--ease), opacity .5s var(--ease), border-color .3s; }
.m-card.hide { opacity: 0; transform: scale(.9); pointer-events: none; position: absolute; visibility: hidden; }
.m-card:hover { border-color: #fff; }
.m-avatar { width: 100%; aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: clamp(56px, 7vw, 86px); font-weight: 900; letter-spacing: -.05em; background: #fff; color: #000; overflow: hidden; position: relative; transition: border-radius .6s var(--ease); }
.m-card:hover .m-avatar { border-radius: 50%; }
.m-avatar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(0, 0, 0, .06) 8px 9px); }
.m-avatar.dark { background: #1c1c1c; color: #fff; }
.m-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 14px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.m-tags span { font-size: 11px; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.m-tags span.role { color: #000; background: #fff; border-color: #fff; }

/* ---------- 運営 ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.s-card { border: 1px solid var(--line); border-radius: 24px; padding: 40px; display: flex; align-items: center; gap: 26px; position: relative; overflow: hidden; transition: border-color .3s; }
.s-card::before { content: attr(data-role); position: absolute; right: -10px; bottom: -28px; font-size: 110px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); letter-spacing: -.05em; white-space: nowrap; transition: transform 1s var(--ease); }
.s-card:hover { border-color: #fff; }
.s-card:hover::before { transform: translateX(-40px); }
.s-avatar { width: 92px; height: 92px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 40px; font-weight: 900; flex: none; }
.s-name { font-size: 30px; font-weight: 900; letter-spacing: -.03em; }
.s-role { font-size: 13px; color: var(--mute); letter-spacing: .2em; margin-top: 6px; text-transform: uppercase; }

/* ---------- 締め ---------- */
.outro { text-align: center; padding-top: 120px; padding-bottom: 140px; overflow: hidden; }
.outro-title { font-size: clamp(54px, 12vw, 200px); font-weight: 900; letter-spacing: -.055em; line-height: .9; display: grid; }

/* ---------- フッター ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px clamp(20px, 6vw, 96px) 40px; display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; align-items: end; }
.footer-logo { font-size: clamp(80px, 16vw, 220px); font-weight: 900; letter-spacing: -.07em; line-height: .8; grid-column: 1 / -1; }
.footer p { color: var(--mute); letter-spacing: .1em; }
.to-top { font-size: 13px; letter-spacing: .2em; display: inline-block; }
.footer small { grid-column: 1 / -1; color: #555; font-size: 11px; margin-top: 30px; }

/* ---------- 詳細 ---------- */
.modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(10px); animation: fade .4s var(--ease); }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(420px, 90vw); background: #fff; color: #000; border-radius: 28px; padding: 40px 32px; text-align: center; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: translateY(40px) scale(.94); opacity: 0; } }
.modal-x { position: absolute; right: 18px; top: 16px; background: none; border: 0; font-size: 18px; }
.modal-avatar { width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 64px; font-weight: 900; }
.modal-card h3 { font-size: 36px; font-weight: 900; letter-spacing: -.03em; margin-top: 18px; }
.modal-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.modal-tags span { border: 1px solid #000; border-radius: 999px; padding: 6px 14px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal, .split .ch { opacity: 1; transform: none; } }

/* ---------- 加入・応募 ---------- */
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 34px 28px; }
.step b { font-size: 13px; letter-spacing: .3em; color: var(--mute); }
.step h3 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin: 14px 0 8px; }
.step p { color: #bdbdbd; font-size: 14px; line-height: 1.7; }
@media (max-width: 760px) { .join-steps { grid-template-columns: 1fr; } }
.discord { display: flex; align-items: center; gap: 22px; margin: 40px 0 70px; padding: 26px 30px; border-radius: 22px; background: #fff; color: #000; position: relative; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease); }
.discord::before { content: ''; position: absolute; inset: 0; background: #000; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: -1; }
.discord:hover { color: #fff; outline: 1px solid #fff; }
.discord:hover::before { transform: none; }
.discord b { display: block; font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.02em; }
.discord span { font-size: 13px; opacity: .6; letter-spacing: .05em; }
.discord i { margin-left: auto; font-style: normal; font-size: 34px; transition: transform .5s var(--ease); }
.discord:hover i { transform: translate(6px, -6px) rotate(10deg); }

.apply { border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 48px); background: var(--card); }
.apply-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.apply-head h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 900; letter-spacing: -.03em; }
.apply-head p, .f em { color: var(--mute); font-size: 13px; font-style: normal; }
.f em { color: #fff; margin-left: 4px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.f { display: grid; gap: 8px; }
.f.full { grid-column: 1 / -1; }
.f > span { font-size: 13px; letter-spacing: .04em; color: #cfcfcf; }
.f input, .f select, .f textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); color: var(--fg); font: 16px 'Inter', 'Noto Sans JP', sans-serif; padding: 10px 2px; outline: none; transition: border-color .3s; border-radius: 0; resize: vertical; }
.f select option { background: #111; }
.f textarea { border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 12px; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: #fff; }
.f .bad, .chips.bad { border-color: #ff5a5a !important; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 14px; }
.chips button { background: none; color: var(--fg); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 10px 18px; font: 600 14px 'Inter', 'Noto Sans JP', sans-serif; transition: background .3s, color .3s, transform .3s var(--ease); }
.chips button:hover { transform: translateY(-2px); }
.chips button.on { background: #fff; color: #000; border-color: #fff; }
.agree { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: #cfcfcf; }
.agree input { position: absolute; opacity: 0; }
.agree i { width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 6px; flex: none; position: relative; transition: background .3s; }
.agree input:checked + i { background: #fff; }
.agree input:checked + i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #000; font-size: 14px; font-weight: 900; }
.agree.bad i { border-color: #ff5a5a; }
.apply-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.apply-msg { color: #bdbdbd; font-size: 14px; flex: 1; min-width: 200px; }
.apply-msg.ok { color: #fff; }
@media (max-width: 760px) { .f-grid { grid-template-columns: 1fr; } }
.apply-note { margin: -12px 0 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; color: #cfcfcf; font-size: 14px; line-height: 1.7; }
