
.kv { height: 100vh; background: #030b1c; color: #fff; }
canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.copy { position: absolute; z-index: 10; left: 112px; top: 50%; transform: translateY(-46%); }
.headline .t1 { font-size: 84px; } .headline .t2 { font-size: 50px; margin: 14px 0 12px; } .headline .t3 { font-size: 84px; }
.headline .ln { display: block; }
.tl { background-image: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.96) 40%, #7fd6f7 55%, #bff0ff 75%, #fff 100%); background-size: 260% 100%; }
/* ---------- typographic intro ---------- */
#intro { position: absolute; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
#paper { position: absolute; inset: 0; background: #fbfcfe; }
.word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-family: "Noto Sans JP"; font-weight: 800; color: #0b1f3a; letter-spacing: .04em; line-height: 1; }
#w1 { font-size: 104px; letter-spacing: .02em; }
#w2 { font-size: 84px; display: flex; gap: .62em; align-items: center; }
#w2 span { display: inline-block; transform-origin: 50% 50%; }
#wd { color: #1e65db; } #wc { color: #18a9dc; } #wx { color: #0b1f3a; font-weight: 300; }
/* expertise words: smaller, wider tracking, navy — they serve the core message */
.sub { font-size: 42px; font-weight: 700; letter-spacing: .26em; color: #0b1f3a; transform-origin: 50% 50%; }
#w3 { font-size: 104px; transform-origin: 0 50%; letter-spacing: .02em; }
.dot { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; }
.dot.s { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #0b1f3a; }
#dd { background: radial-gradient(circle at 35% 35%, #4d8ef0, #1e65db 70%); }
#dc { background: radial-gradient(circle at 35% 35%, #7fe0fb, #21bdea 70%); }
#axis { position: absolute; width: 2px; margin-left: -1px; background: linear-gradient(180deg, #0b1f3a, #1e65db 50%, #0b1f3a); border-radius: 2px; }
#ln { position: absolute; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1e65db, #21bdea 70%, #bff0ff); transform-origin: 0 50%; }
#band { position: absolute; left: 50%; top: 50%; width: 180vw; height: 110vh; margin-left: -90vw; margin-top: -55vh; border-radius: 50%; will-change: transform, opacity;
  background: linear-gradient(90deg, rgba(30,101,219,0), #1e65db 25%, #21bdea 50%, #e9fbff 62%, #21bdea 75%, rgba(30,101,219,0)); opacity: 0; }
.skip { position: absolute; z-index: 30; right: 24px; bottom: 22px; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(11,31,58,.18); background: rgba(255,255,255,.78); backdrop-filter: blur(6px); color: #0b1f3a; font: 700 11px/1 "Noto Sans JP", sans-serif; letter-spacing: .2em; cursor: pointer; }
.skip:hover { background: #fff; } .skip:focus-visible { outline: 2px solid #1e65db; outline-offset: 3px; } .skip[hidden] { display: none; }
@media (max-width: 600px) {
  .copy { left: 22px; right: 22px; top: 112px; transform: none; }
  .headline .t1, .headline .t3 { font-size: 37px; } .headline .t2 { font-size: 24px; margin: 10px 0 8px; }
  #w1 { font-size: 38px; } #w3 { font-size: 46px; }
  #w2 { font-size: 30px; gap: .7em; }
  .sub { font-size: 16px; letter-spacing: .22em; }
  .dot { width: 20px; height: 20px; margin: -10px 0 0 -10px; } .dot.s { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
  .skip { right: 14px; bottom: 14px; height: 36px; padding: 0 14px; font-size: 10.5px; }
}

/* r2: the full stop blooms into a soft dawn glow (replaces the diagonal streak and band wipe) */
#bloom { position: absolute; width: 120vmax; height: 120vmax; border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(233,251,255,.8) 0%, rgba(160,228,250,.55) 18%, rgba(70,165,235,.3) 40%, rgba(30,101,219,.12) 64%, rgba(30,101,219,.04) 82%, rgba(30,101,219,0) 100%); }
#wp { display: inline-block; }
#ln, #band { display: none; }

/* ===== KV headline (adopted: B) — smaller size gap, not uniform =====
   PC 84/68/84 @1440, scaling to 96/78/96 @1920. The middle line stays a step below lines 1 and 3. */
.headline { line-height: 1.14; }
.headline .t1, .headline .t3 { font-size: clamp(76px, 5.85vw, 96px); }
.headline .t2 { font-size: clamp(62px, 4.72vw, 78px); font-weight: 800; letter-spacing: .015em; margin: 6px 0 4px; }
.t2br { display: none; }
@media (max-width: 600px) {
  /* SP: break デジタルと / クリエイティブで ; sizes follow the viewport so no width splits a word (320 → 390) */
  .t2br { display: block; }
  .headline .t1, .headline .t3 { font-size: clamp(28px, 9.4vw, 37px); }
  .headline .t2 { font-size: clamp(25px, 8vw, 32px); margin: 6px 0 4px; line-height: 1.22; }
}
@media (max-width: 360px) { .headline { line-height: 1.16; } .headline .t2 { line-height: 1.2; } }
/* tablet (601–1100px): the PC minimums are too large here — scale with the viewport so no line splits mid-word */
@media (min-width: 601px) and (max-width: 1100px) {
  .headline .t1, .headline .t3 { font-size: clamp(48px, 7.4vw, 76px); }
  .headline .t2 { font-size: clamp(40px, 6vw, 62px); }
}

/* ===== robustness =====
   The intro layer is hidden unless <head> decided to play it (no JS -> plain finished page).
   While pending, the finished copy is invisible so it is never painted underneath the white sheet. */
#intro { display: none; }
.intro-play #intro { display: block; }
.intro-pending .kv .copy, .intro-pending .kv .scrollcue { opacity: 0; visibility: hidden; }   /* hidden: not focusable until intro.js takes over (it sets inert first) or the <head> fallback removes .intro-pending */
/* Finished-KV poster: the exact final WebGL frame as a static image. Shown when WebGL is unavailable,
   under reduced motion, without JS, and underneath the live canvas otherwise. */
.kv { background: #030b1c url(img/poster-kv-pc.webp) center / cover no-repeat; }
@media (max-width: 600px) { .kv { background-image: url(img/poster-kv-sp.webp); } }
canvas.field { transition: opacity .4s; }
.tl { background-position: 100% 0; }   /* finished colour without JS; the intro animates it from 0% */

/* ===== r10: first frame =====
   1) Until intro.js has applied frame 0 (it removes .intro-pending), only the white sheet is shown. Without this,
      the first paint showed every intro word at its default centred position, stacked on top of each other.
   2) The intro words and the shared header (incl. its dropdowns and SP menu) use a small subset of the same Noto Sans JP file
      (same glyphs, see fonts/noto/_tools/build_intro_subset.py), so neither waits for the 21-slice font. */
@font-face { font-family: "Noto Sans JP Intro"; font-weight: 100 900; font-display: block; src: url(fonts/noto-intro-subset.woff2) format("woff2"); }
.word, .skip { font-family: "Noto Sans JP Intro", "Noto Sans JP", sans-serif; }
/* 共通ヘッダー（components.js の <site-header>）も、TOP ではこのサブセットを先頭に置く。イントロの1コマ目からヘッダーの
   文字が欠けずに出る（分割フォントの到着を待たない）。字形・字幅は同じファイルから切り出したもので変わらない。
   後ろの並びは site.css の .font-sans と同じ。サブセットに無い文字は、そのまま分割フォントで描かれる。 */
site-header { font-family: "Noto Sans JP Intro", var(--font-noto-sans-jp), "Noto Sans JP Fallback"; }
.intro-pending #intro .word, .intro-pending #intro .dot, .intro-pending #axis, .intro-pending #bloom, .intro-pending #band, .intro-pending #ln { visibility: hidden; }

/* ===== r12-r14: the fused light (replaces the single blue sphere) =====
   Design A (adopted): three transparent ring-like glass films overlapping (multiply on the white sheet),
   one soft-ended highlight arc, a white core and a faint haze. Everything is a CSS gradient: no image, no extra canvas.
   intro.js only moves/scales the group and settles the layers; nothing spins continuously. */
#fx { --S: 150px; position: absolute; left: 0; top: 0; width: var(--S); height: var(--S); margin: calc(var(--S) / -2) 0 0 calc(var(--S) / -2); pointer-events: none; opacity: 0; will-change: transform, opacity; }
#fx > span { position: absolute; left: 50%; top: 50%; border-radius: 50%; will-change: transform, opacity; }
#fx .haze { width: calc(var(--S) * 2.2); height: calc(var(--S) * 2.2); margin: calc(var(--S) * -1.1) 0 0 calc(var(--S) * -1.1); background: radial-gradient(closest-side, rgba(127,214,247,.2), rgba(33,189,234,.07) 55%, rgba(33,189,234,0)); }
#fx .core { width: calc(var(--S) * .34); height: calc(var(--S) * .34); margin: calc(var(--S) * -.17) 0 0 calc(var(--S) * -.17); background: radial-gradient(closest-side, #fff 0%, rgba(255,255,255,.92) 32%, rgba(214,248,255,.5) 62%, rgba(214,248,255,0)); }
#fx .ly { mix-blend-mode: multiply; }
/* r14: A — glass films. Each film is a thin translucent membrane: a clear centre with the light gathered at its edge;
   three of them overlap at different angles, with one soft-ended highlight arc */
#fx .ly { width: var(--S); height: calc(var(--S) * .78); margin: calc(var(--S) * -.39) 0 0 calc(var(--S) * -.5); }
#fx .ly0 { background: radial-gradient(farthest-side at 46% 48%, rgba(255,255,255,0) 58%, rgba(127,214,247,.35) 80%, rgba(30,101,219,.55) 93%, rgba(30,101,219,0) 100%); }
#fx .ly1 { background: radial-gradient(farthest-side at 54% 46%, rgba(255,255,255,0) 60%, rgba(33,189,234,.38) 82%, rgba(33,189,234,.6) 93%, rgba(33,189,234,0) 100%); }
#fx .ly2 { background: radial-gradient(farthest-side at 50% 56%, rgba(255,255,255,0) 62%, rgba(191,240,255,.5) 84%, rgba(127,214,247,.6) 94%, rgba(127,214,247,0) 100%); }
#fx .rim0 { width: calc(var(--S) * .92); height: calc(var(--S) * .74); margin: calc(var(--S) * -.37) 0 0 calc(var(--S) * -.46);
  background: conic-gradient(from 290deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.85) 55deg, rgba(255,255,255,0) 115deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 86%, #000 93%, transparent 100%); mask: radial-gradient(farthest-side, transparent 86%, #000 93%, transparent 100%); }
@media (max-width: 600px) { #fx { --S: 84px; } }
.intro-pending #fx { visibility: hidden; }
