@charset "UTF-8";

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { overflow-wrap: anywhere; }

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:        #030406;
  --bg-2:      #070a0e;
  --bg-3:      #101216;
  --ink:       #f3f5f8;
  --sub:       #aab1bd;
  --mute:      #727a86;
  --line:      rgba(255,255,255,.14);
  --line-soft: rgba(255,255,255,.08);
  --glass:     rgba(255,255,255,.045);
  --glass-2:   rgba(255,255,255,.07);
  --glass-edge:rgba(255,255,255,.20);
  --glow:      rgba(255,255,255,.55);
  --glow-soft: rgba(255,255,255,.14);

  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-en: "Helvetica Neue", "Segoe UI", Arial, var(--font-jp);

  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 64px);
  --sect: clamp(96px, 13vw, 184px);
  --radius: 18px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* ambient light field — white/silver, no blue */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% 8%,  rgba(255,255,255,.07), transparent 60%),
    radial-gradient(1100px 700px at 12% 42%, rgba(255,255,255,.045), transparent 62%),
    radial-gradient(900px 900px at 50% 100%, rgba(255,255,255,.035), transparent 60%),
    var(--bg);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--font-en);
  font-size: .76rem; font-weight: 600; letter-spacing: .42em;
  color: var(--sub); text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 1em;
  margin-bottom: 26px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 40px; height: 1px; background: var(--line);
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 700; line-height: 1.5; letter-spacing: .04em;
}
.section-lead {
  text-align: center; color: var(--sub);
  font-size: clamp(.9rem, 1.4vw, 1rem);
  margin-top: 20px;
}
.arrow { display: inline-block; transition: transform .4s var(--ease); }

/* monoline icons */
.ic { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-width: 150px; height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 12px; letter-spacing: .18em; font-weight: 800; text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease, color .35s ease;
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { color: #050507; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 0 24px rgba(255,255,255,.2), 0 18px 42px rgba(0,0,0,.35); }
.btn-primary:hover { box-shadow: 0 0 38px rgba(255,255,255,.38), 0 24px 58px rgba(0,0,0,.45); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); box-shadow: 0 0 30px rgba(255,255,255,.14); }
/* legacy aliases (sub-pages) */
.btn-solid { color: #07080a; background: #fff; border: 1px solid #fff; }
.btn-solid:hover { box-shadow: 0 16px 42px rgba(255,255,255,.22); }
.btn-outline { color: var(--ink); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.24); }
.btn-outline:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }

/* reveal (gated by .js-ready so no-JS shows everything) */
.js-ready .reveal,
.js-ready .top-link-card,
.js-ready .service-card { opacity: 0; transform: translateY(22px); }
.js-ready .reveal.is-visible,
.js-ready .top-link-card.is-visible,
.js-ready .service-card.is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.js-ready .top-link-card.is-visible:hover { transform: translateY(-10px) scale(1.035); }
.js-ready .service-card.is-visible:hover { transform: translateY(-12px) scale(1.035); }
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal,
  .js-ready .top-link-card,
  .js-ready .service-card { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 72px; z-index: 100;
  background: rgba(5,5,7,.56);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .35s ease, transform .35s ease, border-color .35s ease;
}
.site-header.is-scrolled { background: rgba(5,5,7,.82); border-bottom-color: rgba(255,255,255,.12); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand-logo { height: 26px; width: auto; filter: brightness(0) invert(1); }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav-link {
  font-family: var(--font-en); font-size: .82rem; font-weight: 600; letter-spacing: .16em;
  color: var(--sub); position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--glow); transition: width .4s var(--ease);
}
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-current::after { width: 100%; }
.header-cta { height: 40px; min-width: auto; padding: 0 20px; font-size: 11px; letter-spacing: .14em; }
.hamburger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  background: #050507;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #050507;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77777778vh;
  min-width: 100%;
  height: 100vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 22%, rgba(255,255,255,0.16), transparent 28%),
    linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.58) 36%, rgba(0,0,0,0.28) 68%, rgba(0,0,0,0.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.16) 48%, rgba(0,0,0,0.78) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #050507 82%);
}
.hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 96px;
  color: #fff;
}
.hero-label {
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.28em;
  line-height: 1;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
}
.hero-title {
  margin: 0;
  font-size: clamp(56px, 8.2vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: #fff;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-shadow:
    0 0 24px rgba(255,255,255,0.18),
    0 24px 70px rgba(0,0,0,0.72);
}
.hero-lead {
  width: min(620px, 100%);
  margin: 34px 0 0;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 10px 34px rgba(0,0,0,0.7);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .hero { min-height: 92svh; }
  .hero-inner { width: min(100% - 32px, 640px); padding-top: 84px; }
  .hero-label { margin-bottom: 22px; font-size: 10px; letter-spacing: 0.22em; }
  .hero-title { font-size: clamp(40px, 12vw, 68px); line-height: 1.04; letter-spacing: -0.05em; }
  .hero-lead { margin-top: 26px; font-size: 14px; line-height: 1.9; }
  .hero-actions { margin-top: 32px; flex-wrap: wrap; }
  .btn { min-width: 138px; height: 46px; }
}

/* ============================================================
   SERVICE
   ============================================================ */
.service { padding-block: var(--sect); }
.service .section-title { margin-bottom: clamp(48px, 7vw, 80px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }

/* SERVICE CARD (image bg + content overlay) */
.service-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; padding: 30px 28px 32px;
  overflow: hidden; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 54px rgba(0,0,0,0.36);
  transform: translateZ(0);
  isolation: isolate;
  text-decoration: none; color: #fff;
  transition: transform .48s cubic-bezier(.2,.8,.2,1), border-color .45s ease, box-shadow .45s ease, filter .45s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,0.34), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 34%, rgba(255,255,255,0.08));
  transition: opacity .45s ease;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.36) 42%, rgba(0,0,0,0.84) 100%);
}
.service-card img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.62) contrast(1.08); transform: scale(1.01);
  transition: transform .68s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}
.service-card > *:not(img) { position: relative; z-index: 3; }
.service-no { font-family: var(--font-en); font-size: .8rem; letter-spacing: .24em; color: rgba(255,255,255,.75); }
.service-title { margin-top: 10px; font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; }
.service-text { margin-top: 12px; font-size: .82rem; line-height: 1.8; color: rgba(255,255,255,.78); }
.service-more { display: inline-flex; align-items: center; gap: .5em; margin-top: 20px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.service-card:hover {
  transform: translateY(-12px) scale(1.035);
  border-color: rgba(255,255,255,0.62);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 0 46px rgba(255,255,255,0.23), 0 32px 92px rgba(0,0,0,0.62);
  filter: brightness(1.06);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover img { transform: scale(1.1); filter: brightness(0.84) contrast(1.14); }
.service-card:hover .service-more .arrow { transform: translateX(6px); }

/* ============================================================
   PROCESS  (PRONIX HUB — radial hub-spoke, NOT a spiral)
   ============================================================ */
.hub {
  padding-block: var(--sect); position: relative;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.96) 48%, #000 100%), #030405;
}
.hub .section-lead { margin-bottom: clamp(36px, 5vw, 60px); }
.hub-list { display: none; }

/* ============================================================
   PRONIX HUB — clear-frame spiral (GLB / Three.js), sticky scroll
   HERO とは完全分離した独立 Canvas / スクロール範囲
   ============================================================ */
.hub--spiral {
  padding-block: 0;                 /* sticky セクション自身は余白なし */
  min-height: 340vh;                /* この高さ分スクロールする間だけ螺旋が回る */
  background: none;                 /* 背景は内側 sticky 側に持たせる */
}
.hub--spiral .hub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: block;
  background: #020407;
  isolation: isolate;
}
/* Layer 1: 背面 HERO 映像（仮配置） */
.hub-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hub-video-layer .hub-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77777778vh;
  min-width: 100%;
  height: 100vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%) scale(1.04);
  border: 0;
  opacity: .36;
  filter: brightness(.48) contrast(1.12) saturate(.8) blur(1px);
}
/* Layer 2: 黒・青系オーバーレイ（映像を沈める） */
.hub-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(23,42,66,.16) 0%, rgba(3,7,13,.56) 58%, rgba(0,0,0,.90) 100%);
}
/* Layer 3: Three.js Canvas（背景は透明、映像越しに描画） */
.hub--spiral .hub-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 2;
  pointer-events: none;
}
.hub--spiral .hub-head {
  position: relative; z-index: 3;
  padding-top: clamp(48px, 9vh, 104px);
  text-align: center;
  pointer-events: none;
}
.hub--spiral .hub-head .section-lead { margin-bottom: 0; }
.hub-scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--font-en); font-size: .62rem; letter-spacing: .3em;
  color: rgba(200,214,235,.55); pointer-events: none;
}
.hub--spiral .hub-fallback { z-index: 4; }
@media (max-width: 768px) {
  .hub--spiral { min-height: 300vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hub--spiral { min-height: 100vh; }
}

/* HUB interactive realtime 3D (Three.js + Blender GLB) — floats on the black page, no frame */
.hub-stage {
  position: relative;
  width: min(1280px, 100%);
  height: clamp(560px, 58vw, 760px);
  margin: clamp(10px, 2vw, 24px) auto 0;
  background: transparent;
  overflow: visible;
}
.hub-canvas { position: absolute; inset: 0; z-index: 2; }
.hub-canvas canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  display: block !important; opacity: 1 !important; visibility: visible !important;
  pointer-events: auto;
}
.hub-labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hub-node-label {
  position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 0; background: none; border: 0; cursor: pointer; pointer-events: auto;
  will-change: transform, opacity; transition: opacity .3s ease;
  transform: translate(-50%,-50%);
  font-family: var(--font-en);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}
/* icon only — NO grey circle; the 3D glass sphere behind is the bubble (keeps it 3D, not 2D) */
.hub-node-label .hub-ic {
  position: relative;
  width: 64px; height: 64px; display: grid; place-items: center;
  background: none; border: 0;
}
.hub-node-label .hub-ic svg {
  width: 30px; height: 30px; color: #fff;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.85)) drop-shadow(0 0 18px rgba(180,230,255,.55));
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
/* soft circular glow behind active node */
.hub-node-label .hub-ic::before {
  content: ""; position: absolute; inset: -55%; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,242,255,.55), rgba(200,242,255,0) 66%);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; z-index: -1;
}
.hub-node-label .hub-en {
  color: #f4f8ff; font-size: 16px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; margin-top: 2px;
  text-shadow: 0 0 8px rgba(190,230,255,.7), 0 0 18px rgba(120,190,255,.35), 0 4px 14px rgba(0,0,0,.85);
  transition: font-size .35s var(--ease);
}
.hub-node-label .hub-jp {
  color: #eaf4ff; font-size: 22px; font-weight: 700; letter-spacing: .02em; font-family: var(--font-jp); margin-top: 5px; opacity: .95;
  text-shadow: 0 0 8px rgba(255,255,255,.75), 0 0 18px rgba(180,230,255,.55), 0 0 34px rgba(120,200,255,.35);
  transition: font-size .35s var(--ease);
}
.hub-node-label.is-active { z-index: 30; }
.hub-node-label.is-active .hub-ic::before { opacity: 1; }
.hub-node-label.is-active .hub-ic svg {
  transform: scale(2.45);
  filter: drop-shadow(0 0 12px rgba(255,255,255,1)) drop-shadow(0 0 28px rgba(180,230,255,.85)) drop-shadow(0 0 56px rgba(120,200,255,.55));
}
.hub-node-label.is-active .hub-en { font-size: 22px; color: #fff; }
.hub-node-label.is-active .hub-jp { font-size: 27px; }

/* static fallback (GLB failed / no WebGL) */
.hub-fallback { position: absolute; inset: 0; z-index: 4; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.hub-fallback[hidden] { display: none; }
.hub-stage.is-3d-ready .hub-fallback { display: none; }
.hub-fb-eyebrow { font-family: var(--font-en); font-size: .75rem; letter-spacing: .3em; color: var(--sub); }
.hub-fb-lead { font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-weight: 700; color: #fff; }
.hub-fb-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px 18px; max-width: 720px; margin-top: 6px; }
.hub-fb-grid li { padding: 12px 8px; border: 1px solid var(--glass-edge); border-radius: 12px; background: rgba(255,255,255,.03); }
.hub-fb-grid b { display: block; font-family: var(--font-en); font-size: .9rem; letter-spacing: .06em; color: #fff; }
.hub-fb-grid span { display: block; margin-top: 3px; font-size: .68rem; color: var(--sub); }
.hub-fb-note { margin-top: 10px; font-size: .6rem; letter-spacing: .04em; color: rgba(160,170,180,.4); }
@media (max-width: 768px){ .hub-fb-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.hub-panel {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%) translateY(10px); z-index: 5;
  width: min(360px, 86%); padding: 22px 24px 24px; text-align: left;
  border-radius: 16px; border: 1px solid var(--glass-edge);
  background: linear-gradient(160deg, rgba(18,24,34,.93), rgba(8,11,16,.93));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hub-panel.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }
.hub-panel-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; font-size: 1.2rem; line-height: 1; color: var(--sub); border-radius: 50%; }
.hub-panel-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.hub-panel-key { font-family: var(--font-en); font-size: .7rem; letter-spacing: .22em; color: var(--sub); }
.hub-panel-title { margin-top: 6px; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; color: #fff; }
.hub-panel-text { margin-top: 10px; font-size: .84rem; line-height: 1.8; color: var(--sub); }

/* ============================================================
   TOP LINKS  (WORKS / MEMBER / COMPANY / CONTACT)
   ============================================================ */
.top-links {
  position: relative;
  padding: 96px 0 120px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 34%),
    #050507;
}
.top-links-inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.top-link-card {
  position: relative;
  display: flex;
  min-height: 320px;
  padding: 34px 28px 30px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 20px 60px rgba(0,0,0,0.36);
  transform: translateZ(0);
  isolation: isolate;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s ease, box-shadow .45s ease, filter .45s ease;
}
.top-link-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: grayscale(10%) brightness(0.58) contrast(1.08);
  transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}
.top-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0.88) 100%),
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.16), transparent 34%);
  transition: background .45s ease;
}
.top-link-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,0.32), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 38%, rgba(255,255,255,0.08));
  transition: opacity .45s ease;
}
.top-link-kicker,
.top-link-title,
.top-link-text,
.top-link-more { position: relative; z-index: 3; }
.top-link-kicker {
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
}
.top-link-title {
  display: block;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #fff;
}
.top-link-text {
  display: block;
  min-height: 3.2em;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
}
.top-link-more {
  display: block;
  margin-top: 26px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: rgba(255,255,255,0.94);
}
.top-link-card:hover {
  transform: translateY(-10px) scale(1.035);
  border-color: rgba(255,255,255,0.58);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 0 42px rgba(255,255,255,0.22), 0 30px 90px rgba(0,0,0,0.56);
  filter: brightness(1.08);
}
.top-link-card:hover::before { opacity: 1; }
.top-link-card:hover .top-link-img { transform: scale(1.1); filter: grayscale(0%) brightness(0.82) contrast(1.12); }
.top-link-card:hover .top-link-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.2) 36%, rgba(0,0,0,0.82) 100%),
    radial-gradient(circle at 50% 12%, rgba(255,255,255,0.28), transparent 38%);
}
@media (max-width: 1024px) {
  .top-links-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top-links { padding: 72px 0 88px; }
  .top-links-inner { width: min(100% - 32px, 520px); grid-template-columns: 1fr; gap: 18px; }
  .top-link-card { min-height: 260px; padding: 30px 24px 28px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 54px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 32px); }
.footer-nav a { font-family: var(--font-en); font-size: .78rem; letter-spacing: .14em; color: var(--sub); transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.copyright { width: 100%; font-family: var(--font-en); font-size: .7rem; letter-spacing: .1em; color: var(--mute); }

/* ============================================================
   PAGE (sub-pages shared)
   ============================================================ */
.page-hero { padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: .05em; line-height: 1.3; }
.page-lead { margin: 24px auto 0; max-width: 40em; color: var(--sub); font-size: clamp(.9rem,1.3vw,1rem); }
.page-section { padding-block: clamp(56px, 8vw, 110px); }

/* ---- SERVICE detail (service.html) ---- */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 8vw, 110px); }
.svc-detail:nth-child(even) .svc-detail-media { order: 2; }
.svc-detail:last-child { margin-bottom: 0; }
.svc-detail-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.85); }
.svc-detail-no { font-family: var(--font-en); font-size: .82rem; letter-spacing: .28em; color: var(--sub); }
.svc-detail-title { margin-top: 14px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: .04em; }
.svc-detail-text { margin-top: 20px; color: var(--sub); font-size: clamp(.9rem,1.3vw,1rem); }
.svc-detail-list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-detail-list span { font-size: .76rem; letter-spacing: .06em; color: var(--ink); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass); }

/* ---- WORKS grid (works.html) ---- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.work-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform .5s var(--ease), border-color .5s var(--ease); }
.work-item:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.4); }
.work-thumb { aspect-ratio: 4/3; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.9); transition: transform 1s var(--ease); }
.work-item:hover .work-thumb img { transform: scale(1.06); }
.work-meta { padding: 20px 22px 24px; }
.work-cat { font-family: var(--font-en); font-size: .72rem; letter-spacing: .2em; color: var(--sub); }
.work-name { margin-top: 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: .03em; }

/* ---- MEMBER grid (member.html) ---- */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.member-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--glass-2), var(--glass)); }
.member-photo { aspect-ratio: 1; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.85); }
.member-body { padding: 22px 24px 26px; }
.member-role { font-family: var(--font-en); font-size: .72rem; letter-spacing: .18em; color: var(--sub); }
.member-name { margin-top: 8px; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.member-text { margin-top: 12px; font-size: .8rem; line-height: 1.8; color: var(--sub); }

/* ---- MVV / COMPANY (company.html) ---- */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: clamp(36px,5vw,56px); }
.mvv-card { padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--glass-edge); background: linear-gradient(160deg, var(--glass-2), var(--glass)); }
.mvv-key { font-family: var(--font-en); font-size: .78rem; letter-spacing: .26em; color: var(--sub); }
.mvv-head { margin-top: 14px; font-size: 1.2rem; font-weight: 700; letter-spacing: .04em; }
.mvv-text { margin-top: 14px; font-size: .86rem; line-height: 1.9; color: var(--sub); }
.company-table { width: 100%; border-top: 1px solid var(--line-soft); }
.company-table dl { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line-soft); margin: 0; }
.company-table dt { font-family: var(--font-en); font-size: .82rem; letter-spacing: .12em; color: var(--sub); }
.company-table dd { margin: 0; font-size: .95rem; color: var(--ink); }
.values-list { display: grid; gap: 14px; margin-top: clamp(30px,4vw,44px); }
.values-list li { padding: 22px 26px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--glass); }
.values-list b { display: block; font-family: var(--font-en); letter-spacing: .08em; font-size: .95rem; margin-bottom: 6px; }
.values-list span { color: var(--sub); font-size: .86rem; }

/* ---- CONTACT (contact.html) ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
.contact-info h2 { font-size: clamp(1.4rem,2.6vw,1.9rem); font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.contact-info p { margin-top: 18px; color: var(--sub); font-size: .92rem; }
.contact-meta { margin-top: 32px; display: grid; gap: 18px; }
.contact-meta dt { font-family: var(--font-en); font-size: .72rem; letter-spacing: .2em; color: var(--mute); }
.contact-meta dd { margin: 4px 0 0; font-size: 1rem; }
.contact-meta a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
.contact-meta a:hover { border-color: rgba(255,255,255,.6); }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-size: .8rem; letter-spacing: .08em; color: var(--sub); margin-bottom: 10px; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink); letter-spacing: .02em;
  background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: rgba(255,255,255,.5); background: var(--glass-2); }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: .76rem; color: var(--mute); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: .84rem; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); }
.form-status.is-error { color: #ffd9d9; border-color: rgba(255,150,150,.4); background: rgba(255,80,80,.08); }
.form-status.is-ok { color: #e6f0ff; border-color: rgba(255,255,255,.35); background: var(--glass-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  /* mobile nav drawer (toggled by .is-menu-open on <html>) */
  .is-menu-open .nav {
    display: flex; flex-direction: column; gap: 6px;
    position: fixed; inset: 72px 0 auto 0; padding: 24px var(--pad) 36px;
    background: rgba(5,6,9,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft); z-index: 99;
  }
  .is-menu-open .nav .nav-link { font-size: 1rem; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .is-menu-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .is-menu-open .hamburger span:nth-child(2) { opacity: 0; }
  .is-menu-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .svc-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }

  .pc-only { display: none; }
}
@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  /* mobile keeps the lightweight interactive 3D */
  .hub-stage { width: 100%; height: clamp(430px, 104vw, 560px); margin-top: 18px; }
  .hub-node-label .hub-ic { width: 52px; height: 52px; }
  .hub-node-label .hub-ic svg { width: 26px; height: 26px; }
  .hub-node-label .hub-en { font-size: 14px; }
  .hub-node-label .hub-jp { display: none; }              /* non-active JP hidden to avoid clutter on narrow screens */
  .hub-node-label.is-active .hub-en { font-size: 17px; }
  .hub-node-label.is-active .hub-jp { display: block; font-size: 17px; }
  .hub-panel { width: min(300px, 90%); padding: 18px 18px 20px; bottom: 3%; }
}

/* sub-page grids */
@media (max-width: 1024px) {
  .works-grid, .member-grid, .mvv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .svc-detail { grid-template-columns: 1fr; gap: 28px; }
  .svc-detail:nth-child(even) .svc-detail-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .company-table dl { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .works-grid, .member-grid, .mvv-grid { grid-template-columns: 1fr; }
}
