/* =========================================================
   Lirem Inc. Website
   Design System
   ========================================================= */

:root {
  /* Brand */
  --c-primary: #4E94D6;
  --c-primary-dark: #2E6FB0;
  --c-primary-light: #7BB3E5;
  --c-accent: #FF8A00;
  --c-accent-2: #E63946;
  --c-violet: #7C5CFF;
  --c-teal: #3DD9C0;

  /* Neutrals */
  --c-ink: #0A1628;
  --c-ink-2: #1A2940;
  --c-text: #2A3548;
  --c-muted: #6B7689;
  --c-line: #E5E9F0;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F6F9FC;
  --c-bg-dark: #08111F;

  /* Gradients */
  --grad-brand: linear-gradient(90deg, #7C5CFF 0%, #4E94D6 55%, #3DD9C0 100%);
  --grad-fire: linear-gradient(135deg, #FFC83D 0%, #FF6B1A 55%, #E63946 100%);
  --grad-hero: radial-gradient(1000px 600px at 80% -10%, rgba(124,92,255,.18), transparent 60%),
               radial-gradient(900px 500px at -10% 30%, rgba(78,148,214,.20), transparent 60%),
               radial-gradient(700px 400px at 50% 100%, rgba(255,138,0,.10), transparent 60%);

  /* Type */
  --font-jp: 'Noto Sans JP', -apple-system, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  --font-display: 'Manrope', 'Inter', 'Noto Sans JP', sans-serif;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 920px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(10,22,40,.06);
  --shadow: 0 10px 30px rgba(10,22,40,.08);
  --shadow-lg: 0 24px 60px rgba(10,22,40,.12);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; letter-spacing: -.01em; line-height: 1.35; color: var(--c-ink); }
p { margin: 0; }

/* ===== Utility ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-en);
  font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); font-weight: 700; letter-spacing: .18em;
  color: var(--c-primary); text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--grad-brand); border-radius: 2px;
}
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 16px 0 20px;
}
.section-lede {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--c-muted);
  max-width: 720px;
}
.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-fire {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.divider { height: 1px; background: var(--c-line); border: 0; margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 20px rgba(78,148,214,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(78,148,214,.45); }
.btn-fire {
  background: var(--grad-fire); color: #fff;
  box-shadow: 0 8px 20px rgba(255,107,26,.35);
}
.btn-fire:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,107,26,.45); }
.btn-outline {
  background: #fff; color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
}
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.btn-ghost {
  color: var(--c-ink); padding: 10px 0;
}
.btn-ghost::after {
  content: "→"; transition: transform .25s var(--ease);
}
.btn-ghost:hover { color: var(--c-primary); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--c-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); font-weight: 600; color: var(--c-ink);
  position: relative; padding: 4px 0;
}
.nav a::after {
  content:""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 20px; font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); }

.menu-toggle { display: none; }

@media (max-width: 1024px) {
  .nav, .nav-cta .btn-outline { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
  }
  .menu-toggle span {
    width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    position: fixed; inset: 64px 0 0 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    padding: 32px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
    z-index: 999;
    overflow-y: auto;
  }
  body.menu-open .mobile-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-nav a {
    display: block; padding: 18px 0; font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px); font-weight: 700; color: var(--c-ink);
    border-bottom: 1px solid var(--c-line);
  }
  .mobile-nav .btn { margin-top: 24px; width: 100%; justify-content: center; }
}
@media (min-width: 1025px) { .mobile-nav { display: none; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(140px, 18vw, 200px) 0 clamp(100px, 12vw, 140px);
  background: #fff;
  overflow: hidden;
  min-height: 92svh;
  display: flex;
  align-items: center;
}

/* ===== Hero Background (video + animated layers) ===== */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(124,92,255,.10), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(78,148,214,.10), transparent 60%);
}
/* Video background layer — drop images/hero-bg.mp4 to activate */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;                /* hidden until JS confirms playback */
  transition: opacity 1.2s ease;
  filter: saturate(1.05) contrast(1.02);
}
.hero-video.is-playing { opacity: 1; }

/* Green-themed tint + readability gradient layered on top of video.
   Visible only when video is playing so the existing blob design stays clean. */
.hero-video-tint {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  background:
    /* soft green wash for brand alignment */
    linear-gradient(135deg, rgba(34, 138, 110, .35) 0%, rgba(70, 160, 130, .15) 45%, rgba(124, 92, 255, .18) 100%),
    /* white-to-transparent gradient on left for text legibility */
    linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.55) 35%, rgba(255,255,255,.15) 70%, rgba(255,255,255,0) 100%);
  mix-blend-mode: normal;
}
.hero-bg.has-video .hero-video-tint { opacity: 1; }
.hero-bg.has-video .bg-blob { opacity: .25; mix-blend-mode: screen; }
.hero-bg.has-video .bg-blob-3 { opacity: .15; }

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .8;
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-bg.has-video .hero-canvas { opacity: .35; mix-blend-mode: screen; }
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.bg-blob-1 {
  width: 600px; height: 600px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, #7C5CFF, transparent 70%);
  animation: blobFloat1 22s ease-in-out infinite;
}
.bg-blob-2 {
  width: 700px; height: 700px;
  bottom: -200px; left: -150px;
  background: radial-gradient(circle, #4E94D6, transparent 70%);
  animation: blobFloat2 28s ease-in-out infinite;
}
.bg-blob-3 {
  width: 500px; height: 500px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, #3DD9C0, transparent 70%);
  animation: blobFloat3 26s ease-in-out infinite;
  opacity: .35;
}
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 60px) scale(1.1); }
  66% { transform: translate(60px, -40px) scale(.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, -80px) scale(1.15); }
  66% { transform: translate(-50px, 50px) scale(.9); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50% { transform: translate(-30%, -60%) scale(1.2) rotate(180deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-copy {
  max-width: 900px;
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob, .hero-canvas { animation: none !important; }
  .hero-canvas { display: none; }
}
.hero::before {
  content:""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(78,148,214,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 65%, rgba(124,92,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, rgba(61,217,192,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(255,138,0,.35) 50%, transparent 51%);
  background-size: 200px 200px, 250px 250px, 300px 300px, 220px 220px;
  opacity: .8; pointer-events: none;
  animation: float-bg 18s linear infinite;
}
@keyframes float-bg {
  to { background-position: 200px 200px, -250px 250px, 300px -300px, -220px -220px; }
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px;
  align-items: center; position: relative;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-copy h1 {
  font-size: clamp(36px, 6.2vw, 72px);
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 18px 0 24px;
}
.hero-copy h1 .reveal-line {
  display: block; overflow: hidden;
}
.hero-copy h1 .reveal-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise .9s var(--ease) forwards;
}
.hero-copy h1 .reveal-line:nth-child(2) span { animation-delay: .12s; }
.hero-copy h1 .reveal-line:nth-child(3) span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--c-text);
  max-width: 560px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .9s var(--ease) .5s forwards;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .9s var(--ease) .7s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
}
.hero-orb {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #7C5CFF, #4E94D6, #3DD9C0, #FFC83D, #FF6B1A, #7C5CFF);
  filter: blur(40px); opacity: .55;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card {
  position: absolute; inset: 8% 8%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-card-top {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-weight: 700; font-size: clamp(12px, calc(11.65px + 0.094vw), 13px);
  color: var(--c-primary); letter-spacing: .15em;
}
.hero-card-top::before {
  content:""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 4px rgba(255,138,0,.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255,138,0,0); } }
.hero-card-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  color: var(--c-ink); margin: 16px 0;
  letter-spacing: -.02em;
}
.hero-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-stat-num {
  font-family: var(--font-en); font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat-lbl { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); color: var(--c-muted); font-weight: 600; }

.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); letter-spacing: .2em; color: var(--c-muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content:""; width: 1px; height: 36px; background: var(--c-muted);
  animation: scroll-line 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line { 0%,100% { transform: scaleY(.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* ===== Marquee ===== */
.marquee {
  background: var(--c-ink);
  color: rgba(255,255,255,.5);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.marquee-track {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-en); font-weight: 600; font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); letter-spacing: .15em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track span::after { content: "✦"; color: rgba(255,255,255,.3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Mission / Vision (Refined) ===== */
.mv-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .mv-block { grid-template-columns: 1fr; gap: 32px; }
}

.mv-card {
  position: relative;
  padding: 48px 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(10,22,40,.05);
  border: 1px solid rgba(78,148,214,.08);
  overflow: hidden;
}
.mv-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand);
}
.mv-card.is-vision::before {
  background: linear-gradient(90deg, #3DD9C0, #4E94D6, #7C5CFF);
}
.mv-label {
  display: inline-block;
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); letter-spacing: .25em;
  color: var(--c-primary);
  padding: 6px 12px;
  background: rgba(78,148,214,.08);
  border-radius: 999px;
  margin-bottom: 24px;
}
.mv-card.is-vision .mv-label { color: var(--c-teal); background: rgba(61,217,192,.10); }

.mv-en {
  font-family: 'Manrope', var(--font-en);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.2;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px;
}
.mv-jp {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.65;
  color: var(--c-ink);
  letter-spacing: -.01em;
}
.mv-jp em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.mv-narrative {
  margin-top: 56px;
  padding: 40px 48px;
  border-left: 3px solid var(--c-primary);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  border-radius: 0 12px 12px 0;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) {
  .mv-narrative { padding: 28px 24px; margin-top: 40px; }
}
.mv-narrative p {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2;
  color: var(--c-text);
}
.mv-narrative p + p { margin-top: 16px; }
.mv-narrative strong {
  background: linear-gradient(transparent 60%, rgba(255,138,0,.20) 60%);
  font-weight: 700;
  color: var(--c-ink);
}

/* ===== Mission (legacy) ===== */
.mission {
  background: var(--c-bg-soft);
  position: relative; overflow: hidden;
}
.mission::before {
  content:""; position: absolute; right: -200px; top: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(78,148,214,.12), transparent 65%);
  pointer-events: none;
}
.mission-statement {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800; line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--c-ink);
  max-width: 920px;
}
.mission-statement em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mission-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 64px; padding-top: 48px;
  border-top: 1px solid var(--c-line);
}
@media (max-width: 760px) { .mission-meta { grid-template-columns: 1fr; gap: 24px; } }
.mission-meta h4 {
  font-family: var(--font-en); font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); letter-spacing: .2em;
  color: var(--c-primary); margin-bottom: 10px;
}
.mission-meta p { font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); font-weight: 600; color: var(--c-ink); line-height: 1.7; }

/* ===== Services ===== */
.services-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 64px;
}
@media (max-width: 800px) { .services-head { grid-template-columns: 1fr; gap: 24px; } }

.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card::before {
  content:""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  background: linear-gradient(180deg, #FFF8F0 0%, #FFFFFF 80%);
  border-color: rgba(255,138,0,.25);
}
/* MAIN badge removed */
.service-card.featured::after { content: none; display: none; }
.service-no {
  font-family: var(--font-en); font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); font-weight: 700; letter-spacing: .2em;
  color: var(--c-muted);
}
.service-name {
  font-size: clamp(20.8px, calc(18.97px + 0.488vw), 26px); font-weight: 800; margin: 16px 0 12px;
  color: var(--c-ink);
}
.service-name .ja {
  display: block; font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); font-weight: 600; color: var(--c-muted); margin-top: 4px; letter-spacing: .05em;
}
.service-desc { color: var(--c-text); font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); margin: 12px 0 24px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.service-tag {
  font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--c-bg-soft); color: var(--c-text);
}

/* ===== Why (USP) ===== */
.why {
  background: var(--c-bg-dark);
  color: #fff;
  position: relative; overflow: hidden;
}
.why::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 80%, rgba(255,138,0,.12), transparent 60%);
  pointer-events: none;
}
.why h2, .why .section-title { color: #fff; }
.why .eyebrow { color: var(--c-teal); }
.why .section-lede { color: rgba(255,255,255,.7); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 64px; position: relative;
}
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  padding: 40px 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.why-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--grad-brand);
  color: #fff; font-weight: 800; font-family: var(--font-en);
  margin-bottom: 24px; font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px);
}
.why-card h3 { color: #fff; font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px); margin-bottom: 12px; }
.why-card p { color: rgba(255,255,255,.72); font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); line-height: 1.85; }

/* ===== Stats ===== */
.stats {
  background: var(--c-bg);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 40px 24px;
  text-align: left;
  border-left: 2px solid var(--c-line);
}
.stat-num {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(40px, 5vw, 60px);
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.03em; line-height: 1;
}
.stat-num .unit { font-size: .5em; margin-left: 4px; color: var(--c-text); -webkit-text-fill-color: var(--c-text); }
.stat-label { margin-top: 16px; font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); font-weight: 600; color: var(--c-muted); }

/* ===== Process ===== */
.process-list {
  display: grid; gap: 16px;
  margin-top: 56px;
}
.process-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 32px;
  padding: 32px 32px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  align-items: center;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.process-item:hover { transform: translateX(6px); border-color: var(--c-primary); }
.process-no {
  font-family: var(--font-en); font-size: clamp(26.6px, calc(23.29px + 0.883vw), 36px); font-weight: 800;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.03em;
}
.process-body h4 { font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px); margin-bottom: 6px; }
.process-body p { color: var(--c-muted); font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); }
.process-tag {
  font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); font-weight: 700; padding: 6px 12px;
  border-radius: 999px; background: var(--c-bg-soft); color: var(--c-text);
}
@media (max-width: 700px) {
  .process-item { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px; }
  .process-tag { display: none; }
}

/* ===== CTA ===== */
.cta {
  background: var(--c-ink);
  color: #fff;
  position: relative; overflow: hidden;
}
.cta::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 20% 100%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(600px 400px at 100% 0%, rgba(255,138,0,.18), transparent 60%);
}
.cta-inner {
  position: relative;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; gap: 32px; } }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; line-height: 1.4; }
.cta p { color: rgba(255,255,255,.75); font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { justify-content: center; padding: 18px 28px; font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); }

/* ===== Footer ===== */
.site-footer {
  background: #050B16;
  color: rgba(255,255,255,.65);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); line-height: 1.8; max-width: 320px; color: rgba(255,255,255,.5); }
.footer-col h5 {
  font-family: var(--font-en); font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); letter-spacing: .15em;
  color: rgba(255,255,255,.55); margin-bottom: 18px; font-weight: 700;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); color: rgba(255,255,255,.85); }
.footer-col a:hover { color: var(--c-primary-light); }
.footer-bottom {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: 16px;
}

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.is-visible > *:nth-child(1) { opacity:1; transform: translateY(0); transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity:1; transform: translateY(0); transition-delay: .15s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity:1; transform: translateY(0); transition-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity:1; transform: translateY(0); transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity:1; transform: translateY(0); transition-delay: .45s; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity:1; transform: translateY(0); transition-delay: .55s; }
/* Fallback: ensure children beyond 6 also become visible */
.reveal-stagger.is-visible > *:nth-child(n+7) { opacity:1; transform: translateY(0); transition-delay: .65s; }
/* Safety override for member grid — always visible regardless of stagger */
.member-grid > * { opacity: 1 !important; transform: none !important; }

/* ===== Page header (sub pages) ===== */
.page-hero {
  padding: clamp(140px, 16vw, 200px) 0 clamp(60px, 8vw, 100px);
  background: var(--grad-hero), #fff;
  position: relative; overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 16px 0;
}
.page-hero .lede { font-size: clamp(15px, 1.7vw, 18px); color: var(--c-text); max-width: 720px; }
.crumb { font-family: var(--font-en); font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); letter-spacing: .15em; color: var(--c-muted); }

/* ===== Service detail (OKIBI) ===== */
.okibi-hero {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(255,107,26,.15), transparent 60%),
    radial-gradient(700px 400px at 0% 50%, rgba(230,57,70,.10), transparent 60%),
    #fff;
  padding: clamp(140px, 16vw, 200px) 0 clamp(80px, 10vw, 120px);
  position: relative; overflow: hidden;
}
.okibi-hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.1; letter-spacing: -.03em;
  margin: 16px 0 24px;
}
.problem-box {
  background: var(--c-bg-soft);
  border-left: 4px solid var(--c-accent-2);
  padding: 32px;
  border-radius: 8px;
}
.problem-list { display: grid; gap: 16px; margin-top: 16px; }
.problem-list li {
  position: relative; padding-left: 36px; font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); line-height: 1.8;
}
.problem-list li::before {
  content:"!"; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-accent-2); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: clamp(12px, calc(11.65px + 0.094vw), 13px);
}

.solution-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
@media (max-width: 800px) { .solution-grid { grid-template-columns: 1fr; } }
.solution-card {
  background: linear-gradient(180deg, #FFF6EE, #fff);
  border: 1px solid rgba(255,138,0,.2);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
}
.solution-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--grad-fire);
  color: #fff; font-family: var(--font-en); font-weight: 800; font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px);
  border-radius: 12px; margin-bottom: 20px;
}
.solution-card h4 { font-size: clamp(17.2px, calc(16.21px + 0.263vw), 20px); margin-bottom: 10px; }

.plan-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px;
}
@media (max-width: 800px) { .plan-grid { grid-template-columns: 1fr; } }
.plan {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-fire) border-box; }
.plan-name { font-family: var(--font-en); font-weight: 800; font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px); margin-bottom: 8px; color: var(--c-ink); }
.plan-period { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); color: var(--c-muted); }
.plan-price { font-family: var(--font-en); font-weight: 800; font-size: clamp(32.6px, calc(28.59px + 1.07vw), 44px); margin: 24px 0 4px; color: var(--c-ink); letter-spacing: -.02em; }
.plan-price .unit { font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); color: var(--c-muted); margin-left: 4px; font-weight: 600; }
.plan-note { font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); color: var(--c-muted); }
.plan-features { margin-top: 28px; display: grid; gap: 12px; }
.plan-features li { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); padding-left: 26px; position: relative; line-height: 1.7; }
.plan-features li::before {
  content:""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--grad-fire);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 8l4 4 7-8" stroke="black" stroke-width="3" fill="none" stroke-linecap="round"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 8l4 4 7-8" stroke="black" stroke-width="3" fill="none" stroke-linecap="round"/></svg>') no-repeat center / contain;
}

/* ===== Comparison table ===== */
.compare {
  margin-top: 56px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.compare-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--c-line);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div { padding: 20px 24px; font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); }
.compare-row.head > div { background: var(--c-bg-soft); font-weight: 800; color: var(--c-ink); font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); }
.compare-row > div:nth-child(2) { background: rgba(255,138,0,.04); border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); }
.compare-row.head > div:nth-child(2) { background: var(--grad-fire); color: #fff; }
.compare .badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); font-weight: 700;
  background: var(--c-bg-soft);
}
.compare .badge.win { background: rgba(255,138,0,.12); color: #C25600; }

/* ===== FAQ ===== */
.faq { margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--c-line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 48px 28px 0;
  position: relative;
  font-size: clamp(14.6px, calc(13.75px + 0.225vw), 17px); font-weight: 700; color: var(--c-ink);
  display: flex; gap: 16px; align-items: flex-start;
}
.faq-q::before { content:"Q"; font-family: var(--font-en); color: var(--c-primary); flex-shrink: 0; }
.faq-q::after {
  content:""; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor,currentColor) center/2px 100% no-repeat;
  transition: transform .3s var(--ease);
  color: var(--c-muted);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
  font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); color: var(--c-text); line-height: 1.85;
}
.faq-a-inner { padding: 0 0 28px 28px; display: flex; gap: 16px; align-items: flex-start; }
.faq-a-inner::before { content:"A"; font-family: var(--font-en); color: var(--c-accent); font-weight: 800; flex-shrink: 0; }

/* ===== About / Members ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 800px) { .mvv-grid { grid-template-columns: 1fr; } }
.mvv-card {
  padding: 40px 32px;
  background: #fff;
  border-top: 4px solid var(--c-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.mvv-card.v { border-top-color: var(--c-violet); }
.mvv-card.b { border-top-color: var(--c-accent); }
.mvv-card .label {
  font-family: var(--font-en); font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); letter-spacing: .2em; font-weight: 700;
  color: var(--c-primary);
}
.mvv-card.v .label { color: var(--c-violet); }
.mvv-card.b .label { color: var(--c-accent); }
.mvv-card h3 { font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px); margin: 12px 0 16px; }
.mvv-card p { color: var(--c-text); font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); line-height: 1.85; }

.timeline {
  position: relative; padding: 32px 0;
}
.timeline::before {
  content:""; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(var(--c-primary), var(--c-accent));
}
.timeline-item { position: relative; padding: 16px 0 16px 48px; }
.timeline-item::before {
  content:""; position: absolute; left: 6px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-primary);
}
.timeline-year {
  font-family: var(--font-en); font-weight: 800; font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); color: var(--c-primary);
}
.timeline-text { font-weight: 600; color: var(--c-ink); margin-top: 4px; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .member-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.member {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member-photo {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  display: grid; place-items: center;
  color: rgba(255,255,255,.55);
  font-family: var(--font-en); font-weight: 800; font-size: clamp(29.6px, calc(25.94px + 0.977vw), 40px);
  position: relative; overflow: hidden;
}
.member:nth-child(2) .member-photo { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2)); }
.member:nth-child(3) .member-photo { background: linear-gradient(135deg, var(--c-teal), var(--c-primary)); }
/* Image-based member photo (overrides gradient placeholder) */
.member-photo--img { background: none !important; padding: 0; }
.member-photo--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.member-body { padding: 16px 18px 20px; }
.member-name { font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); font-weight: 800; color: var(--c-ink); line-height: 1.4; }
.member-role { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); color: var(--c-primary); font-weight: 700; margin-top: 4px; letter-spacing: .05em; }
.member-bio { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); color: var(--c-text); margin-top: 10px; line-height: 1.75; }

/* ===== Contact form ===== */
.form-grid {
  display: grid; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); font-weight: 700; color: var(--c-ink);
  margin-bottom: 8px;
}
.field label .req { color: var(--c-accent-2); margin-left: 6px; font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font: inherit; color: var(--c-ink);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(78,148,214,.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); color: var(--c-text); }
.consent input { width: 18px; height: 18px; margin-top: 2px; }

/* ===== Info / Tables ===== */
.info-table {
  width: 100%; border-collapse: collapse; margin-top: 32px;
}
.info-table th, .info-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px);
}
.info-table th {
  width: 200px; font-weight: 700; color: var(--c-ink);
  background: var(--c-bg-soft);
}

/* =========================================================
   ENHANCEMENTS — Inspired by NEWPEACE / LayerX / STUDIO
   ========================================================= */

/* ===== Body lock during intro ===== */
body.is-loading { overflow: hidden; }

/* ===== Intro loader (NEWPEACE inspired) ===== */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #050B16;
  display: grid; place-items: center;
  pointer-events: all;
  transition: clip-path 1.2s cubic-bezier(.85,0,.15,1), opacity .4s ease 1.2s;
  clip-path: inset(0 0 0 0);
  color: #fff;
  overflow: hidden;
}
.intro::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(700px 400px at 20% 80%, rgba(78,148,214,.35), transparent 60%),
    radial-gradient(500px 300px at 60% 60%, rgba(255,138,0,.18), transparent 60%);
  opacity: .8;
}
.intro.is-done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.intro-grid {
  position: relative;
  width: min(92vw, 1200px);
  display: grid; gap: clamp(32px, 4vw, 56px);
  text-align: center;
}

/* ===== Intro phrase (3-stage sequential fade) =====
   Stage 1: 人類社会に問い      (0.3s in, 2.2s out)
   Stage 2: 心豊かに生きる      (2.7s in, 4.0s out)
   Stage 3: 次の時代を創る      (4.5s in, holds to end)
   Total timeline: ~5.6s (matches dur=5800ms counter)
   ================================================== */
.intro-phrase {
  position: relative;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(38px, 6.8vw, 84px);
  line-height: 1.15;
  letter-spacing: -.02em;
  min-height: 1.3em;
  display: grid;
  place-items: center;
}
.ip-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
  pointer-events: none;
}
/* Shared character treatment */
.ip-text {
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #C9DDF2 55%, #9C82FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(124,92,255,.3));
  opacity: 0;
  transform: translateY(40%);
}

/* Stage 1: 人類社会に問い */
.ip-stage-1 .ip-text {
  animation:
    ipFadeUp .8s cubic-bezier(.22,1,.36,1) .3s forwards,
    ipFadeUpOut .55s cubic-bezier(.85,0,.4,1) 2.2s forwards;
}
/* Stage 2: 心豊かに生きる */
.ip-stage-2 .ip-text {
  animation:
    ipFadeUp .8s cubic-bezier(.22,1,.36,1) 2.7s forwards,
    ipFadeUpOut .55s cubic-bezier(.85,0,.4,1) 4.0s forwards;
}
/* Stage 3: 次の時代を創る (final — stays visible) */
.ip-stage-3 .ip-text {
  animation: ipFadeUp 1s cubic-bezier(.22,1,.36,1) 4.5s forwards;
}

@keyframes ipFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ipFadeUpOut {
  to { opacity: 0; transform: translateY(-40%); }
}

/* Lirem brand mark above the phrase (kept from original, slightly smaller) */
.intro-title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.02em;
  display: flex; justify-content: center; gap: clamp(2px, .4vw, 6px);
  flex-wrap: nowrap;
  opacity: .92;
}
.intro-title .ch {
  display: inline-block;
  background: linear-gradient(180deg, #fff, #B6D4F0 60%, #7C5CFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%) rotate(8deg);
  opacity: 0;
  animation: introCh .75s cubic-bezier(.22,1,.36,1) forwards;
}
.intro-title .ch:nth-child(1) { animation-delay: .15s; }
.intro-title .ch:nth-child(2) { animation-delay: .20s; }
.intro-title .ch:nth-child(3) { animation-delay: .25s; }
.intro-title .ch:nth-child(4) { animation-delay: .30s; }
.intro-title .ch:nth-child(5) { animation-delay: .35s; }
@keyframes introCh { to { transform: translateY(0) rotate(0); opacity: 1; } }

.intro-tag {
  font-family: var(--font-en); font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); letter-spacing: .35em;
  color: rgba(255,255,255,.55); font-weight: 700;
  opacity: 0; animation: fadeIn .6s ease .9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.intro-bar {
  width: min(80vw, 380px); height: 1px; margin: 0 auto;
  background: rgba(255,255,255,.18);
  position: relative; overflow: hidden;
  opacity: 0; animation: fadeIn .4s ease 1s forwards;
}
.intro-bar::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--c-violet), var(--c-primary), var(--c-teal), var(--c-accent));
  transform: scaleX(0); transform-origin: left;
  animation: introLoad 4.8s linear 1s forwards;
}
@keyframes introLoad { to { transform: scaleX(1); } }

/* Year counter: 2021 → 2040 (linear, every year visible) */
.intro-counter {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); letter-spacing: .22em; color: rgba(255,255,255,.7);
  display: flex; justify-content: space-between; align-items: baseline;
  width: min(80vw, 380px); margin: 0 auto;
  opacity: 0; animation: fadeIn .4s ease 1s forwards;
}
.intro-counter [data-intro-counter] {
  font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px);
  letter-spacing: .06em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 4ch; /* prevent width shift across years */
  display: inline-block;
  text-align: left;
  background: linear-gradient(180deg, #fff, #B6D4F0 70%, #7C5CFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(124,92,255,.25));
}

/* Reduce-motion fallback */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  body.is-loading { overflow: auto !important; }
}

/* Custom cursor disabled — using native cursor */

/* ===== Kinetic typography (LayerX inspired) ===== */
.kinetic {
  display: inline-block; line-height: 1.2;
}
.kinetic .word { display: inline-block; overflow: hidden; padding-bottom: .15em; margin-bottom: -.15em; }
.kinetic .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
.kinetic.is-visible .word > span { transform: translateY(0); }
.kinetic .word:nth-child(1) > span { transition-delay: .05s; }
.kinetic .word:nth-child(2) > span { transition-delay: .12s; }
.kinetic .word:nth-child(3) > span { transition-delay: .19s; }
.kinetic .word:nth-child(4) > span { transition-delay: .26s; }
.kinetic .word:nth-child(5) > span { transition-delay: .33s; }
.kinetic .word:nth-child(6) > span { transition-delay: .40s; }
.kinetic .word:nth-child(7) > span { transition-delay: .47s; }
.kinetic .word:nth-child(8) > span { transition-delay: .54s; }

/* Big Title with mask reveal */
.big-line {
  display: block; overflow: hidden; padding: 0 .05em;
}
.big-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.22,1,.36,1);
}
.big-line.is-visible > span { transform: translateY(0); }

/* ===== Showcase section (STUDIO inspired) ===== */
.showcase {
  background: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.showcase-head {
  display: flex; justify-content: space-between; align-items: end; gap: 48px;
  flex-wrap: wrap; margin-bottom: 64px;
}
.showcase-head h2 {
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -.03em; line-height: 1.05;
}
.showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 800px) { .showcase-grid { grid-template-columns: 1fr; gap: 40px; } }

.showcase-item {
  display: block;
  position: relative;
}
.showcase-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--c-bg-soft);
}
.showcase-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: saturate(.95);
}
.showcase-item:hover .showcase-thumb img { transform: scale(1.12); filter: saturate(1.1); }
.showcase-thumb::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(8,17,31,.55) 100%);
  pointer-events: none;
}
.showcase-meta {
  display: flex; justify-content: space-between; align-items: end; margin-top: 24px;
  gap: 16px;
}
.showcase-cat {
  font-family: var(--font-en); font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); letter-spacing: .25em; font-weight: 700;
  color: var(--c-muted);
}
.showcase-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800; line-height: 1.4; margin-top: 8px;
  color: var(--c-ink);
  transition: color .25s var(--ease);
}
.showcase-item:hover .showcase-title { color: var(--c-primary); }
.showcase-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--c-line);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  color: var(--c-ink);
}
.showcase-item:hover .showcase-arrow {
  background: var(--c-ink); border-color: var(--c-ink); color: #fff;
  transform: rotate(-45deg);
}
.showcase-arrow svg { width: 18px; height: 18px; }

/* ===== Image hero section (STUDIO inspired) ===== */
.image-hero {
  position: relative;
  height: clamp(420px, 60svh, 640px);
  overflow: hidden;
  background: var(--c-ink);
}
.image-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: imgZoom 8s ease-out forwards;
}
@keyframes imgZoom { to { transform: scale(1.0); } }
.image-hero::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,17,31,.3) 0%, rgba(8,17,31,.7) 100%);
}
.image-hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px 0;
  color: #fff;
}
.image-hero h2 { color: #fff; font-size: clamp(28px, 5vw, 56px); line-height: 1.2; }
.image-hero p { color: rgba(255,255,255,.85); margin-top: 16px; max-width: 640px; }

/* ===== Image marquee (STUDIO inspired) ===== */
.image-marquee {
  padding: 60px 0;
  background: var(--c-bg);
  overflow: hidden;
  position: relative;
}
.image-marquee-track {
  display: flex; gap: 32px;
  animation: marqueeImg 90s linear infinite;
  width: max-content;
}
@keyframes marqueeImg { to { transform: translateX(-50%); } }
.image-marquee-item {
  width: 360px; aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-bg-soft);
  position: relative;
}
.image-marquee-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* ===== Big scroll text (LayerX inspired) ===== */
.big-scroll {
  background: var(--c-ink);
  color: #fff;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
  position: relative;
}
.big-scroll-text {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(48px, 10vw, 140px);
  letter-spacing: -.04em;
  line-height: 1;
  display: flex; gap: clamp(20px, 3vw, 40px); align-items: baseline;
  white-space: nowrap;
  animation: bigScroll 40s linear infinite;
  width: max-content;
}
.big-scroll-text span { color: rgba(255,255,255,.1); }
.big-scroll-text span.fill {
  background: linear-gradient(90deg, #7C5CFF, #4E94D6, #3DD9C0, #FF8A00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes bigScroll { to { transform: translateX(-50%); } }

/* ===== Animated stat block (LayerX inspired) ===== */
.stat-block {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-block .stat-cell {
  padding: 56px 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-right: 1px solid rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}
.stat-block .stat-cell:nth-child(2n) { border-right: 0; }
.stat-block .stat-cell::before {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,92,255,.05), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.stat-block .stat-cell:hover::before { opacity: 1; }
.stat-block .stat-num {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(90deg, #7C5CFF 0%, #4E94D6 50%, #3DD9C0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-block .stat-num .unit { font-size: .35em; -webkit-text-fill-color: rgba(255,255,255,.6); color: rgba(255,255,255,.6); margin-left: 8px; font-weight: 600; }
.stat-block .stat-label { color: rgba(255,255,255,.7); margin-top: 16px; font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); font-weight: 600; }
.stat-block .stat-desc { color: rgba(255,255,255,.45); margin-top: 8px; font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); line-height: 1.7; }

/* ===== Section transition (LayerX inspired) ===== */
.section-transit {
  height: 1px; background: var(--c-line);
  position: relative; overflow: hidden;
}
.section-transit::after {
  content:""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 33%;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  animation: transitMove 4s ease-in-out infinite;
}
@keyframes transitMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ===== News / blog list ===== */
.news-list { display: grid; gap: 4px; margin-top: 32px; }
.news-item {
  display: grid; grid-template-columns: 120px 100px 1fr;
  gap: 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--c-line);
  transition: padding .25s var(--ease);
}
.news-item:hover { padding-left: 8px; }
.news-date { font-family: var(--font-en); font-weight: 600; color: var(--c-muted); font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); }
.news-cat {
  font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--c-bg-soft); color: var(--c-text);
  text-align: center;
}
.news-title { font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); font-weight: 600; color: var(--c-ink); }

/* お知らせ一覧：絞り込みバー（PC基本スタイル。従来モバイル定義のみで素テキスト化していた） */
.news-filter-bar { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.news-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.news-filter-label {
  font-family: var(--font-en); font-size: 12px; font-weight: 800; letter-spacing: .12em;
  color: var(--c-muted); min-width: 84px;
}
.news-filter-btn {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  border: 1px solid var(--c-line); background: #fff; color: var(--c-text);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2;
  transition: all .2s var(--ease);
}
.news-filter-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.news-filter-btn.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.news-meta-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 28px; padding: 16px 0;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  font-size: 13px; color: var(--c-muted);
}
.news-meta-bar strong { color: var(--c-ink); font-weight: 800; }

@media (max-width: 700px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-cat { justify-self: start; }
}

/* =========================================================
   HERO — Brand Thought Space v3  (思想が空間化する)
   四方八方からの侵入 + 永続体験空間
   ========================================================= */

/* ----- Word wrapper: ENTRANCE animation layer ----- */
.word-wrapper {
  position: absolute;
  will-change: transform, opacity;
  z-index: 1;
}
/* 7種類の侵入パターン */
.word-wrapper[data-enter="left"]   { animation: enterLeft 1.6s cubic-bezier(.22,.61,.36,1) var(--ed, 1s) both; }
.word-wrapper[data-enter="right"]  { animation: enterRight 1.6s cubic-bezier(.22,.61,.36,1) var(--ed, 1s) both; }
.word-wrapper[data-enter="top"]    { animation: enterTop 1.6s cubic-bezier(.22,.61,.36,1) var(--ed, 1s) both; }
.word-wrapper[data-enter="bottom"] { animation: enterBottom 1.6s cubic-bezier(.22,.61,.36,1) var(--ed, 1s) both; }
.word-wrapper[data-enter="depth"]  { animation: enterDepth 1.8s cubic-bezier(.22,.61,.36,1) var(--ed, 1s) both; }
.word-wrapper[data-enter="diag"]   { animation: enterDiag 1.8s cubic-bezier(.22,.61,.36,1) var(--ed, 1s) both; }
.word-wrapper[data-enter="rotate"] { animation: enterRotate 1.6s cubic-bezier(.65,.04,.35,1) var(--ed, 1s) both; }
.word-wrapper[data-enter="fade"]   { animation: enterFade 2.4s cubic-bezier(.22,.61,.36,1) var(--ed, 1s) both; }

@keyframes enterLeft {
  from { transform: translateX(-120vw) rotate(-3deg); opacity: 0; }
  60% { opacity: 1; }
  to { transform: translateX(0) rotate(0); opacity: 1; }
}
@keyframes enterRight {
  from { transform: translateX(120vw) rotate(3deg); opacity: 0; }
  60% { opacity: 1; }
  to { transform: translateX(0) rotate(0); opacity: 1; }
}
@keyframes enterTop {
  from { transform: translateY(-90svh) rotate(-2deg); opacity: 0; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}
@keyframes enterBottom {
  from { transform: translateY(90svh) rotate(2deg); opacity: 0; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}
@keyframes enterDepth {
  from { transform: scale(.08); opacity: 0; filter: blur(40px); }
  60% { opacity: 1; }
  to { transform: scale(1); opacity: 1; filter: blur(0); }
}
@keyframes enterDiag {
  from { transform: translate(-90vw, -50svh) rotate(-15deg); opacity: 0; }
  60% { opacity: 1; }
  to { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@keyframes enterRotate {
  from { transform: rotate(-180deg) scale(.2); opacity: 0; }
  60% { opacity: .8; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}
@keyframes enterFade {
  from { transform: scale(1.2); opacity: 0; filter: blur(12px); }
  to { transform: scale(1); opacity: 1; filter: blur(0); }
}

/* ----- Vertical (縦組み) text variant ----- */
.word-text.vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .1em;
  line-height: 1.2;
}

/* ----- Afterimage trail effect (残像) ----- */
.word-text.trail {
  text-shadow:
    2px 0 0 rgba(124,92,255,.4),
    -2px 0 0 rgba(61,217,192,.4);
}

/* ----- Burst flash (一瞬の発光) ----- */
.word-host.burst .word-text {
  animation: burstFlash 0.6s ease-out;
}
@keyframes burstFlash {
  0% { text-shadow: 0 0 0 currentColor; filter: brightness(1); }
  50% { text-shadow: 0 0 40px currentColor, 0 0 80px currentColor; filter: brightness(2); }
  100% { text-shadow: 0 0 0 currentColor; filter: brightness(1); }
}

/* =========================================================
   HERO — Brand Thought Space v2  (永続体験空間)
   60秒以上見続けられる、複数層の常時アニメ
   ========================================================= */

/* ----- Marquee strips (continuous typographic flow) ----- */
.hero-marquee-stack {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.mq-strip {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: 'Manrope', var(--font-en);
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.mq-strip .track {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
  animation-name: mqL;
  animation-duration: var(--mqd, 40s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.mq-strip.rev .track { animation-name: mqR; }
.mq-strip .item {
  display: inline-flex; align-items: center; gap: clamp(24px, 4vw, 64px);
}
.mq-strip .dot {
  display: inline-block;
  width: .35em; height: .35em;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 18px var(--c-accent);
}
.mq-strip .star {
  display: inline-block;
  color: var(--c-teal);
  text-shadow: 0 0 14px rgba(61,217,192,.5);
  animation: spin 8s linear infinite;
  font-weight: 400;
}
.mq-strip em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(90deg, #7C5CFF, #4E94D6, #3DD9C0, #FF8A00);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradFlow 6s ease-in-out infinite;
}
.mq-strip .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.4);
}
.mq-strip .jp {
  font-family: var(--font-jp);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: none;
}

@keyframes mqL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Strip 1 — very top, slow, JP italic mix */
.mq-strip.s-top {
  top: 3%;
  color: rgba(255,255,255,.55);
  font-size: clamp(18px, 2.4vw, 32px);
  --mqd: 55s;
}
/* Strip 2 — upper, fast, EN bold */
.mq-strip.s-up {
  top: 12%;
  color: rgba(255,255,255,.35);
  font-size: clamp(14px, 1.8vw, 22px);
  --mqd: 28s;
}
/* Strip 3 — lower, accent mix */
.mq-strip.s-down {
  bottom: 12%;
  color: rgba(255,255,255,.45);
  font-size: clamp(16px, 2.2vw, 28px);
  --mqd: 38s;
}
/* Strip 4 — bottom edge, gigantic outline */
.mq-strip.s-bot {
  bottom: 1%;
  color: rgba(255,255,255,.05);
  font-size: clamp(40px, 6vw, 100px);
  -webkit-text-stroke: 1px rgba(255,255,255,.3);
  --mqd: 60s;
}
.mq-strip.s-bot .track > * { color: transparent; }
/* Strip 5 — diagonal at edge */
.mq-strip.s-diag {
  top: 92%;
  transform: rotate(-3deg);
  color: rgba(124,92,255,.35);
  font-size: clamp(12px, 1.5vw, 20px);
  --mqd: 48s;
  width: 130%;
  left: -15%;
}

/* ----- Light sweep (cinematic horizontal light pass) ----- */
.light-sweep {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.light-sweep::before {
  content: "";
  position: absolute;
  top: -50%;
  width: 25%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.06) 50%, transparent);
  filter: blur(40px);
  animation: sweep 14s ease-in-out infinite;
  transform: rotate(-12deg);
}
@keyframes sweep {
  0%, 100% { left: -30%; opacity: 0; }
  20% { opacity: .9; }
  50% { left: 110%; opacity: .9; }
  60% { opacity: 0; }
}

/* ----- Random flicker word (front layer accent) ----- */
.flicker {
  animation: flicker var(--fd, 3s) steps(1) infinite;
  animation-delay: var(--fdelay, 0s);
}
@keyframes flicker {
  0%, 92%, 100% { opacity: var(--op, .5); }
  93% { opacity: 1; filter: drop-shadow(0 0 12px currentColor); }
  94% { opacity: var(--op, .5); }
  95% { opacity: 1; filter: drop-shadow(0 0 18px currentColor); }
  96% { opacity: var(--op, .5); }
}

/* ----- Letter rain (rare drops) ----- */
.letter-rain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.rain-letter {
  position: absolute;
  top: -10%;
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 100px);
  color: rgba(255,255,255,.04);
  -webkit-text-stroke: 1px rgba(124,92,255,.18);
  animation: letterFall var(--rd, 14s) linear infinite;
  animation-delay: var(--rdelay, 0s);
  will-change: transform;
}
@keyframes letterFall {
  from { transform: translateY(-20svh); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(120svh); opacity: 0; }
}

/* ----- Sound/Pulse rings (subtle ambient pulses) ----- */
.pulse-ring {
  position: absolute;
  width: 200px; height: 200px;
  border: 1px solid rgba(124,92,255,.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: pulseRing var(--prd, 8s) ease-out infinite;
  animation-delay: var(--prdelay, 0s);
}
@keyframes pulseRing {
  0% { transform: scale(.2); opacity: .6; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* ----- Hero ambient gradient rotation ----- */
.hero {
  background:
    radial-gradient(1200px 600px at var(--bgX, 80%) var(--bgY, 20%), rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 500px at var(--bgX2, 10%) var(--bgY2, 70%), rgba(78,148,214,.20), transparent 60%),
    radial-gradient(700px 400px at 50% 100%, rgba(255,138,0,.10), transparent 60%),
    linear-gradient(180deg, #050B16 0%, #0A0F1C 60%, #060810 100%);
  transition: background-position 1.5s linear;
}

/* ----- Mobile adjustments for new layers ----- */
@media (max-width: 900px) {
  .mq-strip.s-up, .mq-strip.s-diag { display: none; }
  .mq-strip.s-bot { font-size: clamp(50px, 12vw, 90px); }
  .rain-letter { font-size: clamp(28px, 8vw, 60px); }
}
@media (max-width: 700px) {
  .mq-strip { font-size: clamp(20px, 5.5vw, 32px); }
  .mq-strip.s-bot { font-size: clamp(40px, 14vw, 70px); }
  .mq-strip .track { gap: 28px; padding-right: 28px; }
  .light-sweep { display: none; }
  .pulse-ring { display: none; }
  .letter-rain .rain-letter:nth-child(n+3) { display: none; }
}

/* =========================================================
   HERO — Brand Thought Space  (思想が漂う空間)
   Lirem独自の思想空間：巨大ワード群が多層深度で漂う
   ========================================================= */

/* ----- Base: dark cinematic stage (strictly 100svh) ----- */
.hero {
  height: 100svh;
  min-height: 640px; /* tablet portrait safety */
  max-height: 100svh;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(900px 500px at 10% 70%, rgba(78,148,214,.18), transparent 60%),
    radial-gradient(700px 400px at 50% 100%, rgba(255,138,0,.10), transparent 60%),
    linear-gradient(180deg, #050B16 0%, #0A0F1C 60%, #060810 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soften the bg-blobs for dark mode */
.hero .hero-bg { z-index: 0; }
.hero .bg-blob-1 { opacity: .55; mix-blend-mode: screen; filter: blur(90px); }
.hero .bg-blob-2 { opacity: .50; mix-blend-mode: screen; filter: blur(100px); }
.hero .bg-blob-3 { opacity: .35; mix-blend-mode: screen; filter: blur(85px); }

/* ----- Word space: the thought field ----- */
.word-space {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  perspective: 1000px;
}

.word-host {
  position: absolute;
  --mx: 0px; --my: 0px;
  --sz: 1;
  --sf: 1;
  transform: translate3d(var(--mx), var(--my), 0) scale(var(--sz));
  transition: transform 0.7s cubic-bezier(.22,.61,.36,1), opacity 0.7s var(--ease);
  will-change: transform;
  opacity: var(--sf);
}

.word-anim {
  display: inline-block;
  animation-name: floatA;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
  will-change: transform;
}
.word-anim.anim-A { animation-name: floatA; }
.word-anim.anim-B { animation-name: floatB; }
.word-anim.anim-C { animation-name: floatC; }
.word-anim.anim-D { animation-name: floatD; }
.word-anim.anim-spin { animation-name: spinSlow; animation-direction: normal; animation-timing-function: linear; }

@keyframes floatA {
  from { transform: translate(0, 0) rotate(-1deg); }
  to { transform: translate(40px, -28px) rotate(1deg); }
}
@keyframes floatB {
  from { transform: translate(0, 0) rotate(1deg); }
  to { transform: translate(-36px, 32px) rotate(-1deg); }
}
@keyframes floatC {
  from { transform: translate(0, 0) rotate(-0.5deg); }
  to { transform: translate(52px, 38px) rotate(0.5deg); }
}
@keyframes floatD {
  from { transform: translate(0, 0) rotate(0.5deg); }
  to { transform: translate(-46px, -34px) rotate(-1deg); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.word-text {
  display: block;
  font-family: 'Manrope', 'Inter', var(--font-en);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .85;
  color: rgba(255,255,255, var(--op, .5));
  white-space: nowrap;
  user-select: none;
  filter: blur(var(--blur, 0));
  text-transform: uppercase;
}
.word-text.jp {
  font-family: var(--font-jp);
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.05;
  text-transform: none;
}
.word-text.italic { font-style: italic; font-weight: 300; text-transform: none; letter-spacing: -.01em; }

/* Color variants */
.word-host.c-accent .word-text { color: rgba(255,138,0, var(--op, .9)); text-shadow: 0 0 28px rgba(255,138,0,.5); }
.word-host.c-violet .word-text { color: rgba(124,92,255, var(--op, .9)); text-shadow: 0 0 28px rgba(124,92,255,.5); }
.word-host.c-teal .word-text { color: rgba(61,217,192, var(--op, .9)); text-shadow: 0 0 28px rgba(61,217,192,.45); }
.word-host.c-grad .word-text {
  background: linear-gradient(90deg, #7C5CFF, #4E94D6, #3DD9C0, #FF8A00);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.word-host.outline .word-text {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255,255,255, calc(var(--op, .15) * 3));
}

/* ----- Glow particles (small pulsing dots) ----- */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.glow-dot {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gc, #fff);
  box-shadow: 0 0 14px var(--gc, #fff);
  opacity: 0;
  animation: glowPulse var(--gd, 6s) ease-in-out infinite;
  animation-delay: var(--gdelay, 0s);
}
@keyframes glowPulse {
  0%, 100% { opacity: 0; transform: scale(.5); }
  40% { opacity: .9; transform: scale(1); }
  60% { opacity: .9; transform: scale(1); }
}

/* ----- Hero center: the focal message (safe zone) ----- */
.hero-center {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
}
/* Safe-zone backdrop: soft dark halo behind text for legibility */
.hero-center::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130%; height: 140%;
  background:
    radial-gradient(ellipse, rgba(5,11,22,.65) 0%, rgba(5,11,22,.35) 40%, transparent 75%);
  z-index: -1;
  pointer-events: none;
  filter: blur(20px);
}
.hero-center .eyebrow {
  color: rgba(255,255,255,.6);
  font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px);
  letter-spacing: .4em;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.hero-center .eyebrow::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.6)); width: 48px; height: 1px; }
.hero-headline {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.3;
  letter-spacing: .03em;
  color: #fff;
  margin: 0 0 24px;
}
.hero-headline .line { display: block; overflow: hidden; padding: 0 .04em; }
.hero-headline .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.4s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-headline .line:nth-child(2) > span { animation-delay: .15s; }
.hero-headline .line:nth-child(3) > span { animation-delay: .3s; }
.hero-headline em {
  font-style: normal;
  background: linear-gradient(90deg, #7C5CFF, #4E94D6, #3DD9C0, #FF8A00);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradFlow 8s ease-in-out infinite;
}
@keyframes gradFlow { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }

.hero-sub-en {
  font-family: 'Manrope', var(--font-en);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .25em;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
  text-transform: uppercase;
  opacity: 0;
  animation: maskFade 1.2s 1.6s var(--ease) forwards;
}
.hero-sub-jp {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: clamp(13px, 1.3vw, 15px);
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: maskFade 1.4s 1.9s var(--ease) forwards;
}

.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: maskFade 1.2s 2.1s var(--ease) forwards;
}
.hero-center .hero-cta .btn-primary {
  background: linear-gradient(90deg, #7C5CFF, #4E94D6, #3DD9C0);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 32px rgba(78,148,214,.35);
}
.hero-center .hero-cta .btn-ghost { color: rgba(255,255,255,.85); }
.hero-center .hero-cta .btn-ghost::after { color: rgba(255,255,255,.5); }
.hero-center .hero-cta .btn-ghost:hover { color: var(--c-accent); }

/* ----- Cinematic corner markers (dark theme) ----- */
.hero-marker { color: rgba(255,255,255,.55); }
.hero-marker .dim { color: rgba(255,255,255,.2); }

/* ----- Subtle film grain on dark ----- */
.hero-grain {
  opacity: .25;
  mix-blend-mode: screen;
}

/* ----- Vignette for dark theme ----- */
.hero-vignette {
  background:
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 50%, rgba(0,0,0,.6) 100%);
}

/* ----- Horizontal mark lines (white) ----- */
.hero-markline { background: linear-gradient(90deg, transparent, rgba(255,255,255,.15) 18%, rgba(255,255,255,.15) 82%, transparent); }

/* ----- Scroll indicator (white) ----- */
.hero-scroll { color: rgba(255,255,255,.5); }
.hero-scroll::after { background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent); }

/* ----- Transition fade to next (light) section ----- */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--c-bg) 100%);
  z-index: 7;
  pointer-events: none;
}

/* ----- Header adaptation for dark hero ----- */
.site-header:not(.is-scrolled) {
  background: rgba(5,11,22,.4);
  backdrop-filter: blur(20px) saturate(180%);
}
.site-header:not(.is-scrolled) .nav a,
.site-header:not(.is-scrolled) .menu-toggle span,
.site-header:not(.is-scrolled) .nav-cta .btn-outline { color: #fff; }
.site-header:not(.is-scrolled) .nav-cta .btn-outline { border-color: rgba(255,255,255,.4); }
.site-header:not(.is-scrolled) .nav-cta .btn-outline:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.site-header:not(.is-scrolled) .menu-toggle span { background: #fff; }
.site-header:not(.is-scrolled) .logo img { filter: drop-shadow(0 2px 10px rgba(255,255,255,.45)); }

/* ===== Mobile (≤900px) ===== */
@media (max-width: 900px) {
  .hero-center { padding: 130px 20px 100px; }
  .word-host.hide-md { display: none; }
}

/* ===== Mobile (≤700px): radically simplify ===== */
@media (max-width: 700px) {
  .hero-center { padding: 110px 18px 80px; }
  .hero-headline { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.45; }
  .word-host { transition: none !important; }
  .word-host.hide-sm { display: none; }
  .word-text { filter: blur(calc(var(--blur, 0) * 0.5)); }
  .word-anim { animation-duration: 30s !important; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .word-anim, .glow-dot, .hero-headline em { animation: none !important; }
  .word-host { transition: none !important; }
}

/* =========================================================
   HERO — Human-at-the-Center  (走る人物 × 静謐)
   人の熱量 × 洗練された空気感
   ========================================================= */

/* ----- Hero: re-architecture for figure layout ----- */
.hero {
  min-height: 100svh;
  padding: clamp(160px, 18vw, 200px) 0 clamp(100px, 12vw, 140px);
}
.hero-inner {
  position: relative;
  z-index: 5;
}
.hero-copy {
  max-width: 560px;
  position: relative;
  z-index: 5;
}

/* ----- The Figure: 走る人物 as the centerpiece ----- */
.hero-figure-wrap {
  position: absolute;
  top: 0; right: 0;
  width: 58%; height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  /* Subtle clip-mask reveal on load */
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}
.hero-figure-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  animation: figureEnter 2.6s cubic-bezier(.65,.04,.35,1) 1.4s forwards;
  will-change: opacity, transform;
}
.hero-figure-frame::after {
  /* Mask reveal sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, transparent 8%, transparent 92%, var(--c-bg) 100%),
              linear-gradient(90deg, var(--c-bg) 0%, transparent 35%);
  pointer-events: none;
  z-index: 2;
}
@keyframes figureEnter {
  from { opacity: 0; transform: scale(1.04) translateX(20px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

.hero-figure {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Duotone treatment: refined grayscale + brand tint */
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
  transform: scale(1.06);
  animation: figureBreathe 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes figureBreathe {
  from { transform: scale(1.06) translateX(0); }
  to { transform: scale(1.14) translateX(-12px); }
}

/* Duotone color overlay (multiplies brand colors onto grayscale) */
.hero-figure-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(78,148,214,.30) 0%, rgba(124,92,255,.25) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-figure-tint-add {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 70% at 40% 60%, rgba(255,138,0,.10) 0%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ----- Wind streaks (air-flow around the figure) ----- */
.wind-streaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.wind-streak {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,245,250,.55), transparent);
  width: clamp(140px, 18vw, 280px);
  opacity: 0;
  animation: streakFly var(--dur, 9s) cubic-bezier(.65,.04,.35,1) infinite;
  animation-delay: var(--delay, 0s);
}
.wind-streak.dark {
  background: linear-gradient(90deg, transparent, rgba(10,22,40,.18), transparent);
}
.wind-streak.s1 { top: 18%; left: 35%; --dur: 8s; --delay: 0s; }
.wind-streak.s2 { top: 32%; left: 28%; --dur: 11s; --delay: -3s; }
.wind-streak.s3 { top: 48%; left: 40%; --dur: 9s; --delay: -1.5s; }
.wind-streak.s4 { top: 62%; left: 30%; --dur: 12s; --delay: -5s; }
.wind-streak.s5 { top: 76%; left: 38%; --dur: 10s; --delay: -2.5s; }
.wind-streak.s6 { top: 25%; left: 42%; --dur: 13s; --delay: -7s; width: 180px; }
.wind-streak.s7 { top: 70%; left: 45%; --dur: 9s; --delay: -4s; width: 160px; }
@keyframes streakFly {
  0% { transform: translateX(-200px); opacity: 0; }
  20% { opacity: .9; }
  80% { opacity: .9; }
  100% { transform: translateX(280px); opacity: 0; }
}

/* ----- Subtle horizon glow behind figure ----- */
.hero-figure-wrap::before {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 0; right: 0;
  height: 35%;
  background:
    radial-gradient(ellipse 60% 100% at 60% 100%, rgba(124,92,255,.20) 0%, transparent 70%);
  z-index: 0;
  filter: blur(40px);
  pointer-events: none;
}

/* ----- Figure caption (subtle filmic label) ----- */
.figure-caption {
  position: absolute;
  bottom: clamp(80px, 10vw, 120px);
  right: 24px;
  z-index: 5;
  font-family: var(--font-en);
  font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px);
  letter-spacing: .3em;
  color: var(--c-muted);
  text-align: right;
  opacity: 0;
  animation: markerFade 1.4s 3s var(--ease) forwards;
  line-height: 1.8;
}
.figure-caption .line {
  display: block;
  position: relative;
  padding-right: 24px;
}
.figure-caption .line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 1px;
  background: var(--c-muted);
}
.figure-caption strong {
  color: var(--c-ink);
  font-weight: 600;
  letter-spacing: .15em;
}

/* Disable existing quiet mark when figure is present */
.hero-quiet-mark { display: none; }

/* ----- Mobile: figure becomes background (full-bleed) ----- */
@media (max-width: 900px) {
  .hero-figure-wrap {
    width: 100%;
    height: 100%;
    opacity: .35;
  }
  .hero-figure-frame::after {
    background: linear-gradient(180deg, var(--c-bg) 0%, transparent 20%, transparent 60%, var(--c-bg) 100%),
                linear-gradient(90deg, var(--c-bg) 0%, transparent 100%);
  }
  .hero-figure-tint { background: linear-gradient(135deg, rgba(245,245,250,.4), rgba(245,245,250,.6)); mix-blend-mode: normal; }
  .hero-copy { max-width: 100%; }
  .figure-caption { display: none; }
  .wind-streak { display: none; }
}
@media (max-width: 700px) {
  .hero-figure-wrap { opacity: .25; }
  .hero-figure { animation-duration: 36s; }
}

/* =========================================================
   HERO — Cinematic Refinement (Quiet & Sophisticated)
   ========================================================= */

/* ----- Hero base: more breathing room ----- */
.hero {
  min-height: 100svh;
  padding: clamp(160px, 20vw, 220px) 0 clamp(100px, 12vw, 140px);
}

/* ----- Film grain (very subtle noise overlay) ----- */
.hero-grain {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ----- Soft vignette edges (subtle frame) ----- */
.hero-vignette {
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 60%, rgba(245, 245, 250, .35) 100%);
}

/* ----- Horizontal mark line (cinematic accent) ----- */
.hero-markline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(10,22,40,.18) 18%, rgba(10,22,40,.18) 82%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  animation: lineExpand 2.4s 1.6s cubic-bezier(.65,.04,.35,1) forwards;
}
.hero-markline.top { top: 22%; }
.hero-markline.bottom { bottom: 18%; }
.hero-markline.bottom { animation-delay: 1.9s; }
@keyframes lineExpand { to { transform: scaleX(1); } }

/* ----- Corner markers (subtle navigation tags) ----- */
.hero-marker {
  position: absolute;
  font-family: var(--font-en);
  font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px);
  font-weight: 500;
  letter-spacing: .25em;
  color: var(--c-muted);
  z-index: 5;
  opacity: 0;
  animation: markerFade 1.4s 2.2s var(--ease) forwards;
}
.hero-marker.tl { top: clamp(100px, 13vw, 140px); left: 24px; }
.hero-marker.tr { top: clamp(100px, 13vw, 140px); right: 24px; text-align: right; }
.hero-marker.bl { bottom: 24px; left: 24px; }
.hero-marker.br { bottom: 24px; right: 24px; text-align: right; }
.hero-marker .dim { color: rgba(10,22,40,.25); margin: 0 6px; }
@keyframes markerFade { to { opacity: 1; } }

@media (max-width: 700px) {
  .hero-marker { font-size: clamp(8.7px, calc(8.42px + 0.075vw), 9.5px); letter-spacing: .2em; }
  .hero-marker.tl, .hero-marker.tr { display: none; }
  .hero-marker.bl, .hero-marker.br { bottom: 16px; }
}

/* ----- Character-by-character reveal (refined cinematic) ----- */
.cine-line {
  display: block;
  overflow: hidden;
}
.cine-line .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.cine-line .char {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  animation: cineRise 1.4s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes cineRise {
  to { transform: translateY(0); opacity: 1; }
}

/* ----- Soft mask reveal (alternative for paragraph) ----- */
.mask-reveal {
  position: relative;
  overflow: hidden;
  display: block;
  opacity: 0;
  animation: maskFade 1.6s 1.6s var(--ease) forwards;
}
@keyframes maskFade { to { opacity: 1; } }

/* ----- Refined scroll indicator ----- */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px);
  font-weight: 500;
  letter-spacing: .35em;
  color: var(--c-muted);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  z-index: 5;
  opacity: 0;
  animation: markerFade 1.4s 2.6s var(--ease) forwards;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--c-ink), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); opacity: 0; }
  20% { transform: scaleY(0); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ----- Mega quiet brand word (very subtle background) ----- */
.hero-quiet-mark {
  position: absolute;
  bottom: clamp(80px, 12vw, 140px);
  right: clamp(-20px, -2vw, -40px);
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 18vw, 220px);
  letter-spacing: -.04em;
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10,22,40,.06);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: quietMark 2.4s 2s var(--ease-elegant) forwards;
}
@keyframes quietMark { to { opacity: 1; transform: translateY(0); } }

/* ----- Refine the hero blob gradient (slower, more elegant) ----- */
.bg-blob-1 { animation-duration: 36s; opacity: .42; filter: blur(100px); }
.bg-blob-2 { animation-duration: 44s; opacity: .38; filter: blur(110px); }
.bg-blob-3 { animation-duration: 40s; opacity: .25; filter: blur(95px); }

/* ----- Section-break "ribbon" (cinematic transition into next section) ----- */
.hero + .tilt-marquee,
.hero + .divider-band {
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--c-bg-soft) 100%);
  pointer-events: none;
  z-index: 2;
  opacity: .6;
}

/* Mobile: cleaner FV */
@media (max-width: 700px) {
  .hero { padding: 130px 0 80px; }
  .hero-grain { opacity: .25; }
  .hero-quiet-mark { display: none; }
  .hero-markline { display: none; }
}

/* =========================================================
   (Removed: tilted bands & loud decorations for hero)
   The decorations below remain for AFTER-HERO sections only
   ========================================================= */

/* ----- Hero giant rotating word ----- */
.hero-mega-word {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Manrope', var(--font-en);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(200px, 32vw, 480px);
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(124,92,255,.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  animation: megaRotate 30s linear infinite;
}
@keyframes megaRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Diagonal swipe bands */
.hero-swipe {
  position: absolute;
  width: 220%; height: 80px;
  left: -60%;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,.06), rgba(78,148,214,.10), rgba(61,217,192,.06), transparent);
  animation: swipeMove 14s linear infinite;
}
.hero-swipe.s1 { top: 22%; animation-delay: 0s; }
.hero-swipe.s2 { top: 55%; animation-delay: -5s; background: linear-gradient(90deg, transparent, rgba(255,138,0,.06), rgba(230,57,70,.08), transparent); }
.hero-swipe.s3 { top: 78%; animation-delay: -9s; }
@keyframes swipeMove {
  0% { transform: rotate(-15deg) translateX(-30%); }
  100% { transform: rotate(-15deg) translateX(30%); }
}

/* Floating Tags (innovation keywords) */
.hero-tags {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.float-tag {
  position: absolute;
  font-family: var(--font-en);
  font-size: clamp(12px, calc(11.65px + 0.094vw), 13px);
  font-weight: 700;
  letter-spacing: .12em;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(124,92,255,.18);
  color: var(--c-ink);
  box-shadow: 0 8px 24px rgba(10,22,40,.06);
  will-change: transform;
}
.float-tag.t1 { top: 18%; left: 8%; animation: floatTag1 16s ease-in-out infinite; color: var(--c-violet); border-color: rgba(124,92,255,.4); }
.float-tag.t2 { top: 70%; left: 12%; animation: floatTag2 18s ease-in-out infinite; color: var(--c-primary); border-color: rgba(78,148,214,.4); }
.float-tag.t3 { top: 28%; right: 8%; animation: floatTag3 20s ease-in-out infinite; color: var(--c-accent); border-color: rgba(255,138,0,.4); }
.float-tag.t4 { top: 62%; right: 6%; animation: floatTag4 22s ease-in-out infinite; color: var(--c-teal); border-color: rgba(61,217,192,.5); }
.float-tag.t5 { top: 12%; left: 45%; animation: floatTag5 17s ease-in-out infinite; background: rgba(10,22,40,.92); color: #fff; border-color: rgba(255,255,255,.2); }
.float-tag.t6 { top: 85%; left: 55%; animation: floatTag6 21s ease-in-out infinite; color: var(--c-accent-2); border-color: rgba(230,57,70,.4); }
.float-tag.t7 { top: 42%; left: 4%; animation: floatTag1 19s ease-in-out infinite reverse; color: var(--c-primary); border-color: rgba(78,148,214,.4); }
.float-tag.t8 { top: 48%; right: 4%; animation: floatTag3 23s ease-in-out infinite reverse; color: var(--c-violet); border-color: rgba(124,92,255,.4); }

@keyframes floatTag1 { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(30px,-25px) rotate(2deg); } }
@keyframes floatTag2 { 0%,100% { transform: translate(0,0) rotate(3deg); } 50% { transform: translate(-25px,-30px) rotate(-3deg); } }
@keyframes floatTag3 { 0%,100% { transform: translate(0,0) rotate(2deg); } 50% { transform: translate(-30px,20px) rotate(-4deg); } }
@keyframes floatTag4 { 0%,100% { transform: translate(0,0) rotate(-3deg); } 50% { transform: translate(25px,30px) rotate(4deg); } }
@keyframes floatTag5 { 0%,100% { transform: translate(0,0) rotate(-2deg); } 50% { transform: translate(15px,25px) rotate(3deg); } }
@keyframes floatTag6 { 0%,100% { transform: translate(0,0) rotate(4deg); } 50% { transform: translate(-20px,-25px) rotate(-3deg); } }

/* Geometric shapes */
.hero-shapes {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.shape {
  position: absolute;
  will-change: transform;
}
.shape.circle { border-radius: 50%; }
.shape.triangle {
  width: 0; height: 0;
}

.shape.sh1 { top: 8%; left: 22%; width: 16px; height: 16px; background: var(--c-accent); border-radius: 50%; box-shadow: 0 0 30px var(--c-accent); animation: shapeFloat 8s ease-in-out infinite; }
.shape.sh2 { top: 18%; right: 18%; width: 24px; height: 24px; background: var(--c-violet); border-radius: 4px; transform: rotate(45deg); animation: shapeSpin 12s linear infinite; }
.shape.sh3 { bottom: 18%; left: 30%; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 24px solid var(--c-teal); animation: shapeFloat2 10s ease-in-out infinite; }
.shape.sh4 { bottom: 22%; right: 25%; width: 32px; height: 32px; border: 3px solid var(--c-primary); border-radius: 50%; animation: shapePulse 4s ease-in-out infinite; }
.shape.sh5 { top: 40%; left: 18%; width: 8px; height: 8px; background: var(--c-accent-2); border-radius: 50%; box-shadow: 0 0 16px var(--c-accent-2); animation: shapeFloat 6s ease-in-out infinite; animation-delay: -2s; }
.shape.sh6 { top: 55%; right: 12%; width: 20px; height: 20px; border: 2px solid var(--c-accent); transform: rotate(45deg); animation: shapeSpin 15s linear infinite reverse; }
.shape.sh7 { bottom: 35%; left: 60%; width: 12px; height: 12px; background: var(--c-teal); border-radius: 50%; box-shadow: 0 0 20px var(--c-teal); animation: shapeFloat2 9s ease-in-out infinite; }
.shape.sh8 { top: 70%; right: 35%; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 18px solid var(--c-violet); animation: shapeSpin 16s linear infinite; }

@keyframes shapeFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
@keyframes shapeFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,40px); } }
@keyframes shapeSpin { to { transform: rotate(405deg); } }
@keyframes shapePulse {
  0%,100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* Starbursts */
.starburst-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--c-accent);
  animation: spin 8s linear infinite;
  text-shadow: 0 0 20px rgba(255,138,0,.5);
}
.starburst-deco.sb1 { top: 14%; left: 38%; font-size: clamp(25.6px, calc(23.35px + 0.601vw), 32px); animation-duration: 6s; }
.starburst-deco.sb2 { top: 26%; right: 30%; font-size: clamp(19.2px, calc(17.51px + 0.451vw), 24px); color: var(--c-violet); text-shadow: 0 0 16px rgba(124,92,255,.5); animation-duration: 10s; animation-direction: reverse; }
.starburst-deco.sb3 { bottom: 25%; left: 52%; font-size: clamp(22.4px, calc(20.43px + 0.526vw), 28px); color: var(--c-teal); text-shadow: 0 0 16px rgba(61,217,192,.5); animation-duration: 7s; }
.starburst-deco.sb4 { top: 58%; left: 32%; font-size: clamp(17.2px, calc(16.21px + 0.263vw), 20px); animation-duration: 9s; animation-direction: reverse; }
.starburst-deco.sb5 { bottom: 30%; right: 42%; font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px); color: var(--c-accent-2); text-shadow: 0 0 16px rgba(230,57,70,.5); animation-duration: 8s; }

/* Pulsing radar circles in corners */
.radar {
  position: absolute;
  width: 120px; height: 120px;
  border: 2px solid var(--c-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.radar::before, .radar::after {
  content:""; position: absolute; inset: -2px;
  border: 2px solid var(--c-primary);
  border-radius: 50%;
}
.radar.r1 { top: -60px; right: -60px; animation: radarPulse 5s ease-out infinite; }
.radar.r2 { bottom: -60px; left: -60px; border-color: var(--c-accent); animation: radarPulse 5s ease-out infinite 2s; }
.radar.r2::before, .radar.r2::after { border-color: var(--c-accent); }
@keyframes radarPulse {
  0% { transform: scale(.3); opacity: .9; }
  100% { transform: scale(3); opacity: 0; }
}

/* Color flash overlay */
.hero-flash {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, var(--c-violet), transparent 60%);
  animation: heroFlash 8s ease-in-out infinite;
}
@keyframes heroFlash {
  0%, 100% { opacity: 0; }
  50% { opacity: .3; }
}

/* Animated lines drawing */
.hero-lines {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-lines svg { width: 100%; height: 100%; }
.hero-lines path {
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 8s ease-in-out infinite;
  opacity: .25;
}
.hero-lines path:nth-child(2) { stroke: var(--c-accent); animation-delay: -3s; }
.hero-lines path:nth-child(3) { stroke: var(--c-teal); animation-delay: -5s; }
@keyframes drawLine {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  40% { opacity: .35; }
  60% { stroke-dashoffset: 0; opacity: .25; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}

/* Ensure hero content stays on top */
.hero-copy { position: relative; z-index: 5; }
.hero-scroll { z-index: 5; }

/* Mobile adjustments */
@media (max-width: 700px) {
  .hero-mega-word { font-size: clamp(160px, 50vw, 280px); -webkit-text-stroke-width: 1.5px; }
  .float-tag { font-size: clamp(9.7px, calc(9.42px + 0.075vw), 10.5px); padding: 7px 12px; }
  .float-tag.t5, .float-tag.t6, .float-tag.t7, .float-tag.t8 { display: none; }
  .shape.sh3, .shape.sh5, .shape.sh6, .shape.sh7, .shape.sh8 { display: none; }
  .starburst-deco.sb3, .starburst-deco.sb4, .starburst-deco.sb5 { display: none; }
  .radar { width: 80px; height: 80px; }
  .hero-swipe { display: none; }
  .hero-lines { display: none; }
}

/* =========================================================
   NEWPEACE-STYLE HIGH-IMPACT ANIMATIONS
   ========================================================= */

/* ===== TILTED MARQUEE BAND (multi-layer) ===== */
.tilt-marquee {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: var(--c-ink);
  isolation: isolate;
}
.tilt-marquee::before {
  content: ""; position: absolute; inset: -20px 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(124,92,255,.25), transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(255,138,0,.20), transparent 40%);
  z-index: 0;
}

.tilt-band {
  position: relative;
  white-space: nowrap;
  display: flex;
  font-family: 'Manrope', var(--font-en);
  font-weight: 900;
  font-size: clamp(48px, 10vw, 140px);
  letter-spacing: -.03em;
  line-height: 1;
  width: max-content;
  z-index: 2;
}
.tilt-band > span {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
}
.tilt-band .dot {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 24px var(--c-accent);
}
.tilt-band em {
  font-style: italic;
  background: linear-gradient(90deg, #7C5CFF, #4E94D6, #3DD9C0);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 800;
}
.tilt-band .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.4);
}

.tilt-row-1 {
  transform: rotate(-3deg) translateY(-20px);
  color: #fff;
  animation: tiltScrollL 28s linear infinite;
}
.tilt-row-2 {
  transform: rotate(2deg) translateY(20px);
  margin-top: -20px;
  color: rgba(255,255,255,.15);
  animation: tiltScrollR 38s linear infinite;
}
.tilt-row-3 {
  transform: rotate(-1.5deg) translateY(40px);
  margin-top: -10px;
  font-size: clamp(36px, 7vw, 100px);
  animation: tiltScrollL 22s linear infinite;
}
@keyframes tiltScrollL { to { transform: rotate(-3deg) translateY(-20px) translateX(-50%); } }
@keyframes tiltScrollR { from { transform: rotate(2deg) translateY(20px) translateX(-50%); } to { transform: rotate(2deg) translateY(20px) translateX(0); } }

/* ===== BG WATERMARK (giant italic text behind sections) ===== */
.bg-watermark {
  position: absolute;
  font-family: 'Manrope', var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(120px, 22vw, 320px);
  letter-spacing: -.04em;
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(78,148,214,.1);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.bg-watermark.tr { top: -40px; right: -80px; }
.bg-watermark.bl { bottom: -40px; left: -80px; }

/* ===== GLITCH TEXT ===== */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  -webkit-background-clip: text; background-clip: text;
}
.glitch::before {
  color: #FF8A00;
  -webkit-text-fill-color: #FF8A00;
  animation: glitchTop 2.8s steps(2, end) infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.glitch::after {
  color: #3DD9C0;
  -webkit-text-fill-color: #3DD9C0;
  animation: glitchBottom 2.4s steps(2, end) infinite reverse;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}
@keyframes glitchTop {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
  93% { transform: translate(-3px, 0); opacity: 1; }
  94% { transform: translate(3px, 0); opacity: 1; }
  95% { transform: translate(-2px, 0); opacity: 1; }
  96% { transform: translate(0, 0); opacity: 0; }
}
@keyframes glitchBottom {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
  93% { transform: translate(3px, 0); opacity: 1; }
  94% { transform: translate(-3px, 0); opacity: 1; }
  95% { transform: translate(2px, 0); opacity: 1; }
  96% { transform: translate(0, 0); opacity: 0; }
}

/* ===== MAGNETIC HERO MOUSE GRADIENT ===== */
.hero-bg {
  --mx: 50%; --my: 50%;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255,138,0,.15), transparent 50%);
  transition: background 0.2s linear;
  pointer-events: none;
}

/* ===== SECTION COLOR-BLOCK WIPE ===== */
.wipe-in {
  position: relative;
  overflow: hidden;
}
.wipe-in::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-brand);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1.2s cubic-bezier(.85,0,.15,1);
  z-index: 50;
  pointer-events: none;
}
.wipe-in.is-visible::after {
  transform: scaleX(0);
}

/* ===== KINETIC HUGE TITLE ===== */
.huge-title {
  font-family: 'Manrope', var(--font-en);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 200px);
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.huge-title em {
  font-style: italic;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.huge-title .outline-text {
  -webkit-text-stroke: 2px var(--c-ink);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== SECTION DIVIDER (animated) ===== */
.divider-band {
  background: var(--c-ink);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.divider-band::before,
.divider-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-violet), var(--c-primary), var(--c-teal), var(--c-accent), var(--c-accent-2));
  background-size: 200% 100%;
  animation: gradMove 6s linear infinite;
}
.divider-band::before { top: 0; }
.divider-band::after { bottom: 0; }
@keyframes gradMove { to { background-position: 200% 0; } }

.divider-text {
  display: flex; gap: 64px;
  animation: divScroll 25s linear infinite;
  white-space: nowrap;
  width: max-content;
  font-family: 'Manrope', var(--font-en);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: .04em;
}
.divider-text span { display: inline-flex; align-items: center; gap: 64px; }
.divider-text em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, #FF8A00, #3DD9C0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider-text .star {
  display: inline-block; color: var(--c-accent); font-size: .6em;
  animation: spin 4s linear infinite;
}
@keyframes divScroll { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== MAGNETIC BUTTON ===== */
.magnetic {
  position: relative;
  transition: transform .3s var(--ease);
}
.magnetic::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  filter: blur(20px); opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: -1;
}
.magnetic:hover::after { opacity: .6; }

/* ===== SPARKLE EFFECT (on hover) ===== */
.sparkle-card {
  position: relative;
  overflow: hidden;
}
.sparkle-card::before {
  content: ""; position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -100%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transition: left .8s var(--ease-elegant);
  pointer-events: none;
  z-index: 1;
}
.sparkle-card:hover::before { left: 100%; }

/* ===== FLOATING ICONS BG ===== */
.float-icons {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.float-icon {
  position: absolute;
  font-family: 'Manrope', var(--font-en);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(80px, 12vw, 180px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(124,92,255,.12);
  animation: floatIcon 18s ease-in-out infinite;
  user-select: none;
}
.float-icon.fi-1 { top: 5%; left: -5%; animation-delay: 0s; }
.float-icon.fi-2 { top: 30%; right: -5%; animation-delay: -6s; }
.float-icon.fi-3 { bottom: 10%; left: 15%; animation-delay: -12s; }
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-40px) rotate(3deg); }
}

/* ===== CHAR REVEAL EXPLOSION ===== */
.char-explode { display: inline-block; }
.char-explode .c {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 60px, 0) rotate(20deg);
  transition: opacity .8s var(--ease-elegant), transform 1s cubic-bezier(.22,1.4,.36,1);
}
.char-explode.is-visible .c { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }

/* ===== STAR BURST DECO ===== */
.starburst {
  position: absolute;
  width: 80px; height: 80px;
  background:
    radial-gradient(circle, var(--c-accent) 0%, transparent 70%);
  border-radius: 50%;
  opacity: .6;
  animation: pulse-burst 3s ease-in-out infinite;
}
@keyframes pulse-burst {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.4); opacity: 0.9; }
}

/* ===== Mobile adjustments for new components ===== */
@media (max-width: 700px) {
  .tilt-marquee { padding: 50px 0; }
  .tilt-band { font-size: clamp(36px, 12vw, 60px); }
  .tilt-row-1, .tilt-row-2, .tilt-row-3 { transform: none; margin-top: 0; }
  .tilt-row-1 { animation: tiltScrollL 20s linear infinite; transform: rotate(-2deg); }
  .tilt-row-2 { animation: tiltScrollR 25s linear infinite; transform: rotate(1.5deg); margin-top: 8px; }
  .tilt-row-3 { animation: tiltScrollL 18s linear infinite; transform: rotate(-1deg); margin-top: 8px; }

  .bg-watermark { font-size: clamp(90px, 28vw, 160px); }
  .huge-title { font-size: clamp(48px, 13vw, 72px); }
  .divider-band { padding: 36px 0; }
  .divider-text { font-size: clamp(20px, 5vw, 32px); gap: 32px; }
  .divider-text span { gap: 32px; }
  .float-icon { font-size: clamp(60px, 18vw, 100px); }
}

/* =========================================================
   MOBILE OPTIMIZATIONS — Touch UX & Performance
   ========================================================= */

/* ===== Tablet & below (≤960px) ===== */
@media (max-width: 960px) {
  /* Section spacing */
  .section { padding: clamp(56px, 9vw, 88px) 0; }

  /* Container padding */
  .container, .container-narrow { padding: 0 20px; }

  /* Hero: ensure visible without scrolling on mid devices */
  .hero { min-height: auto; padding: clamp(120px, 18vw, 160px) 0 clamp(60px, 10vw, 80px); }
}

/* ===== Mobile (≤700px) ===== */
@media (max-width: 700px) {
  /* ---- Typography & Tap targets ---- */
  body { font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); line-height: 1.85; }
  h1, h2, h3 { letter-spacing: 0; line-height: 1.4; }

  /* ---- Header ---- */
  .site-header { padding: 14px 0; }
  .site-header.is-scrolled { padding: 10px 0; }
  .header-inner { gap: 12px; }
  .logo img { height: 26px; }
  .menu-toggle { width: 44px; height: 44px; } /* iOS tap target */
  .nav-cta .btn-outline { display: none; } /* keep header clean */

  /* Mobile nav: bigger tap targets */
  .mobile-nav { padding: 28px 20px; }
  .mobile-nav a {
    padding: 22px 0;
    font-size: clamp(14.6px, calc(13.75px + 0.225vw), 17px);
    min-height: 48px;
    display: flex; align-items: center;
  }
  .mobile-nav .btn { margin-top: 32px; padding: 18px; font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); }

  /* ---- Buttons: 48px min tap target ---- */
  .btn {
    padding: 16px 24px;
    font-size: clamp(12px, calc(11.3px + 0.188vw), 14px);
    min-height: 48px;
  }
  .btn-ghost { padding: 12px 0; min-height: 44px; }

  /* ---- Hero ---- */
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-copy h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.25; }
  .hero-sub { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); line-height: 1.85; }
  .hero-sub br { display: none; } /* avoid awkward line breaks */
  .hero-cta { gap: 12px; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }
  /* Reduce orb intensity on mobile */
  .bg-blob { filter: blur(60px); opacity: .35; }
  .bg-blob-1 { width: 320px; height: 320px; }
  .bg-blob-2 { width: 380px; height: 380px; }
  .bg-blob-3 { width: 280px; height: 280px; }
  /* Hide canvas on mobile for perf */
  .hero-canvas { display: none; }

  /* ---- Marquee ---- */
  .marquee { padding: 18px 0; }
  .marquee-track { gap: 36px; font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); }
  .marquee-track span { gap: 36px; }

  /* ---- Mission / Vision ---- */
  .mission-statement { font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px); line-height: 1.65; }
  .mission-meta { margin-top: 40px; padding-top: 32px; gap: 24px; }
  .mission-meta p { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); line-height: 1.85; }

  .mv-block { gap: 20px; margin-top: 40px; }
  .mv-card { padding: 32px 24px; }
  .mv-en { font-size: clamp(24px, 7vw, 32px); line-height: 1.25; margin-bottom: 16px; }
  .mv-jp { font-size: clamp(14.6px, calc(13.75px + 0.225vw), 17px); line-height: 1.7; }
  .mv-card.is-vision .mv-jp { font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); }
  .mv-narrative { padding: 28px 20px; margin-top: 32px; }
  .mv-narrative p { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); line-height: 1.95; }

  /* ---- Section titles ---- */
  .section-title { font-size: clamp(26px, 6.5vw, 32px); line-height: 1.4; }
  .section-lede { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); line-height: 1.85; }
  .eyebrow { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); letter-spacing: .16em; }

  /* ---- Services head ---- */
  .services-head { gap: 16px; margin-bottom: 32px; }
  .services-head .btn-ghost { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); }

  /* ---- Service cards ---- */
  .service-grid { gap: 16px; }
  .service-card { padding: 28px 22px; border-radius: 18px; }
  .service-card.featured { padding-top: 28px; }
  .service-no { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); }
  .service-name { font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px); margin: 12px 0 10px; }
  .service-name .ja { font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); }
  .service-desc { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); line-height: 1.85; margin: 10px 0 18px; }
  .service-tags { gap: 6px; margin-bottom: 18px; }
  .service-tag { font-size: clamp(9.7px, calc(9.42px + 0.075vw), 10.5px); padding: 4px 9px; }

  /* ---- Why ---- */
  .why-grid { margin-top: 40px; gap: 16px; }
  .why-card { padding: 32px 24px; }
  .why-icon { width: 48px; height: 48px; font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px); margin-bottom: 18px; border-radius: 12px; }
  .why-card h3 { font-size: clamp(16.3px, calc(15.35px + 0.254vw), 19px); }
  .why-card p { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); line-height: 1.85; }

  /* ---- Stats ---- */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 32px; }
  .stat { padding: 24px 16px; border-left-width: 1px; }
  .stat-num { font-size: clamp(28px, 8vw, 38px); }
  .stat-num .unit { font-size: .45em; }
  .stat-label { font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); margin-top: 10px; }

  /* ---- Process ---- */
  .process-list { gap: 12px; margin-top: 32px; }
  .process-item { padding: 20px; gap: 14px; }
  .process-no { font-size: clamp(22.4px, calc(20.43px + 0.526vw), 28px); }
  .process-body h4 { font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); }
  .process-body p { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); }

  /* ---- Showcase (STUDIO style) ---- */
  .showcase { padding: 72px 0; }
  .showcase-head { gap: 16px; margin-bottom: 32px; }
  .showcase-head h2.big-line { font-size: clamp(28px, 7.5vw, 36px); }
  .showcase-grid { gap: 32px; }
  .showcase-thumb { aspect-ratio: 16/11; border-radius: 12px; }
  .showcase-meta { margin-top: 16px; gap: 12px; }
  .showcase-cat { font-size: clamp(9.7px, calc(9.42px + 0.075vw), 10.5px); }
  .showcase-title { font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px); line-height: 1.5; }
  .showcase-arrow { width: 40px; height: 40px; }
  .showcase-arrow svg { width: 15px; height: 15px; }

  /* ---- Big scroll (LayerX style) ---- */
  .big-scroll { padding: 64px 0; }
  .big-scroll-text { font-size: clamp(36px, 11vw, 52px); gap: 16px; animation-duration: 30s; }

  /* ---- Stat block (dark) ---- */
  .stat-block { grid-template-columns: 1fr; margin-top: 32px; }
  .stat-block .stat-cell {
    padding: 32px 20px;
    border-right: 0 !important;
  }
  .stat-block .stat-num { font-size: clamp(40px, 11vw, 56px); }
  .stat-block .stat-desc { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); line-height: 1.85; }

  /* ---- Image marquee ---- */
  .image-marquee { padding: 28px 0; }
  .image-marquee-item { width: 240px; border-radius: 12px; }
  .image-marquee-track { gap: 16px; animation-duration: 60s; }

  /* ---- News ---- */
  .news-list { margin-top: 24px; }
  .news-item {
    padding: 18px 0;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .news-item:hover { padding-left: 0; }
  .news-date { font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); }
  .news-cat { font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px); padding: 3px 8px; justify-self: start; }
  .news-title { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); line-height: 1.7; }

  /* ---- CTA section ---- */
  .cta { padding: 60px 0; }
  .cta-inner { gap: 24px; }
  .cta h2 { font-size: clamp(24px, 6.5vw, 30px); line-height: 1.45; }
  .cta p { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); line-height: 1.85; }
  .cta-actions .btn { padding: 16px 20px; font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); }

  /* ---- Page hero (sub pages) ---- */
  .page-hero { padding: 110px 0 50px; }
  .page-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .page-hero .lede { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); }

  /* ---- About page ---- */
  .about-grid { gap: 36px; }
  .mvv-grid { gap: 16px; margin-top: 32px; }
  .mvv-card { padding: 28px 24px; }
  .mvv-card h3 { font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px); line-height: 1.6; }
  .mvv-card p { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); line-height: 1.85; }

  /* ---- Timeline ---- */
  .timeline-item { padding: 14px 0 14px 36px; }
  .timeline-year { font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); }
  .timeline-text { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); line-height: 1.7; }

  /* ---- Info table ---- */
  .info-table th, .info-table td {
    display: block;
    width: 100% !important;
    padding: 14px 16px;
    font-size: clamp(12px, calc(11.3px + 0.188vw), 14px);
  }
  .info-table th { padding-bottom: 6px; border-bottom: 0; }
  .info-table td { padding-top: 0; padding-bottom: 16px; }

  /* ---- OKIBI page ---- */
  .okibi-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .problem-box { padding: 24px 20px; }
  .problem-list li { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); line-height: 1.85; }
  .solution-grid { gap: 16px; margin-top: 32px; }
  .solution-card { padding: 28px 22px; }
  .plan-grid { gap: 16px; margin-top: 32px; }
  .plan { padding: 28px 22px; }
  .plan-price { font-size: clamp(26.6px, calc(23.29px + 0.883vw), 36px); margin: 20px 0 4px; }

  /* ---- Compare table ---- */
  .compare-row {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .compare-row > div {
    padding: 14px 18px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--c-line) !important;
    font-size: clamp(12px, calc(11.65px + 0.094vw), 13px);
  }
  .compare-row > div:nth-child(1) {
    background: var(--c-bg-soft);
    font-weight: 700;
    font-size: clamp(11px, calc(10.65px + 0.094vw), 12px);
    color: var(--c-muted);
  }
  .compare-row.head { display: none; }

  /* ---- FAQ ---- */
  .faq-q { font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); padding: 22px 36px 22px 0; gap: 12px; }
  .faq-a { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); line-height: 1.85; }
  .faq-a-inner { padding: 0 0 22px 22px; gap: 12px; }

  /* ---- Member grid (tablet) ---- */
  .member-grid { gap: 16px; }
  .member-body { padding: 14px 14px 16px; }
  .member-name { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); }

  /* ---- Contact form ---- */
  .form-grid { gap: 16px; }
  .form-row { gap: 16px; }
  .field label { font-size: clamp(11.5px, calc(11.15px + 0.094vw), 12.5px); }
  .field input,
  .field select,
  .field textarea {
    padding: 14px 14px;
    font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); /* prevents iOS zoom */
    border-radius: 8px;
    min-height: 48px;
  }
  .field textarea { min-height: 120px; }
  .consent { font-size: clamp(11.5px, calc(11.15px + 0.094vw), 12.5px); }
  .consent input { width: 22px; height: 22px; }

  /* ---- Footer ---- */
  .site-footer { padding: 56px 0 32px; }
  .footer-grid { gap: 32px; margin-bottom: 40px; }
  .footer-brand img { height: 30px; }
  .footer-brand p { font-size: clamp(11.5px, calc(11.15px + 0.094vw), 12.5px); max-width: 100%; }
  .footer-col h5 { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); margin-bottom: 14px; }
  .footer-col li { margin-bottom: 14px; }
  .footer-col a { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); min-height: 44px; display: inline-flex; align-items: center; }
  .footer-bottom { padding-top: 24px; font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); gap: 8px; flex-direction: column; align-items: flex-start; }

  /* ---- Intro loader (mobile) ---- */
  .intro-phrase { font-size: clamp(34px, 9.5vw, 56px); }
  .intro-tag { font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px); letter-spacing: .25em; }
  .intro-counter { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); letter-spacing: .18em; }
  .intro-counter [data-intro-counter] { font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px); }
  .intro-bar { width: 70vw; }
  .intro-counter { width: 70vw; font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px); }
}

/* ===== Small mobile (≤480px) ===== */
@media (max-width: 480px) {
  body { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); }
  .container, .container-narrow { padding: 0 18px; }

  .section { padding: 56px 0; }
  .hero { padding: 100px 0 48px; }
  .hero-copy h1 { font-size: clamp(30px, 9.5vw, 38px); }

  /* Stats: stack to 1 column */
  .stats-grid { grid-template-columns: 1fr; }

  /* MVV: single column */
  .mvv-grid { grid-template-columns: 1fr; }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* CTA stack */
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }

  /* Intro */
  .intro-phrase { font-size: clamp(30px, 11vw, 48px); }
  .intro-counter [data-intro-counter] { font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); }
}

/* ===== Prevent horizontal overflow (structural, not the overflow-x:hidden hack) =====
   Root no longer uses overflow-x:hidden / max-width:100vw. Overflow is prevented
   structurally: grid/flex children get min-width:0, long strings wrap, and the few
   intentionally-wide components (marquees, hero stage) clip themselves locally.
   See css/responsive.css for the structural rules. */
img, video, iframe, table { max-width: 100%; }

/* ===== Better touch interactions ===== */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch devices to avoid sticky hover state */
  .service-card:hover,
  .why-card:hover,
  .member:hover,
  .process-item:hover,
  .news-item:hover,
  .showcase-item:hover {
    transform: none !important;
  }
  /* Add active state for touch feedback */
  .btn:active { transform: scale(.97); }
  .service-card:active,
  .why-card:active,
  .member:active { transform: scale(.99); }
}

/* =========================================================
   RESTORE TO DEPLOYED STATE (Cloudflare白基調版に復元)
   Brand Thought Space系のダーク版オーバーライドを無効化
   ========================================================= */

/* Hero: ライト基調・自動高さに戻す */
.hero {
  height: auto !important;
  min-height: 92svh !important;
  max-height: none !important;
  padding: clamp(140px, 18vw, 200px) 0 clamp(100px, 12vw, 140px) !important;
  background: #fff !important;
  color: var(--c-text) !important;
  display: block !important;
}

/* Hero H1: 2行固定（1行目「次の日本の未来を、」/ 2行目「地方から創る。」） */
.hero .hero-copy h1 {
  font-size: clamp(34px, 5.4vw, 64px) !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
}
.hero .hero-copy h1 .reveal-line {
  white-space: nowrap;
  overflow: hidden;
}
.hero .hero-copy h1 .reveal-line > span { white-space: nowrap; }
@media (max-width: 700px) {
  .hero .hero-copy h1 { font-size: clamp(28px, 8vw, 36px) !important; }
}

/* Hero statement (h1とサブ本文の間の強調文) */
.hero-statement {
  font-family: var(--font-jp);
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 2;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: .04em;
  max-width: 720px;
  margin: 32px 0 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .9s var(--ease) .6s forwards;
}
@media (max-width: 700px) {
  .hero-statement {
    font-size: clamp(13.3px, calc(12.53px + 0.207vw), 15.5px);
    line-height: 1.95;
    margin: 24px 0 20px;
  }
  .hero-statement br { display: none; }
}

/* =========================================================
   MOBILE POLISH v2 — final pass for recent additions
   covers: hero video, news filter bar, 3-card services,
           CTA-less hero, intro phrase, small-screen padding
   ========================================================= */

/* ---- Tablet (≤ 900px) ---- */
@media (max-width: 900px) {
  /* Service grid: 3-card layout collapses cleanly */
  .service-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  /* Stat block: 2-col grid for tablet */
  .stat-block { grid-template-columns: 1fr 1fr !important; }
}

/* ---- Mobile (≤ 700px) ---- */
@media (max-width: 700px) {

  /* ── Hero with video background — FULL VIEWPORT ── */
  .hero {
    min-height: 100svh !important;
    min-height: 100svh !important;   /* small viewport — excludes browser chrome */
    padding: 96px 0 32px !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
  }
  /* Stronger gradient: bottom fade so the marquee transition is smooth */
  .hero-bg.has-video .hero-video-tint {
    background:
      linear-gradient(135deg, rgba(34, 138, 110, .42) 0%, rgba(70, 160, 130, .22) 45%, rgba(124, 92, 255, .22) 100%),
      linear-gradient(180deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.45) 38%, rgba(255,255,255,.10) 75%, rgba(15,30,55,.25) 100%);
  }
  /* Slightly more saturation for emotional impact when full-screen */
  .hero-video { filter: saturate(1.05) contrast(1.02) brightness(1.0); }
  /* Show scroll indicator on full-screen hero (gentle cue) */
  .hero-scroll {
    display: block !important;
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px) !important;
    letter-spacing: .3em !important;
    color: var(--c-muted) !important;
    z-index: 3;
  }

  /* ── Container side padding harmonized ── */
  .container { padding: 0 22px; }

  /* ── News filter bar: horizontal scroll instead of wrapping ── */
  .news-filter-bar { gap: 12px; margin-top: 24px; }
  .news-filter-row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin: 0 -22px;        /* edge-to-edge scroll on small screens */
    padding-left: 22px;
    padding-right: 22px;
    scrollbar-width: none;
  }
  .news-filter-row::-webkit-scrollbar { display: none; }
  .news-filter-label {
    min-width: auto !important;
    margin: 0 4px 6px 0 !important;
    flex: 0 0 auto;
  }
  .news-filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    min-height: 36px;
    padding: 7px 14px !important;
    font-size: clamp(11.5px, calc(11.15px + 0.094vw), 12.5px) !important;
  }
  /* Add subtle fade hint on right edge */
  .news-filter-bar { position: relative; }

  /* ── News list ── */
  .news-meta-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    font-size: clamp(11px, calc(10.65px + 0.094vw), 12px) !important;
    padding: 14px 0 !important;
  }
  .news-meta-bar strong { font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px) !important; }
  .news-item {
    padding: 16px 0 !important;
    gap: 6px !important;
  }

  /* ── 3-card services: ensure proper spacing ── */
  .service-card .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
  }

  /* ── Big scroll text: reduce vertical space ── */
  .big-scroll { padding: 56px 0; }

  /* ── Image marquee: smaller items, faster ── */
  .image-marquee-item { width: 200px; }
  .image-marquee-item img { height: 130px; }

  /* ── Stats block (4 stats): 2-col ── */
  .stat-block { grid-template-columns: 1fr 1fr !important; gap: 1px !important; }
  .stat-block .stat-cell {
    padding: 26px 16px !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
  }
  .stat-block .stat-cell:nth-child(2n) { border-right: 0 !important; }
  .stat-block .stat-num { font-size: clamp(28px, 9vw, 40px) !important; }
  .stat-block .stat-label { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); }
  .stat-block .stat-desc { font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); line-height: 1.7; }

  /* ── About info table tighter ── */
  .info-table th { font-weight: 700; color: var(--c-muted); font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); letter-spacing: .06em; }

  /* ── Mission narrative readability ── */
  .mv-narrative { padding: 24px 18px; }
  .mv-narrative p { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); }

  /* ── Contact form ── */
  .field input, .field select, .field textarea { padding: 14px 16px !important; }

  /* ── CTA section ── */
  .cta { padding: 64px 0 !important; }
  .cta h2 { font-size: clamp(22px, 6.8vw, 28px) !important; }
  .cta-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  .cta-actions .btn { width: 100%; }

  /* ── Header: shrink logo a hair more ── */
  .site-header { padding: 12px 0; }
  .site-header.is-scrolled { padding: 8px 0; }

  /* ── Footer harmonize ── */
  .footer-brand img { height: 26px; }
  .site-footer { padding: 48px 0 28px; }
}

/* ---- Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  /* Container: tighter side padding */
  .container { padding: 0 18px; }

  /* Hero: full-screen maintained, content padding tight */
  .hero {
    padding: 92px 0 32px !important;
    min-height: 100svh !important;
    min-height: 100svh !important;
  }
  .hero .hero-copy h1 { font-size: clamp(26px, 9vw, 34px) !important; line-height: 1.3 !important; }
  .hero-statement { font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px); line-height: 1.9; }
  .hero-statement br { display: none; }

  /* News filter bar: shift gutter to small-screen padding */
  .news-filter-row { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }

  /* Service cards: trim padding */
  .service-card { padding: 24px 20px !important; }
  .service-name { font-size: clamp(17.2px, calc(16.21px + 0.263vw), 20px) !important; }
  .service-name .ja { display: block; margin-top: 4px; font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px) !important; }

  /* Stat block: stack to single column ONLY at this size */
  .stat-block { grid-template-columns: 1fr !important; }
  .stat-block .stat-cell { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-block .stat-cell:last-child { border-bottom: 0; }

  /* Big scroll text smaller */
  .big-scroll-text { font-size: clamp(28px, 9.5vw, 40px) !important; gap: 12px !important; }

  /* CTA */
  .cta h2 { font-size: clamp(20px, 7vw, 26px) !important; }

  /* Intro: tighter top spacing */
  .intro-grid { gap: 24px !important; }
  .intro-phrase { font-size: clamp(28px, 10vw, 42px) !important; }
  .intro-tag { font-size: clamp(8.7px, calc(8.42px + 0.075vw), 9.5px) !important; letter-spacing: .22em !important; }
  .intro-counter { font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px) !important; }
  .intro-counter [data-intro-counter] { font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px) !important; }

  /* Mobile-nav: extra breathing */
  .mobile-nav { padding: 24px 18px !important; }
  .mobile-nav a { padding: 18px 0 !important; font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px) !important; }
}

/* ---- Very small / iPhone SE (≤ 380px) ---- */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero .hero-copy h1 { font-size: clamp(19.2px, calc(17.51px + 0.451vw), 24px) !important; }
  .section-title { font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px) !important; line-height: 1.45 !important; }
  .page-hero h1 { font-size: clamp(22.4px, calc(20.43px + 0.526vw), 28px) !important; }
  .service-card { padding: 22px 18px !important; }
  .intro-phrase { font-size: clamp(24px, calc(21.89px + 0.563vw), 30px) !important; }
}

/* ---- Mobile-nav adjustments (display fix) ---- */
.mobile-nav {
  /* Ensure mobile nav is visible when menu-open */
  pointer-events: none;
}
body.menu-open .mobile-nav { pointer-events: auto; }

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

/* =========================================================
   Portfolio cards (services.html) — Goodpatch-inspired
   2 columns with staggered vertical offset, image-led cards
   ========================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: clamp(56px, 7vw, 96px);
  max-width: 1200px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  align-items: start;
}
.portfolio-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.portfolio-card-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--c-bg-soft);
  margin-bottom: 28px;
  box-shadow: 0 14px 36px -16px rgba(15, 30, 55, .2);
}
.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
  will-change: transform;
}
a.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.06);
}
.portfolio-card-meta {
  font-family: var(--font-en);
  font-size: clamp(11px, calc(10.65px + 0.094vw), 12px);
  letter-spacing: .15em;
  color: var(--c-muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.portfolio-card-title {
  font-family: var(--font-jp);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--c-ink);
}
a.portfolio-card .portfolio-card-title {
  transition: color .25s var(--ease);
}
a.portfolio-card:hover .portfolio-card-title {
  color: var(--c-primary);
}
.portfolio-card-desc {
  font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px);
  line-height: 1.85;
  color: var(--c-text);
  margin: 0;
}
/* Staggered offset (Goodpatch-style) */
.portfolio-card--up { margin-top: 0; }
.portfolio-card--down { margin-top: clamp(48px, 8vw, 120px); }

/* Cursor-following blue View badge (linked cards only) */
.portfolio-card--link .portfolio-card-img {
  position: relative;
  cursor: none;     /* hide native cursor over image area */
}
.portfolio-view {
  position: absolute;
  top: 0; left: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px);
  letter-spacing: .04em;
  pointer-events: none;
  opacity: 0;
  transform: translate(calc(var(--mx, 50%) - 90px), calc(var(--my, 50%) - 90px)) scale(.2);
  /* Enter: bouncy spring (overshoots to ~1.15× then settles) */
  transition:
    opacity .25s ease,
    transform .55s cubic-bezier(.34, 1.8, .42, 1);
  box-shadow: 0 18px 44px -10px rgba(73, 149, 211, .55);
  z-index: 10;
  will-change: transform, opacity;
}
.portfolio-view svg { display: inline-block; margin-top: -1px; width: 18px; height: 18px; }
.portfolio-card--link:hover .portfolio-view {
  opacity: 1;
  transform: translate(calc(var(--mx, 50%) - 90px), calc(var(--my, 50%) - 90px)) scale(1);
}
/* During cursor movement (after entered), use a faster spring so it bounces toward cursor */
.portfolio-card--link:hover .portfolio-view {
  transition:
    opacity .25s ease,
    transform .45s cubic-bezier(.34, 1.56, .42, 1);
}
@media (max-width: 800px) {
  .portfolio-view { width: 140px; height: 140px; font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px); }
  .portfolio-view { transform: translate(calc(var(--mx, 50%) - 70px), calc(var(--my, 50%) - 70px)) scale(.2); }
  .portfolio-card--link:hover .portfolio-view { transform: translate(calc(var(--mx, 50%) - 70px), calc(var(--my, 50%) - 70px)) scale(1); }
}
@media (hover: none) {
  .portfolio-card--link .portfolio-card-img { cursor: pointer; }
  .portfolio-view { display: none; }
}

/* Mobile: single column, no offset */
@media (max-width: 800px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
  .portfolio-card--up,
  .portfolio-card--down { margin-top: 0; }
  .portfolio-card-img { aspect-ratio: 4 / 3; margin-bottom: 20px; }
  .portfolio-card-title { font-size: clamp(24px, 6.5vw, 32px); }
}

/* One-line lede (page hero specific) */
.lede-oneline {
  max-width: none !important;
  white-space: nowrap;
  font-size: clamp(13px, 1.35vw, 16px) !important;
}
@media (max-width: 900px) {
  .lede-oneline {
    white-space: normal;        /* allow wrap on mobile */
    font-size: clamp(12px, calc(11.3px + 0.188vw), 14px) !important;
  }
}

/* =========================================================
   Services — large typographic list (Goodpatch-inspired)
   ========================================================= */
.services-section {
  position: relative;
  overflow: hidden;
}
.services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.services-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, transform;
}
.services-bg-img.is-active {
  opacity: 1;
  transform: scale(1);
}
/* White-to-semi overlay for readability */
.services-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 50%, rgba(255,255,255,.88) 100%);
  opacity: 1;
  transition: opacity .7s var(--ease);
}
.services-section.has-hover .services-bg-overlay {
  opacity: .65;        /* slightly less coverage when hovering — let image breathe */
}
.services-section > .container {
  position: relative;
  z-index: 2;
}
/* Text fades slightly when image is shown for better photo legibility */
.services-section.has-hover .service-item:not(:hover) {
  opacity: .35;
  transition: opacity .35s ease;
}
.services-section .service-item {
  transition: opacity .35s ease;
}

.service-list {
  display: grid;
  gap: clamp(28px, 3.5vw, 48px);              /* tighter gap so all 4 fit */
  margin-top: clamp(32px, 4vw, 56px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.service-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity .25s var(--ease);
}
.service-title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 56px);         /* reduced from 38-96px */
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--c-ink);
  margin: 0;
  transition: color .25s var(--ease);
}
.service-sub {
  font-family: var(--font-jp);
  font-size: .42em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-muted);
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  position: relative;
  top: -.12em;
}
.service-tagline {
  font-family: var(--font-jp);
  font-size: clamp(13px, 1.3vw, 15.5px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-text);
  margin: 8px 0 0;
  letter-spacing: .02em;
}
.service-item--link {
  position: relative;
  cursor: none;          /* hide native cursor over linked items */
  overflow: visible;
}
/* Cursor-following "View ↗" badge */
.service-view {
  position: absolute;
  top: 0; left: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px);
  letter-spacing: .04em;
  pointer-events: none;
  opacity: 0;
  /* default: hidden, scaled down at center; follows --mx/--my CSS vars */
  transform: translate(calc(var(--mx, 50%) - 55px), calc(var(--my, 50%) - 55px)) scale(.4);
  transition: opacity .35s ease, transform .15s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 12px 32px -8px rgba(124, 92, 255, .45);
  z-index: 20;
  will-change: transform, opacity;
}
.service-view svg { display: inline-block; margin-top: -1px; }
.service-item--link:hover .service-view {
  opacity: 1;
  transform: translate(calc(var(--mx, 50%) - 55px), calc(var(--my, 50%) - 55px)) scale(1);
}
@media (hover: none) {
  /* On touch devices, badge becomes a static label */
  .service-item--link { cursor: pointer; }
  .service-view { display: none; }
}
.service-item--link .service-title {
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet) 70%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.service-item--link:hover .service-title {
  background: linear-gradient(135deg, var(--c-violet), var(--c-teal));
  -webkit-background-clip: text; background-clip: text;
}
.service-item--link:hover .service-tagline {
  color: var(--c-ink);
}
@media (max-width: 700px) {
  .service-list { gap: 28px; margin-top: 28px; }
  .service-title { font-size: clamp(26px, 7vw, 36px); line-height: 1.15; }
  .service-sub { display: block; margin-left: 0; top: 0; font-size: clamp(11px, calc(10.65px + 0.094vw), 12px); margin-top: 4px; }
  .service-tagline { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); margin-top: 8px; }
}

/* =========================================================
   Mission / Vision — typographic display (Kaminashi-inspired)
   ========================================================= */
.mv-stack {
  display: grid;
  gap: clamp(120px, 16vw, 220px);     /* much more breathing room between Mission & Vision */
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.mv-row {
  display: grid;
  gap: clamp(28px, 3.5vw, 48px);
}
/* Mission row: 2-column on desktop — text left, photo collage right */
.mv-row-mission {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.mv-text-block {
  display: grid;
  gap: clamp(28px, 3.5vw, 48px);
}
/* Photo collage — larger photos, gentle overlap */
.mv-photos {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 640px;
}
.mv-photo {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(15, 30, 55, .25), 0 8px 24px -8px rgba(15, 30, 55, .12);
  background: #f3f5f9;
}
.mv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mv-photo-a {
  top: 0; left: 0;
  width: 66%;
  aspect-ratio: 4 / 3;
  z-index: 1;
}
.mv-photo-b {
  bottom: 0; right: 0;
  width: 54%;
  aspect-ratio: 4 / 5;
  z-index: 2;
}
/* Mobile: stack photos vertically below text */
@media (max-width: 900px) {
  .mv-row-mission {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .mv-photos {
    aspect-ratio: auto;
    height: clamp(280px, 60vw, 420px);
    max-width: 100%;
  }
  .mv-photo-a { width: 70%; }
  .mv-photo-b { width: 55%; }
}
/* Mission row: default left-aligned (no override) */
/* Vision row: 2-column on desktop — photo left, text right */
.mv-row-vision {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.mv-row-vision .mv-text-block {
  display: grid;
  gap: clamp(28px, 3.5vw, 48px);
}
.mv-row-vision .mv-display,
.mv-row-vision .mv-content {
  text-align: left;
}

/* Single photo (Vision left side) — enlarged */
.mv-photo-single {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(15, 30, 55, .25), 0 8px 24px -8px rgba(15, 30, 55, .12);
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 680px;
}
.mv-photo-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .mv-row-vision {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mv-photo-single { max-width: 100%; }
}
.mv-display {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 128px);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-violet) 60%, var(--c-teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.mv-content {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  max-width: 720px;        /* readable width for body text */
}
.mv-en-large {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -.015em;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mv-jp-large {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.7;
  letter-spacing: .015em;
  color: var(--c-ink);
  margin: 0;
}
@media (max-width: 700px) {
  .mv-stack { gap: 100px; margin-top: 36px; }
  .mv-display { font-size: clamp(46px, 13vw, 64px); }
  .mv-en-large { font-size: clamp(24px, 7vw, 32px); line-height: 1.3; }
  .mv-jp-large { font-size: clamp(17px, 4.5vw, 20px); line-height: 1.8; }
  .mv-jp-large br { display: none; }
  .mv-en-large br { display: inline; }  /* keep English line break */
  .mv-content { max-width: 100%; }
}

/* =========================================================
   CEO portrait card (about.html message section)
   ========================================================= */
.ceo-card {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  background: #1a1f2e;
}
.ceo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;       /* keep subject's face in upper third */
  display: block;
}
.ceo-card figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 24px 24px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.ceo-role {
  font-family: var(--font-en);
  font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px);
  letter-spacing: .22em;
  font-weight: 700;
  opacity: .85;
}
.ceo-name {
  font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px);
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -.01em;
}
@media (max-width: 900px) {
  .ceo-card {
    aspect-ratio: 3 / 2;             /* match photo aspect on tablet/mobile */
    border-radius: 18px;
  }
}
@media (max-width: 700px) {
  .ceo-card figcaption { padding: 32px 18px 18px; }
  .ceo-name { font-size: clamp(16.3px, calc(15.35px + 0.254vw), 19px); }
  .ceo-role { font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px); }
}

/* =========================================================
   CONTACT PAGE — full responsive overhaul
   ========================================================= */
.contact-section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(60px, 7vw, 96px); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
.contact-title {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.4;
  letter-spacing: -.01em;
}
.contact-note {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: clamp(11.6px, calc(10.93px + 0.178vw), 13.5px);
  line-height: 1.85;
}
.contact-form { margin-top: 32px; }
.contact-submit {
  margin-top: 8px;
  justify-content: center;
  padding: 18px 24px;
  font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px);
  width: 100%;
  min-height: 56px;
}

/* Field label styling refinement */
.field label {
  display: flex; align-items: center; gap: 6px;
  font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.field .req {
  display: inline-flex;
  align-items: center;
  background: var(--c-accent-2, #FF4D4F);
  color: #fff;
  font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* Aside (sticky on desktop, normal flow on mobile) */
.contact-aside {
  position: sticky; top: 100px;
  display: grid; gap: 20px;
}
.contact-info-card {
  background: var(--c-bg-soft);
  padding: clamp(24px, 3vw, 32px);
  border-radius: 24px;
  border: 1px solid var(--c-line);
}
.contact-info-card h3 {
  font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px);
  margin: 12px 0 24px;
  letter-spacing: -.01em;
}
.contact-info-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 20px;
}
.contact-info-label {
  font-family: var(--font-en);
  font-size: clamp(9.7px, calc(9.42px + 0.075vw), 10.5px);
  letter-spacing: .15em;
  color: var(--c-muted);
  font-weight: 700;
}
.contact-info-value {
  margin-top: 6px;
  font-weight: 600;
  color: var(--c-ink);
  font-size: clamp(12.5px, calc(11.8px + 0.188vw), 14.5px);
  line-height: 1.6;
  word-break: break-all;
}
.contact-info-value a {
  color: var(--c-ink);
  text-decoration: none;
}
.contact-info-value a:hover { color: var(--c-primary); }
.contact-info-social {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.contact-info-social .btn {
  padding: 8px 16px;
  font-size: clamp(11px, calc(10.65px + 0.094vw), 12px);
  min-height: 38px;
}
.contact-consult-card {
  background: var(--c-ink);
  color: #fff;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 24px;
}
.contact-consult-eyebrow {
  font-family: var(--font-en);
  font-size: clamp(9.7px, calc(9.42px + 0.075vw), 10.5px);
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--c-teal);
}
.contact-consult-card h4 {
  color: #fff;
  margin-top: 12px;
  font-size: clamp(14.6px, calc(13.75px + 0.225vw), 17px);
  line-height: 1.55;
  letter-spacing: -.01em;
}
.contact-consult-card p {
  font-size: clamp(12px, calc(11.65px + 0.094vw), 13px);
  color: rgba(255,255,255,.75);
  margin-top: 12px;
  line-height: 1.85;
}

/* Privacy section */
.privacy-section { background: var(--c-bg-soft); }
.privacy-title {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.4;
}
.privacy-body {
  margin-top: 28px;
  font-size: clamp(12px, calc(11.3px + 0.188vw), 14px);
  line-height: 2;
}
.privacy-body h3 {
  margin-top: 32px;
  font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px);
  letter-spacing: -.01em;
}
.privacy-body ul {
  padding-left: 22px;
  list-style: disc;
  margin-top: 10px;
}
.privacy-body ul li { margin-bottom: 4px; }
.privacy-meta {
  margin-top: 32px !important;
  font-size: clamp(11.5px, calc(11.15px + 0.094vw), 12.5px) !important;
  color: var(--c-muted) !important;
}

/* ----- Contact page mobile (≤ 900px) ----- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-aside {
    position: static;          /* disable sticky on mobile */
    top: auto;
    gap: 16px;
    /* Move aside to bottom on small screens for form-first UX */
    order: 2;
  }
  .contact-main { order: 1; }
}

/* ----- Contact page mobile (≤ 700px) ----- */
@media (max-width: 700px) {
  .contact-section { padding-top: 32px; padding-bottom: 48px; }
  .contact-title { font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px); line-height: 1.45; }
  .contact-note { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); }
  .contact-form { margin-top: 24px; }
  .form-grid { gap: 20px; }
  .form-row { gap: 20px; }
  .field label {
    font-size: clamp(11.6px, calc(10.93px + 0.178vw), 13.5px);
    margin-bottom: 8px;
  }
  .field .req {
    font-size: clamp(8.7px, calc(8.42px + 0.075vw), 9.5px);
    padding: 2px 5px;
  }
  .field input,
  .field select,
  .field textarea {
    padding: 16px 16px !important;
    font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px) !important;  /* prevents iOS auto-zoom */
    border-radius: 10px !important;
    min-height: 52px !important;
    border: 1px solid var(--c-line);
    background: #fff;
    width: 100%;
  }
  .field textarea { min-height: 140px !important; line-height: 1.7; }
  .field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px !important;
    appearance: none;
    -webkit-appearance: none;
  }

  /* Consent: clearly tappable */
  .consent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--c-bg-soft);
    border-radius: 12px;
    font-size: clamp(11.6px, calc(10.93px + 0.178vw), 13.5px);
    line-height: 1.7;
  }
  .consent input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--c-primary);
  }
  .consent label {
    margin: 0;
    font-weight: 500;
    color: var(--c-text);
  }
  .consent a {
    color: var(--c-primary);
    text-decoration: underline;
    font-weight: 600;
  }

  /* Submit button big & sticky-feel */
  .contact-submit {
    padding: 18px 24px !important;
    font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px) !important;
    min-height: 58px !important;
    margin-top: 12px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: .02em;
  }

  /* Aside cards: tighter padding */
  .contact-info-card,
  .contact-consult-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .contact-info-card h3 { font-size: clamp(14.6px, calc(13.75px + 0.225vw), 17px); margin: 10px 0 20px; }
  .contact-info-list { gap: 18px; }
  .contact-info-value { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); }
  .contact-info-social { gap: 10px; }
  .contact-info-social .btn {
    flex: 1 1 0;                /* equal-width Social buttons */
    min-width: 0;
    padding: 10px 12px;
    font-size: clamp(11px, calc(10.65px + 0.094vw), 12px);
    min-height: 42px;
  }
  .contact-consult-card h4 { font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); }
  .contact-consult-card p { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); }
  .contact-consult-card h4 br { display: none; }

  /* Privacy ↓ */
  .privacy-title { font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px); }
  .privacy-body { font-size: clamp(11.6px, calc(10.93px + 0.178vw), 13.5px); line-height: 1.95; margin-top: 20px; }
  .privacy-body h3 { font-size: clamp(12.9px, calc(12.16px + 0.197vw), 15px); margin-top: 28px; }
  .privacy-body ul { padding-left: 20px; }
  .privacy-meta { font-size: clamp(11px, calc(10.65px + 0.094vw), 12px) !important; }
}

/* ----- Contact page very small (≤ 480px) ----- */
@media (max-width: 480px) {
  .contact-section { padding-top: 24px; padding-bottom: 40px; }
  .contact-grid { gap: 32px; }
  .contact-info-card,
  .contact-consult-card { padding: 22px 18px; border-radius: 16px; }
  .field input,
  .field select,
  .field textarea { padding: 14px 14px !important; min-height: 50px !important; }
  .field textarea { min-height: 132px !important; }
  .consent { padding: 12px 14px; font-size: clamp(12px, calc(11.65px + 0.094vw), 13px); gap: 12px; }
  .contact-submit { font-size: clamp(13.3px, calc(12.53px + 0.207vw), 15.5px) !important; min-height: 56px !important; }
}
.hero .bg-blob-1 { opacity: 1 !important; mix-blend-mode: normal !important; filter: blur(80px) !important; }
.hero .bg-blob-2 { opacity: 1 !important; mix-blend-mode: normal !important; filter: blur(80px) !important; }
.hero .bg-blob-3 { opacity: 1 !important; mix-blend-mode: normal !important; filter: blur(80px) !important; }
.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.hero::after { display: none !important; } /* 下端ダークフェード無効化 */

/* Header: 元のホワイトグラスに戻す */
/* Transparent header over hero video — let video breathe; legibility via text shadow */
.site-header:not(.is-scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}
.site-header:not(.is-scrolled) .nav a,
.site-header:not(.is-scrolled) .menu-toggle span {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.site-header:not(.is-scrolled) .nav a::after { background: #fff !important; }
.site-header:not(.is-scrolled) .nav-cta .btn-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,.6) !important;
  background: rgba(0,0,0,.18) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header:not(.is-scrolled) .nav-cta .btn-outline:hover {
  background: #fff !important;
  color: var(--c-ink) !important;
  border-color: #fff !important;
}
.site-header:not(.is-scrolled) .menu-toggle span { background: #fff !important; }
.site-header:not(.is-scrolled) .logo img {
  filter: drop-shadow(0 2px 10px rgba(255,255,255,.45)) !important;
}

/* Scroll indicator: 元の暗色に戻す */
.hero-scroll { color: var(--c-muted) !important; }
.hero-scroll::after { background: var(--c-muted) !important; }

/* =========================================================
   MOBILE POLISH v3 — final pass for all recent additions
   Mission/Vision typography, Portfolio 4-cards, Services list,
   Member cards (13), Hero copy, sticky CTA hint
   ========================================================= */

@media (max-width: 900px) {
  /* Mission row: stack vertically (text then photos) */
  .mv-row-mission {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Vision row: photo first, then text — already handled, ensure stack */
  .mv-row-vision {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* Portfolio grid: single column with no offset */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    row-gap: 40px !important;
  }
  .portfolio-card--up,
  .portfolio-card--down { margin-top: 0 !important; }
  .portfolio-card-img { aspect-ratio: 4/3 !important; margin-bottom: 20px !important; }
}

@media (max-width: 700px) {
  /* ─── Mission/Vision typography ─── */
  .mv-stack { gap: 80px !important; margin-top: 32px !important; }
  .mv-display { font-size: clamp(44px, 14vw, 64px) !important; line-height: 1 !important; }
  .mv-en-large { font-size: clamp(22px, 6.5vw, 28px) !important; line-height: 1.3 !important; }
  .mv-jp-large {
    font-size: clamp(16px, 4.5vw, 19px) !important;
    line-height: 1.85 !important;
  }
  .mv-jp-large br { display: none; }
  /* Vision: align to left edge on mobile */
  .mv-row-vision {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .mv-row-vision .mv-display,
  .mv-row-vision .mv-content { text-align: left !important; }
  /* Mission photos: compact on mobile */
  .mv-photos {
    aspect-ratio: auto !important;
    height: clamp(260px, 60vw, 380px) !important;
  }
  /* MV narrative */
  .mv-narrative { padding: 24px 18px !important; margin-top: 32px !important; }
  .mv-narrative p { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px) !important; line-height: 1.95 !important; }

  /* ─── Services large typography list (homepage) ─── */
  .service-list { gap: 32px !important; margin-top: 28px !important; }
  .service-title { font-size: clamp(26px, 7.5vw, 34px) !important; line-height: 1.15 !important; }
  .service-sub {
    display: block !important; margin-left: 0 !important;
    margin-top: 4px !important; top: 0 !important;
    font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px) !important;
  }
  .service-tagline { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px) !important; margin-top: 8px !important; line-height: 1.65 !important; }
  /* Hide cursor-following View badge on touch (already covered by hover:none) */
  /* Background image fade-in: subtle on mobile */
  .services-section.has-hover .services-bg-overlay { opacity: .80 !important; }

  /* ─── Portfolio cards (services page) ─── */
  .portfolio-card-title { font-size: clamp(22px, 6vw, 28px) !important; line-height: 1.25 !important; }
  .portfolio-card-meta { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px) !important; }
  .portfolio-card-desc { font-size: clamp(11.6px, calc(10.93px + 0.178vw), 13.5px) !important; line-height: 1.75 !important; }
  /* Hide bouncing badge on mobile (no hover) */
  .portfolio-view { display: none !important; }
  .portfolio-card--link .portfolio-card-img { cursor: pointer !important; }

  /* ─── Member grid: 2 columns, compact ─── */
  .member-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-top: 28px !important;
  }
  .member-photo { font-size: clamp(25.6px, calc(23.35px + 0.601vw), 32px) !important; }
  .member-body { padding: 12px 12px 14px !important; }
  .member-name { font-size: clamp(11.6px, calc(10.93px + 0.178vw), 13.5px) !important; }
  .member-role { font-size: clamp(9.7px, calc(9.42px + 0.075vw), 10.5px) !important; margin-top: 2px !important; }

  /* ─── Page hero (sub pages) ─── */
  .page-hero { padding: 96px 0 40px !important; }
  .page-hero h1 { font-size: clamp(28px, 8.5vw, 38px) !important; line-height: 1.3 !important; }
  .page-hero .lede { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px) !important; line-height: 1.85 !important; }
  .page-hero .lede-oneline br { display: none; }

  /* ─── Members hero: keep tightness ─── */
  .page-hero h1 .text-grad { display: inline-block; }

  /* ─── Sub-page CEO card (about) ─── */
  .ceo-card { aspect-ratio: 4/3 !important; }
  .ceo-name { font-size: clamp(15.5px, calc(14.62px + 0.235vw), 18px) !important; }

  /* ─── About page company info table ─── */
  .info-table th { font-size: clamp(10.6px, calc(10.28px + 0.085vw), 11.5px) !important; }
  .info-table td { font-size: clamp(11.6px, calc(10.93px + 0.178vw), 13.5px) !important; }

  /* ─── NOROSHI section table ─── */
  #noroshi .info-table td { font-size: clamp(12px, calc(11.65px + 0.094vw), 13px) !important; }
}

/* Very small (≤ 480px) — final compression */
@media (max-width: 480px) {
  /* Member grid: keep 2-col but tighter — cards already compact */
  .member-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .member-photo { aspect-ratio: 1/1 !important; font-size: clamp(22.4px, calc(20.43px + 0.526vw), 28px) !important; }
  .member-body { padding: 10px 10px 12px !important; }
  .member-name { font-size: clamp(11.5px, calc(11.15px + 0.094vw), 12.5px) !important; }
  .member-role { font-size: clamp(9.2px, calc(8.92px + 0.075vw), 10px) !important; }

  /* Mission/Vision: further compact */
  .mv-stack { gap: 64px !important; }
  .mv-display { font-size: clamp(40px, 14vw, 56px) !important; }
  .mv-en-large { font-size: clamp(20px, 6.5vw, 26px) !important; }
  .mv-jp-large { font-size: clamp(13.3px, calc(12.53px + 0.207vw), 15.5px) !important; }

  /* Services list: tighter */
  .service-list { gap: 28px !important; }
  .service-title { font-size: clamp(24px, 8vw, 30px) !important; }

  /* Portfolio cards: tighter */
  .portfolio-grid { row-gap: 32px !important; }
  .portfolio-card-title { font-size: clamp(17.6px, calc(16.05px + 0.413vw), 22px) !important; }

  /* Page hero */
  .page-hero h1 { font-size: clamp(24px, 8vw, 32px) !important; }
}

/* ─── iOS Safari address bar safety ─── */
@supports (height: 100dvh) {
  .hero { min-height: 100dvh !important; }
}

/* ─── Recruit Banner (ZOZO INTERVIEW-style full-width strip) ─── */
.recruit-banner-section {
  padding: 0;
  background: #000;
}
.recruit-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  width: 100%;
}
.recruit-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1d;
  text-decoration: none;
  color: var(--c-ink);
  overflow: hidden;
}
.recruit-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.10) 40%, rgba(0,0,0,.55) 100%);
  z-index: 1;
  transition: background .4s ease;
}
.recruit-photo:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.20) 40%, rgba(0,0,0,.65) 100%);
}
.recruit-photo .recruit-pill {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #fff;
  color: var(--c-ink);
  font-weight: 700;
  font-size: clamp(16.3px, calc(15.35px + 0.254vw), 19px);
  letter-spacing: .06em;
  padding: 26px 56px;
  border-radius: 999px;
  white-space: nowrap;
  width: 76%;
  max-width: 360px;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.recruit-photo:hover .recruit-pill {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}
.recruit-banner-title {
  position: absolute;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.rb-big {
  display: block;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
}
.rb-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(12px, calc(11.3px + 0.188vw), 14px);
  letter-spacing: .25em;
  font-weight: 600;
  opacity: .92;
}

/* Tablet */
@media (max-width: 900px) {
  .recruit-photo { aspect-ratio: 3 / 4; }
  .recruit-photo .recruit-pill { font-size: clamp(12px, calc(11.3px + 0.188vw), 14px); padding: 18px 28px; bottom: 12%; width: 84%; max-width: 280px; gap: 10px; }
  .rb-big { font-size: clamp(34px, 7.5vw, 64px); }
  .rb-sub { font-size: clamp(10.1px, calc(9.78px + 0.085vw), 11px); letter-spacing: .2em; margin-top: 10px; }
}
/* Mobile */
@media (max-width: 700px) {
  .recruit-banner { grid-template-columns: 1fr; }
  .recruit-photo { aspect-ratio: 16 / 11; }
  .recruit-photo .recruit-pill { font-size: clamp(13.8px, calc(13.03px + 0.207vw), 16px); padding: 18px 32px; bottom: 24px; width: 70%; max-width: 320px; }
  .recruit-banner-title {
    position: relative; top: auto; left: auto; transform: none;
    padding: 36px 16px 24px;
    background: #000;
    text-shadow: none;
    order: -1;
  }
  .rb-big { font-size: clamp(32px, 12vw, 48px); }
}

/* === 事業内容ページ 表示修正（ロゴサイズ・列の上揃え） === */
/* OKIBI / NOROSHI のブランドロゴが大きく表示される問題の修正
   （width="1600" 属性と max-width の相互作用で高さ指定が効かないため、
     width:auto を明示して本来の高さ56pxに収める） */
img[alt="OKIBI"],
img[alt="狼煙（NOROSHI）"] {
  height: 56px !important;
  width: auto !important;
  max-width: 100%;
}
/* 左の本文と右のPROGRAM SUMMARY表を上端で揃える（縦中央寄せによるズレを解消） */
#okibi .about-grid,
#noroshi .about-grid {
  align-items: start;
}

/* === お知らせ記事ページ：タイトル・余白を本文向けに最適化 === */
/* 通常のページ見出し(最大72px)は長い記事タイトルに大きすぎるため、記事用に縮小し、
   ヒーローの過大な上下余白も詰める */
.page-hero--news {
  padding-top: clamp(108px, 12vw, 144px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.page-hero--news h1 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.5;
  letter-spacing: -.01em;
}
/* 記事本文の上下の余白も詰める */
.post-content { margin-top: 8px; }
