/* =========================================================
   HAKI pro — site.css
   白×濃紺の土台に、ロゴの6色は「3D と細い線」だけで使う。
   動きは transform / opacity のみ。曲線は --ease（expo-out）。
   ========================================================= */
:root {
  --ink: #0a0e1c;
  --ink-2: #4a5168;
  --ink-3: #8a90a3;
  --line: rgba(10, 14, 28, .1);
  --bg: #ffffff;
  --bg-2: #f4f5f8;
  --night: #070a14;
  --night-2: #0e1324;
  --on-night: #f4f5fa;
  --on-night-2: rgba(244, 245, 250, .66);

  --h-red: #e60312;
  --h-yellow: #fee003;
  --h-green: #42af38;
  --h-blue: #0881cb;
  --h-navy: #1d2286;
  --h-purple: #b30281;
  --rainbow: linear-gradient(90deg, var(--h-red), var(--h-purple) 20%, var(--h-navy) 40%, var(--h-blue) 60%, var(--h-green) 80%, var(--h-yellow));
  --rainbow-c: conic-gradient(from 0deg, var(--h-red), var(--h-purple), var(--h-navy), var(--h-blue), var(--h-green), var(--h-yellow), var(--h-red));

  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --font-en: "Inter Tight", "Noto Sans JP", system-ui, sans-serif;
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --r-card: 20px;
  --r-btn: 999px;
  --gutter: 16px;
  --wrap: 1180px;
  --header-h: 64px;
  --shadow: 0 8px 24px rgba(10, 14, 28, .06);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; text-wrap: balance; font-feature-settings: "palt"; }
/* 日本語は「言葉のまとまり」で折り返す（切れ目はビルド時に入れている） */
h1, h2, h3, main p, main li, main dd, .member-copy, .member-role { word-break: keep-all; overflow-wrap: anywhere; }
main p, main li { text-wrap: pretty; }
.split .word { display: inline-block; white-space: nowrap; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, 820px); margin-inline: auto; }
.sec { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.sec-tight { padding-block: clamp(56px, 8vw, 96px); }
.bg-2 { background: var(--bg-2); }
.night { background: var(--night); color: var(--on-night); }
.night .muted { color: var(--on-night-2); }
.muted { color: var(--ink-2); }
.en { font-family: var(--font-en); }
.num { font-family: var(--font-en); font-variant-numeric: tabular-nums; }

/* ---------- 見出し ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--rainbow); }
.night .eyebrow, .hero .eyebrow { color: rgba(255, 255, 255, .78); }
.h-display {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(44px, 9vw, 120px); line-height: .95; letter-spacing: -.045em;
}
.h1 { font-size: clamp(32px, 5.6vw, 64px); letter-spacing: -.03em; line-height: 1.22; }
.h2 { font-size: clamp(26px, 4vw, 44px); letter-spacing: -.025em; line-height: 1.3; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.95; color: var(--ink-2); max-width: 46em; }
.night .lead { color: var(--on-night-2); }
.serif { font-family: var(--font-serif); font-weight: 800; letter-spacing: .02em; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .h2 + .lead { margin-top: 20px; }
.grad-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- ボタン ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-btn);
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform; isolation: isolate; overflow: hidden;
}
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--rainbow); opacity: 0; transition: opacity .35s var(--ease);
}
.btn-primary:hover::after { opacity: .18; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .1); }
.btn-rainbow { background: var(--night); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.btn-rainbow::before {
  content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: inherit;
  background: var(--rainbow-c); filter: blur(10px); opacity: .55;
  animation: spin 6s linear infinite;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; min-height: 44px; }
.link-arrow .circle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px currentColor; transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.link-arrow:hover .circle { transform: translateX(4px); background: var(--ink); color: #fff; box-shadow: none; }
.night .link-arrow:hover .circle { background: #fff; color: var(--ink); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: transform .45s var(--ease), color .3s var(--ease);
  color: var(--ink);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -.5px 0 rgba(0, 0, 0, .08);
  opacity: 0; transition: opacity .3s var(--ease);
}
.header.is-solid::before { opacity: 1; }
.header.is-dark { color: #fff; }
.header.is-dark.is-solid::before { background: rgba(7, 10, 20, .6); box-shadow: inset 0 -.5px 0 rgba(255, 255, 255, .12); }
.header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 26px; width: auto; }
.brand .logo-white { display: none; }
.header.is-dark .brand .logo-dark { display: none; }
.header.is-dark .brand .logo-white { display: block; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 12px; font-size: 14px; font-weight: 500; border-radius: 10px;
  transition: background-color .2s var(--ease);
}
.nav a:hover { background: rgba(127, 127, 127, .12); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--rainbow);
}
.nav .nav-ext { display: inline-flex; gap: 4px; align-items: center; }
.nav .nav-cta { margin-left: 8px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; }
.header.is-dark .nav .nav-cta { background: #fff; color: var(--ink); }
.nav .nav-cta:hover { background: var(--ink); opacity: .86; }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--rainbow); transform-origin: 0 50%; transform: scaleX(0); }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 12px; z-index: 2;
}
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-sheet), opacity .2s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1240px) { .nav { display: flex; } .menu-btn { display: none; } }

/* スマホメニュー（すりガラス・時間差で項目が出る） */
.drawer {
  position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) 24px 40px;
  background: rgba(7, 10, 20, .82);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  color: #fff; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-open .drawer { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.menu-open .header { color: #fff; }
.menu-open .header .logo-dark { display: none; }
.menu-open .header .logo-white { display: block; }
.drawer a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: .5px solid rgba(255, 255, 255, .14);
  font-size: 22px; font-weight: 700; letter-spacing: -.01em;
  transform: translateY(16px); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.drawer a small { font-family: var(--font-en); font-size: 11px; letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.menu-open .drawer a { transform: none; opacity: 1; }
.drawer .drawer-cta { margin-top: 28px; border: 0; justify-content: center; background: #fff; color: var(--ink); border-radius: 999px; font-size: 16px; padding: 16px; }
body.menu-open { overflow: hidden; }

/* ---------- ヒーロー（暗い舞台＋3D） ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: radial-gradient(120% 80% at 70% 20%, #141a33 0%, var(--night) 60%);
  color: var(--on-night); overflow: hidden; isolation: isolate;
}
.hero-sub { min-height: min(86svh, 760px); }
.hero canvas.stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 62%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 10, 20, .92) 20%, transparent);
}
/* 幅は .wrap に任せる */
.hero-inner { padding-bottom: clamp(40px, 9vh, 96px); padding-top: calc(var(--header-h) + 40px); }
.hero .h-display, .hero .h1 { color: #fff; }
.hero-title { font-size: clamp(38px, 8.4vw, 104px); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; }
.hero-title .thin { font-weight: 300; }
.hero-lead { margin-top: 24px; max-width: 34em; color: var(--on-night-2); font-size: clamp(15px, 1.5vw, 18px); }
.hero .btn-row { margin-top: 32px; }
.ticker { position: relative; height: 1.8em; margin-top: 18px; font-size: clamp(14px, 1.4vw, 16px); color: rgba(255, 255, 255, .8); overflow: hidden; }
.ticker span {
  position: absolute; inset: 0; opacity: 0; transform: translateY(70%); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
.ticker span.on { opacity: 1; transform: none; filter: none; }
.ticker span.off { opacity: 0; transform: translateY(-70%); filter: blur(6px); }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .6); writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .5); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .6; }

/* ---------- 文字の出現 ---------- */
.split .ch { display: inline-block; transform: translateY(.7em); opacity: 0; filter: blur(4px);
  transition: transform 1s var(--ease), opacity .8s var(--ease), filter .8s var(--ease);
  transition-delay: calc(var(--i) * 28ms + var(--d, 0ms)); }
.split.in .ch { transform: none; opacity: 1; filter: none; }
.split .sp { display: inline-block; width: .28em; }
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.mask > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.mask.in > span, .in .mask > span { transform: none; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { overflow: hidden; border-radius: var(--r-card); }
.reveal-img img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.reveal-img.in img { transform: scale(1); }
.reveal-img { clip-path: inset(12% 6% 12% 6% round var(--r-card)); transition: clip-path 1.3s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0 0 round var(--r-card)); }

/* スクロールで文字が濃くなる文 */
.scrub { font-size: clamp(22px, 3.4vw, 40px); line-height: 1.7; font-weight: 700; letter-spacing: -.01em; font-feature-settings: "palt"; }
.scrub .w { opacity: .14; transition: opacity .25s linear; }
.scrub .w.on { opacity: 1; }

/* ---------- 流れる帯 ---------- */
.marquee { overflow: hidden; border-block: .5px solid var(--line); padding-block: 18px; background: var(--bg); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-en); font-weight: 700; font-size: clamp(28px, 5vw, 64px); letter-spacing: -.03em; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span i { width: .5em; height: .5em; border-radius: 50%; background: var(--rainbow-c); display: inline-block; }
.marquee .stroke { color: transparent; -webkit-text-stroke: 1px var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- 事業カード（重なって積み上がる） ---------- */
.stack { display: grid; gap: 24px; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: grid; gap: 0; overflow: hidden; border-radius: 28px; min-height: min(78svh, 640px);
  background: var(--night-2); color: var(--on-night); transform-origin: 50% 0;
  box-shadow: 0 -12px 40px rgba(7, 10, 20, .18), inset 0 0 0 .5px rgba(255,255,255,.08);
}
.stack-card:nth-child(2) { top: calc(var(--header-h) + 32px); }
.stack-card:nth-child(3) { top: calc(var(--header-h) + 48px); }
@media (min-width: 900px) { .stack-card { grid-template-columns: 1.05fr 1fr; } }
.stack-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.stack-num { font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: var(--on-night-2); display: flex; gap: 12px; align-items: center; }
.stack-num b { font-size: 13px; color: #fff; }
/* 事業名は必ず1行（画面幅に合わせて文字の大きさを変える） */
.stack-title { white-space: nowrap; font-size: min(7vw, 34px); letter-spacing: -.03em; line-height: 1.15; margin-top: 16px; }
@media (min-width: 900px) { .stack-title { font-size: clamp(30px, 3.1vw, 44px); } }
.stack-en { font-family: var(--font-en); font-weight: 700; font-size: clamp(14px, 1.4vw, 16px); letter-spacing: .16em; }
.stack-visual { position: relative; min-height: 280px; overflow: hidden; }
.stack-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.stack-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack-card .muted { color: var(--on-night-2); }
.stack-card .tag { font-size: 14px; color: var(--on-night-2); }

/* 心拍・ネットワークの絵（SVG で動く） */
.viz-pulse .ring { fill: none; stroke-width: 1.5; transform-origin: 50% 50%; transform-box: view-box; animation: pulse 3.6s var(--ease) infinite; animation-delay: calc(var(--k) * -.6s); opacity: 0; }
@keyframes pulse { 0% { transform: scale(.2); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.viz-pulse .ecg { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: ecg 2.6s cubic-bezier(.6,.05,.3,1) infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 600; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.viz-net line { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 4s var(--ease) infinite; animation-delay: calc(var(--k) * .12s); }
@keyframes draw { 0% { stroke-dashoffset: 200; } 40%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }
.viz-net circle { transform-box: fill-box; transform-origin: center; animation: blink 4s var(--ease) infinite; animation-delay: calc(var(--k) * .12s); }
@keyframes blink { 0%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1.15); opacity: 1; } }

/* ---------- 野球スクール（PUMPS）入口 ---------- */
.school {
  position: relative; display: grid; overflow: hidden; border-radius: 32px; isolation: isolate;
  background: radial-gradient(90% 120% at 85% 10%, #1b2a5c 0%, #0a1024 55%, #05070f 100%);
  color: #fff; min-height: 560px;
  box-shadow: 0 30px 80px rgba(7, 10, 20, .25);
  transition: transform .5s var(--ease);
}
.school:active { transform: scale(.985); }
@media (min-width: 900px) { .school { grid-template-columns: 1.1fr 1fr; } }
.school-body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px; position: relative; z-index: 1; }
.school-logo { width: 150px; height: auto; }
.school-title { font-size: clamp(34px, 5.6vw, 68px); line-height: 1.1; letter-spacing: -.04em; font-weight: 800; }
.school-title .accent { background: linear-gradient(90deg, #c8ff3d, #6ee7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.school-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.school-meta span { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); }
.school-go { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; font-weight: 700; font-size: 16px; }
.school-go .circle { width: 56px; height: 56px; border-radius: 50%; background: #c8ff3d; color: #0a1024; display: grid; place-items: center; transition: transform .45s var(--spring); }
.school:hover .school-go .circle { transform: rotate(-45deg) scale(1.06); }
.school-stage { position: relative; min-height: 320px; }
.school-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.school-stage .hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .14em; color: rgba(255, 255, 255, .5); font-family: var(--font-en); white-space: nowrap; }
.school::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(80% 80% at 70% 40%, #000, transparent); }

/* ---------- HERO's CUP 入口（大会の色：オレンジ×ネイビー） ---------- */
.heros { position: relative; display: grid; overflow: hidden; border-radius: 32px; isolation: isolate; min-height: 520px; color: #fff;
  background: radial-gradient(90% 120% at 80% 20%, #ff8a3d 0%, #f26b21 38%, #14356e 100%); box-shadow: 0 30px 80px rgba(20, 53, 110, .25); transition: transform .5s var(--ease); }
.heros:active { transform: scale(.985); }
@media (min-width: 900px) { .heros { grid-template-columns: 1.1fr 1fr; } }
.heros-body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 16px; position: relative; z-index: 1; }
.heros-en { margin: 0; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .8); }
.heros-title { font-family: var(--font-serif); font-size: clamp(40px, 6.4vw, 76px); line-height: 1.1; letter-spacing: .02em; }
.heros-title span { color: #ffd23f; }
.heros-lead { margin: 0; font-weight: 700; font-size: 17px; }
.heros-rules { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.heros-rules li { font-size: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .85); }
.heros-rules b { display: block; font-size: 15px; color: #fff; }
.heros-next { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, .85); }
.heros-next span { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px; background: #ffd23f; color: #14356e; font-weight: 700; }
.heros-circle { background: #ffd23f !important; color: #14356e !important; }
.heros:hover .school-go .circle { transform: translateX(4px) scale(1.06); }
.heros-visual { position: relative; min-height: 300px; display: grid; place-items: center; }
.heros-visual img { position: relative; width: min(82%, 440px); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: heros-float 6s ease-in-out infinite; }
.heros-rays { position: absolute; inset: -20%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .12) 0 6deg, transparent 6deg 18deg); mask-image: radial-gradient(closest-side, #000 20%, transparent 75%); animation: spin 40s linear infinite; }
@keyframes heros-float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* ---------- 写真の横スクロール ---------- */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 auto; width: min(78vw, 460px); margin: 0; scroll-snap-align: start; }
.gallery figure:nth-child(even) { margin-top: 48px; }
.gallery .ph { aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--bg-2); }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.gallery figure:hover .ph img { transform: scale(1.04); }
.gallery figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
@media (min-width: 900px) { .gallery { padding-inline: calc((100vw - var(--wrap)) / 2); margin-inline: calc((100vw - var(--wrap)) / -2); } }

/* ---------- 講演実績 ---------- */
.talks { display: grid; gap: 16px; }
@media (min-width: 900px) { .talks { grid-template-columns: 1.1fr 1fr 1fr; align-items: stretch; } }
.talk-stat { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 4vw, 44px); background: var(--night); color: #fff; isolation: isolate; display: flex; flex-direction: column; gap: 4px; }
.talk-stat::before { content: ""; position: absolute; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: var(--rainbow-c); filter: blur(70px); opacity: .32; z-index: -1; animation: spin 20s linear infinite; }
.talk-stat .k { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: rgba(255, 255, 255, .6); margin: 0 0 8px; }
.talk-num { margin: 0; display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.talk-num .num { flex: none; white-space: nowrap; font-size: clamp(88px, 9vw, 128px); font-weight: 800; letter-spacing: -.05em; }
.talk-num .pre, .talk-num .unit { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.talk-label { font-size: 18px; font-weight: 700; margin: 8px 0 20px; }
.talk-tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.talk-tags li { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); }
.talk-stat .link-arrow { margin-top: auto; }
.talk-photo { margin: 0; }
.talk-photo .ph { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
@media (max-width: 899px) { .talk-photo .ph { aspect-ratio: 4 / 3; } }
.talk-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.talk-photo:hover img { transform: scale(1.04); }
.talk-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

/* ---------- メンバー ---------- */
.members { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.member { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 4; background: var(--night-2); color: #fff; isolation: isolate; transform-style: preserve-3d; }
.member img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.member:hover img { transform: scale(1.06); }
.member::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 10, 20, .9) 0%, rgba(7, 10, 20, .2) 50%, transparent 70%); }
.member-body { position: absolute; inset: auto 0 0; padding: 20px; }
.member-role { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.member-name { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.member-copy { position: absolute; top: 20px; right: 16px; writing-mode: vertical-rl; font-family: var(--font-serif); font-weight: 800; font-size: 15px; letter-spacing: .1em; line-height: 1.6; max-height: 62%; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.member .go { position: absolute; right: 16px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); transition: transform .4s var(--ease), background-color .3s; }
.member:hover .go { transform: translateX(4px); background: #fff; color: var(--ink); }

/* 傾き＋光（ホバーできる端末だけ） */
.tilt { transition: transform .6s var(--ease); will-change: transform; }
.tilt .glare { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 45%); }
.tilt:hover .glare { opacity: 1; }

/* ---------- お知らせ ---------- */
.news { border-top: .5px solid var(--line); }
.news a { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: center; padding: 22px 4px; border-bottom: .5px solid var(--line); transition: background-color .25s var(--ease), padding .4s var(--ease); }
.news a:hover { background: var(--bg-2); padding-inline: 16px; }
.news time { font-size: 14px; color: var(--ink-2); }
.news .cat { font-size: 11px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); justify-self: start; }
@media (max-width: 640px) { .news a { grid-template-columns: auto 1fr; } .news a .t { grid-column: 1 / -1; } .news a .circle { display: none; } }

/* ---------- 締めの帯 ---------- */
.cta { position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.cta-mark { width: min(100%, 620px); aspect-ratio: 1; margin: -40px auto -4%; position: relative; }
.cta-mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.cta-mark canvas.ready { opacity: 1; }
.cta .h1 { position: relative; }

/* ---------- 汎用：カード・表・一覧 ---------- */
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { position: relative; background: #fff; border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow), inset 0 0 0 .5px var(--line); overflow: hidden; }
.bg-2 .card { background: #fff; }
.night .card { background: var(--night-2); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.card .k { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--ink-3); }
.card h3 { margin: 10px 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card .big-k { position: absolute; right: -8px; top: -28px; font-family: var(--font-en); font-weight: 800; font-size: 140px; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; }
.card .bar { height: 3px; width: 40px; border-radius: 3px; background: var(--rainbow); margin-bottom: 18px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.card.in .bar, .in .card .bar { transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); }
.night .chips span { background: rgba(255, 255, 255, .08); }
.icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); margin-bottom: 18px; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon svg * { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease) .15s; }
.in .icon svg *, .icon.in svg * { stroke-dashoffset: 0; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 32px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .4em; width: 20px; height: 20px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; transform: scale(0); transition: transform .5s var(--spring) calc(var(--i, 0) * 80ms + .2s); }
.in .list-check li::before, .list-check.in li::before { transform: none; }
.hero canvas.stage { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero canvas.stage.ready { opacity: 1; }
.list-dot { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-dot li { position: relative; padding-left: 20px; }
.list-dot li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--rainbow-c); }
.split-2 { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1fr 1fr; } .split-2.rev > :first-child { order: 2; } }
.photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }

/* 会社情報の表 */
.dl { display: grid; border-top: .5px solid var(--line); margin: 0; }
.dl > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 20px 4px; border-bottom: .5px solid var(--line); }
.dl dt { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.dl dd { margin: 0; }
@media (max-width: 560px) { .dl > div { grid-template-columns: 1fr; gap: 4px; } }

/* 開閉（途中で掴める：transition で書く） */
.acc { border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow), inset 0 0 0 .5px var(--line); overflow: hidden; }
.acc + .acc { margin-top: 12px; }
.acc button { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 16px; padding: 18px 24px; background: none; border: 0; text-align: left; cursor: pointer; font-weight: 700; font-size: 17px; }
.acc button .n { font-family: var(--font-en); font-size: 13px; color: var(--ink-3); }
.acc button .pm { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); position: relative; flex: none; transition: transform .45s var(--ease-sheet); }
.acc button .pm::before, .acc button .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); border-radius: 2px; }
.acc button .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease-sheet); }
.acc.open button .pm { transform: rotate(180deg); }
.acc.open button .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-sheet); }
.acc.open .panel { grid-template-rows: 1fr; }
.acc .panel > div { overflow: hidden; }
.acc .panel ul { padding: 0 24px 24px; }

/* 数字の比較（離職率） */
.compare { display: grid; gap: 14px; margin-top: 20px; }
.compare .row { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.compare .track { height: 12px; border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.compare .fill { height: 100%; border-radius: inherit; background: var(--ink-3); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.compare .row.good .fill { background: var(--h-blue); }
.in .compare .fill, .compare.in .fill { transform: scaleX(var(--v)); }
.compare b { font-size: 18px; }

/* 吹き出し */
.voices { display: grid; gap: 12px; }
.voice { background: #fff; border-radius: 20px 20px 20px 6px; padding: 16px 20px; box-shadow: var(--shadow), inset 0 0 0 .5px var(--line); max-width: 30em; font-weight: 500; }
.voice:nth-child(2) { margin-left: auto; border-radius: 20px 20px 6px 20px; }

/* プログラム一覧（潤化） */
.prog { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: p; }
.prog li { list-style: none; padding: 20px 22px; border-radius: 16px; background: var(--night-2); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); counter-increment: p; position: relative; font-weight: 700; }
.prog li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--font-en); font-size: 12px; color: var(--on-night-2); margin-bottom: 6px; letter-spacing: .12em; }
.prog li small { display: block; font-weight: 400; color: var(--on-night-2); font-size: 13px; margin-top: 2px; }

/* 「そのためには」連続文 */
.chain { display: grid; gap: 4px; }
.chain p { margin: 0; font-size: clamp(20px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.5; opacity: .16; transition: opacity .5s var(--ease), transform .6s var(--ease); transform: translateX(-8px); font-feature-settings: "palt"; }
.chain p.on { opacity: 1; transform: none; }
.chain p.last { margin-top: 24px; }
.chain p.last.on { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 行動指針の大文字 */
.values { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.value { position: relative; border-radius: var(--r-card); padding: 24px; background: var(--night-2); color: #fff; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.value .L { position: absolute; top: -10px; left: 14px; font-family: var(--font-en); font-weight: 800; font-size: 140px; line-height: 1; letter-spacing: -.06em; z-index: -1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); transition: transform .8s var(--ease); }
.value:hover .L { transform: translateY(-6px); }
.value b { font-family: var(--font-en); font-size: 20px; letter-spacing: -.01em; }
.value span { font-size: 13px; color: var(--on-night-2); }
.value i { position: absolute; inset: auto 0 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease) calc(var(--i) * 90ms); }
.in .value i, .value.in i { transform: none; }

/* 引用（代表メッセージ） */
.letter { font-family: var(--font-serif); font-weight: 700; font-size: clamp(17px, 1.8vw, 20px); line-height: 2.2; letter-spacing: .04em; }
.letter p { margin-bottom: 1.6em; }
.haki { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-block: 32px; }
.haki div { border-radius: 16px; padding: 18px 20px; background: var(--bg-2); font-family: var(--font); }
.haki b { font-family: var(--font-en); font-size: 28px; letter-spacing: -.03em; display: block; line-height: 1.1; }
.haki b em { font-style: normal; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.haki span { font-size: 13px; color: var(--ink-2); }
.sign { text-align: right; font-family: var(--font); font-weight: 700; }

/* フォーム */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.field .req { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-2); border: 0; border-radius: 14px; padding: 14px 16px; min-height: 52px;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--h-blue); }
.field .err { font-size: 13px; color: var(--h-red); display: none; }
.field.bad .err { display: block; }
.field.bad input, .field.bad select, .field.bad textarea { box-shadow: inset 0 0 0 2px var(--h-red); }
.note { font-size: 13px; color: var(--ink-2); }

/* フッター */
.footer { background: var(--night); color: var(--on-night); padding: 80px 0 32px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--rainbow); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } }
.footer-logo { height: 30px; width: auto; }
.footer .slogan { font-family: var(--font-en); font-weight: 800; font-size: clamp(36px, 6vw, 72px); letter-spacing: -.04em; line-height: 1; margin: 28px 0 16px; }
.footer nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
.footer nav a { padding: 10px 0; color: var(--on-night-2); font-size: 14px; transition: color .2s; }
.footer nav a:hover { color: #fff; }
.footer .addr { font-size: 13px; color: var(--on-night-2); }
.footer .copy { margin-top: 56px; padding-top: 24px; border-top: .5px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .45); font-family: var(--font-en); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 浮かぶ相談ボタン（スマホ） */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff;
  background: rgba(10, 14, 28, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 8px 24px rgba(7, 10, 20, .25), inset 0 0 0 .5px rgba(255, 255, 255, .16);
  transform: translateY(140%); transition: transform .45s var(--ease-sheet); }
.fab.show { transform: none; }
.fab:active { transform: scale(.96); }
.fab i { width: 8px; height: 8px; border-radius: 50%; background: var(--rainbow-c); }
@media (min-width: 1240px) { .fab { display: none; } }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header::before { background: rgba(255, 255, 255, .95); }
  .header.is-dark.is-solid::before { background: rgba(7, 10, 20, .95); }
  .drawer { background: rgba(7, 10, 20, .97); }
  .fab { background: rgba(10, 14, 28, .95); }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .split .ch, .mask > span, .reveal, .reveal-img img { transform: none !important; filter: none !important; }
  .reveal-img { clip-path: none !important; }
  .marquee-track { animation: none !important; }
  .scrub .w { opacity: 1 !important; }
  .chain p { opacity: 1 !important; transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .header::before, .drawer, .fab { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header.is-solid::before { background: #fff; }
}
