/* === SAFETY FALLBACK: force-hide mobile-only UI on desktop === */
.skip-link { position: absolute !important; top: -9999px !important; left: -9999px !important; }
.skip-link:focus { top: 12px !important; left: 16px !important; }
.mobile-menu { position: fixed !important; top: 0 !important; right: 0 !important; transform: translateX(100%) !important; visibility: hidden !important; }
.mobile-menu.open { transform: translateX(0) !important; visibility: visible !important; }
.mobile-menu-backdrop { position: fixed !important; inset: 0 !important; visibility: hidden !important; opacity: 0 !important; }
.mobile-menu-backdrop.open { visibility: visible !important; opacity: 1 !important; }
.nav-toggle { display: none; }
@media (max-width: 900px) { .nav-toggle { display: flex !important; align-items: center; justify-content: center; } }

/* ==========================================================
   NEW YORK LLC — TikTok かわいい Homepage
   Signature: cyan+magenta RGB glitch, rounded kawaii typography,
   floating stickers, springy bounces, playful gradients.
   ========================================================== */

:root {
  /* Cream light theme — 乳白ベースでかわいい */
  --bg: #fff6ec;           /* soft cream */
  --bg-2: #ffeadb;          /* warmer peach-cream */
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --border: rgba(58, 30, 80, 0.1);
  --border-strong: rgba(255, 94, 147, 0.4);

  --text: #2a1a3f;          /* deep plum ink */
  --text-dim: rgba(42, 26, 63, 0.7);
  --text-mute: rgba(42, 26, 63, 0.5);
  --on-grad: #2a1a3f;       /* text on gradient backgrounds */

  /* Adjusted for contrast on cream */
  --cyan: #1bc5d0;
  --cyan-bright: #25f4ee;
  --magenta: #ff4081;
  --magenta-bright: #ff2d7a;
  /* Kawaii pop colors — softened for light bg */
  --pink: #ff8ab8;
  --pink-hot: #ff5e93;
  --peach: #ffc0a8;
  --lavender: #a68cff;
  --mint: #5ddcb8;
  --butter: #ffd66b;

  --grad-primary: linear-gradient(110deg, #1bc5d0 0%, #a68cff 45%, #ff4081 100%);
  --grad-alt: linear-gradient(110deg, #ff5e93 0%, #ffc0a8 50%, #1bc5d0 100%);
  --grad-kawaii: linear-gradient(135deg, #ff8ab8 0%, #a68cff 50%, #1bc5d0 100%);
  --grad-soft: linear-gradient(180deg, rgba(27, 197, 208, 0.12), rgba(255, 138, 184, 0.12));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.8, 0.5, 1);
  --wobble: cubic-bezier(0.68, -0.55, 0.27, 1.55);

  --nav-h: 72px;
  --radius: 28px;
  --radius-lg: 36px;
  --radius-sm: 16px;

  --font-jp: "M PLUS Rounded 1c", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-en: "Fredoka", "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Fredoka", "M PLUS Rounded 1c", sans-serif;
  --font-serif: "Zen Maru Gothic", serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: var(--font-jp);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(255, 138, 184, 0.4);
  color: var(--text);
}

/* =========================================================
   PAGE LOADER
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(135deg, #fff6ec 0%, #ffe8dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner { text-align: center; }
.loader-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 88px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: logoBounce 1.2s var(--bounce) forwards;
}
.loader-bar {
  display: inline-block;
  width: 32px;
  height: 6px;
  background: var(--grad-kawaii);
  border-radius: 999px;
  animation: loaderBar 1.4s var(--ease) infinite;
}
.loader-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--pink-hot);
}
.loader-dots {
  display: inline-block;
  width: 20px;
  text-align: left;
}
@keyframes logoBounce {
  0% { opacity: 0; transform: translateY(20px) scale(0.6); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes loaderBar {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(2.4); opacity: 0.6; }
}

/* =========================================================
   CURSOR GLOW
   ========================================================= */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 184, 0.28), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease);
  opacity: 0;
  mix-blend-mode: multiply;
  filter: blur(24px);
}
@media (hover: hover) {
  .cursor-glow.active { opacity: 1; }
}

/* =========================================================
   BACKGROUND ORBS + GRID
   ========================================================= */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  will-change: transform;
  mix-blend-mode: multiply;
}
.orb-cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #a8e8ec, transparent 70%);
  top: -140px;
  left: -160px;
  animation: orbFloat1 22s var(--ease) infinite;
}
.orb-magenta {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, #ffc5d8, transparent 70%);
  top: 30%;
  right: -200px;
  animation: orbFloat2 28s var(--ease) infinite;
  opacity: 0.55;
}
.orb-violet {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #d9ccff, transparent 70%);
  bottom: -140px;
  left: 35%;
  animation: orbFloat3 26s var(--ease) infinite;
  opacity: 0.45;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(0.9); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -70px) scale(1.15); }
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 94, 147, 0.11) 1px, transparent 0);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 246, 236, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255, 94, 147, 0.15);
  box-shadow: 0 4px 20px rgba(255, 94, 147, 0.06);
}
.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1bc5d0 0%, #ff5e93 100%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.03em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 94, 147, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: transform 0.5s var(--bounce);
}
.nav-logo:hover .logo-mark {
  transform: rotate(-12deg) scale(1.08);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.35));
  pointer-events: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.logo-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo-en {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  color: var(--pink-hot);
  letter-spacing: 0.25em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s var(--ease), transform 0.4s var(--bounce);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -8px;
  height: 3px;
  background: var(--grad-kawaii);
  border-radius: 999px;
  transition: left 0.4s var(--ease), right 0.4s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
}
.nav-links a:hover::after {
  left: 0;
  right: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1bc5d0 0%, #ff5e93 100%);
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  transition: all 0.5s var(--bounce);
  box-shadow: 0 6px 18px rgba(255, 94, 147, 0.32);
}
.nav-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(255, 94, 147, 0.45);
}
.nav-cta svg { transition: transform 0.4s var(--ease); }
.nav-cta:hover svg { transform: translateX(4px); }

/* =========================================================
   SHARED SECTION
   ========================================================= */
section, nav, footer {
  position: relative;
  z-index: 2;
}
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 48px;
}
.section-head {
  max-width: 780px;
  margin-bottom: 80px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(255, 94, 147, 0.3);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-hot);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(255, 94, 147, 0.1);
}

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-lead {
  margin-top: 28px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.9;
}
.section-lead strong { color: var(--text); font-weight: 700; }

.gradient {
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.gradient-alt {
  background: var(--grad-alt);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--bounce);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
[data-reveal-stagger] { display: block; overflow: hidden; }
[data-reveal-stagger] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotate(-6deg);
  transition: opacity 1s var(--ease), transform 1s var(--bounce);
  margin-right: 0.22em;
}
[data-reveal-stagger].in .word {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) 48px 120px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
}
.hero-line { display: block; }
.hero-line .word { transition-duration: 1.2s; }
.hero-line .word:nth-child(1) { transition-delay: 0.1s; }
.hero-line .word:nth-child(2) { transition-delay: 0.22s; }
.hero-line .word:nth-child(3) { transition-delay: 0.34s; }
.hero-line .word:nth-child(4) { transition-delay: 0.46s; }

/* TikTok signature RGB glitch effect (tuned for light bg) */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan);
  transform: translate(-3px, 0);
  mix-blend-mode: multiply;
  opacity: 0.85;
  animation: glitchCyan 3.2s infinite steps(1);
  z-index: -1;
}
.glitch::after {
  color: var(--magenta);
  transform: translate(3px, 0);
  mix-blend-mode: multiply;
  opacity: 0.85;
  animation: glitchMag 3.2s infinite steps(1);
  z-index: -1;
}
@keyframes glitchCyan {
  0%, 88%, 100% { transform: translate(-3px, 0); }
  90% { transform: translate(-8px, 2px); }
  92% { transform: translate(-2px, -2px); }
  94% { transform: translate(-6px, 0); }
}
@keyframes glitchMag {
  0%, 88%, 100% { transform: translate(3px, 0); }
  90% { transform: translate(8px, -2px); }
  92% { transform: translate(2px, 2px); }
  94% { transform: translate(6px, 0); }
}

.hero-sub {
  max-width: 640px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 48px;
  font-weight: 500;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 700;
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.5s var(--bounce);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #1bc5d0 0%, #ff5e93 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 94, 147, 0.32), inset 0 2px 6px rgba(255, 255, 255, 0.4);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff5e93, #1bc5d0);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 42px rgba(255, 94, 147, 0.45);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary svg { transition: transform 0.4s var(--ease); }
.btn-primary:hover svg { transform: translateX(5px) rotate(-10deg); }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: rgba(255, 94, 147, 0.4);
  box-shadow: 0 6px 14px rgba(42, 26, 63, 0.06);
}
.btn-ghost:hover {
  background: rgba(255, 138, 184, 0.12);
  border-color: var(--pink-hot);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 28px rgba(255, 94, 147, 0.22);
}

/* Hero metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 48px;
  border-top: 2px dashed rgba(255, 94, 147, 0.35);
  max-width: 600px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
}
.metric-value .unit {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 2px;
}
.metric-label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.metric-divider {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-hot);
  box-shadow: 0 0 14px rgba(255, 94, 147, 0.5);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--pink-hot);
  letter-spacing: 0.4em;
}
.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--pink-hot), transparent);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--cyan);
  border-radius: 999px;
  animation: scrollDown 2s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* Hero floating visual cards */
.hero-visual {
  position: absolute;
  right: -40px;
  top: 20%;
  width: 380px;
  height: 420px;
  pointer-events: none;
  display: none;
}
@media (min-width: 1100px) {
  .hero-visual { display: block; }
}
.visual-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 94, 147, 0.25);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(255, 94, 147, 0.18);
}
.card-1 {
  width: 260px;
  top: 0;
  right: 100px;
  animation: floatCard 6s var(--ease) infinite;
}
.card-2 {
  width: 220px;
  top: 180px;
  right: 0;
  animation: floatCard 6s var(--ease) infinite;
  animation-delay: -2s;
}
.card-3 {
  width: 150px;
  top: 320px;
  right: 140px;
  padding: 18px;
  animation: floatCard 6s var(--ease) infinite;
  animation-delay: -4s;
  background: linear-gradient(135deg, #a8f0ee 0%, #ffc5d8 100%);
  border-color: rgba(27, 197, 208, 0.45);
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

.vc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.15em;
}
.vc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-c { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.dot-m { background: var(--pink-hot); box-shadow: 0 0 12px var(--pink-hot); }

.vc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vc-bar {
  height: 26px;
  border-radius: 999px;
  background: rgba(27, 197, 208, 0.15);
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: var(--cyan);
}
.vc-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(27, 197, 208, 0.55), rgba(27, 197, 208, 0.15));
  animation: barPulse 3s var(--ease) infinite;
}
.vc-bar-warn {
  background: rgba(255, 94, 147, 0.15);
  color: var(--pink-hot);
}
.vc-bar-warn::before {
  background: linear-gradient(90deg, rgba(255, 94, 147, 0.55), rgba(255, 94, 147, 0.15));
}
.vc-bar span { position: relative; z-index: 1; }
@keyframes barPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.vc-chart { padding-top: 10px; }
.vc-chart svg { width: 100%; height: 60px; }

.vc-mini { text-align: center; }
.mini-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.mini-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-top: 4px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.section-about {
  padding-top: 100px;
}
/* Standalone about-facts (no longer inside about-grid) */
.section-about .about-facts {
  max-width: 820px;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: all 0.5s var(--bounce);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.about-card:hover {
  border-color: var(--pink-hot);
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 20px 48px rgba(255, 94, 147, 0.18);
}
.about-card:hover::before { opacity: 1; }
.about-card > * { position: relative; z-index: 1; }

.about-facts {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1.5px dashed rgba(255, 94, 147, 0.25);
  align-items: start;
  transition: padding 0.3s var(--ease);
}
.fact:hover { padding-left: 8px; }
.fact:last-child { border-bottom: none; }
.fact dt {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--pink-hot);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 2px;
}
.fact dd {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.6;
}

/* =========================================================
   SERVICE
   ========================================================= */
.service-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .service-flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
    width: 30px;
    margin: 4px 0;
  }
}
.flow-step {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.5s var(--bounce);
  position: relative;
  overflow: hidden;
}
.flow-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: var(--grad-kawaii);
  transition: width 0.6s var(--ease);
  border-radius: 999px;
}
.flow-step:hover {
  transform: translateY(-6px) rotate(-1deg);
  background: var(--bg-card-hover);
  border-color: var(--pink-hot);
  box-shadow: 0 16px 36px rgba(255, 94, 147, 0.2);
}
.flow-step:hover::after { width: 100%; }
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(255, 94, 147, 0.3);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--pink-hot);
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(255, 94, 147, 0.12);
}
.flow-step h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.flow-step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 500;
}
.flow-result {
  background: linear-gradient(135deg, rgba(27, 197, 208, 0.14), rgba(255, 94, 147, 0.14));
  border-color: var(--pink-hot);
}
.flow-result h4 {
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.flow-arrow {
  width: 40px;
  align-self: center;
  color: var(--pink-hot);
  animation: arrowPulse 2s var(--ease) infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

.service-audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 40px;
  border-top: 2px dashed rgba(255, 94, 147, 0.35);
}
@media (max-width: 700px) {
  .service-audiences { grid-template-columns: 1fr; }
}
.audience h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--pink-hot);
  margin-bottom: 10px;
}
.audience p {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

/* =========================================================
   TECHNOLOGY
   ========================================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.tech-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--bounce);
  transform-style: preserve-3d;
  will-change: transform;
}
.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-kawaii);
  -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);
}
.tech-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 42px rgba(255, 94, 147, 0.2);
}
.tech-card:hover::before { opacity: 1; }

.tech-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d7f5f7 0%, #ffd7e5 100%);
  border: 1.5px solid rgba(27, 197, 208, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 24px;
  transition: all 0.5s var(--bounce);
}
.tech-card:hover .tech-icon {
  background: linear-gradient(135deg, #ffd7e5 0%, #d7f5f7 100%);
  border-color: var(--pink-hot);
  color: var(--pink-hot);
  transform: rotate(-12deg) scale(1.1);
}
.tech-icon svg { width: 28px; height: 28px; }
.tech-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.tech-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 500;
}
.tech-card p strong { color: var(--text); font-weight: 700; }
.tech-number {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
}

/* =========================================================
   MARKET
   ========================================================= */
.market-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .market-grid { grid-template-columns: 1fr; }
}
.market-main {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
.market-main p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 20px;
  font-weight: 500;
}
.market-main p:last-child { margin-bottom: 0; }
.market-main strong {
  color: var(--text);
  font-weight: 700;
}
.market-emphasis {
  margin-top: 32px !important;
  padding-top: 32px;
  border-top: 2px dashed rgba(255, 94, 147, 0.35);
  font-size: 20px !important;
  font-family: var(--font-jp);
  font-weight: 800;
  color: var(--text) !important;
}

.market-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--bounce);
}
.stat-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(8px) rotate(1deg);
  border-color: var(--pink-hot);
  box-shadow: 0 12px 28px rgba(255, 94, 147, 0.16);
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.stat-tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(27, 197, 208, 0.18);
  color: #0d9ba3;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.tag-up {
  background: rgba(255, 94, 147, 0.2);
  color: var(--pink-hot);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stat-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 500;
}

/* =========================================================
   CONTACT
   ========================================================= */
.section-contact {
  max-width: 1100px;
}
.contact-inner {
  background: linear-gradient(180deg, #eafcfd 0%, #ffecf3 100%);
  border: 2px solid rgba(255, 94, 147, 0.32);
  border-radius: 36px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(255, 94, 147, 0.14);
}
.contact-inner::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(27, 197, 208, 0.28), transparent 70%);
  pointer-events: none;
}
.contact-inner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 140%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(255, 94, 147, 0.28), transparent 70%);
  pointer-events: none;
}
.contact-inner > * { position: relative; z-index: 1; }
.contact-title {
  font-family: var(--font-jp);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 20px 0 28px;
}
.contact-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 500;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.contact-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(255, 94, 147, 0.2);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.5s var(--bounce);
  backdrop-filter: blur(6px);
}
.contact-card:hover {
  background: #fff;
  border-color: var(--pink-hot);
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 16px 32px rgba(255, 94, 147, 0.18);
}
.cc-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--pink-hot);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.contact-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 500;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 60px 48px 40px;
  border-top: 2px dashed rgba(255, 94, 147, 0.28);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1bc5d0 0%, #ff5e93 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 18px rgba(255, 94, 147, 0.3);
}
.footer-name {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.footer-en {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-hot);
  letter-spacing: 0.15em;
}
.footer-meta {
  display: flex;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
}
.footer-meta .dot { opacity: 0.7; color: var(--pink-hot); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; gap: 16px; }
  .section { padding: 90px 24px; }
  .section-head { margin-bottom: 56px; }
  .hero { padding: calc(var(--nav-h) + 60px) 24px 100px; }
  .about-facts, .market-main { padding: 28px; }
  .fact { grid-template-columns: 120px 1fr; gap: 16px; }
  .contact-inner { padding: 56px 28px; }
  .hero-metrics { gap: 24px; }
  .metric-value { font-size: 32px; }
  .footer { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal-stagger] .word { opacity: 1; transform: none; }
}

/* =========================================================
   ======== IMPROVEMENTS APPENDED FOR CF PAGES MIGRATION ========
   ========================================================= */

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  padding: 10px 18px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  z-index: 300;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--pink-hot); }

/* Use dynamic viewport height to avoid iOS address bar jump */
.hero { min-height: 100svh; }

/* Improve hero-title mobile scaling: was clamp(60px, 10vw, 150px) — never scaled above 60 on phones.
   New: clamp 44px -> larger vw -> 150px */
.hero-title { font-size: clamp(44px, 11.5vw, 150px) !important; }

/* Stronger mobile metric values */
@media (max-width: 900px) {
  .hero-title { letter-spacing: -0.02em; }
  .metric-value { font-size: 40px !important; }
  .hero-metrics { gap: 20px 28px !important; }
  .metric-divider { display: none; }
}

/* =========================================================
   MOBILE NAV TOGGLE (HAMBURGER)
   ========================================================= */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  padding: 0;
  box-shadow: 0 4px 14px rgba(255, 94, 147, 0.15);
  border: 1.5px solid rgba(255, 94, 147, 0.25);
  transition: all 0.3s var(--ease);
}
.nav-toggle:hover { transform: scale(1.05); border-color: var(--pink-hot); }
.nav-toggle-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.35s var(--bounce), opacity 0.2s ease, top 0.35s var(--bounce);
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 20px; }
.nav-toggle-bar:nth-child(3) { top: 26px; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* =========================================================
   MOBILE SLIDE MENU
   ========================================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  height: 100vh;
  width: min(88vw, 420px);
  background: linear-gradient(160deg, #fff6ec 0%, #ffe8dc 100%);
  z-index: 250;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
  padding: 96px 32px 48px;
  box-shadow: -40px 0 80px rgba(42, 26, 63, 0.08);
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 63, 0.35);
  backdrop-filter: blur(8px);
  z-index: 240;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.mm-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mm-links {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.mm-links li {
  margin-bottom: 4px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--bounce);
}
.mobile-menu.open .mm-links li { opacity: 1; transform: translateX(0); }
.mobile-menu.open .mm-links li:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.open .mm-links li:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open .mm-links li:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open .mm-links li:nth-child(4) { transition-delay: 0.28s; }
.mobile-menu.open .mm-links li:nth-child(5) { transition-delay: 0.34s; }

.mm-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1.5px dashed rgba(255, 94, 147, 0.25);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.3s var(--ease);
}
.mm-links a:hover, .mm-links a:focus-visible {
  transform: translateX(8px);
  color: var(--pink-hot);
  outline: none;
}
.mm-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--pink-hot);
  letter-spacing: 0.25em;
  min-width: 28px;
}
.mm-text {
  font-size: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mm-text em {
  font-style: normal;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.mm-footer {
  padding-top: 32px;
  border-top: 2px dashed rgba(255, 94, 147, 0.3);
}
.mm-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.mm-addr {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

/* Body scroll lock when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* =========================================================
   PERFORMANCE ON MOBILE — tame heavy effects
   ========================================================= */
@media (max-width: 700px) {
  /* Shrink and simplify orbs */
  .orb-cyan   { width: 320px; height: 320px; filter: blur(70px); opacity: 0.3; }
  .orb-magenta{ width: 320px; height: 320px; filter: blur(70px); opacity: 0.3; }
  .orb-violet { width: 260px; height: 260px; filter: blur(70px); opacity: 0.25; }

  /* Cursor glow is pointless on touch */
  .cursor-glow { display: none !important; }
}

/* Honor coarse pointer devices (no cursor-glow on phone/tablet) */
@media (pointer: coarse) {
  .cursor-glow { display: none !important; }
}

/* =========================================================
   SECTION SPACING REFINEMENT ON MOBILE
   ========================================================= */
@media (max-width: 560px) {
  .section { padding: 72px 20px; }
  .hero { padding: calc(var(--nav-h) + 48px) 20px 88px; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: clamp(30px, 8vw, 44px); }
  .hero-sub { font-size: 15px; line-height: 1.85; margin-bottom: 32px; }
  .btn { padding: 16px 24px; font-size: 13px; }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; }

  .flow-step { padding: 22px; }
  .flow-step h3, .flow-step .flow-head { font-size: 18px; }

  .tech-card { padding: 24px; }
  .tech-head { font-size: 17px; }
  .tech-number { font-size: 32px; }

  .contact-title { font-size: clamp(28px, 8vw, 42px); }
  .contact-cards { gap: 14px; }
  .contact-card { padding: 22px; }

  .fact { grid-template-columns: 100px 1fr !important; gap: 10px !important; }
  .fact dt { font-size: 12px; }
  .fact dd { font-size: 14px; }

  .footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
}

/* flow-head / tech-head inherit old h4 styles */
.flow-head {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.flow-result .flow-head {
  background: var(--grad-kawaii);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.tech-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--pink-hot);
  outline-offset: 4px;
  border-radius: 8px;
}
.btn:focus-visible { outline-offset: 6px; }

/* Hide loader immediately if JS doesn't kick in */
html:not(.js) .loader { display: none !important; }

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
  .nav, .cursor-glow, .bg-orbs, .grid-bg, .loader,
  .hero-scroll, .hero-visual, .mobile-menu, .mobile-menu-backdrop { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .section { padding: 20px !important; }
}
