/* =========================================================
   学サイト(GAKU SITE+)v3 ── PIXEL BUILD
   「ホームページを、1ピクセルずつ本気でつくる」
   ・紙 / インク / プール(ロゴのティール)/ シグナルオレンジの 4 色
   ・欧文は Geist(細く・大きく・詰める)、ラベルは Geist Mono、
     和文は Zen Kaku Gothic New、ドットの世界は Pixelify Sans / DotGothic16
   ・マスコット(.cs / .fq / .flow-frog / .gakuzame)の見た目は専用CSSのまま
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #ebebe8;
  --white: #ffffff;
  --ink: #0e0f11;
  --ink-2: #4d4f54;
  --ink-3: #8c8e93;
  --line: rgba(14, 15, 17, .14);
  --line-2: rgba(14, 15, 17, .32);
  --pool: #3fc1c9;
  --pool-deep: #148a92;
  --orange: #1f3a5f;
  --navy: #1f3a5f;
  --line-green: #06c755;

  --f-ja: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-en: 'Geist', 'Zen Kaku Gothic New', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'Courier New', monospace;
  --f-px: 'Pixelify Sans', 'DotGothic16', monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --sec: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-ja); font-size: 15px; line-height: 1.85; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; }
img, video, svg, canvas { max-width: 100%; }
img, video { display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--pool); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
ruby rt { font-size: .5em; letter-spacing: .12em; }

/* 色の面(セクションごとに背景と文字色が切り替わる) */
.t-paper { background: var(--paper); color: var(--ink); }
.t-white { background: var(--white); color: var(--ink); }
.t-ink { background: var(--ink); color: var(--paper); --line: rgba(242,241,236,.14); --line-2: rgba(242,241,236,.3); --ink-2: #a9aaae; --ink-3: #75777c; }
.t-pool { background: var(--pool); color: var(--ink); --line: rgba(14,15,17,.18); --line-2: rgba(14,15,17,.4); --ink-2: #13474b; --ink-3: #1f6166; }
.t-orange { background: var(--orange); color: var(--ink); --line: rgba(14,15,17,.2); --line-2: rgba(14,15,17,.45); --ink-2: #4a1d28; --ink-3: #6b3040; }
.t-clear { background: transparent; }

/* =========================================================
   文字
   ========================================================= */
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase;
}
.tag::before { content: ''; width: 8px; height: 8px; background: currentColor; flex: none; }
.tag--pool::before { background: var(--pool); }
.tag--orange::before { background: var(--orange); }
.tag b { font-weight: 400; opacity: .5; }

/* 巨大な欧文(Osmo / Payload の詰めた細字) */
.display {
  font-family: var(--f-en); font-weight: 300; letter-spacing: -.065em; line-height: .88;
  font-size: clamp(64px, 12vw, 200px);
}
.display--m { font-size: clamp(52px, 8.4vw, 136px); letter-spacing: -.06em; line-height: .92; }
.display--s { font-size: clamp(40px, 5.6vw, 88px); letter-spacing: -.055em; line-height: .95; }
.display em { font-style: normal; font-family: var(--f-px); font-weight: 500; letter-spacing: -.02em; }

/* 和文見出し(重くしない) */
.h-ja { font-family: var(--f-ja); font-weight: 500; letter-spacing: -.02em; line-height: 1.32; font-size: clamp(30px, 4.2vw, 64px); text-wrap: balance; }
.h-ja--m { font-size: clamp(24px, 2.9vw, 44px); line-height: 1.4; }
.h-ja--s { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.5; letter-spacing: 0; }
.lead { font-size: clamp(15px, 1.15vw, 17px); line-height: 2; color: var(--ink-2); max-width: 36em; }
.px { font-family: var(--f-px); font-weight: 500; letter-spacing: 0; }

/* 見出しブロック:上に罫線 + ラベル行 */
.head { border-top: 1px solid var(--line-2); padding-top: 18px; margin-bottom: clamp(48px, 7vw, 112px); }
.head-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.head-main .lead { justify-self: end; }
@media (max-width: 860px) { .head-main { grid-template-columns: minmax(0, 1fr); } .head-main .lead { justify-self: start; } }

/* =========================================================
   ボタン(NewsPicks 風:文字の箱 + 矢印の箱)
   ========================================================= */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper); --a-bg: var(--ink); --a-fg: var(--paper); --a-hover: var(--pool);
  display: inline-flex; gap: 2px; text-decoration: none; cursor: pointer; border: 0; padding: 0; background: none;
  font-family: var(--f-ja); font-size: 14px; font-weight: 700; letter-spacing: .06em; line-height: 1;
}
.btn-l {
  display: inline-flex; align-items: center; height: 56px; padding: 0 26px;
  background: var(--b-bg); color: var(--b-fg); overflow: hidden; position: relative;
}
.btn-l > span { display: block; transition: transform .6s var(--ease); }
.btn-l::after {
  content: attr(data-t); position: absolute; left: 26px; top: 0; bottom: 0; display: flex; align-items: center;
  transform: translateY(100%); transition: transform .6s var(--ease); white-space: nowrap;
}
.btn:hover .btn-l > span { transform: translateY(-300%); }
.btn:hover .btn-l::after { transform: none; }
.btn-a {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none;
  background: var(--a-bg); color: var(--a-fg); transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn-a svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .btn-a { background: var(--a-hover); color: var(--ink); }
.btn:hover .btn-a svg { transform: rotate(-45deg); }
.btn--paper { --b-bg: var(--paper); --b-fg: var(--ink); --a-bg: var(--paper); --a-fg: var(--ink); --a-hover: var(--orange); }
.btn--pool { --b-bg: var(--pool); --b-fg: var(--ink); --a-bg: var(--pool); --a-fg: var(--ink); --a-hover: var(--ink); }
.btn--pool:hover .btn-a { color: var(--pool); }
.btn--orange { --b-bg: var(--orange); --b-fg: var(--ink); --a-bg: var(--orange); --a-fg: var(--ink); --a-hover: var(--ink); }
.btn--orange:hover .btn-a { color: var(--orange); }
.btn--line { --b-bg: var(--line-green); --b-fg: #fff; --a-bg: var(--line-green); --a-fg: #fff; --a-hover: var(--ink); }
.btn--line:hover .btn-a { color: #fff; }
.btn--ghost .btn-l, .btn--ghost .btn-a { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover .btn-a { background: var(--pool); color: var(--ink); box-shadow: none; }
.btn--full { display: flex; }
.btn--full .btn-l { flex: 1; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 下線リンク */
.ul-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.ul-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* =========================================================
   ヘッダー(下のセクションの色に合わせて文字色が変わる)
   ========================================================= */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--hd-fg, var(--ink));
  transition: color .4s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.hd[data-on="ink"] { --hd-fg: var(--paper); }
.hd.is-hidden { transform: translateY(-110%); }
.hd-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 24px;
  max-width: var(--max); margin-inline: auto; padding: 18px var(--gutter);
}
.hd-in > * { pointer-events: auto; }
.hd-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; width: fit-content; }
.hd-brand svg { width: 44px; height: auto; overflow: visible; }
.hd-brand .sq { transition: transform .8s var(--ease); transform-box: fill-box; transform-origin: center; }
.hd-brand:hover .sq-a { transform: translate(-3px, -3px) rotate(-8deg); }
.hd-brand:hover .sq-b { transform: translate(3px, 3px) rotate(8deg); }
.hd-name { display: flex; flex-direction: column; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.hd-nav { display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 36px); padding-top: 6px; }
.hd-nav a {
  position: relative; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .06em; line-height: 1.5;
  display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap;
}
.hd-nav a .n { font-family: var(--f-mono); font-size: 10px; opacity: .55; }
.hd-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hd-nav a:hover::after, .hd-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hd-nav a[aria-current="page"] .n { opacity: 1; color: var(--orange); }
.hd-right { justify-self: end; display: flex; gap: 8px; align-items: center; }
.hd-cta .btn-l { height: 44px; padding: 0 18px; }
.hd-cta .btn-l::after { left: 18px; }
.hd-cta .btn-a { width: 44px; height: 44px; }
.menu-btn {
  display: none; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--paper); cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em;
}
.hd[data-on="ink"] .menu-btn { background: var(--paper); color: var(--ink); }
.menu-btn i { position: relative; width: 16px; height: 8px; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 6.5px; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-toggle:checked ~ .hd-in .menu-btn { background: var(--ink); color: var(--paper); }
.menu-toggle:checked ~ .hd-in .menu-btn i::before { top: 3px; transform: rotate(45deg); }
.menu-toggle:checked ~ .hd-in .menu-btn i::after { top: 3px; transform: rotate(-45deg); }
.menu-toggle:checked ~ .hd-in { color: var(--ink); }
.menu-toggle:focus-visible ~ .hd-in .menu-btn { outline: 2px solid var(--orange); outline-offset: 2px; }

/* 全画面メニュー(スマホ) */
.menu {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--pool); color: var(--ink);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 96px var(--gutter) 24px; overflow-y: auto;
}
.menu-toggle:checked ~ .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu a.m-link {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(14,15,17,.2);
  font-size: clamp(28px, 8vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; text-decoration: none;
}
.menu a.m-link .n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; }
.menu a[aria-current="page"] { color: #fff; }
.menu .btns { margin-top: 20px; }
.menu .btn { flex: 1 1 100%; }
.menu .btn .btn-l { flex: 1; }

@media (max-width: 1080px) { .hd-nav a .n { display: none; } }
@media (max-width: 960px) {
  .hd-nav, .hd-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hd-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 14px; }
}
@media (min-width: 961px) { .menu { display: none; } }
@media (max-width: 420px) { .hd-name { display: none; } }

/* =========================================================
   オープニング(セッション初回だけ。ピクセルで埋まって上に抜ける)
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; transition: clip-path 1.1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.no-intro .loader { display: none; }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.loader-mark { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader-mark svg { width: 96px; overflow: visible; }
.loader-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
html.is-loading { overflow: hidden; }
/* クジラの動画:ロード画面の手前に重ね、終わったらフェードで抜ける */
.whale { position: fixed; inset: 0; z-index: 310; background: #0a3d66; transition: opacity .9s var(--ease), visibility .9s; }
.no-intro .whale { display: none; }
.whale.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.whale-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.whale.is-playing .whale-video { opacity: 1; }
.whale-video::-webkit-media-controls { display: none !important; }
.whale.is-still { background: #c9d9e8 url("assets/intro-whale-end.jpg") center / cover no-repeat; }
.whale.is-still .whale-video { display: none; }

/* =========================================================
   リビール(スクロールで出る)
   ========================================================= */
.js [data-rv] { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-rv].in { opacity: 1; transform: none; }
.js [data-rv="fade"] { transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(110%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 26ms); }
.js .split.in .w > span { transform: none; }

/* =========================================================
   トップ:ヒーロー(スクロールで固定され、ピクセルでサイトが組み上がる)
   ========================================================= */
.hero { position: relative; height: 240vh; }
.hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-ui { position: absolute; inset: 0; max-width: var(--max); margin-inline: auto; padding: 90px var(--gutter) 22px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.hero-ui a, .hero-ui button { pointer-events: auto; }
.hero-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.hero-hud span:nth-child(4) { text-align: right; }
.hero-hud .blink::after { content: '_'; animation: blink 1s steps(2) infinite; }
.hero-main { display: grid; gap: 24px; }
.hero-title {
  font-family: var(--f-ja); font-weight: 500; letter-spacing: -.05em; line-height: 1.1;
  font-size: clamp(40px, 7vw, 116px);
}
.hero-title .px-word { font-family: var(--f-px); font-weight: 500; letter-spacing: -.02em; color: var(--pool-deep); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; padding-top: 18px; border-top: 1px solid var(--line-2); }
.hero-foot .lead { max-width: 34em; font-size: 14px; }
.hero-meter { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.hero-bar { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.hero-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
/* 組み上がるサイトの注釈(haptikos 風) */
.note-pin {
  position: absolute; z-index: 2; display: flex; align-items: flex-start; gap: 10px; pointer-events: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease);
  background: var(--paper); padding: 8px 10px; box-shadow: 0 0 0 1px var(--ink);
}
.note-pin.on { opacity: 1; transform: none; }
.note-pin::before { content: ''; width: 9px; height: 9px; margin-top: 2px; background: var(--orange); flex: none; }
.note-pin b { display: block; font-weight: 500; }
.note-pin small { display: block; font-family: var(--f-ja); font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--ink-2); }
@media (max-width: 860px) {
  .hero { height: 210vh; }
  .hero-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-hud span:nth-child(n+3) { display: none; }
  .hero-hud span:nth-child(2) { text-align: right; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-foot .lead { display: none; }
  .hero-ui { padding-top: 80px; }
  .note-pin { padding: 5px 7px; font-size: 10px; }
  .note-pin small { display: none; }
}

/* =========================================================
   トップ:マニフェスト(インク地に大きな欧文 + 灯る和文)
   ========================================================= */
.manifesto { padding-block: var(--sec); }
.manifesto .display { margin-top: clamp(40px, 6vw, 96px); }
.c-pool { color: var(--pool); }
.c-orange { color: var(--orange); }
.mf-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(24px, 4vw, 64px); margin-top: clamp(56px, 8vw, 120px); }
.lit { font-size: clamp(22px, 2.7vw, 40px); font-weight: 500; line-height: 1.7; letter-spacing: -.01em; }
.js-lit .lit .ch { opacity: .16; transition: opacity .3s linear; }
.js-lit .lit .ch.on { opacity: 1; }
.lit .chip-img { display: inline-block; width: 2.4em; height: .9em; vertical-align: -.1em; margin-inline: .12em; overflow: hidden; border-radius: 999px; background: var(--pool); }
.lit .chip-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
.mf-body .btns { margin-top: 40px; }
@media (max-width: 860px) { .mf-body { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   トップ:数字(プール色の面に巨大な数字が回る)
   ========================================================= */
.numbers { position: relative; height: 330vh; }
.num-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 92px 0 28px; }
.num-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px; align-items: end; }
.num-big {
  position: relative; height: min(56vh, 40vw); overflow: hidden;
  font-family: var(--f-en); font-weight: 300; letter-spacing: -.085em; line-height: .8;
  font-size: min(64vh, 46vw);
}
.num-reel { position: absolute; inset: 0; transition: transform 1.1s var(--ease-io); transform: translateY(calc(var(--s, 0) * -100%)); }
.num-reel > div { height: 100%; display: flex; align-items: flex-end; white-space: nowrap; }
.num-reel small { font-family: var(--f-ja); font-weight: 500; letter-spacing: -.02em; font-size: .14em; line-height: 1; margin: 0 0 .1em .22em; }
.num-reel .pre { font-family: var(--f-ja); font-weight: 500; letter-spacing: -.02em; font-size: .12em; line-height: 1; margin: 0 .25em .62em 0; }
.num-side { display: grid; }
.num-item { padding: 14px 0; border-top: 1px solid var(--line-2); opacity: .32; transition: opacity .5s var(--ease); }
.num-item.on { opacity: 1; }
.num-item h3 { font-size: 17px; font-weight: 700; letter-spacing: .02em; line-height: 1.5; display: flex; justify-content: space-between; gap: 10px; }
.num-item p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.num-top { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-2); padding-top: 14px; }
@media (max-width: 860px) {
  .numbers { height: 300vh; }
  .num-stage { grid-template-columns: minmax(0, 1fr); }
  .num-big { height: 30vh; font-size: 36vh; }
  .num-item { padding: 10px 0; }
  .num-item p { display: none; }
}

/* =========================================================
   サービス(Webisoft の S/001 行 + 黒い図形)
   ========================================================= */
.svc { list-style: none; border-top: 1px solid var(--line-2); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 100px minmax(0, 5fr) minmax(0, 4fr) 168px;
  gap: 20px clamp(20px, 3vw, 48px); align-items: start; padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit;
}
.svc-row > .mono { padding-top: .8em; color: var(--ink-2); }
.svc-row h3 { font-weight: 500; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -.03em; line-height: 1.3; }
.svc-row h3 .en { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.svc-row p { color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.svc-row ul { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-row ul li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em; padding: 4px 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.svc-fig { width: 168px; aspect-ratio: 1; background: var(--white); display: grid; place-items: center; overflow: hidden; }
.svc-fig svg { width: 62%; height: 62%; transition: transform 1s var(--ease); }
.svc-row:hover .svc-fig svg { transform: rotate(90deg) scale(.9); }
.svc-fig--illust { padding: 8%; }
.svc-fig--illust svg { width: 100%; height: 100%; }
.svc-row:hover .svc-fig--illust svg { transform: scale(1.06); }
.svc-row::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.svc-row:hover::after { transform: scaleX(1); }
@media (max-width: 1000px) {
  .svc-row { grid-template-columns: 64px minmax(0, 1fr) 128px; }
  .svc-row > div:nth-of-type(2) { grid-column: 2; }
  .svc-fig { width: 128px; grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .svc-row { grid-template-columns: minmax(0, 1fr) 84px; }
  .svc-row > .mono { grid-column: 1 / -1; padding-top: 0; }
  .svc-row > div { grid-column: 1 !important; }
  .svc-fig { width: 84px; grid-column: 2; grid-row: 2; }
}

/* =========================================================
   強み(色の面が順に重なる)
   ========================================================= */
.panel { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 100px 0 48px; overflow: hidden; }
.panel-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 96px); align-items: center; width: 100%; }
.panel-no { font-family: var(--f-en); font-weight: 300; letter-spacing: -.09em; line-height: .78; font-size: clamp(120px, 17vw, 280px); }
.panel h3 { margin-top: clamp(20px, 3vw, 40px); }
.panel .lead { margin-top: 20px; color: inherit; opacity: .8; }
.panel .tag { margin-bottom: 14px; }
.panel .ul-link { margin-top: 28px; }
.panel-vis { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: end; }
.panel-vis canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.panel-vis .duo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--pool); box-shadow: 0 0 0 2px var(--ink); }
.panel-vis .duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.3) brightness(1.08); mix-blend-mode: multiply; }
.panel-vis .badge { position: absolute; right: 2%; bottom: 8%; background: var(--ink); color: var(--paper); padding: 10px 14px; }
@media (max-width: 860px) {
  .panel { align-items: flex-start; padding-top: 84px; }
  .panel-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .panel-vis { width: min(54vw, 260px); justify-self: start; order: -1; }
  .panel-no { font-size: 88px; }
}

/* =========================================================
   制作実績(Osmo 風の弧を描くカード)
   ========================================================= */
.works { position: relative; height: 320vh; }
.works-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.works-top { position: relative; z-index: 2; text-align: center; padding-top: clamp(96px, 14vh, 150px); }
.works-top .display--m { margin-top: 16px; }
.works-top .lead { margin: 16px auto 0; }
.arc { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.arc-card {
  position: absolute; left: 0; top: 0; width: var(--cw); aspect-ratio: 16 / 10; margin-left: calc(var(--cw) / -2);
  background: var(--paper-2); box-shadow: 0 40px 60px -30px rgba(14,15,17,.35);
  outline: 1px solid rgba(14,15,17,.12); text-decoration: none; color: var(--ink);
  will-change: transform;
}
.arc-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.arc-card span { position: absolute; left: 0; top: calc(100% + 10px); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.works-foot { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; }
.works-foot .wrap { display: flex; justify-content: flex-end; align-items: end; gap: 20px; flex-wrap: wrap; }
.works-meta h3 { font-family: var(--f-en); font-weight: 400; letter-spacing: -.04em; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; }
.works-meta p { color: var(--ink-2); font-size: 13px; margin-top: 6px; }

/* =========================================================
   対象のお客様(ドット絵アイコン)
   ========================================================= */
.for { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); list-style: none; }
.for li { position: relative; padding: clamp(20px, 2.4vw, 32px); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 40px; min-height: 360px; overflow: hidden; isolation: isolate; }
.for li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pool); transform: translateY(101%); transition: transform .8s var(--ease); }
.for li:nth-child(2n)::before { background: var(--orange); }
.for li:hover::before { transform: none; }
.for canvas { width: 112px; height: 112px; image-rendering: pixelated; }
.for h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; margin-top: auto; }
.for p { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.8; }
.for li:hover p { color: var(--ink); }
@media (max-width: 960px) { .for { grid-template-columns: repeat(2, minmax(0, 1fr)); } .for li { min-height: 280px; } }
@media (max-width: 480px) { .for li { min-height: 230px; gap: 20px; padding: 16px; } .for canvas { width: 72px; height: 72px; } }

/* =========================================================
   チーム(円で切り抜いたデュオトーン写真)
   ========================================================= */
.team { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 112px); align-items: center; }
.team-pic-wrap { position: relative; }
.team-pic { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--pool); }
.team-pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.08); mix-blend-mode: multiply; }
.sticker { position: absolute; right: 0; top: 6%; width: clamp(96px, 10vw, 136px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; line-height: 1.4; transform: rotate(-12deg); }
.team-body { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.team-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); width: 100%; }
.team-stats div { padding: 16px 0; }
.team-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.team-stats b { display: block; font-family: var(--f-en); font-weight: 300; font-size: clamp(44px, 4.4vw, 72px); letter-spacing: -.07em; line-height: 1; margin-top: 8px; }
.team-stats b small { font-family: var(--f-ja); font-size: 14px; font-weight: 500; letter-spacing: 0; margin-left: 4px; }
@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); } .team-pic-wrap { max-width: 420px; } }

/* =========================================================
   料金
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 2.6vw, 40px); background: var(--white); color: var(--ink); min-height: 600px; }
.plan--hot { background: var(--pool); }
.plan--dark { background: #1a1b1e; color: var(--paper); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.plan-flag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; padding: 4px 10px; background: var(--ink); color: var(--paper); text-transform: uppercase; }
.plan h3 { font-weight: 500; font-size: 24px; letter-spacing: -.01em; line-height: 1.4; }
.plan-for { font-size: 13px; opacity: .72; margin-top: -12px; }
.plan-price { margin-top: auto; font-family: var(--f-en); font-weight: 300; letter-spacing: -.075em; line-height: .9; font-size: clamp(64px, 6.4vw, 108px); white-space: nowrap; }
.plan-price small { font-family: var(--f-ja); font-weight: 500; font-size: 15px; letter-spacing: .02em; margin-left: 8px; }
.plan-price--ja { font-family: var(--f-ja); font-weight: 500; letter-spacing: -.04em; font-size: clamp(40px, 3.8vw, 60px); line-height: 1.1; }
.plan ul { list-style: none; border-top: 1px solid rgba(127,127,127,.4); padding-top: 14px; display: grid; gap: 8px; font-size: 13px; line-height: 1.6; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ''; width: 6px; height: 6px; margin-top: .6em; background: currentColor; flex: none; }
.plan .btn { margin-top: 8px; }
.zero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.zero div { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--orange); color: var(--ink); }
.zero b { font-family: var(--f-en); font-weight: 300; font-size: 60px; letter-spacing: -.07em; line-height: 1; }
.zero b small { font-family: var(--f-ja); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.zero h3 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.zero p { font-size: 12px; line-height: 1.6; }
@media (max-width: 960px) {
  .plans, .zero { grid-template-columns: minmax(0, 1fr); }
  .plan { min-height: 0; }
  .plan-price { margin-top: 12px; }
}

/* 比較表 */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; border-top: 1px solid var(--line-2); }
.compare th, .compare td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare thead th { font-weight: 700; font-size: 15px; line-height: 1.4; }
.compare thead th small { font-weight: 400; font-size: 12px; opacity: .7; }
.compare tbody th { font-family: var(--f-ja); font-weight: 500; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.compare .self { background: var(--pool); font-weight: 700; }
.mark { display: inline-flex; width: 22px; height: 22px; margin-right: 10px; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.mark--good { background: var(--ink); color: var(--pool); }
.mark--fair { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.note { margin-top: 18px; font-size: 12px; color: var(--ink-2); line-height: 1.9; }

/* =========================================================
   FAQ(トップ)
   ========================================================= */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; gap: 16px; align-items: center; padding: 26px 0; font-size: clamp(17px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.01em; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono { color: var(--ink-3); }
.faq summary i { position: relative; width: 40px; height: 40px; background: var(--ink); transition: background-color .4s var(--ease), transform .6s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--paper); transition: transform .6s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--orange); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .a { padding: 0 56px 28px 88px; color: var(--ink-2); font-size: 15px; max-width: 52em; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 5vw, 96px); align-items: start; }
.faq-grid .faq-side { position: sticky; top: 110px; display: grid; gap: 24px; justify-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-grid .faq-side { position: static; } }
@media (max-width: 700px) { .faq summary { grid-template-columns: minmax(0, 1fr) 40px; } .faq summary .mono { grid-column: 1 / -1; } .faq .a { padding: 0 0 24px; } }

/* =========================================================
   締めの CTA(プール色の全面)
   ========================================================= */
.cta { position: relative; overflow: hidden; padding: var(--sec) 0 0; }
.cta .display { margin-top: clamp(32px, 5vw, 72px); }
.cta .display em { color: var(--white); }
.cta-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; margin-top: clamp(40px, 6vw, 88px); align-items: end; }
.cta-row .h-ja--s { max-width: 14em; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.route {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 240px; padding: 24px; background: var(--ink); color: var(--paper); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.route::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: translateY(101%); transition: transform .8s var(--ease); }
.route--line::before { background: var(--line-green); }
.route--light { background: var(--white); color: var(--ink); }
.route:hover::before { transform: none; }
.route:hover { color: var(--ink); }
.route--line:hover { color: #fff; }
.route-top { display: flex; justify-content: space-between; }
.route h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.route p { font-size: 13px; opacity: .72; margin-top: 6px; }
.route-arrow { position: absolute; right: 24px; bottom: 24px; width: 44px; height: 44px; transition: transform .8s var(--ease); }
.route:hover .route-arrow { transform: rotate(-45deg); }
.cta-band { margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line-2); padding: 20px 0; overflow: hidden; display: flex; }
.marquee-track { display: flex; flex: none; align-items: center; animation: marquee 36s linear infinite; }
.marquee-track > * { flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cta-band .m-item { font-family: var(--f-en); font-weight: 300; letter-spacing: -.05em; font-size: clamp(36px, 5.4vw, 88px); line-height: 1; padding-right: .35em; }
.cta-band .m-item.px { font-family: var(--f-px); letter-spacing: 0; font-weight: 500; }
.cta-band .m-sq { width: clamp(18px, 2.6vw, 40px); aspect-ratio: 1; background: var(--ink); margin-right: clamp(18px, 2.6vw, 40px); }
@media (max-width: 860px) { .cta-row, .routes { grid-template-columns: minmax(0, 1fr); } .route { min-height: 170px; } }

/* =========================================================
   フッター(巨大なロゴタイプ)
   ========================================================= */
.ft { padding-top: clamp(64px, 8vw, 112px); overflow: hidden; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.ft-grid .mono { color: var(--ink-3); margin-bottom: 16px; }
.ft-lead { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.5; max-width: 16em; }
.ft-nav { display: grid; gap: 6px; }
.ft-nav a { font-size: 14px; text-decoration: none; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.ft-nav a:hover { background-size: 100% 1px; }
.ft-social { display: flex; gap: 8px; margin-top: 14px; }
.ft-social a { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background-color .3s; }
.ft-social a:hover { background: var(--line-green); }
.ft-mail { font-family: var(--f-mono); font-size: 13px; word-break: break-all; }
.ft-word {
  display: flex; align-items: flex-end; margin-top: clamp(48px, 8vw, 120px); user-select: none;
  font-family: var(--f-en); font-weight: 400; letter-spacing: -.075em; line-height: .76; white-space: nowrap;
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 5.2);
}
.ft-word .plus { color: var(--pool); font-family: var(--f-px); letter-spacing: 0; margin-left: .08em; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(20px, 2vw, 32px); padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-3); }
.ft-bottom a { text-decoration: none; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft-grid > :first-child, .ft-grid > :last-child { grid-column: 1 / -1; } }

/* 追従ボタン */
.float { position: fixed; right: 16px; bottom: 16px; z-index: 90; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.float .btn-l { height: 48px; padding: 0 16px; gap: 10px; font-size: 13px; }
.float .btn-l::after { left: 34px; }
.float .btn-a { width: 48px; height: 48px; }
.float .dot { width: 8px; height: 8px; background: var(--pool); animation: blink 1.2s steps(2) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.float.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* =========================================================
   下層ページ
   ========================================================= */
.ph { position: relative; padding: clamp(120px, 15vw, 200px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.ph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ph .wrap { position: relative; z-index: 1; }
.crumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumb li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.ph .display { margin-top: clamp(24px, 4vw, 56px); }
.ph-foot { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 40px; margin-top: clamp(32px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--line-2); }
.ph-foot h1 { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: 0; line-height: 1.45; }
@media (max-width: 760px) { .ph-foot { grid-template-columns: minmax(0, 1fr); } }

.sec { padding-block: var(--sec); position: relative; }
.sec--top0 { padding-top: 0; }

/* 2 カラム */
.duo-col { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 112px); align-items: center; }
.duo-col .lead + .lead { margin-top: 1em; }
.circle-pic { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--pool); }
.circle-pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.1); mix-blend-mode: multiply; }
@media (max-width: 860px) { .duo-col { grid-template-columns: minmax(0, 1fr); } .circle-pic { max-width: 420px; } }

/* 引用 */
.quote { font-size: clamp(26px, 3.6vw, 56px); font-weight: 500; letter-spacing: -.03em; line-height: 1.45; max-width: 22em; }
.quote strong { font-weight: 500; color: var(--pool); }

/* 3 枚カード(私たちの強み) */
.cards3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: clamp(48px, 6vw, 96px); }
.cards3 li { padding: clamp(24px, 2.6vw, 36px); background: #1a1b1e; display: flex; flex-direction: column; gap: 16px; min-height: 340px; }
.cards3 li > svg { width: 64px; height: 64px; color: var(--navy); }
.cards3 h3 { font-size: 20px; font-weight: 500; line-height: 1.5; margin-top: auto; }
.cards3 p { font-size: 13px; color: var(--ink-2); }
@media (max-width: 860px) { .cards3 { grid-template-columns: minmax(0, 1fr); } .cards3 li { min-height: 0; } }

/* 数字 3 つ(下層) */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.figs > div { padding: 20px 24px 32px 0; }
.figs > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figs b { display: block; margin: 28px 0 14px; font-family: var(--f-en); font-weight: 300; font-size: clamp(88px, 11vw, 176px); letter-spacing: -.085em; line-height: .85; }
.figs b small { font-family: var(--f-ja); font-weight: 500; font-size: .16em; letter-spacing: 0; margin-left: .25em; }
.figs p { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .figs { grid-template-columns: minmax(0, 1fr); } .figs > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .figs b { margin: 12px 0 8px; } }

/* マスコット(キャラシートは chara-sheet.css のまま。周りだけ整える) */
.mascot-px { font-family: var(--f-px); font-size: clamp(18px, 1.6vw, 24px); }
.page-about { --sea-deep: #0b3d5c; --sea-light: #9fe0ea; }

/* 流れ(ガクガエル。flow-frog.js と連動) */
.flow-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 6vw, 112px); align-items: start; }
.flow-side { position: sticky; top: 110px; display: grid; gap: 24px; justify-items: start; }
.speed { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--orange); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; }
.speed::before { content: ''; width: 8px; height: 8px; background: var(--ink); animation: blink 1.2s steps(2) infinite; flex: none; }
.flow-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.flow-steps::before { content: ''; position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; background: var(--ink); }
.flow-steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; }
.flow-steps li + li { margin-top: 10px; }
.flow-num { position: relative; z-index: 1; width: 64px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); line-height: 1; }
.flow-num small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; color: var(--pool); }
.flow-num b { font-family: var(--f-en); font-weight: 300; font-size: 26px; letter-spacing: -.06em; margin-top: 4px; }
.flow-body { background: var(--paper); padding: 20px 26px; min-height: 64px; }
.flow-body h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.flow-body p { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.flow-steps.has-frog::before { bottom: auto; height: var(--flow-line, 0px); transition: height .4s ease-out; }
.flow-steps.has-frog > li:not(.flow-frog) { opacity: 0; transform: translateX(24px); transition: opacity .45s ease-out, transform .45s ease-out; }
.flow-steps.has-frog > li.is-in { opacity: 1; transform: none; }
.flow-steps.has-frog > li.is-in .flow-num { animation: flow-num-pop .4s ease-out; }
@keyframes flow-num-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.flow-frog { position: absolute; left: 0; top: 0; z-index: 3; width: 52px; height: 38px; pointer-events: none; }
.flow-frog-body { width: 100%; height: 100%; transform-origin: 50% 100%; animation: flow-frog-idle 1.4s ease-in-out infinite alternate; }
.flow-frog-body canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.flow-frog-body.is-jump { animation: none; transform: scale(.92, 1.1); }
.flow-frog-body.is-land { animation: flow-frog-land .3s ease-out, flow-frog-idle 1.4s ease-in-out .3s infinite alternate; }
@keyframes flow-frog-idle { from { transform: scale(1, 1); } to { transform: scale(1.03, .96); } }
@keyframes flow-frog-land { 0% { transform: scale(1.15, .8); } 60% { transform: scale(.96, 1.05); } 100% { transform: scale(1, 1); } }
@media (max-width: 960px) { .flow-grid { grid-template-columns: minmax(0, 1fr); } .flow-side { position: static; } }
@media (max-width: 560px) {
  .flow-frog { width: 44px; height: 32px; }
  .flow-steps::before { left: 23px; }
  .flow-steps li { grid-template-columns: 48px 1fr; gap: 12px; }
  .flow-num { width: 48px; height: 48px; }
  .flow-num b { font-size: 20px; margin-top: 2px; }
  .flow-body { padding: 14px 16px; }
}

/* お問い合わせ */
.hearing-bn { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 2px; padding: clamp(20px, 3vw, 32px); background: var(--white); }
.hearing-bn > svg { width: 80px; height: 80px; }
.hearing-bn h3 { font-size: 19px; font-weight: 700; line-height: 1.5; }
.hearing-bn p { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .hearing-bn { grid-template-columns: 56px minmax(0, 1fr); } .hearing-bn > svg { width: 56px; height: 56px; } .hearing-bn .btn { grid-column: 1 / -1; } .hearing-bn .btn .btn-l { flex: 1; } }

/* フォーム */
.form-wrap { max-width: 920px; margin: 0 auto; }
.form-card { background: var(--white); padding: clamp(24px, 5vw, 64px); }
.form-card fieldset { border: 0; margin: 0 0 56px; padding: 0; min-width: 0; }
.form-card legend { display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 0 0 14px; border-bottom: 1px solid var(--ink); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.01em; }
.form-card legend .num { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; color: var(--pool-deep); }
.field-label { display: block; font-weight: 700; font-size: 13px; margin: 22px 0 8px; }
.field-label .required { margin-left: 8px; padding: 2px 8px; font-size: 10px; font-weight: 700; background: var(--orange); color: var(--ink); vertical-align: 1px; letter-spacing: .08em; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card select, .form-card textarea {
  width: 100%; padding: 14px 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; transition: border-color .3s, background-color .3s;
}
.form-card textarea { resize: vertical; min-height: 120px; padding: 14px; border: 1px solid var(--line-2); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--ink); background: rgba(63,193,201,.1); }
.choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: 14px; }
.choice-group label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.6; padding: 14px 16px; background: var(--paper); transition: background-color .25s; }
.choice-group label:hover { background: var(--paper-2); }
.choice-group label:has(input:checked) { background: var(--pool); }
.choice-group input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; margin: 0; }
.form-card .submit-btn { display: flex; justify-content: center; align-items: center; width: 100%; height: 72px; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 700; letter-spacing: .1em; transition: background-color .4s var(--ease), color .4s var(--ease); }
.form-card .submit-btn:hover { background: var(--pool); color: var(--ink); }
.form-card .submit-btn:disabled { opacity: .6; cursor: default; }
.privacy-note { margin-top: 14px; text-align: center; font-size: 12px; color: var(--ink-2); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
#form-message { display: none; padding: 18px 20px; margin-bottom: 24px; font-size: 15px; text-align: center; }
#form-message.success { display: block; background: var(--pool); color: var(--ink); }
#form-message.error { display: block; background: #fdeeee; color: #b42318; }
@media (max-width: 760px) { .choice-group { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ガクザメ(ときどき空白を泳ぐ。site.js と連動) ---------- */
.gakuzame-swim { position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none; opacity: 0; }
.gakuzame-bob { position: relative; width: 108px; height: 57px; animation: gakuzame-bob 1.6s ease-in-out infinite alternate; }
.gakuzame-swim.is-left .gakuzame-bob canvas { transform: scaleX(-1); }
.gakuzame-bob canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; animation: gakuzame-wag-a .5s steps(1) infinite; }
.gakuzame-bob canvas + canvas { animation-name: gakuzame-wag-b; }
@keyframes gakuzame-bob { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@keyframes gakuzame-wag-a { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes gakuzame-wag-b { 0% { visibility: hidden; } 50% { visibility: visible; } }
@media (max-width: 760px) { .gakuzame-bob { width: 72px; height: 38px; } }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rv], .js .split .w > span { opacity: 1; transform: none; }
  .js-lit .lit .ch { opacity: 1; }
  .loader, .whale { display: none; }
  .note-pin { opacity: 1; transform: none; }
}

/* ---------- 追加の調整 ---------- */
.num-wrap { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.t-ink .plan--dark { box-shadow: inset 0 0 0 1px rgba(242,241,236,.18); }
.zero span { display: block; }
.panel-vis canvas { display: block; }
.float .btn-l, .float .btn-a { box-shadow: inset 0 0 0 1px rgba(242,241,236,.22); }
.num-big { height: min(62vh, 44vw); font-size: min(72vh, 51vw); }
@media (max-width: 860px) { .num-big { height: 32vh; font-size: 38vh; } }
.num-big { height: min(56vh, 35vw); font-size: min(66vh, 42vw); }
@media (max-width: 860px) { .num-big { height: min(30vh, 40vw); font-size: min(36vh, 49vw); } }
/* ロゴのティールの四角が、同じ色の面(プール)の上で消えないようにする */
.hd[data-on="pool"] .sq-b, .menu-toggle:checked ~ .hd-in .sq-b { stroke: var(--white); }
/* 写真の代わりのドット絵(本番の写真が用意できるまで) */
.team-pic--px, .circle-pic--px { display: grid; place-items: center; }
.team-pic--px canvas, .circle-pic--px canvas { width: 72%; height: 72%; image-rendering: pixelated; }



/* ---------- 差し色(ネイビー #1f3a5f)の上の文字は白にする ---------- */
.t-orange { color: #fff; --line: rgba(255,255,255,.22); --line-2: rgba(255,255,255,.45); --ink-2: rgba(255,255,255,.82); --ink-3: rgba(255,255,255,.62); }
.hd[data-on="orange"] { --hd-fg: #fff; }
.hd[data-on="orange"] .menu-btn { background: #fff; color: var(--ink); }
.zero div, .speed, .sticker, .field-label .required { color: #fff; }
.speed::before { background: #fff; }
.btn--paper:hover .btn-a { color: #fff; }
.route:hover { color: #fff; }
.for li:nth-child(2n):hover, .for li:nth-child(2n):hover p, .for li:nth-child(2n):hover .mono { color: #fff; }
/* ネイビーの面に置くドット絵は白で描く */
.t-orange canvas[data-glyph] { filter: invert(1); }


/* =========================================================
   私たちの強み:マスコットが案内するポップなカード
   太いフチ + ずらした影 + 色ベタ。ドット絵は chara-sheet.js が動かす
   ========================================================= */
.pop { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; margin-top: clamp(48px, 6vw, 96px); padding-bottom: 24px; }
.pop-card {
  --c: var(--pool); position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 18px 18px 24px; background: var(--c); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 #fff;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s cubic-bezier(.34, 1.56, .64, 1);
}
.pop--shark { --c: #7fd8de; transform: rotate(-2deg); }
.pop--frog { --c: #b8e986; transform: rotate(1.5deg); margin-top: 40px; }
.pop--pig { --c: #ffb3c7; transform: rotate(-1deg); margin-top: 10px; }
.pop-card:hover { transform: rotate(0) translate(-4px, -6px); box-shadow: 14px 16px 0 #fff; }
/* 出てくるときにポンと弾む */
.js .pop-card[data-rv] { opacity: 0; transform: translateY(40px) scale(.85) rotate(-6deg); transition: opacity .6s ease, transform .9s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s; transition-delay: calc(var(--d, 0) * 140ms); }
.js .pop--shark[data-rv].in { opacity: 1; transform: rotate(-2deg); }
.js .pop--frog[data-rv].in { opacity: 1; transform: rotate(1.5deg); }
.js .pop--pig[data-rv].in { opacity: 1; transform: rotate(-1deg); }
.js .pop-card[data-rv].in:hover { transform: rotate(0) translate(-4px, -6px); transition-delay: 0s; }

.pop-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pop-no { font-family: var(--f-px); font-size: 22px; line-height: 1; background: var(--ink); color: #fff; padding: 6px 10px 5px; border-radius: 10px; }
.pop-name { font-family: var(--f-px); font-size: 14px; letter-spacing: .04em; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; }
.pop-scene { position: relative; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #0b3c5d; }
.pop-scene canvas { display: block; width: 100%; aspect-ratio: 4 / 3; image-rendering: pixelated; image-rendering: crisp-edges; }
/* ふきだし */
.pop-bubble {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px;
  font-family: 'DotGothic16', var(--f-ja); font-size: 14px; line-height: 1.5; letter-spacing: .02em;
  transform-origin: 20% 100%; animation: pop-talk 3.2s ease-in-out infinite;
}
.pop--frog .pop-bubble { animation-delay: -1s; }
.pop--pig .pop-bubble { animation-delay: -2s; }
@keyframes pop-talk { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-1deg); } }
.pop-card h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 900; line-height: 1.45; letter-spacing: .01em; }
.pop-text { font-size: 14px; line-height: 1.85; font-weight: 500; }

@media (max-width: 960px) {
  .pop { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 32px; }
  .pop--frog, .pop--pig { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pop-card[data-rv] { opacity: 1; }
}
.pop--frog .pop-bubble { top: 10px; bottom: auto; transform-origin: 20% 0; }
.pop-card h3, .pop-text { word-break: keep-all; overflow-wrap: anywhere; }

/* =========================================================
   セクションの切り替わり演出(Sui を参照。site.js と連動)
   ========================================================= */
/* ② 角丸の細い形から広がるパネル */
[data-clip] { will-change: clip-path; }
/* ③ タイプ:未表示の文字は場所だけ取っておく。カーソルはティールの四角 */
.tc { visibility: hidden; }
.tc.on { visibility: visible; }
.tc.cur { visibility: visible; color: transparent; background: var(--pool); }
/* 見出しがぼかしから現れる */
.js [data-blur] { filter: blur(18px); opacity: 0; transform: scale(1.03); transition: filter 1.4s var(--ease), opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.js [data-blur].in { filter: none; opacity: 1; transform: none; }
/* ⑤ 中央の行のハイライト */
.svc-row { transition: background-color .5s var(--ease); }
.svc-row.is-on { background: linear-gradient(90deg, rgba(63,193,201,.16), rgba(63,193,201,0) 70%); }
.svc-row.is-on::after { transform: scaleX(1); }
.svc-row.is-on > .mono { color: var(--pool-deep); }
.svc-row.is-on .svc-fig svg { transform: rotate(90deg) scale(.9); }
@media (prefers-reduced-motion: reduce) {
  .tc { visibility: visible; }
  .js [data-blur] { filter: none; opacity: 1; transform: none; }
}

/* ① 光の縞のトランジション:専用の区間(上下のセクションとは重ならない) */
.xsec { position: relative; height: 210vh; background: #07080a; color: #fff; }
.xsec-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.xsec canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xsec-word { position: relative; display: grid; justify-items: center; gap: 18px; padding-inline: var(--gutter); text-align: center; opacity: 0; will-change: opacity, filter, transform; }
.xsec-word .mono { color: var(--pool); }
.xsec-word .en { font-family: var(--f-en); font-weight: 300; font-size: clamp(44px, 7.4vw, 120px); letter-spacing: -.06em; line-height: .95; }
.xsec-word .ja { font-size: clamp(15px, 1.3vw, 19px); color: rgba(255,255,255,.72); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) {
  .xsec { height: auto; padding: 18vh 0; }
  .xsec-stick { position: relative; height: auto; }
  .xsec canvas { display: none; }
  .xsec-word { opacity: 1; }
}
.xsec { background: #0a0d12; } .xsec canvas { image-rendering: auto; }
.xsec { height: 340vh; } @media (max-width: 760px) { .xsec { height: 280vh; } }
.num-reel { transition: none; will-change: transform; } .numbers { height: 380vh; } @media (max-width: 860px) { .numbers { height: 330vh; } }

/* =========================================================
   実績ページ(works.html)
   ========================================================= */
.work-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 96px); }
.work a { display: grid; gap: 22px; color: inherit; text-decoration: none; }
.work-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); outline: 1px solid rgba(14,15,17,.1); box-shadow: 0 40px 60px -40px rgba(14,15,17,.35); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.work a:hover .work-shot img { transform: scale(1.04); }
.work-body { display: grid; gap: 12px; }
.work-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 14px; border-top: 1px solid rgba(14,15,17,.16); }
.work h3 { font-family: var(--f-en); font-weight: 400; letter-spacing: -.04em; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; }
.work p { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.work-tags span { padding: 4px 10px; border: 1px solid rgba(14,15,17,.16); }
.work-go { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pool-deep); }
.work-go svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.work a:hover .work-go svg { transform: translateX(4px); }
.work-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(64px, 8vw, 120px); padding-top: 28px; border-top: 1px solid rgba(14,15,17,.16); }
.work-cta p { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; }
@media (max-width: 760px) { .work-list { grid-template-columns: 1fr; } }

/* =========================================================
   全ページ共通:左下のスクロール量メーター
   ========================================================= */
.pg-meter { position: fixed; left: 16px; bottom: 22px; z-index: 89; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); pointer-events: none; transition: opacity .5s var(--ease), color .4s var(--ease); }
.pg-bar { width: 120px; height: 2px; background: rgba(14,15,17,.16); position: relative; overflow: hidden; transition: background-color .4s var(--ease); }
.pg-bar i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }
.pg-num { min-width: 3.2em; font-variant-numeric: tabular-nums; }
.pg-meter[data-on="ink"] { color: var(--paper); }
.pg-meter[data-on="ink"] .pg-bar, .pg-meter[data-on="orange"] .pg-bar { background: rgba(255,255,255,.22); }
.pg-meter[data-on="orange"] { color: #fff; }
.pg-meter.is-hidden { opacity: 0; }
@media (max-width: 760px) { .pg-meter { bottom: 28px; } .pg-bar { width: 64px; } .pg-num { display: none; } }
@media (max-width: 520px) { .pg-meter > span:first-child { display: none; } .pg-bar { width: 56px; } }

/* =========================================================
   紺の海 + ドットの方眼(よくある質問と同じ地。私たちについての強みなど)
   ========================================================= */
.t-sea {
  background-color: #06243a;
  background-image: radial-gradient(rgba(232,246,255,.07) 1px, transparent 1.6px);
  background-size: 16px 16px;
  color: #e8f6ff;
  --line: rgba(232,246,255,.16); --line-2: rgba(232,246,255,.3); --ink-2: #9cc4d8; --ink-3: #6f9bb2;
}
.xsec.t-sea { background: #041a2b; }
.sec--tight { padding-top: clamp(16px, 2.4vw, 40px); }
.sec--tight .duo-col { align-items: start; }
.sec--tight .lead { color: var(--ink); }

/* 実績:デモサイトの表記 */
.demo-badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 10px; background: var(--ink); color: #fff; font: 500 12px/1 var(--f-ja); letter-spacing: .08em; }
.work-shot { position: relative; }
.demo-tag { display: inline-block; margin-left: 12px; padding: 5px 9px; vertical-align: middle; border: 1px solid currentColor; font: 500 12px/1 var(--f-ja); letter-spacing: .08em; color: var(--pool-deep); }

/* スマホ・タブレット:ヒーローの組み上がる絵は出さず、1 画面分に */
@media (max-width: 859px) {
  .hero { height: auto; }
  .hero-stick { position: relative; }
  .note-pin, .hero-meter { display: none !important; }
  .hero-foot .lead { display: block; }
}
/* 白地でもカードの輪郭が見えるように */
.plan:not(.plan--hot):not(.plan--dark) { box-shadow: inset 0 0 0 1px rgba(14,15,17,.16); }
.form-card, .route--light { box-shadow: inset 0 0 0 1px rgba(14,15,17,.16); }
/* 「0円」の円が改行されないように */
.zero b { flex: none; white-space: nowrap; }

/* =========================================================
   演出(fx.js)
   ========================================================= */
/* ① ピクセルのページ遷移 */
html.px-enter body::after {
  content: ''; position: fixed; inset: 0; z-index: 400; background: #0e0f11;
  animation: px-failsafe .4s ease 2.6s forwards;   /* 万一スクリプトが動かなくても 2.6 秒で消える */
}
@keyframes px-failsafe { to { opacity: 0; visibility: hidden; } }
.px-shift { position: fixed; inset: 0; z-index: 400; display: grid; pointer-events: none; }
.px-shift.is-on { pointer-events: auto; }
.px-c { display: block; background: #0e0f11; transform: scale(0); transition: transform .3s cubic-bezier(.55, 0, .25, 1); will-change: transform; }
.px-c--pool { background: #3fc1c9; }
.px-c--navy { background: #1f3a5f; }
.px-shift.is-on .px-c { transform: scale(1.04); }
.px-shift.no-anim .px-c, .px-shift.no-anim .px-label { transition: none !important; }
.px-label { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff; opacity: 0; transition: opacity .18s ease; text-align: center; }
.px-shift.show-label .px-label { opacity: 1; }
.px-label b { font-family: var(--f-px); font-weight: 500; font-size: clamp(44px, 9vw, 132px); line-height: 1; letter-spacing: -.02em; }
.px-label small { font-family: "DotGothic16", var(--f-ja); font-size: 14px; letter-spacing: .12em; color: #3fc1c9; }
.px-dots { display: flex; gap: 6px; }
.px-dots i { width: 8px; height: 8px; background: #3fc1c9; animation: px-dot 0.9s steps(2) infinite; }
.px-dots i:nth-child(2) { animation-delay: .15s; }
.px-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes px-dot { 50% { opacity: .15; } }

/* ② フッターの粒子ロゴ */
.ft-word { position: relative; }
.ft-word-cv { position: absolute; left: 0; bottom: 0; width: 100%; pointer-events: none; }
.ft-word.is-px, .ft-word.is-px .plus { color: transparent; }


/* ⑤ 入れ替わる単語 */
.cta .display em.cycle { display: inline-block; }
.cta .display em.is-swap { animation: px-swap .42s steps(4) both; }
@keyframes px-swap { 0% { transform: translateY(-.06em); opacity: .4; } 100% { transform: none; opacity: 1; } }

/* ⑥ ページ見出しのドットマトリクス */
.ph .display { position: relative; }
.ph-dots { position: absolute; left: 0; width: 100%; pointer-events: none; }
.ph .display.is-dots, .ph .display.is-dots em { color: transparent !important; text-shadow: none !important; }

/* ⑦ スクロール演出:せり上がるシート */
.fx-sheet { position: relative; z-index: 2; will-change: clip-path; }

/* ③ ピクセルカーソル */
html.gc-on, html.gc-on * { cursor: none !important; }
html.gc-on input:not([type=checkbox]):not([type=radio]):not([type=submit]), html.gc-on textarea, html.gc-on select, html.gc-on [contenteditable=true] { cursor: text !important; }
.gc { position: fixed; inset: 0; z-index: 460; pointer-events: none; opacity: 0; transition: opacity .25s; --c: #0e0f11; --a: #3fc1c9; }
.gc.is-in { opacity: 1; }
.gc[data-on=ink], .gc[data-on=orange] { --c: #ffffff; }
.gc[data-on=pool] { --a: #0e0f11; }
.gc[data-mode=text] { opacity: 0; }
.gc-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; background: var(--a); transition: width .2s, height .2s, left .2s, top .2s, background-color .2s; }
.gc[data-mode=label] .gc-dot { left: -5px; top: -5px; width: 10px; height: 10px; }
.gc-frame { position: absolute; left: 0; top: 0; width: 26px; height: 26px; transition: opacity .2s; }
.gc-frame b { position: absolute; width: 7px; height: 7px; border: 0 solid var(--c); transition: border-color .2s, width .2s, height .2s; }
.gc-frame b:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.gc-frame b:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.gc-frame b:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.gc-frame b:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.gc[data-mode=lock] .gc-frame b { width: 10px; height: 10px; border-color: var(--a); }
.gc[data-mode=hover] .gc-frame b { width: 12px; height: 12px; }
.gc[data-mode=label] .gc-frame, .gc[data-mode=text] .gc-frame { opacity: 0; }
.gc.is-down .gc-frame { scale: .82; }
.gc-frame { transition: opacity .2s, scale .15s; }
.gc-label { position: absolute; left: 0; top: 0; padding: 8px 12px; background: #0e0f11; color: #fff; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; white-space: nowrap; box-shadow: 4px 4px 0 #3fc1c9; opacity: 0; scale: .4; transform-origin: 0 0; transition: opacity .2s, scale .25s var(--ease); }
.gc[data-mode=label] .gc-label { opacity: 1; scale: 1; }
.gc[data-on=pool] .gc-label { box-shadow: 4px 4px 0 #ffffff; }
.gc-bit { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--a); animation: gc-bit .5s cubic-bezier(.2, .7, .3, 1) forwards; }
.gc-bit--alt { background: var(--c); }
@keyframes gc-bit { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.gc-mag { transition: translate .45s cubic-bezier(.2, .8, .2, 1); }
.ft-social a.gc-mag { transition: background-color .3s, translate .45s cubic-bezier(.2, .8, .2, 1); }
/* ガクザメ:マウスのパソコンではカーソルについてくる(カーソルの少し下の層を泳ぐ) */
.gakuzame-swim.is-follow { z-index: 455; transition: opacity .4s; will-change: transform; }
.gakuzame-swim.is-follow .gakuzame-bob { width: 84px; height: 44px; }
/* ページ遷移のマスが出ている間は、カーソルとサメを隠す */
html.px-busy .gc, html.px-busy .gakuzame-swim, html.px-enter .gc, html.px-enter .gakuzame-swim { opacity: 0 !important; transition: opacity .12s !important; }

/* ⑧ サービス一覧の演出 */
.svc-row.fx-svc { isolation: isolate; }
.svc-row.fx-svc.is-on { background: none; }               /* グラデーションはピクセルの波に置き換え */
.svc-px { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.svc-row.fx-svc .svc-fig { position: relative; transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.svc-fig-px { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
/* サービスのドット絵アイコン */
.svc-ico { width: 62%; height: 62%; image-rendering: pixelated; image-rendering: crisp-edges; }
.svc-row:hover .svc-ico, .svc-row.is-on .svc-ico { animation: svc-hop .7s steps(2) infinite alternate; }
@keyframes svc-hop { from { transform: translateY(0); } to { transform: translateY(-6%); } }
@media (prefers-reduced-motion: reduce) { .svc-row .svc-ico { animation: none !important; } }
