/* ============================================================
   tsumiki inc. — style
   ============================================================ */
:root {
  --paper: #EEECE7;
  --paper-2: #E6E3DC;
  --ink: #0E0E0E;
  --ink-2: #4a4946;
  --ink-3: #8b8984;
  --wood: #E8D0AA;
  --red: #F22927;
  --night: #050505;
  --night-2: #0B0B0C;
  --line: rgba(14, 14, 14, .12);
  --line-d: rgba(255, 255, 255, .14);
  --ff-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  /* 見出し: 角の立った力強いゴシック (Noto Sans JP 900) をプロポーショナル詰めで */
  --ff-head: "Noto Sans JP", "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-en: "Space Grotesk", "Zen Kaku Gothic New", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hd-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 8px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ff-ja); font-size: 15px; line-height: 1.9; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sp { display: none; }
@media (max-width: 720px) { .sp { display: inline; } .pc { display: none; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 8px 12px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tri { display: inline-block; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.label .tri, .btn .tri { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 26px;
  border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--ff-en); font-weight: 500; font-size: 15px; letter-spacing: .02em;
  transition: transform .4s var(--ease), background .3s, color .3s; border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn:hover .tri { transform: translateX(3px); }
.btn .tri { transition: transform .3s var(--ease); }
.btn--sm { padding: 9px 18px; font-size: 14px; gap: 10px; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--wood); }
.btn .mono { font-size: 11px; opacity: .6; }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto; height: var(--hd-h); z-index: 50; transition: background .4s, color .4s, box-shadow .4s; color: #fff; }
.hd__in { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.hd__logo { position: relative; display: block; width: 148px; }
.hd__logo img { width: 100%; height: auto; transition: opacity .4s; }
.hd__logo-dark { position: absolute; inset: 0; opacity: 0; }
.hd[data-theme="light"] { color: var(--ink); background: rgba(238, 236, 231, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.hd[data-theme="light"] .hd__logo-light { opacity: 0; }
.hd[data-theme="light"] .hd__logo-dark { opacity: 1; }
.hd[data-theme="dark"].is-scrolled { background: rgba(5, 5, 5, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hd__nav { display: flex; align-items: center; gap: 28px; }
.hd__nav ul { display: flex; gap: 24px; }
.hd__nav ul a { text-decoration: none; font-family: var(--ff-en); font-size: 14px; font-weight: 500; position: relative; }
.hd__nav ul a i { font-style: normal; font-family: var(--ff-mono); font-size: 9px; opacity: .45; margin-right: 6px; }
.hd__nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.hd__nav ul a:hover::after, .hd__nav ul a.is-current::after { transform: scaleX(1); transform-origin: left; }
.hd[data-theme="dark"] .hd__cta { background: #fff; color: var(--ink); }
.hd__burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.hd__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.hd__burger span:first-child { top: 18px; } .hd__burger span:last-child { top: 25px; }
@media (max-width: 1080px) {
  :root { --hd-h: 60px; }
  .hd__logo { width: 120px; }
  .hd__burger { display: block; z-index: 2; }
  .hd__nav { position: fixed; inset: 0; background: var(--night); color: #fff; flex-direction: column; justify-content: center; gap: 36px; opacity: 0; pointer-events: none; transition: opacity .4s; }
  .hd__nav ul { flex-direction: column; gap: 14px; text-align: center; }
  .hd__nav ul a { font-size: 26px; }
  .hd__nav .hd__cta { background: #fff; color: var(--ink); }
  body.menu-open .hd__nav { opacity: 1; pointer-events: auto; }
  body.menu-open .hd { color: #fff; background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none; }
  body.menu-open .hd__logo-light { opacity: 1; } body.menu-open .hd__logo-dark { opacity: 0; }
  body.menu-open .hd__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .hd__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- intro / hero ---------- */
.intro { position: relative; height: calc(100vh + 300vh); height: calc(100svh + 300svh); /* ヒーローがはけるまでのスクロール量 (+300svh) */ background: var(--intro-bg, var(--night)); color: var(--intro-fg, #fff); }
.intro__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: var(--hd-h); display: flex; flex-direction: column; overflow: hidden; }
#heroExit { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.intro__cap { position: relative; z-index: 3; }
.intro.is-gone #heroExit, body.fallback #heroExit { visibility: hidden; }
.intro__top { position: relative; z-index: 3; }
.hero { position: relative; width: 100%; aspect-ratio: 1920 / 800; flex: none; background: transparent; }
.hero #gpu { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; /* 絶対配置にして、キャンバスの初期サイズ (300×150 = 2:1) でヒーローの高さが一瞬伸びないようにする */ touch-action: pan-y; opacity: 0; transition: opacity 1.2s ease; }
.hero #gpu.ready { opacity: 1; }
.hero.is-gone #gpu { visibility: hidden; }
.hero #src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; pointer-events: none; }   /* display:none にすると Firefox が映像をデコードしない (サイズ 0×0 のまま) ので、透明にして置いておく */
.hero #fallback-logo { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
body.fallback .hero { background: #000; transform: scale(calc(1 - var(--hx, 0) * .08)); opacity: calc(1 - var(--hx, 0) * 1.1); filter: blur(calc(var(--hx, 0) * 10px)); transform-origin: 50% 0; }
body.fallback .hero #gpu { display: none; }
body.fallback .hero #src { display: block; opacity: 1; object-fit: contain; filter: grayscale(1) brightness(.5); }
body.fallback .hero #fallback-logo { display: block; transform: scale(.95); }   /* WebGPU 版のロゴ (logo_95.svg) と同じ 95% */
#msg { position: absolute; left: 50%; bottom: 40px;   /* 下の動画インジケーターと重ならないように */ transform: translateX(-50%); color: rgba(255,255,255,.7); font: 12px/1.6 var(--ff-ja); letter-spacing: .04em; pointer-events: none; opacity: 0; transition: opacity .6s; white-space: nowrap; }
#msg.show { opacity: 1; }
.hero__corner { position: absolute; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.35); pointer-events: none; opacity: calc(1 - var(--hx, 0) * 3); }
.hero__corner--tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.hero__corner--br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
/* 読み込みのたびに流れるロゴのイントロ: パーツごとにばらばらのタイミングで、全部同じ動き。
   決まり位置の少し上から落ちてくる (最初の約 5 フレームでフェードイン) → 着地して一度だけ小さくバウンド。Y 移動のみ */
.hero-intro { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity .9s ease; }
.hero-intro svg { display: block; width: 100%; height: 100%; }
.hero-intro path { fill: #ccc; opacity: 0; animation: introDrop .48s linear forwards; animation-delay: calc(var(--d, 0ms) + 120ms + var(--ch, 0ms)); }
/* RGB をほんの少しずつ遅らせて加算 (重なると元のグレー #ccc に戻る)。ずらす時間は --rgb-shift */
.hero-intro.is-rgb { --rgb-shift: 10ms; isolation: isolate; }
.hero-intro.is-rgb svg { position: absolute; inset: 0; mix-blend-mode: screen; }
.hero-intro.is-rgb .ch-r path { fill: #c00; }
.hero-intro.is-rgb .ch-g path { fill: #0c0; --ch: var(--rgb-shift); }
.hero-intro.is-rgb .ch-b path { fill: #00c; --ch: calc(var(--rgb-shift) * 2); }
@keyframes introDrop {
  0%   { opacity: 0; transform: translateY(-69px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  17%  { opacity: 1; }
  55%  { opacity: 1; transform: translateY(0);     animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  74%  { transform: translateY(-7px);               animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero.is-intro #gpu, .hero.is-intro #gpu.ready { opacity: 0; }
.hero.is-intro .hero-bar, .hero.is-intro .hero__corner { opacity: 0; }
.hero:not(.is-intro) .hero-intro { opacity: 0; }
/* フォントの読み込みと最初の描画が終わるまで (.is-go が付くまで) ロゴのアニメーションを止めておく。途中でページ全体の描き直しが入るとカクつくため */
.hero.is-intro:not(.is-go) .hero-intro path { animation-play-state: paused; }
/* クリックで砕ける: 映像のロゴを一瞬でグレーのロゴに切り替えて、パーツを落とす (js/site.js の heroCrumble) */
.hero.is-crumble #gpu { opacity: 0; transition: opacity .15s ease; }
.hero.is-crumble .hero-intro { opacity: 1; transition: opacity .15s ease; }
.hero.is-crumble .hero-intro path { transform-box: fill-box; transform-origin: 50% 50%; }
.hero.is-crumble .hero-bar, .hero.is-crumble .hero__corner { opacity: 0; }
/* 動画のインジケーター: 控えめな細線 + タイムコード。乗せると少し明るく */
/* 読み込み中の線: ロゴのアニメーション開始 (.is-go) を 0.5 秒以上待ったときだけ、再生バーと同じ位置にふわっと出る */
.hero-wait { position: absolute; left: 14px; right: 46px; bottom: 18px; height: 1px; z-index: 4; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: rgba(255,255,255,.12); }
.hero-wait span { position: absolute; top: 0; left: 0; width: 22%; height: 100%; background: rgba(255,255,255,.75); animation: heroWait 1.1s cubic-bezier(.45, 0, .25, 1) infinite; }
.hero.is-intro:not(.is-go) .hero-wait { animation: heroWaitIn .4s ease .5s forwards; }
@keyframes heroWaitIn { to { opacity: .6; } }
@keyframes heroWait { from { transform: translateX(-100%); } to { transform: translateX(460%); } }
@media (max-width: 720px) { .hero-wait { left: 10px; right: 36px; bottom: 14px; } }
.hero-bar { position: absolute; left: 14px; right: 46px; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 12px; color: #fff; opacity: calc(.42 * (1 - var(--hx, 0) * 3)); transition: opacity .3s; }
.hero-bar:hover, .hero-bar:focus-within { opacity: calc(.9 * (1 - var(--hx, 0) * 3)); }
.hero-bar__play { flex: none; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.hero-bar__play span { width: 7px; height: 8px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.hero-bar.is-paused .hero-bar__play span { width: 0; height: 0; border: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-left: 2px; }
.hero-bar__time { flex: none; font-size: 10px; letter-spacing: .08em; text-transform: none; font-variant-numeric: tabular-nums; }
.hero-bar__time b { font-weight: 400; } .hero-bar__time i { font-style: normal; opacity: .55; }
.hero-bar__track { position: relative; flex: 1; height: 14px; cursor: pointer; outline: none; }
.hero-bar__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.22); }
.hero-bar__fill { position: absolute; left: 0; top: 50%; height: 1px; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--v, 0)); }
.hero-bar__track:hover::before, .hero-bar__track:focus-visible::before { height: 2px; margin-top: -.5px; }
.hero-bar__track:hover .hero-bar__fill, .hero-bar__track:focus-visible .hero-bar__fill { height: 2px; margin-top: -.5px; }
.hero.is-gone .hero-bar { visibility: hidden; }
@media (max-width: 720px) { .hero-bar { left: 10px; right: 36px; bottom: 8px; gap: 8px; } .hero-bar__time { display: none; } }
.intro__top { flex: 1 1 0; min-height: 0; display: flex; align-items: flex-end; padding-bottom: clamp(10px, 1.6vh, 18px); opacity: calc(1 - var(--p, 0) * 2.6); }
.intro__top .intro__meta { width: 100%; }
.intro__cap { flex: 1 1 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: start; column-gap: 32px; padding-top: clamp(14px, 2.4vh, 28px); padding-bottom: clamp(16px, 3vh, 36px); opacity: calc(1 - var(--p, 0) * 2.6); transform: translateY(calc(var(--p, 0) * -40px)); min-height: 0; }
.intro__meta { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); }
.intro__title { grid-column: 1; font-weight: 900; }
.intro__en { display: block; font-family: var(--ff-en); font-weight: 500; font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.intro__ja { display: block; font-size: clamp(28px, 3.8vw, 54px); line-height: 1.2; letter-spacing: .02em; }
.intro__lead { grid-column: 1; color: rgba(255,255,255,.66); font-size: 14px; margin-top: 10px; }
.intro__scroll { grid-column: 2; grid-row: 1 / 3; align-self: end; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.6); writing-mode: vertical-rl; }
.intro__scroll span { width: 1px; height: 64px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.intro__scroll span::after { content: ""; position: absolute; left: 0; width: 1px; height: 24px; background: #fff; animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { from { top: -24px; } to { top: 64px; } }
@media (max-width: 720px) {
  .intro__cap { grid-template-columns: 1fr; }
  .intro__cap { grid-template-rows: auto auto 1fr; }
  .intro__scroll { grid-column: 1; grid-row: 3; margin-top: 24px; justify-self: center; writing-mode: horizontal-tb; flex-direction: column; }
  .intro__hint { display: none; }
  .intro__ja { font-size: clamp(32px, 9.4vw, 44px); }
  .intro__en { font-size: 11px; }
}
@media (max-height: 960px) and (min-width: 721px) { .intro__lead { display: none; } }
@media (max-height: 760px) and (min-width: 721px) { .intro__ja { font-size: clamp(26px, 3.2vw, 44px); } }

/* ---------- section common ---------- */
.sec { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.sec[data-theme="dark"] { background: var(--night-2); color: #fff; }
.sec__head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 860px; position: relative; }
.sec__head--row { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 860px) { .sec__head--row { grid-template-columns: 1fr; gap: 20px; } }
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.label--light, [data-theme="dark"] .label { color: rgba(255,255,255,.6); }
.display { font-weight: 900; font-size: clamp(44px, 7.4vw, 104px); line-height: 1.08; letter-spacing: .01em; }
.display--md { font-size: clamp(34px, 5vw, 68px); line-height: 1.18; }
@media (max-width: 720px) { .display--md { font-size: clamp(26px, 7.4vw, 40px); } }
.lead { font-size: clamp(15px, 1.2vw, 17px); line-height: 2; color: var(--ink-2); margin-top: 24px; max-width: 640px; }
[data-theme="dark"] .lead { color: rgba(255,255,255,.66); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx.is-fallback { display: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- concept ---------- */
/* イントロの最後と重ねて間を詰める (ヒーローがはけ終わる頃に下から入ってくる) */
.concept { padding-top: clamp(40px, 5vw, 72px); background: transparent; overflow: hidden; z-index: 4; margin-top: -70vh; margin-top: -70svh; }
.concept__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.concept .display { font-size: clamp(40px, 5.4vw, 80px); white-space: nowrap; }
@media (max-width: 900px) { .concept .display { font-size: clamp(40px, 11vw, 72px); } }
.concept__en { font-family: var(--ff-en); font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); margin-top: 18px; }
.concept__body { margin-top: 36px; color: var(--ink-2); max-width: 520px; }
.concept__body p + p { margin-top: 1.2em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); max-width: 520px; }
.stats div { padding: 18px 12px 0 0; }
.stats dt { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { font-family: var(--ff-en); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; }
.cube-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 82vh; margin: 0; }
.cube-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.cube-stage canvas.is-grabbing { cursor: grabbing; }
.cube-stage__fallback { position: absolute; left: 50%; top: 50%; width: 52%; height: auto; transform: translate(-50%, -50%); display: none; }
.cube-stage.is-fallback canvas { display: none; }
.cube-stage.is-fallback .cube-stage__fallback { display: block; }
.cube-stage__ui { position: absolute; inset: 0; pointer-events: none; color: var(--ink-2); font-size: 10px; }
.cube-stage__ui > span { position: absolute; }
.cube-stage__tl { left: 28px; top: 20px; } .cube-stage__tr { right: 28px; top: 20px; }
.cube-stage__bl { left: 28px; bottom: 20px; } .cube-stage__br { right: 28px; bottom: 20px; text-align: right; line-height: 2; }
.cube-stage .br { position: absolute; width: 16px; height: 16px; border: 1px solid rgba(14,14,14,.45); }
.br--tl { left: 0; top: 0; border-right: 0 !important; border-bottom: 0 !important; }
.br--tr { right: 0; top: 0; border-left: 0 !important; border-bottom: 0 !important; }
.br--bl { left: 0; bottom: 0; border-right: 0 !important; border-top: 0 !important; }
.br--br { right: 0; bottom: 0; border-left: 0 !important; border-top: 0 !important; }
@media (max-width: 900px) {
  .concept__grid { grid-template-columns: 1fr; }
  .cube-stage { order: -1; aspect-ratio: 1 / .9; margin: 0 calc(var(--gutter) * -0.5); width: auto; }
  .cube-stage__tl, .cube-stage__tr { top: 14px; } .cube-stage__tl { left: 18px; } .cube-stage__tr { right: 18px; }
  .cube-stage__bl { left: 18px; bottom: 14px; } .cube-stage__br { right: 18px; bottom: 14px; }
}

/* ---------- service ---------- */
.service { background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.service .wrap { position: relative; }
.svc { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.svc__item { position: relative; padding: 28px 24px 36px 24px; border-right: 1px solid var(--line); background: linear-gradient(var(--paper), rgba(238,236,231,.6)); }
.svc__item + .svc__item { padding-left: 24px; }
.svc__item:last-child { border-right: 0; }
.svc__no { display: block; color: var(--ink-3); margin-bottom: 40px; }
.svc__item h3 { font-family: var(--ff-en); font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.svc__ja { font-weight: 700; font-size: 13px; margin: 8px 0 18px; color: var(--ink-2); }
.svc__item > p:not(.svc__ja) { font-size: 14px; color: var(--ink-2); line-height: 1.95; }
.svc__item--new::before { content: "NEW"; position: absolute; top: 26px; right: 24px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 99px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .06em; padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); background: rgba(255,255,255,.4); }
@media (max-width: 1080px) { .svc { grid-template-columns: 1fr 1fr; } .svc__item:nth-child(2) { border-right: 0; } .svc__item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .svc { grid-template-columns: 1fr; } .svc__item, .svc__item + .svc__item { padding: 26px 20px 32px; border-right: 0; border-top: 1px solid var(--line); } .svc__item:first-child { border-top: 0; } .svc__no { margin-bottom: 16px; } .svc__item--new::before { right: 0; } }

.ideas { margin-top: clamp(80px, 9vw, 130px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); padding: clamp(32px, 4vw, 56px); background: var(--ink); color: #fff; border-radius: 4px; position: relative; overflow: hidden; }
.ideas .label { color: rgba(255,255,255,.55); }
.ideas__title { font-size: clamp(28px, 3vw, 42px); font-weight: 900; line-height: 1.3; margin-bottom: 16px; }
.ideas__head > p:last-child { color: rgba(255,255,255,.65); font-size: 14px; }
.ideas__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: center; }
.ideas__list li { padding: 16px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; display: flex; gap: 16px; align-items: baseline; }
.ideas__list b { flex: none; width: 76px; font-family: var(--ff-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--wood); text-transform: uppercase; }
@media (max-width: 900px) { .ideas { grid-template-columns: 1fr; } .ideas__list { grid-template-columns: 1fr; } }

.flow { margin-top: clamp(64px, 8vw, 110px); }
.flow__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: f; margin-bottom: 44px; }
.flow__list li { position: relative; padding: 22px 22px 24px; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 4px; }
.flow__list li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; z-index: 1; border-left: 7px solid var(--red); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transform: translateY(-50%); }
.flow__list .mono { color: var(--ink-3); }
.flow__list b { display: block; font-size: 18px; margin: 10px 0 6px; }
.flow__list small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 860px) { .flow__list { grid-template-columns: 1fr 1fr; } .flow__list li:nth-child(2)::after { display: none; } }
@media (max-width: 480px) { .flow__list { grid-template-columns: 1fr; } .flow__list li::after { display: none; } }

/* ---------- works ---------- */
.works { position: relative; background: var(--night-2); color: #fff; }
.works__pin { position: relative; height: 230vh; }
.works__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.works__stage canvas { width: 100%; height: 100%; }
.works__fallback { display: none; }
.works__overlay { position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; pointer-events: none; position: sticky; margin-top: -100vh; margin-top: -100svh; }
.works__count { font-family: var(--ff-en); font-weight: 700; font-size: clamp(110px, 20vw, 300px); line-height: .85; letter-spacing: -.04em; text-shadow: 0 0 60px rgba(0,0,0,.6); }
.works__count sup { font-size: .3em; color: var(--red); vertical-align: top; margin-left: .05em; }
.works__count .works__unit { font-size: .11em; letter-spacing: .14em; vertical-align: top; position: relative; top: .55em; margin-left: .35em; font-weight: 700; }
.works__title { font-family: var(--ff-en); font-weight: 500; font-size: clamp(20px, 2.4vw, 34px); margin-top: 14px; letter-spacing: .01em; }
.works__lead { margin-top: 16px; color: rgba(255,255,255,.8); font-size: 14px; text-shadow: 0 0 12px #000, 0 0 30px #000, 0 0 50px #000; }
.works__scroll { position: sticky; bottom: 28px; text-align: center; color: rgba(255,255,255,.5); margin-top: -40px; }
.works.is-fallback .works__stage canvas { display: none; }
.works.is-fallback .works__fallback { display: grid; position: absolute; inset: -10%; grid-template-columns: repeat(8, 1fr); gap: 10px; transform: rotate(-8deg); opacity: .35; }
.works.is-fallback .works__fallback img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; }
.works__after { position: relative; padding: 40px 0 clamp(96px, 12vw, 160px); }
.strip { overflow: hidden; padding: 44px 0; margin: -44px 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip.is-dragging { cursor: grabbing; }
.strip__row { display: flex; gap: 10px; width: max-content; will-change: transform; }
.strip__row li { position: relative; z-index: 0; }
.strip__row li img { height: 120px; width: auto; border-radius: 3px; filter: saturate(.85); transition: filter .3s, transform .45s var(--ease), box-shadow .45s var(--ease); -webkit-user-drag: none; pointer-events: none; }
/* マウスオーバーした作品は 1.5 倍にポップアップ (ドラッグ中は反応しない) */
.strip__row li:hover { z-index: 2; }
.strip__row li { cursor: zoom-in; outline: none; }
.strip.is-dragging .strip__row li { cursor: grabbing; }
.strip__row li:focus-visible img { outline: 2px solid var(--red, #e5322d); outline-offset: 3px; }

/* ---------- 作品ライトボックス ---------- */
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 72px 96px 64px; background: rgba(8, 8, 9, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s var(--ease); color: #fff; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 100%; }
.lb__img { display: block; max-width: min(100%, 1280px); max-height: calc(100svh - 200px); width: auto; height: auto; border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); opacity: 0; user-select: none; -webkit-user-drag: none; }
.lb__img.is-shown { opacity: 1; }
.lb.no-fx .lb__img { transform: scale(.97); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.lb.no-fx .lb__img.is-shown { transform: none; }
.lb__cap { display: flex; align-items: baseline; gap: 18px; font-size: 14px; color: rgba(255, 255, 255, .78); text-align: center; }
.lb__count { color: rgba(255, 255, 255, .42); }
.lb__btn { position: absolute; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s, transform .35s var(--ease); }
.lb__btn:hover, .lb__btn:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); outline: none; }
.lb__close { top: 20px; right: 20px; }
.lb__close span { position: relative; width: 18px; height: 18px; }
.lb__close span::before, .lb__close span::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: currentColor; transform: rotate(45deg); }
.lb__close span::after { transform: rotate(-45deg); }
.lb__nav { top: 50%; margin-top: -26px; }
.lb__prev { left: 24px; } .lb__next { right: 24px; }
.lb__nav span { width: 10px; height: 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.lb__prev span { transform: translateX(2px) rotate(-135deg); } .lb__next span { transform: translateX(-2px) rotate(45deg); }
.lb__prev:hover { transform: translateX(-3px); } .lb__next:hover { transform: translateX(3px); }
@media (max-width: 720px) {
  .lb { padding: 64px 16px 96px; }
  .lb__img { max-height: calc(100svh - 220px); }
  .lb__cap { flex-direction: column; gap: 6px; font-size: 13px; }
  .lb__nav { top: auto; bottom: 22px; margin-top: 0; }
  .lb__prev { left: calc(50% - 64px); } .lb__next { right: calc(50% - 64px); }
}
.strip:not(.is-dragging) .strip__row li:hover img { filter: none; transform: scale(1.5); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
@media (max-width: 720px) { .strip__row li img { height: 84px; } }
.reel { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.reel__title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 900; line-height: 1.4; margin-bottom: 20px; }
.reel__text > p:last-child { color: rgba(255,255,255,.66); }
.reel__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.reel__screen { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-d); border-radius: 4px; display: grid; place-items: center; position: relative; overflow: hidden; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px), radial-gradient(circle at 50% 50%, #1b1b1d, #070708); }
.reel__screen .mono { position: absolute; left: 16px; bottom: 12px; color: rgba(255,255,255,.4); font-size: 10px; }
.reel__play { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); position: relative; }
.reel__play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--red); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
@media (max-width: 860px) { .reel { grid-template-columns: 1fr; } }
/* クライアントワーク（一部） */
.cw { margin-top: clamp(48px, 6vw, 80px); }
.cw__head { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0 0 16px; color: rgba(255,255,255,.66); }
.cw__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px clamp(12px, 1.4vw, 20px); }
.cw__item figure { margin: 0 0 10px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #111; }
.cw__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.cw__item:hover img { transform: scale(1.03); }
.cw__client { font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: .08em; margin: 0 0 4px; }
.cw__title { font-size: 13px; font-weight: 700; margin: 0 0 4px; line-height: 1.5; }
.cw__role { font-size: 12px; color: rgba(255,255,255,.66); margin: 0; }
@media (max-width: 860px) { .cw__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- library ---------- */
.library { overflow: hidden; }
.library .wrap { position: relative; }
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.demo { display: block; text-decoration: none; color: #fff; }
.demo__thumb { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; background: #111; position: relative; }
.demo__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: saturate(.9); }
.demo__thumb::after { content: "OPEN DEMO"; position: absolute; right: 12px; bottom: 12px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; padding: 6px 10px; border-radius: 99px; background: #fff; color: var(--ink); opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.demo:hover .demo__thumb img { transform: scale(1.05); filter: none; }
.demo:hover .demo__thumb::after { opacity: 1; transform: none; }
.demo__meta { display: flex; justify-content: space-between; margin-top: 16px; color: rgba(255,255,255,.5); font-size: 10px; }
.demo__title { display: block; font-family: var(--ff-en); font-weight: 700; font-size: 22px; margin-top: 6px; }
.demo__desc { display: block; font-size: 13px; color: rgba(255,255,255,.66); margin-top: 4px; }
.library__foot { margin-top: clamp(48px, 6vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.library__foot > p { color: rgba(255,255,255,.45); }
/* 「ライブラリを見る」: ボタンの中に、トップに出ていない他のデモのサムネを重ねて並べる */
.btn--lib { padding: 12px 30px 12px 32px; gap: 22px; }
.lib__txt { display: inline-flex; align-items: baseline; white-space: nowrap; }
.lib__thumbs { display: flex; align-items: center; padding-left: 30px; }
.lib__thumbs img { width: 80px; height: 45px; object-fit: cover; border-radius: 7px; margin-left: -30px; position: relative; z-index: calc(20 - var(--i));
  box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.22); background: #222;
  transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 25ms); }
.btn--lib:hover .lib__thumbs img { transform: translateY(-4px) rotate(calc((var(--i) - 4) * 1.2deg)); }
.lib__more { margin-left: 10px; font-size: 11px; letter-spacing: .1em; opacity: .55; }
@media (max-width: 640px) {
  .btn--lib { flex-wrap: wrap; justify-content: center; border-radius: 22px; padding: 18px 18px 16px; gap: 14px 16px; width: 100%; }
  .lib__thumbs { order: 3; width: 100%; justify-content: center; }
  .lib__thumbs img { width: 72px; height: 40px; }
  .lib__thumbs img:nth-child(n+6) { display: none; }
}
@media (max-width: 860px) { .demos { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- team ---------- */
.staff { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2vw, 30px); }
/* 5人が1行に並ぶと狭くなる幅では、3人ずつ並べる */
@media (max-width: 1240px) { .staff { grid-template-columns: repeat(3, 1fr); } }
.staff figure { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.staff img { width: 100%; height: 100%; object-fit: cover; }
/* WebGPU のホバー演出用キャンバス (写真の上にぴったり重ねる。準備ができるまでは写真がそのまま見える) */
.staff__fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; pointer-events: none; }
.staff__fx.is-ready { opacity: 1; }
.staff__role { margin-top: 18px; color: var(--ink-3); font-size: 10px; text-transform: none; letter-spacing: .08em; }
.staff h3 { font-size: 22px; font-weight: 700; margin: 4px 0 12px; }
.staff h3 span { display: block; font-family: var(--ff-en); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; }
.staff__item > p:last-child { font-size: 13px; line-height: 1.95; color: var(--ink-2); }
.staff__note { margin-top: clamp(36px, 4vw, 56px); font-size: 14px; color: var(--ink-2); }
@media (max-width: 1080px) { .staff { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .staff { grid-template-columns: 1fr; } .staff figure { max-width: 320px; } }

/* ---------- company ---------- */
.company { border-top: 1px solid var(--line); }
.company__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.info { border-top: 1px solid var(--ink); }
.info > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info dt { font-weight: 700; }
.info dd { color: var(--ink-2); }
.info a { text-decoration: none; }
.map { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--paper-2); filter: grayscale(.9) contrast(1.05); transition: filter .6s; }
.map:hover { filter: none; }
.map iframe { width: 100%; height: 100%; }
.stations { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 20px; }
.stations li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.stations b { font-weight: 700; }
.stations small { width: 100%; font-size: 11px; color: var(--ink-3); }
.note { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 900px) { .company__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .info > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- recruit / faq ---------- */
.recruit { border-top: 1px solid var(--line); background: var(--paper-2); }
.recruit__grid, .faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.jobs { border-top: 1px solid var(--ink); margin-bottom: 24px; }
.jobs li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 700; display: flex; gap: 20px; align-items: baseline; }
.jobs .mono { color: var(--ink-3); }
.recruit__list > p { color: var(--ink-2); margin-bottom: 28px; }
.faq { border-top: 1px solid var(--line); }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-75%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .recruit__grid, .faq__grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact .display, .recruit .display, .faq .display, .team .display, .company .display { font-size: clamp(28px, 3.2vw, 46px); }
.contact .wrap { position: relative; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__direct { margin-top: 40px; border-top: 1px solid var(--line-d); }
.contact__direct li { display: flex; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.contact__direct .mono { width: 64px; flex: none; color: rgba(255,255,255,.45); }
.contact__tel { display: flex; flex-direction: column; gap: 4px; }
.contact__tel small { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.45); letter-spacing: .04em; }
.contact__direct a { font-family: var(--ff-en); font-size: clamp(18px, 1.7vw, 24px); text-decoration: none; }
.sns { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.sns a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border: 1px solid var(--line-d); border-radius: 99px; text-decoration: none; font-family: var(--ff-en); font-size: 13px; transition: background .3s, color .3s; }
.sns a:hover { background: #fff; color: var(--ink); }
.sns svg { width: 16px; height: 16px; fill: currentColor; }
.form { background: rgba(10,10,11,.72); border: 1px solid var(--line-d); border-radius: 6px; padding: clamp(22px, 3vw, 40px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.form label > span, .form legend { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: rgba(255,255,255,.8); }
.form em { font-style: normal; font-size: 10px; color: var(--red); margin-left: 8px; font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line-d); border-radius: 4px; color: #fff;
  font: 15px/1.6 var(--ff-ja); padding: 12px 14px; transition: border-color .3s, background .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }
.form textarea { resize: vertical; min-height: 140px; }
.form__row { margin-bottom: 18px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__type { border: 0; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.form__type legend { margin-bottom: 10px; }
.form__type label { cursor: pointer; }
.form__type input { position: absolute; opacity: 0; pointer-events: none; }
.form__type label span { display: inline-block; margin: 0; padding: 8px 14px; border: 1px solid var(--line-d); border-radius: 99px; font-size: 13px; font-weight: 500; transition: .25s; }
.form__type input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.form__type input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form__check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; cursor: pointer; font-size: 13px; }
.form__check input { margin-top: 5px; accent-color: var(--red); width: 16px; height: 16px; }
.form__check span { margin: 0 !important; font-weight: 500 !important; }
.form__msg { display: block; margin-bottom: 20px; }
.hp { position: absolute !important; left: -9999px !important; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 11px; color: rgba(255,255,255,.45); }
.form__status { margin-top: 16px; font-size: 14px; min-height: 1.6em; }
.form__status.is-ok { color: #9fe3b0; } .form__status.is-err { color: #ff8a80; }
.form.is-sending button { opacity: .5; pointer-events: none; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- footer ---------- */
.ft { background: var(--night); color: rgba(255,255,255,.7); padding: 56px 0 40px; font-size: 13px; }
.ft__in { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.ft__logo img { width: 150px; height: auto; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; font-family: var(--ff-en); }
.ft__nav a, .ft__sns a { text-decoration: none; }
.ft__nav a:hover, .ft__sns a:hover { color: #fff; }
.ft__addr { font-style: normal; font-size: 12px; color: rgba(255,255,255,.45); grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-d); }
.ft__sns { display: flex; gap: 18px; font-family: var(--ff-en); }
.ft__copy { justify-self: end; color: rgba(255,255,255,.4); font-size: 10px; }
@media (max-width: 720px) { .ft__in { grid-template-columns: 1fr; } .ft__nav { justify-content: flex-start; } .ft__copy { justify-self: start; } }

/* ============================================================
   Library page (lab/)
   ============================================================ */
.lab-hero { position: relative; background: var(--night-2); color: #fff; padding: calc(var(--hd-h) + clamp(64px, 10vw, 140px)) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.lab-hero .wrap { position: relative; }
.crumbs { display: flex; gap: 10px; color: rgba(255,255,255,.5); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.lab-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.lab-hero__stat { display: flex; gap: 40px; margin-top: 36px; }
.lab-hero__stat b { display: block; font-family: var(--ff-en); font-size: 44px; line-height: 1; }
.lab-hero__stat span { color: rgba(255,255,255,.5); }
@media (max-width: 860px) { .lab-hero__grid { grid-template-columns: 1fr; } }
.lab-list { background: var(--night-2); color: #fff; padding: 0 0 clamp(96px, 12vw, 160px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding-top: 32px; border-top: 1px solid var(--line-d); }
.filters button { background: none; border: 1px solid var(--line-d); color: rgba(255,255,255,.75); border-radius: 99px; padding: 8px 16px; cursor: pointer; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: .25s; }
.filters button[aria-pressed="true"], .filters button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px clamp(14px, 2vw, 28px); }
.lab-grid .demo[hidden] { display: none; }
.demo__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.demo__tags span { font-family: var(--ff-mono); font-size: 10px; padding: 2px 8px; border: 1px solid var(--line-d); border-radius: 99px; color: rgba(255,255,255,.6); }
.demo--soon { pointer-events: none; }
.demo--soon .demo__thumb { display: grid; place-items: center; border: 1px dashed var(--line-d); background: transparent; color: rgba(255,255,255,.35); }
@media (max-width: 1000px) { .lab-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .lab-grid { grid-template-columns: 1fr; } }
.lab-cta { background: var(--paper); padding: clamp(80px, 10vw, 140px) 0; }
.lab-cta__in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
@media (max-width: 860px) { .lab-cta__in { grid-template-columns: 1fr; } }

/* viewer */
body.viewer { background: #000; overflow: hidden; height: 100vh; height: 100svh; }
.vbar { position: fixed; inset: 0 0 auto; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: rgba(5,5,5,.9); color: #fff; z-index: 5; border-bottom: 1px solid var(--line-d); }
.vbar a { text-decoration: none; }
.vbar__back { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.7); white-space: nowrap; }
.vbar__title { flex: 1; min-width: 0; font-family: var(--ff-en); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar__title small { font-family: var(--ff-ja); font-weight: 400; font-size: 12px; color: rgba(255,255,255,.55); margin-left: 12px; }
.vbar__nav { display: flex; gap: 8px; }
.vbar .btn { padding: 8px 14px; font-size: 13px; }
.vframe { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; width: 100%; height: calc(100% - 56px); border: 0; background: #000; }
@media (max-width: 640px) { .vbar__title small, .vbar__open { display: none; } }
.lab-grid .demo > a { display: block; text-decoration: none; color: #fff; }
.lab-grid .demo h2.demo__title { margin: 6px 0 0; }
.demo__raw { margin-left: auto; color: rgba(255,255,255,.55); text-decoration: none; font-size: 10px; }
.demo__raw:hover { color: #fff; }
.lab-note { margin-top: 56px; font-size: 12px; color: rgba(255,255,255,.45); }
/* ライブラリ: Web制作会社向けの「御社用デモ集をつくる」案内 */
.lab-agency { margin-top: 48px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(255,255,255,.04); }
.lab-agency__label { font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.5); margin: 0 0 6px; }
.lab-agency__title { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 8px; }
.lab-agency p:not(.lab-agency__label) { margin: 0; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.72); max-width: 640px; }
@media (max-width: 760px) { .lab-agency { grid-template-columns: 1fr; } }
.lab-page .reveal { transition-delay: .05s; }
.vbar .btn:not(.btn--light) { background: #1d1d1f; border: 1px solid var(--line-d); }
.cube-stage.is-fallback .cube-stage__bl, .cube-stage.is-fallback .cube-stage__br, .cube-stage.is-fallback .cube-stage__tr { display: none; }
html.no-webgpu .intro__hint { display: none; }

/* ロゴキューブ: 崩れている間だけ出る「積み上げる」ボタン */
.cube-stage__rebuild { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 14px/1 var(--ff-ja); letter-spacing: .08em; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: rebuildIn .5s var(--ease); transition: background .3s, transform .3s var(--ease); }
.cube-stage__rebuild:hover { background: #000; transform: translateX(-50%) translateY(-2px); }
.cube-stage__rebuild .tri { color: var(--red); transform: rotate(-90deg); }
.cube-stage__rebuild[hidden] { display: none; }
@keyframes rebuildIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* ---------- 見出しのフォント (かっこいいゴシックに) ---------- */
.display, .intro__ja, .ideas__title, .reel__title {
  font-family: var(--ff-head);
  font-weight: 900;
  font-feature-settings: "palt" 1;   /* かなを詰めて引き締める */
  letter-spacing: -0.01em;
}
.display { line-height: 1.12; }
.display--md { line-height: 1.22; }

/* 採用: 募集停止中のボタン (グレーアウトして押せない) と注意書き */
.btn--disabled, .btn--disabled:hover { background: #c9c7c2; color: #8b8984; cursor: not-allowed; pointer-events: none; transform: none; user-select: none; }
.btn--disabled .tri { color: #a9a7a2; }
.recruit__note { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.recruit__note .tri { flex: none; color: var(--red); }

/* Library ページに移した「うちの商品でも、何かできる？」 */
.lab-cta .ideas { margin-top: 0; margin-bottom: clamp(64px, 8vw, 110px); }
.service .display { font-size: clamp(30px, 3.9vw, 56px); }
.service .sec__head { max-width: none; }

/* ---------- ライブラリー: 料金の目安 ---------- */
.price { margin-bottom: clamp(64px, 8vw, 110px); }
.price__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.price__head .label { grid-column: 1 / -1; margin-bottom: 0; }
.price__title { font-family: var(--ff-head); font-size: clamp(28px, 3.2vw, 46px); font-weight: 900; line-height: 1.2; }
.price__lead { color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.price__tables { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 36px; }
.price__cap { display: flex; align-items: baseline; gap: 12px; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.price__cap .mono { color: var(--red); font-size: 11px; }
.price__cap small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.price__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price__table thead th { font-family: var(--ff-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; color: var(--ink-3); text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.price__table tbody th, .price__table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price__table tbody th { text-align: left; font-weight: 500; padding-right: 16px; }
.price__table tbody th small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.price__table td { white-space: nowrap; font-family: var(--ff-en); font-weight: 500; padding-left: 12px; }
.price__table td:nth-child(2) { font-size: 16px; color: var(--ink); }
.price__table td:nth-child(3) { color: var(--ink-2); font-size: 13px; }
.price__note { margin-top: 14px; font-size: 12px; line-height: 1.8; color: var(--ink-3); }
.price__foot { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.price__example { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.price__example .mono { color: var(--red); font-size: 10px; }
.price__example b { color: var(--ink); font-size: 16px; }
@media (max-width: 860px) {
  .price__head, .price__tables { grid-template-columns: 1fr; }
}
