/* ============================================================
   WELSYS SIGNAL v3 — デッキ型フルスクリーン体験
   タイポグラフィ主役 / 多色 / 常時ナビ / 1フリック遷移
   ============================================================ */

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/syne-var-68b623f0.woff2) format("woff2-variations");
}
@font-face {
  font-family: "NotoJP";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/notojp-900-6f38c53b.woff2) format("woff2");
}

:root {
  --ink0: #04060d;
  --ink1: #0a1020;
  --line: rgba(139, 168, 255, 0.14);
  --line2: rgba(139, 168, 255, 0.32);
  --tx: #eaf0fc;
  --mut: #93a0c2;
  --volt: #2f66ff;
  --cy: #7fd2ff;
  --vio: #8b5cf6;
  --mag: #ec4899;
  --amb: #ffb347;
  --mint: #34d399;
  /* 寒色に埋もれないためのアクセント。要所だけに差す */
  --warm: #ffbe5c;
  --coral: #ff6b6b;
  --disp: "Syne", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --jp: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --jp9: "NotoJP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --glhue: 0deg;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  background: var(--ink0);
  color: var(--tx);
  font-family: var(--jp);
  font-feature-settings: "palt";
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--volt); color: #fff; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; }
button { background: none; border: 0; color: inherit; font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ 背景レイヤー ============ */
#gl, #net {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0;
}
#gl { filter: hue-rotate(var(--glhue)) saturate(1.05); }
#net { z-index: 1; opacity: 0; pointer-events: none; }
#gl-fallback {
  position: fixed; inset: 0; z-index: 0; display: none;
  background:
    radial-gradient(120% 90% at 75% 10%, rgba(47, 102, 255, 0.25), transparent 55%),
    radial-gradient(90% 70% at 15% 85%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--ink0);
}
.no-webgl #gl { display: none; }
.no-webgl #gl-fallback { display: block; }

#bpgrid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 168, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 168, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 100% at 50% 42%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 42%, #000 50%, transparent 100%);
}
#grain {
  position: fixed; inset: -60px; z-index: 3; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* ============ オープニング(シネマティック) ============
   映画の冒頭のように「暗転 → 送電 → 起動 → タイトル → 開幕」を演出する。
   映像は動画ファイルではなく Canvas でその場生成するため軽量。 */
#opening {
  position: fixed; inset: 0; z-index: 100;
  background: #01030a;
  overflow: hidden;
}
#op-grid {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}
/* 周辺減光(レンズの味) */
.op-vig {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 35%, rgba(1, 3, 10, 0.85) 100%);
}
/* ブラウン管の走査線 */
.op-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(
    180deg, rgba(127, 210, 255, 0.07) 0px, rgba(127, 210, 255, 0.07) 1px,
    transparent 1px, transparent 3px);
}
/* シネマスコープの黒帯 */
.op-bars i {
  position: absolute; left: 0; right: 0; height: 50%;
  background: #01030a; z-index: 6;
  transform-origin: center;
}
.op-bars .top { top: 0; transform-origin: top; }
.op-bars .bot { bottom: 0; transform-origin: bottom; }

/* HUD */
.op-hud {
  position: absolute; inset: 0; z-index: 5;
  font-family: var(--disp); font-weight: 700;
  letter-spacing: 0.26em; color: var(--mut);
  pointer-events: none;
}
.op-hud .hud-l {
  position: absolute; left: clamp(20px, 5vw, 64px); top: 22%;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 10px;
}
.op-hud .hud-l span { opacity: 0; transform: translateX(-14px); }
.op-hud .hud-l em { font-style: normal; color: var(--mint); }
.op-hud .hud-r {
  position: absolute; right: clamp(20px, 5vw, 64px); top: 21%;
  display: flex; align-items: baseline; gap: 4px;
  font-size: clamp(30px, 4.6vw, 60px);
  color: var(--cy); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(47, 102, 255, 0.65);
  opacity: 0;
}
.op-hud .hud-r em { font-style: normal; font-size: 0.34em; color: var(--mut); }
.op-hud .hud-b {
  position: absolute; left: clamp(20px, 5vw, 64px); right: clamp(20px, 5vw, 64px);
  bottom: 21%;
  display: flex; align-items: center; gap: 16px;
  font-size: 10px; opacity: 0;
}
.op-hud .op-bar {
  flex: 1; height: 2px; background: rgba(139, 168, 255, 0.16);
  border-radius: 2px; overflow: hidden;
}
.op-hud .op-bar em {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--volt), var(--cy));
  box-shadow: 0 0 14px rgba(47, 102, 255, 0.9);
  transform: scaleX(0); transform-origin: left;
}

/* タイトル */
.op-core {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.op-sub {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.5em; color: var(--cy);
  margin-bottom: 18px; opacity: 0;
  text-shadow: 0 0 18px rgba(47, 102, 255, 0.7);
}
.op-brand {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(58px, 14.5vw, 190px);
  letter-spacing: 0.06em; line-height: 1;
  display: flex; justify-content: center;
  color: #f4fbff;
  perspective: 900px;
}
/* ネオン管の3状態。JS がクラスを付け替えて通電を表現する。
   点灯 → 不点灯 → 放電 を短い間隔で往復させると「ビリビリ」に見える。 */
.op-brand span {
  display: inline-block; opacity: 0;
  will-change: transform, opacity;
  color: #f4fbff;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 11px rgba(170, 228, 255, 0.95),
    0 0 26px rgba(60, 140, 255, 0.9),
    0 0 56px rgba(47, 102, 255, 0.75),
    0 0 104px rgba(47, 102, 255, 0.45);
}
/* 不点灯 — ガラス管だけが薄く残る */
.op-brand span.off {
  color: #202c4a;
  text-shadow: 0 0 7px rgba(47, 102, 255, 0.2);
}
/* 放電 — 白熱し、赤とシアンに滲む */
.op-brand span.zap {
  color: #ffffff;
  text-shadow:
    0 0 6px #ffffff,
    0 0 20px #d6f2ff,
    0 0 44px #7fd2ff,
    0 0 86px #2f66ff,
    0 0 150px rgba(47, 102, 255, 0.85),
    3px 0 rgba(255, 96, 96, 0.8),
    -3px 0 rgba(127, 210, 255, 0.8);
}
.op-rule {
  width: min(420px, 68vw); height: 1px; margin: 24px auto 0;
  background: rgba(139, 168, 255, 0.2); position: relative; overflow: hidden;
}
.op-rule i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--cy), transparent);
  transform: scaleX(0);
}
.op-tag {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 0.42em; color: var(--cy);
  margin-top: 18px; opacity: 0;
  text-shadow: 0 0 16px rgba(47, 102, 255, 0.6);
}

/* ---- 文字を這う電気アーク ---- */
#op-arc {
  position: absolute; inset: 0; z-index: 6;
  width: 100%; height: 100%; display: block; pointer-events: none;
}

/* ---- 四隅の計測ブラケット ---- */
.op-frame { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.op-frame i {
  position: absolute; width: clamp(26px, 4vw, 52px); height: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(127, 210, 255, 0.55);
  opacity: 0;
}
.op-frame .tl { left: clamp(16px, 3.5vw, 44px); top: clamp(16px, 3.5vw, 44px); border-right: 0; border-bottom: 0; }
.op-frame .tr { right: clamp(16px, 3.5vw, 44px); top: clamp(16px, 3.5vw, 44px); border-left: 0; border-bottom: 0; }
.op-frame .bl { left: clamp(16px, 3.5vw, 44px); bottom: clamp(16px, 3.5vw, 44px); border-right: 0; border-top: 0; }
.op-frame .br { right: clamp(16px, 3.5vw, 44px); bottom: clamp(16px, 3.5vw, 44px); border-left: 0; border-top: 0; }

/* ---- 上下を流れるデータ列 ---- */
.op-tick {
  position: absolute; left: 0; right: 0; z-index: 5;
  overflow: hidden; white-space: nowrap; pointer-events: none;
  font-family: "Courier New", monospace; font-size: 10px;
  letter-spacing: 0.16em; color: rgba(127, 210, 255, 0.5);
  opacity: 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.op-tick.t { top: clamp(58px, 9vh, 96px); }
.op-tick.b { bottom: clamp(58px, 9vh, 96px); color: rgba(255, 150, 120, 0.4); }
.op-tick span { display: inline-block; }

/* ---- 縦に走る走査バー ---- */
.op-sweep { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.op-sweep i {
  position: absolute; left: 0; right: 0; top: 0; height: 26vh;
  background: linear-gradient(180deg,
    transparent, rgba(127, 210, 255, 0.09) 45%, rgba(190, 240, 255, 0.22) 50%,
    rgba(127, 210, 255, 0.09) 55%, transparent);
  opacity: 0; transform: translateY(-40vh);
}

/* ---- 右端の縦インジケータ ---- */
.op-hud .hud-v {
  position: absolute; right: clamp(20px, 5vw, 64px); top: 38%;
  display: flex; flex-direction: column; gap: 5px; opacity: 0;
}
.op-hud .hud-v i {
  display: block; width: 26px; height: 2px; border-radius: 2px;
  background: rgba(139, 168, 255, 0.25);
}
.op-hud .hud-v i.on {
  background: var(--cy);
  box-shadow: 0 0 10px rgba(127, 210, 255, 0.9);
}
.op-hud .hud-v i.hot {
  background: var(--coral);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.9);
}

/* 白フラッシュ */
.op-flash {
  position: absolute; inset: 0; z-index: 8;
  background: #eaf6ff; opacity: 0; pointer-events: none;
}
.op-skip {
  position: absolute; right: clamp(18px, 4vw, 44px); bottom: 26px; z-index: 7;
  font-family: var(--disp); font-weight: 700; font-size: 9px;
  letter-spacing: 0.3em; color: rgba(147, 160, 194, 0.5);
  opacity: 0;
}

/* ============ 常時表示ヘッダー ============ */
#hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 3.4vw, 44px);
  background: rgba(4, 6, 13, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
#hd .mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--disp); font-weight: 800; font-size: 21px;
  letter-spacing: 0.08em; color: var(--tx); text-decoration: none;
}
#hd .mark img {
  display: block; height: 26px; width: auto;
  /* 濃紺の地に馴染ませるため、わずかに発光させる */
  filter: drop-shadow(0 0 10px rgba(90, 190, 210, 0.45));
}
#hd .mark span { display: inline-flex; align-items: baseline; }
#hd .mark em { color: var(--volt); font-style: normal; }
#hd .links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
#hd .links a {
  font-family: var(--disp); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.22em; color: var(--mut); text-decoration: none;
  position: relative; transition: color 0.3s; padding: 6px 0;
}
#hd .links a:hover, #hd .links a:focus-visible, #hd .links a.act { color: var(--tx); }
#hd .links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--volt), var(--cy));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
#hd .links a:hover::after, #hd .links a.act::after { transform: scaleX(1); transform-origin: left; }
#hd .links a.cta-mini {
  color: #fff; padding: 12px 26px; border-radius: 999px; font-size: 14px;
  background: linear-gradient(90deg, var(--volt), var(--vio));
  transition: filter 0.3s, transform 0.3s;
}
#hd .links a.cta-mini:hover { filter: brightness(1.2); }
#hd .links a.cta-mini::after { display: none; }

#burger {
  display: none; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer;
}
#burger i { width: 22px; height: 2px; background: var(--tx); transition: transform 0.35s, opacity 0.35s; }
#burger.open i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
#burger.open i:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
@media (max-width: 960px) {
  #hd .links { display: none; }
  #burger { display: flex; }
}

/* ============ フルスクリーンメニュー ============ */
#menu {
  position: fixed; inset: 0; z-index: 65;
  visibility: hidden; pointer-events: none;
}
#menu.open { visibility: visible; pointer-events: auto; }
#menu .menu-bg {
  position: absolute; inset: 0;
  background: rgba(4, 6, 13, 0.9);
  backdrop-filter: blur(20px);
  opacity: 0;
}
#menu .menu-links {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(10px, 2.6vh, 26px);
  padding: 0 clamp(28px, 8vw, 120px);
}
#menu .menu-links a {
  display: flex; align-items: baseline; gap: 20px;
  text-decoration: none; opacity: 0; transform: translateY(30px);
}
#menu .menu-links .no {
  font-family: var(--disp); font-weight: 700; font-size: 12px;
  letter-spacing: 0.24em; color: var(--mut);
}
#menu .menu-links .tx {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(30px, 6.4vh, 54px);
  letter-spacing: 0.05em; color: var(--tx);
  display: flex; align-items: baseline; gap: 16px;
  transition: color 0.3s;
}
#menu .menu-links .tx small {
  font-family: var(--jp); font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; color: var(--mut);
}
#menu .menu-links a:hover .tx {
  color: var(--cy);
  text-shadow: 0 0 18px rgba(47, 102, 255, 0.7);
}

/* ============ 右サイド シーンナビ ============ */
#dots {
  position: fixed; right: clamp(14px, 2.4vw, 34px); top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column; gap: 11px;
}
#dots button {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  cursor: pointer; padding: 3px 0;
}
#dots button span {
  font-family: var(--disp); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.24em; color: var(--mut);
  opacity: 0; transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}
#dots button i {
  width: 22px; height: 3px; border-radius: 3px;
  background: rgba(139, 168, 255, 0.28);
  transition: width 0.4s cubic-bezier(0.6, 0, 0.2, 1), background 0.4s;
}
#dots button:hover span, #dots button.on span { opacity: 1; transform: none; }
#dots button.on span { color: var(--cy); }
#dots button.on i {
  width: 38px;
  background: linear-gradient(90deg, var(--coral), var(--cy));
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.6), 0 0 22px rgba(47, 102, 255, 0.5);
}
@media (max-width: 720px) {
  #dots { right: 10px; gap: 11px; }
  #dots button span { display: none; }
  #dots button i { width: 16px; }
  #dots button.on i { width: 26px; }
}

/* ============ 下部ページャー ============ */
#pager {
  position: fixed; left: clamp(20px, 3.4vw, 44px); bottom: 22px;
  z-index: 60;
  display: flex; align-items: center; gap: 16px;
}
#pager .num {
  font-family: var(--disp); font-weight: 800; font-size: 26px;
  letter-spacing: 0.05em; display: flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums;
}
#pager .num span {
  color: var(--cy);
  text-shadow: 0 0 14px rgba(47, 102, 255, 0.7);
}
#pager .num em { font-style: normal; font-size: 12px; color: var(--coral); letter-spacing: 0.2em; }
#pager .line { width: clamp(60px, 10vw, 140px); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
#pager .line i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--volt), var(--cy) 45%, var(--warm));
  transform: scaleX(0.125); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.6, 0, 0.2, 1);
}
#pager .hint {
  font-family: var(--disp); font-weight: 700; font-size: 9px;
  letter-spacing: 0.26em; color: var(--mut);
}
@media (max-width: 720px) { #pager .hint { display: none; } }

/* ============ カスタムカーソル(電撃ストーカー) ============ */
/* #fx: 稲妻の軌跡とチャージ円弧を描く全画面キャンバス
   #cursor: 回転するクロスヘア(照準) */
#fx, #cursor { position: fixed; top: 0; left: 0; pointer-events: none; display: none; }
#fx { inset: 0; width: 100%; height: 100%; z-index: 89; }
#cursor { z-index: 90; width: 40px; height: 40px; opacity: 0; }
#cursor svg { width: 100%; height: 100%; overflow: visible; }
@media (pointer: fine) {
  #fx, #cursor { display: block; }
  .js body { cursor: none; }
  .js a, .js .btn, .js button { cursor: none; }
  #cursor { transform: translate(-50%, -50%); }
  #cursor.hov svg { transform: scale(1.5) rotate(45deg); }
  #cursor svg { transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1); }
}

/* ============ タイポグラフィ演出 ============ */
/* 字面は白で固定する。色は縁取り(text-stroke)と発光(text-shadow)にだけ
   宿らせ、見出しそのものは彩度を持たせない。
   これで色は「アクセント」に留まり、文字は白く読みやすいまま保たれる。 */
.grad-text {
  color: #eff4ff;
  text-shadow:
    0 0 10px rgba(47, 102, 255, 0.5),
    0 0 30px rgba(47, 102, 255, 0.26);
}
.jp900 { font-family: var(--jp9); font-weight: 900; letter-spacing: 0.02em; }

/* 見出しは電光掲示板の質感。装飾は文字そのものに宿らせ、
   背後に図形を置かない(1文字目に重なるため) */
#s-hero h1, h2.jp900.grad-text { position: relative; }

/* 本文の通電ライン(箇条書きのバーが光る) */
.svc li.pulse::before {
  background: linear-gradient(90deg, #ffffff, var(--acc2));
  box-shadow: 0 0 12px rgba(127, 210, 255, 0.9);
  width: 26px;
}
.svc li::before { transition: width 0.25s, box-shadow 0.25s, background 0.25s; }

/* SplitText の文字単位アニメ用 */
.char {
  display: inline-block;
  position: relative;
  will-change: transform;
  --beam: 0;      /* 光線の不透明度 */
  --beamY: -60%;  /* 光線の縦位置 */
}

/* 文字単位の発色。paintChars が inline style で1文字ずつ色を差し、
   見出し全体にシアン→ブルーの階調を作る。
   background-clip:text は transform によるレイヤー昇格で切り抜きが外れ、
   グラデーションが矩形のまま露出するため使用しない。 */
.grad-text .char {
  color: #eff4ff;
  /* 縁取りの色は paintChars / hueCycle が1文字ずつ差し替える。
     字形の内側は白のままなので、色は輪郭にだけ現れる。 */
  -webkit-text-stroke: 0.75px rgba(127, 210, 255, 0.55);
  text-shadow:
    0 0 10px rgba(47, 102, 255, 0.5),
    0 0 30px rgba(47, 102, 255, 0.26);
}
@media (max-width: 900px) {
  .grad-text .char { -webkit-text-stroke-width: 0.5px; }
}
/* ---- HERO 見出し: 光線が降りて文字が結像する ----
   1文字ごとに走査光を落とし、通過した部分から文字が現れる。
   文字の字形は一切変えないので可読性を損なわない。 */
#s-hero h1 .char::before {
  content: "";
  position: absolute;
  left: -12%; right: -12%; top: 0;
  height: 3.5px;
  transform: translateY(var(--beamY));
  opacity: var(--beam);
  background: linear-gradient(90deg,
    transparent, rgba(216, 241, 255, 0.9) 35%, #ffffff 50%, rgba(216, 241, 255, 0.9) 65%, transparent);
  box-shadow:
    0 0 22px rgba(127, 210, 255, 0.95),
    0 0 46px rgba(47, 102, 255, 0.75);
  pointer-events: none;
  z-index: 2;
}
/* 着弾の残光 */
#s-hero h1 .char::after {
  content: "";
  position: absolute;
  inset: -6% -12%;
  opacity: calc(var(--beam) * 0.5);
  background: radial-gradient(60% 50% at 50% var(--beamY), rgba(127, 210, 255, 0.5), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* 点灯状態。光が文字列を走るときに一瞬白熱する。
   1文字ずつ inline で色を差しているため !important で上書きする */
.grad-text .char.lit {
  color: #ffffff !important;
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.85) !important;
  text-shadow:
    0 0 16px rgba(170, 225, 255, 1),
    0 0 42px rgba(47, 102, 255, 0.9) !important;
}

/* ============ 巨大背景ワード(多層で奥行き) ============ */
.mega {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; user-select: none; overflow: hidden;
}
.mega span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(110px, 24vw, 360px);
  letter-spacing: 0.03em; white-space: nowrap;
}
.mega .mega-fill { color: rgba(47, 102, 255, 0.13); }
.mega .mega-line {
  color: transparent;
  -webkit-text-stroke: 1px rgba(139, 168, 255, 0.2);
}
.mega .l1 { transform: translate(calc(-50% + 10px), calc(-50% + 12px)); opacity: 0.7; }
.mega .l2 {
  transform: translate(calc(-50% + 22px), calc(-50% + 26px));
  opacity: 0.35;
  -webkit-text-stroke-color: rgba(255, 107, 107, 0.3);
}

/* ============ 装飾(立体キューブ/リング/クロスヘア/レーダー) ============ */
.deco { position: absolute; pointer-events: none; z-index: 1; }
.cube { width: 90px; height: 90px; transform-style: preserve-3d; }
.cube i {
  position: absolute; inset: 0;
  border: 1px solid var(--acc, var(--volt));
  background: color-mix(in srgb, var(--acc, var(--volt)) 7%, transparent);
  opacity: 0.6;
}
.cube i:nth-child(1) { transform: translateZ(45px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(45px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(45px); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(45px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(45px); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(45px); }
.cube.c1 { top: 16%; right: 12%; }
.cube.c2 { bottom: 20%; left: 7%; width: 56px; height: 56px; }
.cube.c2 i:nth-child(1) { transform: translateZ(28px); }
.cube.c2 i:nth-child(2) { transform: rotateY(180deg) translateZ(28px); }
.cube.c2 i:nth-child(3) { transform: rotateY(90deg) translateZ(28px); }
.cube.c2 i:nth-child(4) { transform: rotateY(-90deg) translateZ(28px); }
.cube.c2 i:nth-child(5) { transform: rotateX(90deg) translateZ(28px); }
.cube.c2 i:nth-child(6) { transform: rotateX(-90deg) translateZ(28px); }
.cube.c3 { top: 18%; left: 9%; width: 64px; height: 64px; }
.cube.c3 i:nth-child(1) { transform: translateZ(32px); }
.cube.c3 i:nth-child(2) { transform: rotateY(180deg) translateZ(32px); }
.cube.c3 i:nth-child(3) { transform: rotateY(90deg) translateZ(32px); }
.cube.c3 i:nth-child(4) { transform: rotateY(-90deg) translateZ(32px); }
.cube.c3 i:nth-child(5) { transform: rotateX(90deg) translateZ(32px); }
.cube.c3 i:nth-child(6) { transform: rotateX(-90deg) translateZ(32px); }

.ring { border: 1px dashed rgba(139, 168, 255, 0.3); border-radius: 50%; }
.ring.r1 { width: 380px; height: 380px; right: -110px; top: 52%; }
.ring.r2 { width: 520px; height: 520px; left: -160px; bottom: -180px; }

.cross { width: 28px; height: 28px; opacity: 0.65; }
.cross::before, .cross::after {
  content: ""; position: absolute; background: var(--acc, var(--cy));
}
.cross::before { left: 50%; top: 0; width: 1px; height: 100%; }
.cross::after { top: 50%; left: 0; height: 1px; width: 100%; }
.cross.x1 { left: 12%; top: 30%; }
.cross.x2 { right: 16%; bottom: 24%; --acc: var(--coral); opacity: 0.5; }

.radar {
  width: min(72vh, 720px); height: min(72vh, 720px);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(139, 168, 255, 0.12);
  background: conic-gradient(from 0deg, rgba(255, 107, 107, 0.18), transparent 24%, transparent 100%);
  mask-image: radial-gradient(circle, #000 0%, #000 70%, transparent 71%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 70%, transparent 71%);
}

/* ============ デッキ / シーン ============ */
#deck { position: fixed; inset: 0; z-index: 5; }
.scene {
  position: absolute; inset: 0;
  visibility: hidden;
  overflow: hidden;
  /* シーン別アクセント色 */
  --acc: var(--volt); --acc2: var(--cy);
}
.scene.on { visibility: visible; }
#s-hero  { --acc: var(--volt); --acc2: var(--cy); }
#s-about { --acc: var(--vio);  --acc2: var(--cy); }
#s-svc   { --acc: var(--volt); --acc2: var(--cy); }
/* ITインフラ事業 — ラベルはシアンで固定 */
#s-net   { --acc: var(--volt); --acc2: var(--cy); }
#s-pos   { --acc: var(--mint); --acc2: var(--cy); }
#s-pc    { --acc: var(--warm); --acc2: var(--cy); }
#s-fac   { --acc: var(--volt); --acc2: var(--cy); }
/* ITソリューション事業 — ラベルは明るい紫で固定 */
#s-ai    { --acc: var(--vio);  --acc2: #a78bfa; }
#s-dev   { --acc: #6366f1;     --acc2: #a78bfa; }
#s-str   { --acc: var(--coral); --acc2: var(--warm); }
#s-com   { --acc: var(--cy);   --acc2: var(--volt); }
#s-cta   { --acc: var(--warm); --acc2: var(--warm); }

.scene .inner {
  position: relative; z-index: 4;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 76px; padding-bottom: 64px;
}
.wrap { max-width: 1240px; margin: 0 auto; width: 100%; padding-left: clamp(22px, 4vw, 56px); padding-right: clamp(22px, 4vw, 56px); }
.center { text-align: center; align-items: center; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--disp); font-weight: 700; font-size: 12px;
  letter-spacing: 0.3em; color: var(--acc2, var(--cy));
}
.eyebrow::before {
  content: ""; width: 44px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--acc, var(--volt)), var(--warm));
}
.eyebrow.center { justify-content: center; }
.eyebrow .idx { color: var(--coral); }

/* ============ HERO ============ */
#s-hero .inner { justify-content: center; }
#s-hero h1 {
  font-size: clamp(30px, 5.6vw, 70px);
  line-height: 1.34;
  letter-spacing: 0.035em;
  margin-top: 20px;
  font-family: var(--jp9); font-weight: 900;
}
#s-hero .sub { margin-top: 26px; color: #c3cde6; font-size: clamp(16.5px, 1.7vw, 20px); line-height: 2; max-width: 640px; }
#s-hero .ctas { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }
#s-hero .coords {
  position: absolute; right: clamp(60px, 6vw, 100px); top: 110px; text-align: right;
  font-family: var(--disp); font-weight: 700; font-size: 9px;
  letter-spacing: 0.28em; color: var(--mut); line-height: 2.4;
}
#badge { position: absolute; right: clamp(60px, 6vw, 110px); bottom: 120px; width: 120px; height: 120px; }
#badge svg { width: 100%; height: 100%; overflow: visible; }
#badge text { font-family: var(--disp); font-weight: 700; font-size: 10.5px; letter-spacing: 0.32em; fill: var(--mut); }
#badge circle:last-of-type { fill: var(--warm); }
.hero-mq {
  position: absolute; left: 0; right: 0; bottom: 58px; z-index: 3;
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-mq .track { display: inline-flex; }
.hero-mq .unit {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: 0.05em; padding-right: 2.4vw;
  color: transparent; -webkit-text-stroke: 1px rgba(139, 168, 255, 0.4);
}
.hero-mq .unit:nth-child(odd) { -webkit-text-stroke-color: rgba(255, 107, 107, 0.42); }
.hero-mq .unit em { font-style: normal; color: var(--warm); -webkit-text-stroke: 0; }
@media (max-width: 860px) {
  #s-hero .coords, #badge { display: none; }
}

/* ============ ABOUT ============ */
#s-about .big { font-size: clamp(27px, 4.7vw, 60px); line-height: 1.36; margin-top: 16px; }
#s-about .origin {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(11px, 1.2vw, 15px);
  letter-spacing: 0.42em;
  color: var(--cy);
  margin-top: 22px;
  text-shadow: 0 0 20px rgba(47, 102, 255, 0.65);
}
#s-about .origin em {
  font-style: normal;
  color: var(--vio);
  margin: 0 0.15em;
}
#s-about .lead b {
  color: var(--tx);
  font-weight: 800;
  letter-spacing: 0.04em;
}
#s-about .lead { margin: 34px auto 0; max-width: 760px; color: #c3cde6; font-size: clamp(16.5px, 1.7vw, 19px); line-height: 2.05; }
#s-about .kw-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
#s-about .kw-row span {
  font-size: 15px; letter-spacing: 0.06em;
  border: 1px solid var(--line2); color: var(--tx);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(10, 16, 32, 0.5);
}

/* ============ SERVICES 共通 ============ */
/* 左右分割をやめ「ステッパー → 番号+タイトル → 説明」の縦積みに統一。
   図面SVGは背景レイヤーへ回してモーションだけ残す。 */

/* 図面アニメーションを背景として薄く敷く */
.svc-bg {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(62vw, 900px);
  aspect-ratio: 900 / 640;
  z-index: 1;
  opacity: 0.3;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
}
.svc-bg svg { width: 100%; height: 100%; display: block; }
#vis-server svg { filter: hue-rotate(258deg) saturate(1.05); }
#vis-electrical svg { filter: hue-rotate(178deg) saturate(1.15); }

.svc .inner { justify-content: center; }

/* ---- サービスステッパー(全3件が一目で分かる) ---- */
/* 事業カテゴリ(インフラ / ITソリューション)のバッジ。
   どちらの柱に属する詳細なのかを日本語で明示する */
.svc-cat {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--jp); font-weight: 800;
  font-size: clamp(12px, 1.25vw, 15px);
  letter-spacing: 0.1em;
  color: var(--acc2, var(--cy));
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 12px;
  background: rgba(10, 16, 32, 0.62);
}
.svc-cat em {
  font-style: normal;
  font-family: var(--disp); font-weight: 700;
  font-size: 0.7em;
  letter-spacing: 0.22em;
  color: var(--mut);
}

/* ステッパー左端の分類名 */
.svc-steps .steps-cat {
  font-family: var(--jp); font-weight: 800;
  font-size: clamp(12px, 1.2vw, 14.5px);
  letter-spacing: 0.08em;
  color: var(--acc2, var(--cy));
  white-space: nowrap;
  padding-right: 14px;
  margin-right: 2px;
  border-right: 1px solid var(--line2);
}

.svc-steps {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.8vw, 12px);
  margin-bottom: clamp(18px, 3vh, 34px);
  flex-wrap: wrap;
}
/* インフラ系とITソリューション系の境界 */
.svc-steps .bar.div {
  background: none;
  border-top: 1px dashed rgba(255, 107, 107, 0.75);
  height: 0;
  max-width: 40px;
}
.svc-steps .bar.div em { display: none; }
.svc-steps .step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.5);
  cursor: pointer;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
.svc-steps .step b {
  font-family: var(--disp); font-weight: 800; font-size: 15px;
  letter-spacing: 0.06em; color: var(--mut);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s;
}
.svc-steps .step span {
  font-family: var(--disp); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.16em; color: var(--mut);
  transition: color 0.35s;
  white-space: nowrap;
}
/* 画面が狭いときは現在地だけ名前を出す */
@media (max-width: 1180px) {
  .svc-steps .step span { display: none; }
  .svc-steps .step.on span { display: inline; }
}
.svc-steps .step:hover { border-color: var(--line2); transform: translateY(-2px); }
.svc-steps .step.done b, .svc-steps .step.done span { color: #7d8bb0; }
.svc-steps .step.on {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(47, 102, 255, 0.28), rgba(127, 210, 255, 0.18));
  box-shadow: 0 0 26px rgba(47, 102, 255, 0.35), 0 0 42px rgba(255, 190, 92, 0.18);
}
.svc-steps .step.on b { color: #fff; }
.svc-steps .step.on span { color: var(--cy); }
.svc-steps .bar {
  flex: 1 1 24px;
  min-width: 18px;
  max-width: 78px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.svc-steps .bar em {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--volt), var(--cy));
  transform: scaleX(0); transform-origin: left;
}
.svc-steps .bar em.on { transform: scaleX(1); }

/* ---- 見出しブロック(番号 + タイトル) ---- */
.svc-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2.6vw, 40px);
  position: relative;
  z-index: 3;
}
.svc-no {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: #4f8cff;
  text-shadow: 0 0 26px rgba(47, 102, 255, 0.7), 0 0 70px rgba(47, 102, 255, 0.3);
  flex: none;
  position: relative;
}
/* 番号の左に走る通電ライン */
.svc-no::after {
  content: ""; position: absolute;
  left: -14px; top: 6%; bottom: 12%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--coral), var(--cy) 45%, transparent);
  box-shadow: 0 0 14px rgba(255, 107, 107, 0.55);
}
.svc-ttl { padding-top: clamp(4px, 1vh, 14px); }
.svc-en {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(13px, 1.35vw, 18px);
  letter-spacing: 0.3em; color: var(--cy);
  margin-bottom: 10px;
}
.svc h2 {
  font-size: clamp(26px, 3.9vw, 54px);
  line-height: 1.26;
  letter-spacing: 0.005em;
}
.svc-sub {
  margin-top: 12px;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c3cde6;
}

/* ---- 説明ブロック ---- */
.svc-body {
  position: relative; z-index: 3;
  margin-top: clamp(20px, 3.4vh, 42px);
  padding-left: clamp(0px, 2vw, 26px);
  border-left: 1px solid var(--line);
  max-width: 760px;
}
.svc .desc {
  color: #c3cde6;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 2;
  max-width: 700px;
}
.svc ul {
  list-style: none;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(16px, 2.4vw, 36px);
}
.svc li {
  font-size: clamp(15px, 1.45vw, 17.5px);
  display: flex; align-items: baseline; gap: 12px;
}
.svc li::before {
  content: ""; flex: none; width: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--acc2));
  transform: translateY(-4px);
}
.svc .others {
  margin-top: 24px; font-size: 14.5px; color: var(--mut); letter-spacing: 0.04em;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.svc .others b {
  font-family: var(--disp); font-weight: 700;
  letter-spacing: 0.2em; color: var(--acc2);
}

@media (max-width: 900px) {
  .svc-bg { width: 120vw; right: -30%; opacity: 0.2; }
  .svc-cat { font-size: 11px; letter-spacing: 0.06em; padding: 5px 12px; margin-bottom: 9px; gap: 6px; }
  .svc-cat em { display: none; }
  .svc-steps .steps-cat { font-size: 11px; padding-right: 8px; letter-spacing: 0.04em; }
  .svc-steps { gap: 4px; margin-bottom: 16px; }
  .svc-steps .step { padding: 6px 9px; gap: 5px; }
  .svc-steps .step b { font-size: 13px; }
  .svc-steps .step span { display: none; }
  .svc-steps .step.on span { display: inline; font-size: 9.5px; letter-spacing: 0.12em; }
  .svc-steps .bar { max-width: 16px; min-width: 10px; }
  .svc-steps .bar.div { max-width: 14px; }
  .svc-head { gap: 12px; }
  .svc-no { font-size: clamp(48px, 15vw, 76px); }
  .svc-no::after { left: -9px; width: 2px; }
  .svc h2 { font-size: clamp(26px, 7.6vw, 40px); }
  .svc-en { font-size: 12px; letter-spacing: 0.22em; margin-bottom: 6px; }
  .svc-sub { font-size: 14px; margin-top: 8px; }
  .svc-body { margin-top: 18px; padding-left: 14px; }
  .svc .desc { font-size: 14.5px; line-height: 1.9; }
  .svc ul { grid-template-columns: 1fr; gap: 7px; margin-top: 14px; }
  .svc li { font-size: 13.5px; }
  .svc .others { font-size: 12.5px; margin-top: 16px; }
}
@media (max-width: 900px) and (max-height: 680px) {
  .svc .desc { display: none; }
}

/* ============ SERVICES 概要(大分類) ============ */
#s-svc .ov-title {
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 1.3;
  margin-top: 16px;
}
.ov-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(16px, 2.2vw, 30px);
  margin-top: clamp(26px, 4.5vh, 52px);
  perspective: 1200px;
}
.ov {
  position: relative;
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: clamp(22px, 2.6vw, 36px);
  background: rgba(10, 16, 32, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1), border-color 0.4s;
}
.ov::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(47, 102, 255, 0.18), transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.ov.alt::before { background: linear-gradient(150deg, rgba(139, 92, 246, 0.22), transparent 55%); }
.ov:hover, .ov:focus-visible { transform: translateY(-6px); border-color: var(--cy); }
.ov:hover::before, .ov:focus-visible::before { opacity: 1; }
.ov > * { position: relative; z-index: 2; }
.ov-cat {
  display: inline-block;
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(9.5px, 1vw, 11.5px);
  letter-spacing: 0.3em; color: var(--cy);
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 16px;
}
.ov.alt .ov-cat { color: #a78bfa; }
.ov h3 {
  font-family: var(--jp9); font-weight: 900;
  font-size: clamp(21px, 2.4vw, 32px);
  letter-spacing: 0.02em; margin-bottom: 12px;
}
.ov p { color: #c3cde6; font-size: clamp(13.5px, 1.3vw, 15.5px); line-height: 1.95; }
.ov ol {
  list-style: none; margin-top: 18px;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.ov ol li {
  font-size: clamp(13.5px, 1.3vw, 15.5px);
  display: flex; align-items: baseline; gap: 12px;
}
.ov ol b {
  font-family: var(--disp); font-weight: 800; font-size: 12px;
  letter-spacing: 0.12em; color: var(--cy);
  font-variant-numeric: tabular-nums;
}
.ov.alt ol b { color: #a78bfa; }
.ov-go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: var(--disp); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; color: var(--cy);
}
.ov-go em { font-style: normal; color: var(--coral); transition: transform 0.35s; }
.ov:hover .ov-go em { transform: translateX(5px); }
@media (max-width: 900px) {
  .ov-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .ov { padding: 16px; border-radius: 12px; }
  .ov h3 { font-size: 19px; margin-bottom: 8px; }
  .ov p { font-size: 12.5px; line-height: 1.8; }
  .ov ol { margin-top: 12px; padding-top: 12px; gap: 6px; }
  .ov ol li { font-size: 12.5px; }
  .ov-go { margin-top: 14px; font-size: 11px; }
  .ov-cat { margin-bottom: 10px; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .ov p { display: none; }
}

/* ============ STRENGTH ============ */
#s-str h2 { font-size: clamp(24px, 3.4vw, 42px); margin-top: 14px; }
.str-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(24px, 4.5vh, 48px);
}
.str {
  position: relative;
  background: rgba(10, 16, 32, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(18px, 2.2vw, 30px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
}
.str::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 14px; padding: 1px;
  background: linear-gradient(130deg, var(--coral), transparent 40%, transparent 60%, var(--acc2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.str:hover { transform: translateY(-4px); }
.str:hover::before { opacity: 1; }
.str .no {
  font-family: var(--disp); font-weight: 800; font-size: 22px;
  color: var(--acc2);
  text-shadow: 0 0 14px rgba(47, 102, 255, 0.6);
  display: block; margin-bottom: 10px;
}
.str h3 { font-weight: 800; font-size: clamp(16.5px, 1.7vw, 20px); letter-spacing: 0.02em; margin-bottom: 8px; }
.str p { color: #b9c4e0; font-size: 15px; line-height: 1.9; }
@media (max-width: 900px) {
  .str-grid { grid-template-columns: repeat(2, 1fr); }
  .str { padding: 14px; }
  .str p { font-size: 13px; }
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 3vw, 40px);
  margin-top: clamp(22px, 4.5vh, 46px);
}
.stat { border-left: 2px solid var(--line); padding-left: clamp(12px, 1.8vw, 24px); }
.stat .v {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(24px, 3.6vw, 50px); line-height: 1.1;
  color: #a5dcff;
  text-shadow: 0 0 16px rgba(47, 102, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
/* 実数を持つ項目だけ暖色にして、寒色一色の画面に温度差をつくる */
.stat:nth-child(2) .v {
  color: var(--warm);
  text-shadow: 0 0 18px rgba(255, 190, 92, 0.55);
}
.stat:nth-child(2) { border-left-color: rgba(255, 190, 92, 0.45); }
.stat .v .jp { font-family: var(--jp9); font-size: 0.62em; }
.stat .v small { font-family: var(--jp); font-weight: 800; font-size: 0.4em; letter-spacing: 0.06em; }
.stat .l { margin-top: 10px; font-size: 14px; letter-spacing: 0.12em; color: var(--mut); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } }

/* ============ COMPANY ============ */
/* 内容が収まらない環境では内部スクロール(デッキ遷移は端に達してから) */
#s-com .inner { overflow-y: auto; justify-content: flex-start; padding-top: 100px; }
#s-com h2 { font-size: clamp(28px, 4vw, 48px); margin-top: 14px; }
#s-com .cols {
  display: grid; grid-template-columns: 1fr 0.9fr;
  gap: clamp(30px, 4.5vw, 70px);
  align-items: center; margin-top: clamp(24px, 4vh, 44px);
}
dl.spec { border-top: 1px solid var(--line2); }
dl.spec > div {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
}
dl.spec dt { font-size: 14.5px; letter-spacing: 0.14em; color: var(--mut); padding-top: 2px; }
dl.spec dd { font-size: 16.5px; }
.figure {
  overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); position: relative;
}
.figure img {
  display: block; width: 100%;
  height: clamp(220px, 40vh, 420px);
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05) brightness(0.82);
  transform: scale(1.06);
}
.figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(47, 102, 255, 0.3), rgba(139, 92, 246, 0.14) 50%, rgba(4, 6, 13, 0.5));
  mix-blend-mode: screen; pointer-events: none;
}
/* ---- アクセスマップ(本実装では Google マップ埋め込み) ---- */
.mapbox {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(10, 16, 32, 0.72);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 4, 10, 0.7), inset 0 0 60px rgba(47, 102, 255, 0.08);
}
.map-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  font-family: var(--disp); font-weight: 700; font-size: 10px;
  letter-spacing: 0.3em; color: var(--mut);
  border-bottom: 1px solid var(--line);
}
.map-head .blink { color: var(--mint); animation: blinkDot 1.6s steps(2) infinite; }
@keyframes blinkDot { 50% { opacity: 0.25; } }
.map-svg { display: block; width: 100%; height: auto; }
.map-svg .map-tiles { filter: invert(0.92) hue-rotate(185deg) saturate(0.55) brightness(0.92) contrast(0.98); }
.map-svg .pin-wave { animation: pinWave 2.4s ease-out infinite; transform-origin: 300px 150px; }
@keyframes pinWave {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.map-foot {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.map-link {
  font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
  color: var(--cy); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.map-link:hover { color: #fff; }
.map-link .arw { transition: transform 0.3s; }
.map-link:hover .arw { transform: translateX(4px); }
.map-note { font-size: 12.5px; color: var(--mut); }

.figure .cap {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--disp); font-weight: 700; font-size: 10px;
  letter-spacing: 0.3em; color: rgba(234, 240, 252, 0.9);
}
@media (max-width: 900px) {
  #s-com .cols { grid-template-columns: 1fr; gap: 18px; }
  .figure img { height: clamp(140px, 24vh, 240px); }
  dl.spec dd { font-size: 15px; }
  dl.spec > div { padding: 9px 2px; }
}

/* ============ CONTACT ============ */
#s-cta h2 { font-size: clamp(28px, 4.6vw, 62px); line-height: 1.3; margin-top: 14px; text-wrap: balance; }
#s-cta .lead { margin: 26px auto 0; color: #c3cde6; font-size: clamp(16.5px, 1.7vw, 19px); }
#s-cta .btn.xl {
  margin-top: 42px; padding: 20px 46px; font-size: 15px;
  background: linear-gradient(90deg, var(--volt), var(--vio) 55%, var(--warm));
  background-size: 200%;
  box-shadow: 0 12px 40px rgba(47, 102, 255, 0.35), 0 0 60px rgba(255, 190, 92, 0.14);
}
#s-cta .foot {
  position: absolute; left: 0; right: 0; bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  font-size: 13.5px; color: var(--mut); letter-spacing: 0.06em;
}
#s-cta .foot .tag {
  font-family: var(--disp); font-weight: 700; font-size: 9px;
  letter-spacing: 0.28em; color: var(--cy);
  border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px;
}
.mq-bg { position: absolute; left: -10vw; right: -10vw; pointer-events: none; opacity: 0.5; z-index: 1; }
.mq-bg.a { top: 15vh; transform: rotate(-3.5deg); }
.mq-bg.b { bottom: 13vh; transform: rotate(3deg); }
.mq-bg .track { display: inline-flex; white-space: nowrap; }
.mq-bg .unit {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(44px, 7.4vw, 100px); letter-spacing: 0.04em;
  padding-right: 3vw; color: transparent;
  -webkit-text-stroke: 1px rgba(139, 168, 255, 0.22);
}
.mq-bg.b .unit { -webkit-text-stroke-color: rgba(255, 107, 107, 0.26); }

/* ============ ボタン ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--jp); font-weight: 700; font-size: 16.5px;
  letter-spacing: 0.1em; color: #fff; text-decoration: none;
  padding: 19px 42px; border-radius: 999px;
  isolation: isolate; overflow: hidden;
  background: linear-gradient(90deg, var(--volt), var(--vio));
  background-size: 200%;
  transition: background-position 0.5s, filter 0.3s;
}
.btn:hover { background-position: 100%; filter: brightness(1.15); }
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 150% 0;
  transition: background-position 0.8s;
}
.btn:hover::after { background-position: -150% 0; }
.btn .arw { transition: transform 0.4s; }
.btn:hover .arw { transform: translateX(5px); }
.btn.ghost {
  background: rgba(10, 16, 32, 0.5);
  border: 1px solid var(--line2);
}
.btn.ghost:hover { border-color: var(--cy); }

/* ============ 汎用 ============ */
.io { will-change: transform, opacity; }
.armed .io { opacity: 0; }

/* ============ reduced-motion: 通常フローに退避 ============ */
@media (prefers-reduced-motion: reduce) {
  body { overflow: auto; }
  #deck { position: static; }
  .scene { position: relative; visibility: visible; min-height: 100svh; }
  .armed .io { opacity: 1; }
  #opening, #cursor, #cursor-ring, #net, #pager .hint { display: none !important; }

}

/* ============================================================
   v24 — 配色アクセント
   青一色に寄っていた画面へ、赤(コーラル)と暖色を「文字」と「枠」に差す。
   本文の可読性は落とさず、ラベル・輪郭・番号だけを色で描き分ける。
   既存ルールより後方に置き、同一詳細度でも確実に上書きさせる。
   ============================================================ */

/* ---- 事業カテゴリのバッジ: 赤い通電ドット + 分類ごとの枠色 ---- */
.svc-cat {
  border-color: rgba(127, 210, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(127, 210, 255, 0.05), 0 0 24px rgba(127, 210, 255, 0.14);
}
.svc-cat::before {
  content: ""; flex: none; align-self: center;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 10px rgba(255, 107, 107, 0.9);
}
#s-ai .svc-cat, #s-dev .svc-cat {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.05), 0 0 24px rgba(167, 139, 250, 0.16);
}

/* ---- ステッパー: 通過済みは赤、現在地は暖色 ---- */
.svc-steps .steps-cat { border-right-color: rgba(255, 107, 107, 0.42); }
.svc-steps .step { border-color: rgba(127, 210, 255, 0.2); }
.svc-steps .step.done { border-color: rgba(255, 107, 107, 0.4); }
.svc-steps .step.done b, .svc-steps .step.done span { color: rgba(255, 146, 146, 0.85); }
.svc-steps .step.on { border-color: rgba(255, 190, 92, 0.75); }
.svc-steps .step.on span { color: var(--warm); }

/* ---- 見出し直下の副題を暖色に ---- */
.svc-sub { color: var(--warm); text-shadow: 0 0 18px rgba(255, 190, 92, 0.28); }

/* ---- 説明ブロックの縦罫を赤→シアンのグラデーションに ---- */
.svc-body { border-left-color: transparent; }
.svc-body::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--coral), var(--cy) 55%, transparent);
  opacity: 0.8;
}
/* 本文の要点は暖色と赤で交互に光らせ、読み飛ばしても要旨が拾える */
.svc .desc b { color: var(--warm); font-weight: 800; letter-spacing: 0.03em; }
.svc .desc b:nth-of-type(2) { color: #ff9a9a; }

/* ---- 事業概要カード: 分類ごとの枠色と上端の色帯 ---- */
.ov { border-color: rgba(127, 210, 255, 0.34); }
.ov.alt { border-color: rgba(167, 139, 250, 0.34); }
.ov::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--coral), var(--cy) 62%, transparent);
}
.ov.alt::after { background: linear-gradient(90deg, var(--coral), #a78bfa 62%, transparent); }
.ov:hover, .ov:focus-visible { border-color: var(--coral); }
.ov h3 { color: #a9e0ff; }
.ov.alt h3 { color: #c2b0ff; }
/* 英字ラベルを外した分、見出し脇の色帯で分類を示す */
.ov h3::before {
  content: ""; display: inline-block; vertical-align: 0.02em;
  width: 4px; height: 0.8em; margin-right: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--coral), var(--cy));
}
.ov.alt h3::before { background: linear-gradient(180deg, var(--coral), #a78bfa); }
.ov p b { color: var(--warm); font-weight: 800; }
.ov ol { border-top-color: rgba(255, 107, 107, 0.28); }
.ov-go { color: var(--warm); }

/* ---- STRENGTH: 4枚を別々の色で描き分ける ---- */
.str:nth-child(1) { border-color: rgba(255, 107, 107, 0.45); }
.str:nth-child(2) { border-color: rgba(255, 190, 92, 0.45); }
.str:nth-child(3) { border-color: rgba(127, 210, 255, 0.45); }
.str:nth-child(4) { border-color: rgba(52, 211, 153, 0.45); }
.str:nth-child(1) .no { color: var(--coral); text-shadow: 0 0 14px rgba(255, 107, 107, 0.65); }
.str:nth-child(2) .no { color: var(--warm);  text-shadow: 0 0 14px rgba(255, 190, 92, 0.6); }
.str:nth-child(3) .no { color: var(--cy);    text-shadow: 0 0 14px rgba(127, 210, 255, 0.6); }
.str:nth-child(4) .no { color: var(--mint);  text-shadow: 0 0 14px rgba(52, 211, 153, 0.55); }
.str:nth-child(1) h3 { color: #ffc9c9; }
.str:nth-child(2) h3 { color: #ffe1b3; }
.str:nth-child(3) h3 { color: #cbe9ff; }
.str:nth-child(4) h3 { color: #b6efd8; }

/* ---- 実績: 4項目を色で分ける ---- */
.stat:nth-child(1) { border-left-color: rgba(255, 107, 107, 0.6); }
.stat:nth-child(3) { border-left-color: rgba(127, 210, 255, 0.6); }
.stat:nth-child(4) { border-left-color: rgba(52, 211, 153, 0.55); }
.stat:nth-child(1) .v { color: #ff9a9a; text-shadow: 0 0 18px rgba(255, 107, 107, 0.5); }
.stat:nth-child(4) .v { color: #86e6c0; text-shadow: 0 0 18px rgba(52, 211, 153, 0.45); }

/* ---- 会社概要: 行頭に色の付いた仕切りを立てる ---- */
dl.spec { border-top-color: rgba(255, 107, 107, 0.4); }
dl.spec > div { grid-template-columns: 134px 1fr; }
dl.spec dt {
  color: var(--cy);
  border-left: 2px solid rgba(255, 107, 107, 0.6);
  padding-left: 12px;
}
dl.spec > div:nth-child(even) dt { border-left-color: rgba(127, 210, 255, 0.6); }

/* ---- アクセスマップ: 枠と稼働表示に赤を通す ---- */
.mapbox { border-color: rgba(127, 210, 255, 0.4); }
.map-head { border-bottom-color: rgba(255, 107, 107, 0.35); color: var(--cy); }
.map-head .blink { color: var(--coral); }
.map-foot { border-top-color: rgba(127, 210, 255, 0.24); }
.map-link { color: var(--warm); }

/* ---- ABOUT: 由来とキーワードを色で分ける ---- */
#s-about .origin { color: var(--warm); text-shadow: 0 0 20px rgba(255, 190, 92, 0.5); }
#s-about .origin em { color: var(--coral); }
#s-about .lead b { color: var(--cy); }
#s-about .lead b:nth-of-type(1) { color: var(--warm); }
#s-about .kw-row span:nth-child(1) { border-color: rgba(255, 107, 107, 0.55); color: #ffc9c9; }
#s-about .kw-row span:nth-child(2) { border-color: rgba(255, 190, 92, 0.55); color: #ffe1b3; }
#s-about .kw-row span:nth-child(3) { border-color: rgba(127, 210, 255, 0.55); color: #cbe9ff; }
#s-about .kw-row span:nth-child(4) { border-color: rgba(52, 211, 153, 0.5);  color: #b6efd8; }
#s-about .kw-row span:nth-child(5) { border-color: rgba(167, 139, 250, 0.6); color: #d8caff; }
#s-about .kw-row span:nth-child(6) { border-color: rgba(236, 72, 153, 0.5);  color: #ffc3e2; }

/* ---- HERO: 二本柱を色で示し、下部の帯にも赤を通す ---- */
#s-hero .sub b { color: var(--cy); font-weight: 800; }
#s-hero .sub b:nth-of-type(2) { color: #c2b0ff; }
.hero-mq {
  border-top-color: transparent;
  background-image: linear-gradient(90deg,
    transparent, rgba(255, 107, 107, 0.55) 22%, rgba(127, 210, 255, 0.55) 62%, transparent);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 0;
}

/* ---- ボタン・フッター ---- */
.btn.ghost { border-color: rgba(255, 107, 107, 0.5); }
.btn.ghost:hover { border-color: var(--coral); background: rgba(255, 107, 107, 0.1); }
#s-cta .lead b { color: var(--warm); font-weight: 800; }
#s-cta .foot .tag { color: var(--coral); border-color: rgba(255, 107, 107, 0.45); }

@media (max-width: 900px) {
  .svc-cat::before { width: 6px; height: 6px; }
  .ov h3::before { height: 0.74em; margin-right: 9px; width: 3px; }
  dl.spec > div { grid-template-columns: 108px 1fr; }
  dl.spec dt { padding-left: 9px; }
}

/* ============================================================
   v29 — スマートフォン対応
   オープニングは専用の指定が無く、HUD がタイトルへ重なる恐れがあった。
   縦・横それぞれの狭さに合わせて情報量を落とし、重なりを断つ。
   ============================================================ */

@media (max-width: 720px) {
  /* ---- オープニング ---- */
  .op-core { padding: 0 16px; }
  .op-brand { font-size: clamp(40px, 15vw, 96px); letter-spacing: 0.04em; }
  .op-sub { font-size: 9px; letter-spacing: 0.34em; margin-bottom: 12px; }
  .op-tag { font-size: 8px; letter-spacing: 0.22em; margin-top: 12px; }
  .op-rule { width: 62vw; margin-top: 16px; }

  /* HUD はタイトルの上で収まる高さまで行数を落とす */
  .op-hud .hud-l { top: 17%; gap: 6px; font-size: 8.5px; letter-spacing: 0.16em; }
  .op-hud .hud-l span:nth-child(n + 5) { display: none; }
  .op-hud .hud-r { top: 16%; font-size: 26px; }
  .op-hud .hud-b { bottom: 17%; font-size: 8.5px; letter-spacing: 0.16em; gap: 10px; }
  .op-hud .hud-v { display: none; }

  /* 枠とデータ列は黒帯の内側へ寄せる */
  .op-frame i { width: 20px; height: 20px; }
  .op-frame .tl, .op-frame .tr { top: clamp(56px, 9vh, 92px); }
  .op-frame .bl, .op-frame .br { bottom: clamp(56px, 9vh, 92px); }
  .op-tick { font-size: 8.5px; letter-spacing: 0.1em; }
  .op-tick.t { top: clamp(84px, 14vh, 140px); }
  .op-tick.b { bottom: clamp(84px, 14vh, 140px); }
  .op-skip { font-size: 8px; letter-spacing: 0.2em; bottom: 18px; }

  /* ---- 本編の見出し。狭い幅でも1行に収まる下限にする ---- */
  #s-about .big { font-size: clamp(24px, 6.6vw, 60px); }
  #s-svc .ov-title { font-size: clamp(21px, 5.9vw, 58px); }
  .svc h2 { font-size: clamp(21px, 5.9vw, 54px); }
  #s-cta h2 { font-size: clamp(23px, 6.3vw, 76px); }
  #s-cta .lead { font-size: 14px; line-height: 1.9; margin-top: 18px; }
  #s-cta .btn.xl { margin-top: 26px; padding: 15px 30px; font-size: 14px; }
  /* 画面下に固定のページャーがあるため、フッターは上へ逃がす */
  #s-cta .foot { font-size: 11px; gap: 6px 14px; bottom: 58px; padding: 0 16px; }

  /* 2列だと1項目が折り返してしまうため1列にする */
  .svc ul { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
}

/* ---- 横向きスマホなど、縦が極端に狭い場合 ---- */
@media (max-height: 560px) {
  /* 情報を重ねるより、思い切って省く */
  .op-tick, .op-frame { display: none; }
  .op-hud .hud-l { top: 10%; gap: 5px; }
  .op-hud .hud-l span:nth-child(n + 4) { display: none; }
  .op-hud .hud-r { top: 9%; font-size: 22px; }
  .op-hud .hud-b { bottom: 11%; }
  .op-hud .hud-v { display: none; }
  .op-brand { font-size: clamp(36px, 11vw, 82px); }
  .op-sub { margin-bottom: 8px; }
  .op-rule { margin-top: 12px; }
  .op-tag { margin-top: 10px; }
}

/* ============================================================
   本番追加 — お問い合わせフォームとアクセスマップ
   試作品はメーラーを開くだけだったため、実際に送信できる入力欄を置く。
   CONTACT は要素が増えるので、収まらない画面では内部スクロールに逃がす。
   ============================================================ */

.cform {
  max-width: 720px; width: 100%;
  margin: 22px auto 0;
  text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf { display: flex; flex-direction: column; gap: 6px; }
.cf > span {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--mut);
}
.cf > span em {
  font-style: normal; font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--coral); border: 1px solid rgba(255, 107, 107, 0.5);
  border-radius: 3px; padding: 1px 5px;
}
.cf input, .cf textarea {
  font: inherit; font-size: 15px; line-height: 1.7; color: var(--tx);
  background: rgba(10, 16, 32, 0.72);
  border: 1px solid var(--line2); border-radius: 10px;
  padding: 10px 14px; width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.cf textarea { resize: vertical; min-height: 78px; }
.cf input:focus, .cf textarea:focus {
  outline: none; border-color: var(--cy);
  background: rgba(10, 16, 32, 0.92);
  box-shadow: 0 0 0 3px rgba(127, 210, 255, 0.14), 0 0 24px rgba(47, 102, 255, 0.24);
}
/* 触れてもいない欄を赤くしないよう :user-invalid を使う */
.cf input:user-invalid, .cf textarea:user-invalid { border-color: rgba(255, 107, 107, 0.7); }
.cf-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
#s-cta .cf-foot .btn {
  padding: 15px 34px; font-size: 15px;
  background: linear-gradient(90deg, var(--volt), var(--vio) 55%, var(--warm));
  background-size: 200%;
  box-shadow: 0 12px 40px rgba(47, 102, 255, 0.35), 0 0 60px rgba(255, 190, 92, 0.14);
}
.cf-mail { color: var(--mut); font-size: 13px; letter-spacing: 0.06em; text-decoration: none; }
.cf-mail:hover { color: var(--cy); }
.cf-msg { min-height: 19px; font-size: 13.5px; letter-spacing: 0.04em; color: var(--mut); }
.cf-msg.ok { color: var(--mint); }
.cf-msg.ng { color: var(--coral); }
.cform.sending .btn { opacity: 0.5; pointer-events: none; }

/* フッターはフォームの下に流し込む。固定するとフォームと重なる */
#s-cta .foot {
  position: static; margin-top: 22px;
  font-size: 12.5px; justify-content: center;
}

/* ---- アクセスマップの器。読み込み前に高さを確保して層のずれを防ぐ ---- */
.maphost {
  display: block; width: 100%; aspect-ratio: 2 / 1;
  background:
    repeating-linear-gradient(90deg, rgba(139, 168, 255, 0.06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(139, 168, 255, 0.06) 0 1px, transparent 1px 40px),
    rgba(6, 10, 22, 0.9);
}
.maphost .map-svg { display: block; width: 100%; height: auto; }

@media (max-width: 720px) {
  /* 上から積み上げて内部スクロールに任せる(中央寄せだと上が切れる) */
  #s-cta .inner { justify-content: flex-start; padding-top: 88px; }
  .cf-row { grid-template-columns: 1fr; gap: 10px; }
  .cform { margin-top: 16px; gap: 10px; }
  /* 16px 未満だと iOS が入力時に画面を拡大してしまう */
  .cf input, .cf textarea { font-size: 16px; padding: 9px 12px; }
  .cf textarea { min-height: 66px; }
  .cf > span { font-size: 11.5px; }
  #s-cta .cf-foot .btn { padding: 13px 26px; font-size: 14px; }
  #s-cta .foot { margin-top: 18px; padding: 0; bottom: auto; }
}

/* ============================================================
   スマートフォン向けの修正（4件）
   ============================================================ */

/* ---- 1) フルスクリーンメニューが画面に収まらない ----
   文字サイズが画面の「高さ」基準だったため、縦長の端末で
   横にはみ出していた。幅基準に変え、説明文は折り返させる。 */
@media (max-width: 720px) {
  #menu .menu-links { gap: 6px; padding: 0 24px; justify-content: center; }
  #menu .menu-links a { gap: 12px; align-items: baseline; }
  #menu .menu-links .no { font-size: 10px; letter-spacing: 0.14em; }
  #menu .menu-links .tx {
    font-size: clamp(21px, 7vw, 34px);
    letter-spacing: 0.03em;
    gap: 4px 10px;
    flex-wrap: wrap;
  }
  #menu .menu-links .tx small { font-size: 10.5px; letter-spacing: 0.06em; }
}
@media (max-width: 720px) and (max-height: 700px) {
  #menu .menu-links .tx { font-size: clamp(18px, 6vw, 28px); }
  #menu .menu-links .tx small { display: none; }
}

/* ---- 2) オープニングの WELSYS が両端で切れる ----
   6文字ぶんの幅から逆算し、画面幅に必ず収まる大きさにする。 */
@media (max-width: 720px) {
  .op-brand {
    font-size: clamp(28px, calc((100vw - 52px) / 5.6), 96px);
    letter-spacing: 0.02em;
  }
}

/* ---- 3) 見出しの周りに薄い四角の縁が出る ----
   発光の半径が文字の合成レイヤーより大きいと、端末によっては
   レイヤーの外側で切り落とされ、四角い境界が見えてしまう。
   半径を抑え、文字ごとのレイヤー化もやめて回避する。 */
@media (max-width: 900px) {
  .char { will-change: auto; }
  .grad-text { text-shadow: 0 0 8px rgba(47, 102, 255, 0.45); }
  .grad-text .char.lit {
    text-shadow:
      0 0 10px rgba(170, 225, 255, 0.95),
      0 0 20px rgba(47, 102, 255, 0.8) !important;
  }
  /* 着弾の残光も同じ理由で箱に見えることがあるため、狭い画面では出さない */
  #s-hero h1 .char::after { display: none; }
  .op-brand span {
    text-shadow:
      0 0 3px rgba(255, 255, 255, 0.95),
      0 0 9px rgba(170, 228, 255, 0.9),
      0 0 20px rgba(60, 140, 255, 0.75);
  }
  .op-brand span.zap {
    text-shadow:
      0 0 5px #ffffff,
      0 0 14px #d6f2ff,
      0 0 26px #7fd2ff,
      2px 0 rgba(255, 96, 96, 0.8),
      -2px 0 rgba(127, 210, 255, 0.8);
  }
}

/* ---- 4) スマホは通常の縦スクロールにする ----
   1ジェスチャー＝1ブロックの切り替えは指では扱いにくいため、
   幅の狭い端末ではブロックを縦に並べて普通にスクロールさせる。
   演出は画面に入った時点で走らせるので、見え方は変えない。
   パソコン表示（.flow が付かない）には一切影響しない。 */
html.flow, html.flow body { height: auto; overflow: visible; }
html.flow body { overflow-x: hidden; }
.flow #deck { position: static; }
.flow .scene {
  position: relative;
  visibility: visible;
  height: auto;
  min-height: 100svh;
}
.flow .scene .inner { height: auto; min-height: 100svh; }
/* ブロック内スクロールはページ全体の送りに任せる */
.flow #s-com .inner, .flow #s-cta .inner { overflow: visible; }
.flow #pager .hint { display: none; }

/* ============================================================
   スマートフォン向けの修正 第2弾
   スクロールの滑らかさを最優先に、描画の重い指定を狭い画面では外す。
   すべて幅の条件付き、または .flow 配下に閉じてあるため
   パソコン表示（幅901px以上）には一切影響しない。
   ============================================================ */

@media (max-width: 900px) {
  /* ---- 文字の輪郭線を外す ----
     色は発光だけに持たせる。小さな字では輪郭が白い縁のように見えるため。 */
  .grad-text .char { -webkit-text-stroke-width: 0; }
  /* 走査光の線も、狭い画面では文字に張り付いた線に見えるので出さない */
  #s-hero h1 .char::before { display: none; }

  /* ---- スクロールを滑らかにする ---- */
  /* 背景をぼかす指定は、スクロールのたびに背後を取り直すため極めて重い */
  #hd {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(4, 6, 13, 0.94);
  }
  .ov, .str { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* 100近い要素をそれぞれ別レイヤーに載せると端末の描画資源を使い切る */
  .io, .char { will-change: auto; }
  /* 砂目は固定配置で全面に重なるため、狭い画面では省く */
  #grain { display: none; }
}

/* ---- HERO のボタンが下の帯に重なる ---- */
@media (max-width: 720px) {
  #s-hero h1 { margin-top: 14px; }
  #s-hero .sub { margin-top: 18px; font-size: 15px; line-height: 1.9; }
  #s-hero .ctas { gap: 10px; margin-top: 24px; }
  #s-hero .ctas .btn {
    padding: 13px 22px; font-size: 14px; gap: 8px; letter-spacing: 0.06em;
  }
  /* 下端を流れる英字の帯と重ならないよう、下に余白を確保する */
  .flow #s-hero .inner { padding-bottom: 132px; }
  .hero-mq { bottom: 40px; padding-top: 12px; }
  .hero-mq .unit { font-size: 22px; }
}

/* ---- オープニングの WELSYS をさらに小さく ----
   飛び込んでくる演出で拡大するため、着地時の幅にも余裕を持たせる。 */
@media (max-width: 720px) {
  .op-brand {
    font-size: clamp(26px, calc((100vw - 72px) / 6.2), 96px);
    letter-spacing: 0.01em;
  }
}

/* ============================================================
   スマートフォン向けの修正 第3弾
   縦スクロール前提の詰めた組みに変える。
   すべて幅の条件付き、または .flow 配下に閉じてあるため
   パソコン表示（幅901px以上）には一切影響しない。
   ============================================================ */

/* ---- ブロックの高さを内容に合わせる ----
   1ブロック＝1画面ぶんの高さを確保すると、内容が短いブロックの
   上下に大きな空きが生まれ、項目の間隔が開きすぎて見える。
   縦に読む表示では、内容の高さに合わせたほうが自然に繋がる。 */
.flow .scene { min-height: 0; }
.flow .scene .inner {
  min-height: 0;
  justify-content: flex-start;
  padding-top: 84px;
  padding-bottom: 60px;
}
/* 冒頭と末尾だけは1画面ぶんの見せ場を残す */
.flow #s-hero, .flow #s-hero .inner { min-height: 100svh; }
.flow #s-hero .inner { justify-content: center; }
.flow #s-cta .inner { min-height: 90svh; justify-content: center; }

@media (max-width: 720px) {
  /* ---- 事業カテゴリの表記を省く ----
     同じ画面に「ITインフラ事業」が2か所出ており、狭い画面では
     情報が詰まって見えるため、番号と名称だけに絞る。 */
  .svc-cat, .svc-steps .steps-cat { display: none; }

  /* ---- サービス項目の余白を詰める ---- */
  .svc-steps { margin-bottom: 14px; gap: 4px; }
  .svc-head { gap: 10px; align-items: center; }
  .svc-no { font-size: 46px; line-height: 1; }
  .svc-ttl { padding-top: 0; }
  .svc-sub { margin-top: 6px; font-size: 13.5px; letter-spacing: 0.06em; }
  .svc-body { margin-top: 16px; padding-left: 14px; }
  .svc .desc { line-height: 1.85; }
  .svc ul { margin-top: 14px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.22em; }
  #s-about .kw-row { margin-top: 22px; }
  .str-grid { margin-top: 20px; gap: 10px; }
  .stats { margin-top: 22px; }
  .ov-grid { margin-top: 18px; }
  #s-com .cols { margin-top: 18px; }
}

/* ============================================================
   ロゴ（マーク）
   文字部分は使わない。濃紺の地では読めないうえ、
   サイト表記の WELSYS と綴りが異なるため。
   ============================================================ */
.op-mark {
  opacity: 0;
  margin-bottom: clamp(14px, 2.4vh, 28px);
}
.op-mark img {
  display: block; width: auto;
  height: clamp(52px, 8vh, 96px);
  filter:
    drop-shadow(0 0 18px rgba(90, 190, 210, 0.55))
    drop-shadow(0 0 46px rgba(47, 102, 255, 0.35));
}
/* 立体的に回り込ませるため、器に奥行きを持たせる */
.op-core { perspective: 900px; }

@media (max-width: 900px) {
  /* 動かしている最中の光の加工は負荷になるため、狭い画面では省く */
  .op-mark img, #hd .mark img { filter: none; }
}
@media (max-width: 720px) {
  .op-mark img { height: clamp(40px, 6.6vh, 68px); }
  .op-mark { margin-bottom: 12px; }
  #hd .mark img { height: 22px; }
  #hd .mark { gap: 8px; font-size: 19px; }
}
@media (max-height: 560px) {
  .op-mark img { height: 42px; }
  .op-mark { margin-bottom: 8px; }
}


/* ============================================================
   どの画面の高さでも破綻させない（根本対処）

   これまでは中身を上下中央に置いていたため、入りきらないと
   あふれた分が上下へ均等にはみ出し、上側がヘッダーの下へ潜り込んでいた。
   ブラウザの拡大表示や画面の拡大設定を使っていると、表示領域は
   想定よりずっと狭くなるため、高さを決め打ちで詰めるだけでは足りない。

   `safe center` は「収まるときは中央、収まらないときは上端から」を
   自動で切り替える。中央揃えの見栄えを保ったまま、潜り込みだけを断つ。
   対応していないブラウザは直前の `center` がそのまま効く。
   ============================================================ */
.scene .inner {
  justify-content: center;
  justify-content: safe center;
}

/* 内部スクロールを持つブロックは、必ず末尾まで辿り着けるようにする */
#s-com .inner, #s-cta .inner { overflow-y: auto; }



/* ============================================================
   お問い合わせブロックを、画面の高さに比例させる

   デッキ型は1ブロックが画面1つに収まる前提。お問い合わせだけは
   見出し・説明・フォーム・フッターと要素が多く、固定の px では
   画面が変わるたびに収まったり溢れたりしてしまう。

   そこで寸法を svh（表示領域の高さの1%）に紐づけ、
   どの画面でも同じ比率で収まるようにする。
   文字は「幅」と「高さ」の小さいほうに従わせ、
   横長・縦長のどちらでも破綻させない。

   幅901px以上（デッキ型）だけが対象。スマホ側の指定には影響しない。
   ============================================================ */
@media (min-width: 901px) {
  #s-cta .inner {
    padding-top: clamp(70px, 9.6svh, 130px);
    padding-bottom: clamp(24px, 4.6svh, 60px);
  }
  #s-cta .eyebrow { font-size: clamp(9.5px, 1.6svh, 12px); }
  #s-cta h2 {
    font-size: clamp(24px, min(4.2vw, 6svh), 66px);
    line-height: 1.28;
    margin-top: clamp(7px, 1.5svh, 18px);
  }
  #s-cta .lead {
    font-size: clamp(13px, min(1.35vw, 2.1svh), 19px);
    line-height: 1.8;
    margin-top: clamp(8px, 1.7svh, 22px);
  }
  .cform {
    max-width: clamp(680px, 54vw, 860px);
    margin-top: clamp(10px, 2.1svh, 26px);
    gap: clamp(6px, 1.2svh, 14px);
  }
  .cf { gap: clamp(3px, 0.7svh, 7px); }
  .cf > span { font-size: clamp(10px, 1.5svh, 12.5px); }
  .cf > span em { font-size: clamp(8.5px, 1.2svh, 9.5px); }
  .cf-row { gap: clamp(9px, 1.4svh, 14px); }
  .cf input, .cf textarea {
    padding: clamp(6px, 1.15svh, 12px) 14px;
    font-size: clamp(13px, min(1.1vw, 1.9svh), 15.5px);
  }
  .cf textarea { min-height: clamp(42px, 8.6svh, 118px); }
  .cf-foot { margin-top: clamp(2px, 0.8svh, 8px); gap: clamp(14px, 1.6vw, 22px); }
  #s-cta .cf-foot .btn {
    padding: clamp(10px, 1.85svh, 18px) clamp(24px, 2.6vw, 40px);
    font-size: clamp(13px, min(1.1vw, 1.9svh), 15.5px);
  }
  .cf-mail { font-size: clamp(11.5px, 1.7svh, 13.5px); }
  .cf-msg {
    min-height: clamp(14px, 2.1svh, 20px);
    font-size: clamp(11.5px, 1.7svh, 13.5px);
  }
  #s-cta .foot {
    margin-top: clamp(8px, 1.9svh, 22px);
    font-size: clamp(10.5px, 1.6svh, 13px);
  }
  /* 背面を流れる大きな英字も、画面の高さに合わせて主張を変える */
  .mq-bg .unit { font-size: clamp(38px, min(7.4vw, 11svh), 100px); }
}

/* 表示領域が極端に狭いときだけ、送信に不要な説明文を落とす */
@media (min-width: 901px) and (max-height: 620px) {
  #s-cta .lead, #s-cta .foot { display: none; }
}

/* ============================================================
   事業ページ（詳細を1画面にまとめる）

   以前は詳細を1サービス1画面で見せていたが、全部見るのに
   ブロックを6回送る必要があり不便だった。
   ITインフラは4サービスを2×2、ITソリューションは2サービスを
   左右に並べ、枠で区切って一目で見渡せるようにする。

   寸法は svh（表示領域の高さの1%）に紐づけ、どの画面でも
   1画面に収まるようにする。
   ============================================================ */
.pillar .inner {
  justify-content: center;
  padding-top: clamp(66px, 9svh, 104px);
  padding-bottom: clamp(20px, 4svh, 56px);
}
.pil-head { position: relative; z-index: 3; }
.pillar h2 {
  font-size: clamp(22px, min(3.4vw, 5svh), 52px);
  line-height: 1.24;
  margin-top: clamp(6px, 1.2svh, 14px);
}
.pil-lead {
  margin-top: clamp(6px, 1.4svh, 16px);
  max-width: 780px;
  color: #c3cde6;
  font-size: clamp(12.5px, min(1.15vw, 1.9svh), 16.5px);
  line-height: 1.8;
}
.pil-lead b { color: var(--warm); font-weight: 800; }

.pil-grid {
  display: grid;
  position: relative; z-index: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(12px, 2.6svh, 30px);
  gap: clamp(9px, 1.6svh, 18px) clamp(10px, 1.4vw, 22px);
}

/* 1枠。左の色帯と上端の色線で、サービスごとに描き分ける */
.pil {
  position: relative;
  border: 1px solid var(--cd, var(--line2));
  border-left: 3px solid var(--c, var(--cy));
  border-radius: 12px;
  background: rgba(10, 16, 32, 0.72);
  padding: clamp(11px, 1.9svh, 28px) clamp(14px, 1.35vw, 32px);
  overflow: hidden;
  transition: transform 0.35s, background 0.35s, border-color 0.35s;
}
.pil::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--c), transparent 72%);
}
.pil:hover { transform: translateY(-3px); background: rgba(14, 22, 42, 0.88); }
.pil-no {
  display: block; line-height: 1;
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(15px, 2.4svh, 22px);
  letter-spacing: 0.06em;
  color: var(--c);
  text-shadow: 0 0 14px var(--cd);
}
.pil h3 {
  font-family: var(--jp9); font-weight: 900;
  font-size: clamp(15px, min(1.55vw, 2.5svh), 26px);
  letter-spacing: 0.01em; line-height: 1.3;
  margin-top: clamp(4px, 0.8svh, 9px);
}
.pil-sub {
  margin-top: clamp(2px, 0.5svh, 6px);
  font-size: clamp(10.5px, min(0.95vw, 1.6svh), 13px);
  letter-spacing: 0.08em; font-weight: 700;
  color: var(--warm);
}
.pil-desc {
  margin-top: clamp(6px, 1.2svh, 14px);
  font-size: clamp(11.5px, min(1.05vw, 1.75svh), 15px);
  line-height: 1.85; color: #c3cde6;
}
.pil-desc b { color: var(--warm); font-weight: 800; }
.pil ul {
  list-style: none;
  margin-top: clamp(6px, 1.2svh, 14px);
  display: flex; flex-direction: column;
  gap: clamp(2px, 0.5svh, 8px);
}
.pil li {
  position: relative; padding-left: 16px;
  font-size: clamp(11px, min(1vw, 1.7svh), 16px);
  line-height: 1.6; color: #d3dbef;
}
.pil li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 2px; border-radius: 2px;
  background: var(--c);
}

/* 背景の図面は主張しすぎないよう控えめに */
.pillar .svc-bg { opacity: 0.16; }

@media (max-width: 900px) {
  .pil-grid { grid-template-columns: 1fr; }
  .pillar h2 { font-size: clamp(22px, 6vw, 34px); }
  .pil-lead { font-size: 14px; line-height: 1.85; }
  .pil { padding: 14px 16px; }
  .pil h3 { font-size: 17px; }
  .pil li { font-size: 13.5px; }
  .pil-desc { font-size: 13.5px; }
  .pillar .svc-bg { display: none; }
}
