/* ============================================================
   Japan incubation Group — Top Page
   Black × Hinomaru Red / Futuristic
   ============================================================ */

:root {
  --bg: #050505;
  --bg-soft: #0b0b0d;
  --red: #e60012;
  --red-bright: #ff2d3a;
  --red-deep: #6e0009;
  --white: #f4f3f1;
  --grey: #8a8a90;
  --hairline: rgba(255, 255, 255, 0.1);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.22, 1.4, 0.36, 1);
  --font-en: "Space Grotesk", sans-serif;
  --font-jp: "Zen Kaku Gothic New", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

.text-red { color: var(--red-bright); }

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

/* ============ NOISE OVERLAY ============ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ============ INTRO ============ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro__mark { position: relative; display: grid; place-items: center; }
.intro__logo {
  width: 72px;
  opacity: 0;
  animation: introLogo 1.1s var(--ease-out) 0.25s forwards;
}
.intro__ring {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(230, 0, 18, 0.5);
  border-top-color: var(--red-bright);
  animation: introSpin 1.2s linear infinite;
}
.intro__line {
  width: 180px; height: 1px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.intro__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red-bright);
  transform: translateX(-100%);
  animation: introLoad 1.3s var(--ease-out) 0.15s forwards;
}
.intro__label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--grey);
  animation: introBlink 1.2s steps(2) infinite;
}
@keyframes introLogo { from { opacity: 0; transform: scale(0.85); filter: blur(6px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes introSpin { to { transform: rotate(360deg); } }
@keyframes introLoad { to { transform: translateX(0); } }
@keyframes introBlink { 50% { opacity: 0.35; } }

/* ============ WEBGL CANVAS ============ */
.gl-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* WebGL非対応・reduced-motion時の静的背景 */
.static-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(230, 0, 18, 0.42) 0%, rgba(110, 0, 9, 0.22) 45%, transparent 72%),
    radial-gradient(40% 35% at 50% 44%, rgba(255, 45, 58, 0.28) 0%, transparent 70%),
    var(--bg);
}
body.no-gl .gl-canvas { display: none; }
body.no-gl .static-bg { display: block; }

/* ============ HUD ============ */
.hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.hud__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  animation: hudIn 1s var(--ease-out) 1.8s forwards;
}
.hud__corner--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.hud__meta {
  position: absolute;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.34);
  opacity: 0;
  animation: hudIn 1s var(--ease-out) 2s forwards;
}
.hud__meta--left { left: 52px; }
.hud__meta--right { right: 52px; text-align: right; }
@keyframes hudIn { to { opacity: 1; } }
.hud.is-hidden .hud__meta,
.hud.is-hidden .hud__corner--bl,
.hud.is-hidden .hud__corner--br {
  animation: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
@media (max-width: 767px) { .hud__meta { display: none; } }

/* ============ NAV ============ */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-top: 1.4rem;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 0.55rem 0.6rem 0.55rem 1.3rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-16px);
  animation: navIn 0.9s var(--ease-out) 1.6s forwards;
  transition: transform 0.6s var(--ease-out);
}
@keyframes navIn { to { opacity: 1; transform: translateY(0); } }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__link {
  font-family: var(--font-en);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(244, 243, 241, 0.82);
  position: relative;
  transition: color 0.45s var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__ext { font-size: 10px; margin-left: 2px; color: var(--red-bright); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-en);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.nav__cta-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: transform 0.5s var(--ease-spring);
}
.nav__cta:hover {
  background: var(--red-bright);
  box-shadow: 0 0 28px rgba(230, 0, 18, 0.55);
}
.nav__cta:hover .nav__cta-icon { transform: translateX(2px); }
.nav__cta:active { transform: scale(0.97); }
.nav__burger {
  display: none;
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--white);
  transition: transform 0.5s var(--ease-out);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav__burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
.nav__burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 767px) {
  .nav { gap: 1rem; padding: 0.45rem 0.45rem 0.45rem 1rem; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* ============ MOBILE MENU ============ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__inner { display: flex; flex-direction: column; gap: 1.4rem; }
.menu__link {
  font-family: var(--font-en);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.menu__link em {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red-bright);
}
.menu.is-open .menu__link { opacity: 1; transform: translateY(0); }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.1s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.17s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.24s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.31s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 7vw, 7rem);
}
.hero__inner { max-width: 1200px; margin-inline: auto; width: 100%; position: relative; }
.hero__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--grey);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero__eyebrow::before {
  content: "";
  width: 42px; height: 1px;
  background: var(--red-bright);
  box-shadow: 0 0 10px rgba(230, 0, 18, 0.9);
}
.hero__title {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line--indent { padding-left: clamp(1rem, 6vw, 6rem); }
.glitch-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
}
.glitch-word--red {
  color: var(--red-bright);
  text-shadow: 0 0 42px rgba(230, 0, 18, 0.55);
}
/* fallback: word-level rise when JS char-split is unavailable */
.hero.is-in .hero__title:not(.char-split) .glitch-word {
  animation: heroRise 1.1s var(--ease-out) forwards;
}
.hero.is-in .hero__title:not(.char-split) .hero__line:nth-child(1) .glitch-word { animation-delay: 0.05s; }
.hero.is-in .hero__title:not(.char-split) .hero__line:nth-child(2) .glitch-word:nth-child(1) { animation-delay: 0.18s; }
.hero.is-in .hero__title:not(.char-split) .hero__line:nth-child(2) .glitch-word:nth-child(2) { animation-delay: 0.3s; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

/* char-level particle forge: chars hidden until particles assemble them */
.hero__title.char-split .glitch-word { opacity: 1; transform: none; }
.hero__title .ch { display: inline-block; }
.hero__title.char-split .ch { opacity: 0; }
.hero__title.char-split .ch.lit {
  opacity: 1;
  animation: chIgnite 0.62s var(--ease-out) both;
}
.hero.is-in .hero__title.char-split .ch.glitch-burst {
  animation: glitchBurst 0.38s steps(2, jump-none) both;
}
@keyframes chIgnite {
  0% { opacity: 0.4; filter: blur(9px) brightness(3.2); transform: scale(1.14); text-shadow: 0 0 46px rgba(255, 110, 80, 0.95), 0 0 90px rgba(230, 0, 18, 0.6); }
  40% { opacity: 1; filter: blur(0.5px) brightness(1.7); text-shadow: 0 0 26px rgba(255, 110, 80, 0.55); }
  100% { opacity: 1; filter: blur(0) brightness(1); transform: scale(1); text-shadow: 0 0 0 rgba(255, 110, 80, 0); }
}

/* particle forge canvas over the hero */
.hero__forge {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { min-height: 1em; }

/* idle float once forged */
.hero.is-in .hero__inner {
  animation: titleFloat 9s cubic-bezier(0.45, 0, 0.55, 1) 4s infinite;
}
@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* glitch burst — applied to random chars/words periodically via JS */
.glitch-burst {
  animation: glitchBurst 0.38s steps(2, jump-none) both;
}
@keyframes glitchBurst {
  0% { clip-path: inset(0); transform: translate(0); }
  20% { clip-path: inset(12% 0 58% 0); transform: translate(-5px, 2px) skewX(-8deg); text-shadow: 3px 0 rgba(0, 229, 255, 0.85), -3px 0 rgba(255, 45, 58, 0.9); }
  40% { clip-path: inset(58% 0 6% 0); transform: translate(5px, -2px) skewX(4deg); text-shadow: -3px 0 rgba(0, 229, 255, 0.85), 3px 0 rgba(255, 45, 58, 0.9); }
  60% { clip-path: inset(30% 0 32% 0); transform: translate(-3px, 1px); text-shadow: 2px 0 rgba(0, 229, 255, 0.7), -2px 0 rgba(255, 45, 58, 0.8); }
  80% { clip-path: inset(4% 0 82% 0); transform: translate(3px, -1px) skewX(-3deg); }
  100% { clip-path: inset(0); transform: translate(0); text-shadow: none; }
}
.hero__jp {
  position: absolute;
  right: 0;
  top: 52%;
  writing-mode: vertical-rl;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.55em;
  color: rgba(244, 243, 241, 0.9);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease-out) 0.9s, transform 1.2s var(--ease-out) 0.9s;
}
.hero.is-in .hero__jp { opacity: 1; transform: translateY(0); }
.hero__scroll {
  position: absolute;
  bottom: 3rem;
  right: clamp(1.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-en);
  font-size: 9.5px;
  letter-spacing: 0.4em;
  color: var(--grey);
  writing-mode: vertical-rl;
}
.hero__scroll-track {
  width: 1px; height: 72px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}
.hero__scroll-dot {
  position: absolute;
  left: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px rgba(230, 0, 18, 0.9);
  animation: scrollDot 2.2s var(--ease-out) infinite;
}
@keyframes scrollDot {
  0% { top: -8px; opacity: 0; }
  25% { opacity: 1; }
  100% { top: 76px; opacity: 0; }
}
@media (max-width: 767px) {
  .hero__jp { display: none; }
  .hero__line--indent { padding-left: 0.5rem; }
}

/* ============ SECTION COMMON ============ */
section { position: relative; z-index: 10; scroll-margin-top: 92px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 0, 18, 0.45);
  background: rgba(230, 0, 18, 0.08);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px rgba(230, 0, 18, 1);
  animation: pulseDot 2s var(--ease-out) infinite;
}
@keyframes pulseDot { 50% { opacity: 0.4; } }
.section-head__num {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.28);
}

/* fade-up reveal */
.fade-up {
  opacity: 0;
  transform: translateY(56px);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
}
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }
.is-visible .fade-up, .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ============ BUTTON ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.75rem 0.75rem 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: border-color 0.5s var(--ease-out), background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.4s var(--ease-spring);
}
.btn__icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}
.btn:hover {
  border-color: rgba(230, 0, 18, 0.6);
  background: rgba(230, 0, 18, 0.07);
  box-shadow: 0 0 34px rgba(230, 0, 18, 0.25);
}
.btn:hover .btn__icon {
  transform: translateX(3px) scale(1.06);
  box-shadow: 0 0 18px rgba(230, 0, 18, 0.8);
}
.btn:active { transform: scale(0.98); }
.btn--ghost { pointer-events: none; }

/* ============ ABOUT ============ */
.about { padding: clamp(9rem, 16vw, 15rem) 0 clamp(7rem, 12vw, 11rem); }
.about__title {
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about__title span { display: block; }
.about__title .text-red { text-shadow: 0 0 46px rgba(230, 0, 18, 0.5); }
.about__body {
  max-width: 620px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.about__body p {
  color: rgba(244, 243, 241, 0.78);
  font-size: 15.5px;
}
.about__body .btn { align-self: flex-start; }

/* ============ SERVICE ============ */
.service { padding: clamp(6rem, 10vw, 10rem) 0; }
.service__title {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.service__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.service__grid .card:nth-child(even) { transform: translateY(clamp(1.5rem, 4vw, 3.5rem)); }
.service__grid .card:nth-child(even).is-visible { transform: translateY(clamp(1.5rem, 4vw, 3.5rem)); }
.service__more { margin-top: clamp(4rem, 8vw, 6.5rem); text-align: center; }

/* Card — double bezel */
.card {
  display: block;
  border-radius: 1.6rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline);
  transition: transform 0.15s linear, border-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  transform-style: preserve-3d;
  position: relative;
}
.card:hover {
  border-color: rgba(230, 0, 18, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 44px rgba(230, 0, 18, 0.18);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1.6rem;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0%, rgba(230,0,18,0.9) 8%, transparent 18%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.card:hover::before { opacity: 1; animation: edgeSpin 2.6s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes edgeSpin { to { --angle: 360deg; } }
.card__shell {
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
}
.card__media {
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  position: relative;
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-soft) 2%, transparent 45%), rgba(230, 0, 18, 0.06);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.06);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
}
.card:hover .card__media img {
  transform: scale(1.09);
  filter: saturate(0.9) contrast(1.06);
}
.card__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out);
}
.card:hover .card__fx { transform: scale(1.08); }
.card__media::after { z-index: 2; }
.card__body {
  position: relative;
  padding: 1.5rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.card__num {
  position: absolute;
  top: 1.4rem; right: 1.7rem;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(230, 0, 18, 0.85);
}
.card__jp {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--grey);
}
.card__en {
  font-family: var(--font-en);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.card__copy {
  margin-top: 0.5rem;
  font-size: 13.5px;
  color: rgba(244, 243, 241, 0.66);
}
.card__arrow {
  position: absolute;
  bottom: 1.6rem; right: 1.7rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), transform 0.5s var(--ease-spring);
}
.card:hover .card__arrow {
  background: var(--red);
  border-color: var(--red);
  transform: translateX(3px);
  box-shadow: 0 0 20px rgba(230, 0, 18, 0.7);
}

@media (max-width: 767px) {
  .service__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .service__grid .card:nth-child(even),
  .service__grid .card:nth-child(even).is-visible { transform: none; }
}

/* ============ CTA ============ */
.cta { padding: clamp(5rem, 9vw, 9rem) 0 clamp(7rem, 11vw, 11rem); }
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.cta__panel {
  border-radius: 1.8rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline);
  transition: transform 0.15s linear, border-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.cta__panel:hover {
  border-color: rgba(230, 0, 18, 0.55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 54px rgba(230, 0, 18, 0.22);
}
.cta__shell {
  border-radius: 1.35rem;
  background:
    radial-gradient(120% 130% at 15% 0%, rgba(230, 0, 18, 0.16) 0%, transparent 55%),
    var(--bg-soft);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
  padding: clamp(2.2rem, 4.5vw, 3.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  min-height: 100%;
}
.cta__title {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cta__copy {
  color: rgba(244, 243, 241, 0.72);
  font-size: 14.5px;
  margin-bottom: 0.9rem;
}
@media (max-width: 767px) {
  .cta__grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.75);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 2.2rem;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.footer__logo { height: 32px; width: auto; }
.footer__nav { display: flex; gap: clamp(2.5rem, 6vw, 5.5rem); }
.footer__col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__col a {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(244, 243, 241, 0.6);
  transition: color 0.4s var(--ease-out);
}
.footer__col a:hover { color: var(--red-bright); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 243, 241, 0.4);
}
.footer__bottom a { transition: color 0.4s var(--ease-out); }
.footer__bottom a:hover { color: var(--red-bright); }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .glitch-word, .hero__jp, .fade-up { opacity: 1 !important; transform: none !important; filter: none !important; }
}
