/* ============================================================
   atomic link — top page (v3 "precision dark")
   このCSSはトップページ(/index.html)専用。
   下層ページ共有の /styles/home.css には依存しない。
   ============================================================ */

:root {
  --bg: #04070d;
  --bg-soft: #070d18;
  --surface: rgba(13, 22, 38, 0.72);
  --surface-solid: #0c1424;
  --line: rgba(125, 211, 252, 0.14);
  --line-strong: rgba(125, 211, 252, 0.3);
  --text: #e8eef7;
  --text-muted: #94a6bd;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --violet: #818cf8;
  --grad: linear-gradient(115deg, #22d3ee 0%, #38bdf8 45%, #818cf8 100%);
  --font-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Space Grotesk", "Noto Sans JP", sans-serif;
  --radius: 18px;
  --header-h: 72px;
  --hero-x: 0;
  --hero-y: 0;
}

@view-transition {
  navigation: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* リビール前の translateX やデコレーションによる横スクロールを防ぐ */
  overflow-x: hidden;
}

body.home-v3 {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: rgba(56, 189, 248, 0.35);
}

/* ---------- 背景オーロラ ---------- */
.page-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}

.blob-a {
  width: 52vw;
  height: 52vw;
  top: -22vw;
  right: -14vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.blob-b {
  width: 44vw;
  height: 44vw;
  top: 38%;
  left: -18vw;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18), transparent 65%);
  animation: drift-b 28s ease-in-out infinite alternate;
}

.blob-c {
  width: 38vw;
  height: 38vw;
  bottom: -16vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6vw, 5vw, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(7vw, -4vw, 0) scale(1.08); }
}

main,
.site-header,
#footer-placeholder,
.floating-contact {
  position: relative;
  z-index: 1;
}

/* ---------- スクロール進捗バー(future.jsが注入) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1200;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* ---------- カーソルオーラ(future.jsが注入 / デスクトップのみ) ---------- */
.cursor-aura {
  position: fixed;
  top: -160px;
  left: -160px;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease, scale 0.35s ease;
  will-change: transform;
}

.cursor-aura.is-active {
  opacity: 1;
}

.cursor-aura.is-hover {
  scale: 1.35;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 9, 16, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  position: relative;
}

.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-menu a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #03121c !important;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
}

/* ハンバーガー */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(13, 22, 38, 0.6);
}

.hamburger .bar {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.hamburger .bar::before,
.hamburger .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.hamburger .bar::before { top: -6px; }
.hamburger .bar::after { top: 6px; }

/* ---------- 共通セクション ---------- */
.section {
  position: relative;
  padding: 110px 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-heading.align-left {
  text-align: left;
  margin-left: 0;
}

.section-lead {
  margin-top: 18px;
  color: var(--text-muted);
}

/* リビールアニメーション */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.js [data-reveal="left"] {
  transform: translateX(-36px);
}

.js [data-reveal="right"] {
  transform: translateX(36px);
}

.js [data-reveal="zoom"] {
  transform: scale(0.92);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js [data-reveal] {
    filter: none;
  }

  .aurora-blob,
  .hero-beam,
  .marquee-track,
  .orbit-ring,
  .orbit-node,
  .kicker-dot,
  .caret,
  .grid-floor,
  .lab-pulse {
    animation: none !important;
  }

  .cursor-aura {
    display: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 64px) 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  transition: opacity 0.8s ease;
}

/* 流体シミュレーション(fluid.jsが起動成功時に .has-fluid を付与) */
.hero-fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.has-fluid .hero-net {
  opacity: 0.3;
}

.grid-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -4%;
  height: 44%;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(640px) rotateX(63deg);
  transform-origin: top center;
  mask-image: linear-gradient(180deg, transparent, #000 32%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, transparent 96%);
  animation: floor-scroll 14s linear infinite;
  opacity: 0.45;
}

@keyframes floor-scroll {
  to { background-position: 0 72px, 0 0; }
}

.hero-grid-lines {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  transform: translate3d(calc(var(--hero-x) * -14px), calc(var(--hero-y) * -14px), 0);
  transition: transform 0.4s ease-out;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.glow-a {
  width: 480px;
  height: 480px;
  top: -120px;
  right: 4%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.26), transparent 70%);
  transform: translate3d(calc(var(--hero-x) * 26px), calc(var(--hero-y) * 26px), 0);
  transition: transform 0.5s ease-out;
}

.glow-b {
  width: 420px;
  height: 420px;
  bottom: -80px;
  left: -6%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.2), transparent 70%);
  transform: translate3d(calc(var(--hero-x) * -20px), calc(var(--hero-y) * -20px), 0);
  transition: transform 0.5s ease-out;
}

.hero-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  left: 18%;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  animation: beam-sweep 9s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes beam-sweep {
  0%, 100% { left: 14%; opacity: 0.15; }
  50% { left: 82%; opacity: 0.65; }
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(13, 22, 38, 0.55);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.hero-title .line {
  display: block;
}

.hero-title .grad {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 26px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 34px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.cta-primary {
  background: var(--grad);
  color: #03121c;
  box-shadow: 0 10px 36px rgba(56, 189, 248, 0.38);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(56, 189, 248, 0.55);
}

.cta-primary:hover svg {
  transform: translateX(4px);
}

.cta-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(13, 22, 38, 0.4);
  backdrop-filter: blur(6px);
}

.cta-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.6);
  background: rgba(34, 211, 238, 0.08);
}

.cta-large {
  font-size: 1.08rem;
  padding: 18px 44px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(129, 140, 248, 0.25));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
  flex: none;
}

/* ヒーロー右ビジュアル */
.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.orbit-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translate3d(calc(var(--hero-x) * 18px), calc(var(--hero-y) * 18px), 0);
  transition: transform 0.5s ease-out;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.ring-a {
  width: 300px;
  height: 300px;
  border-style: dashed;
  animation: spin 36s linear infinite;
}

.ring-b {
  width: 420px;
  height: 420px;
  animation: spin 60s linear infinite reverse;
}

.ring-c {
  width: 540px;
  height: 540px;
  border-color: rgba(125, 211, 252, 0.08);
  animation: spin 90s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orbit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 14px var(--sky);
}

.node-a { top: 14%; left: 24%; animation: pulse-dot 3s ease-in-out infinite; }
.node-b { bottom: 20%; right: 16%; animation: pulse-dot 3.6s ease-in-out 0.6s infinite; }
.node-c { top: 44%; right: 6%; width: 7px; height: 7px; background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: pulse-dot 4s ease-in-out 1.2s infinite; }

.orbit-core {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.5rem;
  color: #03121c;
  background: var(--grad);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.5);
  transform: rotate(-8deg);
}

.console-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(16, 26, 44, 0.92), rgba(9, 15, 27, 0.92));
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(2, 6, 14, 0.6);
  overflow: hidden;
  transform: translate3d(calc(var(--hero-x) * -10px), calc(var(--hero-y) * -10px), 0);
  transition: transform 0.5s ease-out;
}

.console-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), transparent 40%, transparent 60%, rgba(129, 140, 248, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.console-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.console-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 166, 189, 0.35);
}

.console-head span:first-child { background: rgba(248, 113, 113, 0.7); }
.console-head span:nth-child(2) { background: rgba(251, 191, 36, 0.7); }
.console-head span:nth-child(3) { background: rgba(52, 211, 153, 0.7); }

.console-head code {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.console-body {
  padding: 20px 18px;
  display: grid;
  gap: 14px;
}

.console-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

.console-line .prompt {
  font-family: var(--font-en);
  color: var(--cyan);
  font-weight: 700;
}

.console-line .cmd {
  min-height: 1.5em;
}

.console-line .cmd.is-typing::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--sky);
  animation: blink 0.8s steps(1) infinite;
}

.console-line .status {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.status.ok {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status.run {
  color: var(--sky);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.caret {
  width: 6px;
  height: 11px;
  background: var(--sky);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.console-metrics div {
  padding: 16px 12px;
  text-align: center;
}

.console-metrics div + div {
  border-left: 1px solid var(--line);
}

.console-metrics span {
  display: block;
  font-family: var(--font-en);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.console-metrics strong {
  font-size: 0.95rem;
  font-weight: 700;
}

/* マーキー */
.hero-marquee {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(7, 13, 24, 0.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-track span {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  color: rgba(56, 189, 248, 0.55);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- イントロ ---------- */
.intro {
  overflow: hidden;
}

.watermark {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(125, 211, 252, 0.08);
  user-select: none;
  pointer-events: none;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-top: 60px;
}

.intro-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, #22d3ee, #818cf8) 1;
  padding-left: 24px;
}

/* ---------- サービス ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 0%) var(--my, 0%), rgba(56, 189, 248, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(2, 6, 14, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(125, 211, 252, 0.22);
  transition: -webkit-text-stroke-color 0.35s ease;
}

.service-card:hover .service-number {
  -webkit-text-stroke-color: rgba(125, 211, 252, 0.5);
}

.service-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 22px;
  position: relative;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.text-link .arrow {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.25s ease;
}

.text-link:hover .arrow {
  transform: translateX(5px);
}

/* ---------- プロセス ---------- */
.process {
  background: linear-gradient(180deg, transparent, rgba(10, 17, 30, 0.7) 18%, rgba(10, 17, 30, 0.7) 82%, transparent);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
  list-style: none;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(129, 140, 248, 0.4), transparent);
}

.process-step {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 28px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.step-no {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  color: #03121c;
  background: var(--grad);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.45);
  margin-bottom: 20px;
}

.process-step h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- 実績・提携 ---------- */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.action-stack {
  display: grid;
  gap: 14px;
}

.wide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  padding: 22px 26px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
}

.wide-link .arrow {
  font-family: var(--font-en);
  color: var(--sky);
  transition: transform 0.3s ease;
}

.wide-link:hover {
  transform: translateX(6px);
  border-color: var(--line-strong);
  background: rgba(34, 211, 238, 0.07);
}

.wide-link:hover .arrow {
  transform: translateX(6px);
}

/* ---------- 最終CTA ---------- */
.final-cta {
  overflow: hidden;
  text-align: center;
  padding: 150px 0;
}

.final-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.08) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  max-width: 720px;
}

.final-cta p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 18px 0 38px;
}

/* ---------- フッター(footer.jsで注入されるマークアップ用) ---------- */
.footer-cta {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.85), rgba(5, 9, 16, 0.95));
  text-align: center;
  padding: 80px 28px;
}

.footer-cta-inner h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.footer-cta .cta-note {
  color: var(--text-muted);
  margin: 14px 0 30px;
}

.footer-cta .cta-primary {
  background: var(--grad);
  color: #03121c;
  box-shadow: 0 10px 36px rgba(56, 189, 248, 0.38);
}

footer {
  position: relative;
  z-index: 1;
  background: #03060c;
  border-top: 1px solid var(--line);
  padding: 64px 28px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}

.footer-section h4 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  color: var(--text);
}

.footer-section ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s ease;
}

.footer-section a:hover {
  color: var(--sky);
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  border-top: 1px solid rgba(125, 211, 252, 0.08);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- フローティングCTA ---------- */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

.floating-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad);
  color: #03121c;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.42);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-contact a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.55);
}

.floating-contact svg {
  width: 18px;
  height: 18px;
}

/* ---------- レスポンシブ ---------- */
.sp-only {
  display: none;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .ring-c {
    display: none;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .section {
    padding: 80px 0;
  }

  .site-nav {
    padding: 0 20px;
  }

  .brand-logo {
    height: 32px;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 9, 16, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(125, 211, 252, 0.08);
  }

  .nav-menu li:last-child {
    border-bottom: none;
    margin-top: 16px;
  }

  .nav-menu a:not(.nav-cta) {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
  }

  .nav-menu a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    justify-content: center;
    width: 100%;
  }

  .nav-toggle:checked + label .bar {
    background: transparent;
  }

  .nav-toggle:checked + label .bar::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked + label .bar::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero-marquee {
    margin-top: 56px;
  }

  .hero-visual {
    min-height: 0;
    padding-top: 28px;
  }

  .orbit-field {
    display: none;
  }

  .console-card {
    margin: 0 auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps::before {
    display: none;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta {
    padding: 110px 0;
  }

  .floating-contact a span {
    display: none;
  }

  .floating-contact a {
    padding: 16px;
  }

  .cursor-aura {
    display: none;
  }

  .grid-floor {
    background-size: 56px 56px;
    opacity: 0.32;
  }
}

@media (max-width: 420px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-actions .cta {
    width: 100%;
    justify-content: center;
  }
}
