/* ============================================
   ViFight — Style System
   MUJI-inspired minimal × premium design
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Warm editorial palette — light browns & cream, blue as a cool accent */
  --bg: #f1eae0;
  --bg-dark: #e7dccd;
  --bg-accent: #d8c8b2;
  --text: #211a13;
  --text-light: #6b6054;
  --text-muted: #9d9181;
  --accent: #271f17;
  --accent-warm: #8b7355;
  --accent-brown: #b8946a;   /* 薄い茶色 — light brown accent */
  --accent-tan: #cdb094;     /* softer tan for glows / borders */
  --accent-blue: #7bb8c9;
  --white: #fbf7f0;
  --border: rgba(60, 45, 30, 0.12);
  --border-strong: rgba(60, 45, 30, 0.2);

  /* Typography */
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 160px);
  --container: 1400px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  cursor: none;
  overflow-x: hidden;
  line-height: 1.8;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ---------- LOADING SCREEN ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 62% at 50% 8%, rgba(46, 226, 170, 0.14) 0%, transparent 56%),
    radial-gradient(ellipse 80% 55% at 74% 18%, rgba(150, 120, 220, 0.12) 0%, transparent 56%),
    radial-gradient(ellipse 70% 50% at 24% 22%, rgba(96, 214, 210, 0.10) 0%, transparent 56%),
    linear-gradient(180deg, #15100b 0%, #0e0b07 62%, #0a0805 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* full-screen polygon with a segmented bottom edge, ready to wipe upward */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 88% 100%, 76% 100%, 62% 100%, 50% 100%, 38% 100%, 24% 100%, 12% 100%, 0 100%);
  transition: clip-path 0.9s var(--ease-in-out), opacity 0.4s ease 0.6s, visibility 0.4s 0.6s;
}

/* exit: the bottom edge rises unevenly — a jagged mountain-ridge wipe */
#loader.loaded {
  clip-path: polygon(0 0, 100% 0, 100% 0%, 88% 6%, 76% 1%, 62% 8%, 50% 2%, 38% 9%, 24% 3%, 12% 7%, 0 0%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* aurora glow curtains behind the logo */
.loader-aurora {
  position: absolute;
  top: -14%;
  left: -20%;
  right: -20%;
  height: 74%;
  pointer-events: none;
  filter: blur(46px) saturate(155%);
  opacity: 0.9;
  background:
    radial-gradient(ellipse 40% 56% at 24% 36%, rgba(54, 226, 168, 0.55) 0%, transparent 62%),
    radial-gradient(ellipse 38% 50% at 48% 24%, rgba(96, 214, 210, 0.44) 0%, transparent 62%),
    radial-gradient(ellipse 36% 54% at 70% 38%, rgba(160, 120, 224, 0.42) 0%, transparent 62%),
    radial-gradient(ellipse 30% 48% at 88% 30%, rgba(228, 124, 200, 0.34) 0%, transparent 62%);
  animation: loaderAurora 6s ease-in-out infinite alternate;
}
@keyframes loaderAurora {
  0%   { transform: translateX(-4%) scaleY(1);   opacity: 0.7; }
  100% { transform: translateX(5%) scaleY(1.16); opacity: 0.95; }
}
/* vertical aurora rays */
.loader-rays {
  position: absolute;
  top: -12%;
  left: -10%;
  right: -10%;
  height: 64%;
  pointer-events: none;
  opacity: 0.4;
  filter: blur(6px) saturate(140%);
  background: repeating-linear-gradient(95deg,
    transparent 0,
    rgba(120, 240, 200, 0) 14px,
    rgba(120, 240, 200, 0.20) 26px,
    rgba(150, 210, 230, 0.11) 34px,
    rgba(120, 240, 200, 0) 46px,
    transparent 64px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, transparent 92%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, transparent 92%);
  animation: loaderRays 5s ease-in-out infinite alternate;
}
@keyframes loaderRays {
  0%   { transform: translateX(-3%) skewX(-4deg); opacity: 0.25; }
  100% { transform: translateX(4%) skewX(3deg);   opacity: 0.5; }
}

.loader-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.loader-logo {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 40px;
}

.loader-letter {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 600;
  color: #fbf7f0;
  text-shadow: 0 0 20px rgba(96, 240, 196, 0.5), 0 0 46px rgba(120, 180, 240, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: loaderLetterIn 0.6s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes loaderLetterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-bar {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 20px;
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--aurora-green), var(--aurora-teal) 50%, var(--aurora-violet));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(70, 226, 170, 0.65);
  animation: loaderBarFill 2s var(--ease-in-out) forwards;
  animation-delay: 0.5s;
}

@keyframes loaderBarFill {
  to { width: 100%; }
}

.loader-text {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(143, 243, 208, 0.62);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out) 0.8s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
  will-change: transform;
  /* faint contrasting ring so the dot keeps an edge on any background */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 6px rgba(0, 0, 0, 0.22);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s, box-shadow 0.3s;
}

/* hide the custom cursor until the pointer first moves (no stray ring at 0,0) */
.cursor, .cursor-follower { opacity: 0; }
body.cursor-ready .cursor, body.cursor-ready .cursor-follower { opacity: 1; }

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(26, 26, 26, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  top: 0;
  left: 0;
  will-change: transform;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
              border-color 0.3s, background 0.3s, opacity 0.3s;
}

.cursor.expanded {
  width: 12px;
  height: 12px;
  background: var(--accent-warm);
}

.cursor-follower.expanded {
  width: 60px;
  height: 60px;
  border-color: var(--accent-warm);
}

.cursor-follower.view {
  width: 100px;
  height: 100px;
  background: rgba(45, 41, 38, 0.85);
  border-color: transparent;
}

.cursor-follower.view::after {
  content: 'View';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--white);
}

/* Cursor on dark sections — invert to white */
body.on-dark .cursor {
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 0, 0, 0.45);
}
body.on-dark .cursor-follower {
  border-color: rgba(250, 249, 247, 0.45);
}
body.on-dark .cursor.expanded {
  background: var(--accent-warm);
}
body.on-dark .cursor-follower.expanded {
  border-color: var(--accent-warm);
}
body.on-dark .cursor-follower.view {
  background: rgba(250, 249, 247, 0.9);
}
body.on-dark .cursor-follower.view::after {
  color: var(--accent);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ---------- NAVIGATION ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s;
}

#header.scrolled {
  background: rgba(241, 234, 224, 0.75);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  position: relative;
}

.nav-logo span {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover::after {
  width: 100%;
}

/* active tab indicator */
.nav-links a.active {
  font-weight: 600;
}
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 28px !important;
  border: 1px solid var(--text);
  border-radius: 100px;
  transition: background 0.3s var(--ease-out), color 0.3s;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--text);
  color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 4px 0;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Header color states: light over the dark hero, dark on the glass bar ---- */
/* Default = over hero (dark bg) → light text */
.nav-logo,
.nav-links a {
  color: rgba(255, 255, 255, 0.92);
}
.nav-links a::after {
  background: rgba(255, 255, 255, 0.9);
}
.nav-cta {
  border-color: rgba(255, 255, 255, 0.45);
}
.nav-cta:hover {
  background: var(--white);
  color: var(--accent);
}
.nav-hamburger span {
  background: rgba(255, 255, 255, 0.92);
}

/* Scrolled = light frosted bar → dark text */
#header.scrolled .nav-logo,
#header.scrolled .nav-links a {
  color: var(--text);
}
#header.scrolled .nav-links a::after {
  background: var(--text);
}
#header.scrolled .nav-cta {
  border-color: var(--border-strong);
}
#header.scrolled .nav-cta:hover {
  background: var(--accent);
  color: var(--white);
}
#header.scrolled .nav-hamburger span {
  background: var(--text);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.mobile-menu.active {
  pointer-events: auto;
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}

.mobile-menu.active .mobile-menu-bg {
  transform: scaleY(1);
}

.mobile-menu-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 40px 40px;
}

.mobile-menu-links {
  text-align: center;
}

.mobile-menu-links li {
  overflow: hidden;
}

.mobile-menu-links a {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 600;
  color: var(--white);
  padding: 8px 0;
  transform: translateY(120%);
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
  opacity: 0;
}

.mobile-menu.active .mobile-menu-links a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-links li:nth-child(1) a { transition-delay: 0.15s; }
.mobile-menu-links li:nth-child(2) a { transition-delay: 0.2s; }
.mobile-menu-links li:nth-child(3) a { transition-delay: 0.25s; }
.mobile-menu-links li:nth-child(4) a { transition-delay: 0.3s; }
.mobile-menu-links li:nth-child(5) a { transition-delay: 0.35s; }
.mobile-menu-links li:nth-child(6) a { transition-delay: 0.4s; }

.mobile-menu-footer {
  position: absolute;
  bottom: 40px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 1px;
  /* Hidden until the menu opens — otherwise it bleeds through over every
     view at the bottom of the phone viewport (the menu itself is transparent
     when inactive, but its children still paint). */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.mobile-menu.active .mobile-menu-footer {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.35s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero visual — warm editorial art (espresso base, amber glow, blue accent) */
.hero-visual {
  position: absolute;
  inset: 0;
  /* negative z: compositors keep negative-z layers strictly below the
     section's positive content — ends the first-paint sort race for good */
  z-index: -1;
  overflow: hidden;
}
.hero-visual-layer {
  position: absolute;
  inset: 0;
}
/* Cover photo lives INSIDE the base layer: warm tint over photo over a
   fallback gradient, all in ONE multi-background element. Separate photo
   elements (img OR div) kept getting composited above the hero text on
   first paint; a single first-painted layer cannot be mis-sorted. */
.hero-visual-base {
  background:
    radial-gradient(ellipse 64% 58% at 28% 52%, rgba(21, 16, 11, 0.55) 0%, rgba(21, 16, 11, 0.25) 55%, transparent 75%),
    linear-gradient(to bottom, rgba(21, 16, 11, 0.25) 0%, rgba(21, 16, 11, 0.08) 30%, transparent 60%, rgba(28, 22, 17, 0.5) 86%, rgba(21, 16, 11, 0.9) 100%),
    linear-gradient(150deg, rgba(28, 22, 17, 0.38) 0%, rgba(38, 29, 20, 0.2) 28%, rgba(34, 26, 19, 0.24) 55%, rgba(21, 16, 11, 0.46) 100%),
    url('../images/hero/hero-cover.jpg') center / cover no-repeat,
    linear-gradient(150deg, #1c1611 0%, #261d14 28%, #221a13 55%, #15100b 100%);
}
/* fades the photo into the espresso base toward the bottom (replaces mask) */
.hero-visual-grain {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 512px;
}
.hero-visual-orb {
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
.hero-orb-1 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  top: -15%;
  left: -5%;
  background: radial-gradient(circle, rgba(190, 150, 105, 0.4) 0%, rgba(150, 110, 70, 0.12) 40%, transparent 70%);
  animation: orbDrift1 16s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(205, 176, 148, 0.32) 0%, rgba(170, 135, 95, 0.1) 45%, transparent 70%);
  animation: orbDrift2 20s ease-in-out infinite alternate;
}
.hero-orb-3 {
  width: 35vw;
  height: 35vw;
  max-width: 450px;
  max-height: 450px;
  top: 30%;
  left: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240, 225, 205, 0.16) 0%, transparent 65%);
  animation: orbDrift3 14s ease-in-out infinite alternate;
}
.hero-orb-4 {
  width: 25vw;
  height: 25vw;
  max-width: 320px;
  max-height: 320px;
  top: 60%;
  left: 15%;
  background: radial-gradient(circle, rgba(123, 184, 201, 0.2) 0%, transparent 65%);
  filter: blur(80px);
  animation: orbDrift4 12s ease-in-out infinite alternate;
}
@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 5vh) scale(1.18); }
}
@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-7vw, -6vh) scale(1.12); }
}
@keyframes orbDrift3 {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-40%, -55%) scale(1.3); opacity: 1; }
}
@keyframes orbDrift4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(5vw, -4vh) scale(1.2); opacity: 1; }
}
/* Light streaks */
.hero-visual-streak {
  position: absolute;
  pointer-events: none;
}
.hero-streak-1 {
  width: 120%;
  height: 2px;
  top: 38%;
  left: -10%;
  background: linear-gradient(90deg, transparent 0%, rgba(184, 148, 106, 0.35) 30%, rgba(220, 190, 150, 0.55) 50%, rgba(184, 148, 106, 0.35) 70%, transparent 100%);
  transform: rotate(-8deg);
  animation: streakGlow1 8s ease-in-out infinite alternate;
}
.hero-streak-2 {
  width: 80%;
  height: 1px;
  top: 65%;
  left: 15%;
  background: linear-gradient(90deg, transparent 0%, rgba(170, 135, 95, 0.22) 40%, rgba(205, 176, 148, 0.38) 55%, transparent 100%);
  transform: rotate(-5deg);
  animation: streakGlow2 10s ease-in-out infinite alternate;
}
@keyframes streakGlow1 {
  0% { opacity: 0.3; transform: rotate(-8deg) translateX(-3%); }
  100% { opacity: 0.8; transform: rotate(-8deg) translateX(3%); }
}
@keyframes streakGlow2 {
  0% { opacity: 0.2; transform: rotate(-5deg) translateX(2%); }
  100% { opacity: 0.6; transform: rotate(-5deg) translateX(-2%); }
}
/* Particle canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
/* (scrim + vertical overlay + bottom fade now live inside .hero-visual-base
   as background layers — translucent full-screen sibling divs kept getting
   composited above the hero text intermittently) */

/* ---------- AURORA BOREALIS (Hokkaido night sky) ---------- */
.hero-aurora {
  position: absolute;
  top: -8%;
  left: -8%;
  right: -8%;
  height: 66%;
  pointer-events: none;
  filter: blur(36px) saturate(150%);
  /* NOTE: no mix-blend-mode — screen-blending here corrupted compositor
     sorting of sibling layers (hero text painted under the scrim). */
  opacity: 0.95;
  will-change: transform;
}
.aurora-band {
  position: absolute;
  width: 130%;
  height: 58%;
  left: -15%;
  border-radius: 50%;
  will-change: transform, opacity;
}
.aurora-band-1 {
  top: -6%;
  background: linear-gradient(100deg,
    transparent 10%,
    rgba(46, 230, 166, 0.5) 30%,
    rgba(108, 242, 200, 0.4) 48%,
    rgba(92, 202, 214, 0.3) 66%,
    transparent 88%);
  animation: aurora1 13s ease-in-out infinite alternate;
}
.aurora-band-2 {
  top: 15%;
  background: linear-gradient(95deg,
    transparent 6%,
    rgba(92, 214, 208, 0.34) 26%,
    rgba(150, 122, 218, 0.28) 52%,
    rgba(222, 116, 200, 0.24) 74%,
    transparent 90%);
  animation: aurora2 17s ease-in-out infinite alternate;
}
.aurora-band-3 {
  top: 2%;
  background: linear-gradient(105deg,
    transparent 14%,
    rgba(74, 238, 194, 0.3) 42%,
    rgba(108, 198, 216, 0.24) 66%,
    transparent 88%);
  animation: aurora3 21s ease-in-out infinite alternate;
}
/* pink/magenta lower fringe — the iconic high-altitude aurora tint */
.aurora-band-4 {
  top: 27%;
  height: 46%;
  background: linear-gradient(92deg,
    transparent 14%,
    rgba(230, 124, 202, 0.24) 40%,
    rgba(180, 128, 224, 0.18) 64%,
    transparent 88%);
  animation: aurora4 25s ease-in-out infinite alternate;
}
@keyframes aurora1 {
  0%   { transform: translateX(-6%) skewY(-3deg) scaleY(1); opacity: 0.8; }
  100% { transform: translateX(6%) skewY(2.5deg) scaleY(1.24); opacity: 1; }
}
@keyframes aurora2 {
  0%   { transform: translateX(5%) skewY(2deg) scaleY(1); }
  100% { transform: translateX(-7%) skewY(-3deg) scaleY(1.16); }
}
@keyframes aurora3 {
  0%   { transform: translateX(-3%) skewY(1.5deg); opacity: 0.55; }
  100% { transform: translateX(4%) skewY(-2.5deg); opacity: 1; }
}
@keyframes aurora4 {
  0%   { transform: translateX(4%) skewY(-1.5deg) scaleY(1); opacity: 0.4; }
  100% { transform: translateX(-5%) skewY(2deg) scaleY(1.18); opacity: 0.85; }
}

/* Vertical "curtain" rays — the signature aurora drape. Kept as its own
   lightly-blurred sibling (outside .hero-aurora's heavy blur) so the
   striations still read as falling rays rather than a flat wash. Lives
   inside .hero-visual (z-index:-1), so it stays safely below the hero text. */
.aurora-curtain {
  position: absolute;
  top: -10%;
  left: -12%;
  right: -12%;
  height: 72%;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(7px) saturate(140%);
  background: repeating-linear-gradient(94deg,
    transparent 0px,
    rgba(104, 240, 200, 0) 12px,
    rgba(104, 240, 200, 0.26) 24px,
    rgba(150, 216, 224, 0.14) 33px,
    rgba(104, 240, 200, 0) 44px,
    transparent 60px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, rgba(0, 0, 0, 0.8) 54%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, rgba(0, 0, 0, 0.8) 54%, transparent 96%);
  will-change: transform, opacity;
  animation: auroraCurtain 12s ease-in-out infinite alternate;
}
@keyframes auroraCurtain {
  0%   { transform: translateX(-5%) skewX(-5deg) scaleY(1);   opacity: 0.3; }
  50%  { opacity: 0.62; }
  100% { transform: translateX(6%) skewX(4deg) scaleY(1.14);  opacity: 0.44; }
}
/* Interactive aurora — a pointer-reactive glow canvas painted by main.js
   ("Aurora Brush"). Sits in the hero sky band (z-index:1, like the stars),
   above the CSS aurora glow and below the sunset/skyline. pointer-events:none
   so it never intercepts clicks; the hero section listens for the pointer. */
.hero-aurora-interactive {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
/* pause sky animations while their section is offscreen */
.offstage .aurora-band,
.offstage .aurora-curtain,
.offstage .philosophy-aurora,
.offstage .philosophy-aurora-curtain {
  animation-play-state: paused;
}

/* aurora veil over the Philosophy night section */
.philosophy-aurora {
  position: absolute;
  top: -6%;
  left: -10%;
  right: -10%;
  height: 55%;
  pointer-events: none;
  filter: blur(46px) saturate(140%);
  opacity: 0.92;
  background: linear-gradient(98deg,
    transparent 8%,
    rgba(58, 226, 172, 0.24) 32%,
    rgba(108, 196, 216, 0.17) 55%,
    rgba(182, 126, 218, 0.13) 74%,
    transparent 92%);
  border-radius: 50%;
  animation: aurora2 19s ease-in-out infinite alternate;
}
/* faint vertical rays over the Philosophy sky */
.philosophy-aurora-curtain {
  position: absolute;
  top: -8%;
  left: -10%;
  right: -10%;
  height: 50%;
  pointer-events: none;
  opacity: 0.4;
  filter: blur(8px) saturate(135%);
  background: repeating-linear-gradient(93deg,
    transparent 0px,
    rgba(96, 234, 194, 0) 16px,
    rgba(104, 236, 198, 0.17) 28px,
    rgba(150, 212, 224, 0.1) 36px,
    rgba(96, 234, 194, 0) 48px,
    transparent 64px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, transparent 92%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, transparent 92%);
  will-change: transform, opacity;
  animation: auroraCurtain 16s ease-in-out infinite alternate;
}

/* Patagonia-style sunset glow + layered mountain skyline */
.hero-sunset {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 95% at 50% 102%, rgba(224, 158, 86, 0.42) 0%, rgba(196, 132, 80, 0.2) 32%, rgba(184, 148, 106, 0.07) 52%, transparent 70%);
}
.hero-ridge {
  position: absolute;
  left: -3%;
  bottom: 0;
  width: 106%;   /* slack so depth-parallax can shift layers without exposing edges */
  display: block;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}
.hero-ridge polygon { fill: currentColor; }
/* atmospheric perspective: distant ridge lighter & lit, near ridge darkest */
.hero-ridge-3 {
  height: clamp(150px, 32vh, 340px);
  color: #4a3724;
  opacity: 0.92;
}
.hero-ridge-2 {
  height: clamp(120px, 25vh, 280px);
  color: #2e2317;
}
.hero-ridge-1 {
  height: clamp(90px, 18vh, 210px);
  color: #16110c;
}

.hero-content {
  position: relative;
  /* z-index 10 + isolation force this above the cover photo: the browser's
     layer promotion was painting the photo over the title despite z-index 1
     (verified live — hit-test order was correct, paint order wrong). */
  z-index: 10;
  isolation: isolate;
  transform: translateZ(0);  /* own compositor layer from first paint */
  padding: 0 clamp(30px, 6vw, 100px);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  margin-bottom: 24px;
  overflow: hidden;
}

.hero-tag span {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 4px;
  /* keep Japanese place-names whole (CJK breaks mid-word by default) */
  word-break: keep-all;
  text-transform: uppercase;
  color: rgba(240, 222, 195, 0.98);
  padding: 8px 20px;
  border: 1px solid rgba(220, 190, 150, 0.6);
  border-radius: 100px;
  background: rgba(21, 16, 11, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 2px 10px rgba(15, 10, 6, 0.6);
}

.hero-title {
  font-family: var(--font-en);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: #fff;
  /* NOTE: no transform-style/perspective/will-change here — combined with
     the hero photo they trigger a compositing bug that paints the photo
     OVER this title. The JS tilt supplies perspective() inside transform. */
  transition: transform 0.15s ease-out;
}

.hero-line {
  display: block;
  overflow: hidden;
  font-size: clamp(48px, 8vw, 110px);
}

.hero-line span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-smooth);
}

/* Outline (stroke) style for "Create the" / "Future with" */
/* solid cream type — outline text can't hold up over a photographic cover */
.hero-line-outline span {
  color: rgba(244, 235, 218, 0.97);
  text-shadow: 0 4px 22px rgba(15, 10, 6, 0.65), 0 1px 4px rgba(15, 10, 6, 0.45);
  transition: transform 1s var(--ease-smooth), color 0.4s;
}
.hero-line-outline:hover span {
  color: #fdf8ee;
  text-shadow: 0 4px 26px rgba(15, 10, 6, 0.7), 0 0 40px rgba(214, 170, 110, 0.35);
}

/* Filled gradient style for "ViFight." — stays luminous cream-gold across the whole cycle */
.hero-line-accent span {
  background: linear-gradient(135deg, #fbf4e7 0%, #ecd4ab 40%, #ddc198 70%, #f4e8d1 100%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(214, 170, 110, 0.4)) drop-shadow(0 4px 16px rgba(15, 10, 6, 0.6));
  animation: gradientShift 6s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero.visible .hero-line span {
  transform: translateY(0);
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(15, 10, 6, 0.6);
  letter-spacing: 1px;
  line-height: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out) 0.8s;
}

.hero.visible .hero-sub {
  opacity: 1;
  transform: translateY(0);
}

/* Japanese-first hero headline — Latin tracking (-2px) crushes kana/kanji,
   so loosen it and size to fit narrow phones without clipping the line box. */
.hero-title--jp {
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.hero-title--jp .hero-line {
  font-size: clamp(26px, 7vw, 90px);
  font-weight: 700;
  word-break: keep-all;
}

/* Hero call-to-action (conversion) */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(28px, 4vw, 46px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 1s, transform 0.8s var(--ease-out) 1s;
}
.hero.visible .hero-cta { opacity: 1; transform: translateY(0); }
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 100px;
  background: linear-gradient(100deg, #f6ebd5, #d8b98a);
  color: #241a10;
  font-family: var(--font-jp);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 38px rgba(15, 10, 6, 0.45);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, gap 0.3s;
}
.hero-cta-btn span { transition: transform 0.3s; }
.hero-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 52px rgba(15, 10, 6, 0.55); gap: 15px; }
.hero-cta-btn:hover span { transform: translateX(4px); }
.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  text-shadow: 0 2px 10px rgba(15, 10, 6, 0.6);
  transition: color 0.3s, border-color 0.3s;
}
.hero-cta-ghost:hover { color: #fff; border-color: #fff; }

/* Desktop-only line breaks — collapse on phones so Japanese wraps naturally */
.pc-br { display: inline; }
@media (max-width: 768px) { .pc-br { display: none; } }

.hero-scroll {
  position: absolute;
  bottom: 100px;
  right: clamp(30px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(184, 148, 106, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(220, 195, 160, 0.85);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* Hero Marquee */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  z-index: 2;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

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

/* ---------- SECTIONS COMMON ---------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  margin-bottom: clamp(50px, 8vw, 100px);
}

.section-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent-warm);
  margin-bottom: 16px;
}

/* small accent line before the section number for an editorial touch */
.section-num::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-green), var(--aurora-teal));
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  overflow: hidden;
}

.section-title .char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease-smooth);
}

.section-title .char.visible {
  transform: translateY(0);
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 2px;
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-lead {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.about-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2.2;
  margin-bottom: 50px;
}

.about-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-en);
  font-size: clamp(40px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b7355 55%, var(--accent-brown) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-plus {
  font-family: var(--font-en);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 300;
  color: var(--accent-warm);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
}

/* offset light-brown frame behind the portrait for an editorial, premium feel */
.about-image::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: 42px;
  border: 1px solid var(--accent-brown);
  border-radius: 8px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.about-image-inner {
  position: relative;
  z-index: 1;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(13, 35, 50, 0.12);
}

.about-image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease-out);
}

.about-image:hover .about-image-photo {
  transform: scale(1.04);
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.about-image-caption {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.caption-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
}

.caption-role {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  background: linear-gradient(160deg, #1c1611 0%, #261d14 40%, #221a13 70%, #15100b 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(120px, 18vw, 260px) 0;
  position: relative;
}

.philosophy-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(190, 150, 105, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 25% 60%, rgba(205, 176, 148, 0.07) 0%, transparent 50%);
}

/* Glowing orbs */
.philosophy-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.philosophy-orb-1 {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  top: -15%;
  right: -5%;
  background: radial-gradient(circle, rgba(190, 150, 105, 0.24) 0%, transparent 70%);
  animation: phOrb1 14s ease-in-out infinite alternate;
}
.philosophy-orb-2 {
  width: 30vw;
  height: 30vw;
  max-width: 380px;
  max-height: 380px;
  bottom: -10%;
  left: -3%;
  background: radial-gradient(circle, rgba(123, 184, 201, 0.18) 0%, transparent 70%);
  animation: phOrb2 18s ease-in-out infinite alternate;
}
@keyframes phOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4vw, 4vh) scale(1.15); }
}
@keyframes phOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3vw, -3vh) scale(1.1); }
}

/* Decorative horizontal lines */
.philosophy-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
}
.philosophy-line-top {
  top: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(184, 148, 106, 0.3) 30%, rgba(220, 195, 160, 0.5) 50%, rgba(184, 148, 106, 0.3) 70%, transparent 100%);
}
.philosophy-line-bottom {
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(184, 148, 106, 0.2) 30%, rgba(220, 195, 160, 0.35) 50%, rgba(184, 148, 106, 0.2) 70%, transparent 100%);
}

/* Particle canvas */
.philosophy-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.philosophy-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Big decorative quote mark */
.philosophy-deco-quote {
  font-family: var(--font-en);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 148, 106, 0.28);
  text-stroke: 1px rgba(184, 148, 106, 0.28);
  margin-bottom: -30px;
  filter: drop-shadow(0 0 30px rgba(184, 148, 106, 0.12));
  user-select: none;
}

.philosophy-quote {
  font-size: clamp(22px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 2;
  letter-spacing: 3px;
  max-width: 900px;
  margin: 0 auto;
  text-shadow: 0 0 40px rgba(184, 148, 106, 0.15);
}

.philosophy-quote .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.philosophy-quote .word.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accent underline between quote and attribution */
.philosophy-accent-line {
  width: 60px;
  height: 2px;
  margin: 36px auto 0;
  background: linear-gradient(90deg, transparent, rgba(200, 165, 120, 0.75), transparent);
  border-radius: 1px;
  box-shadow: 0 0 12px rgba(184, 148, 106, 0.4);
}

.philosophy-attr {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(220, 195, 160, 0.55);
  margin-top: 24px;
}

/* ---------- VOICE / TESTIMONIAL ---------- */
.voice {
  background: var(--white);
}

.voice-grid {
  display: grid;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.voice-card {
  position: relative;
  padding: 60px clamp(30px, 5vw, 70px);
  background: var(--bg);
  border-left: 3px solid var(--accent-warm);
  border-radius: 2px;
}

.voice-quote-mark {
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: var(--font-en);
  font-size: 80px;
  font-weight: 600;
  color: var(--accent-warm);
  opacity: 0.25;
  line-height: 1;
}

.voice-text {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2.1;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.voice-text strong {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-warm);
  padding-bottom: 1px;
}

.voice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.voice-industry {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.voice-result {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.voice-result strong {
  font-size: 16px;
  color: var(--accent-warm);
  font-weight: 600;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--bg);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  border-top: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: 1px solid var(--border);
}

.service-item-inner {
  display: grid;
  grid-template-columns: 60px 1fr 100px 50px;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 4vw, 50px) 0;
  transition: background 0.4s var(--ease-out), padding 0.4s;
  position: relative;
}

.service-item-inner:hover {
  padding-left: 36px;
  padding-right: 30px;
  background: var(--white);
}

/* blue accent bar slides in on hover */
.service-item-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent-brown), var(--accent-warm));
  border-radius: 2px;
  transition: height 0.4s var(--ease-out);
}

.service-item-inner:hover::before {
  height: 60%;
}

.service-num {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  transition: color 0.4s var(--ease-out);
}

.service-item-inner:hover .service-num {
  color: var(--accent-warm);
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: 1px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s var(--ease-out), opacity 0.4s, margin 0.4s;
}

.service-item-inner:hover .service-desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 4px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s var(--ease-out), opacity 0.4s;
}

.service-item-inner:hover .service-tags {
  max-height: 100px;
  opacity: 1;
}

.service-tags li {
  font-size: 12px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.service-icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.6s var(--ease-out);
}

.service-item-inner:hover .service-icon {
  color: var(--accent-warm);
  transform: scale(1.1);
}

/* gently floating icons; slow spin on hover */
.service-icon svg {
  width: 100%;
  height: 100%;
  animation: iconFloat 5s ease-in-out infinite;
}
.service-item:nth-child(even) .service-icon svg { animation-delay: -2.5s; }
.service-item-inner:hover .service-icon svg {
  animation: iconSpin 12s linear infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.service-arrow {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.4s var(--ease-out);
  justify-self: end;
}

.service-item-inner:hover .service-arrow {
  color: var(--text);
  transform: translate(4px, -4px);
}

.service-arrow svg {
  width: 100%;
  height: 100%;
}

/* ---------- MARQUEE SECTION ---------- */
.marquee-section {
  padding: clamp(40px, 6vw, 80px) 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-large {
  overflow: hidden;
}

.marquee-large-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.marquee-large-track span {
  font-family: var(--font-en);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 600;
  letter-spacing: -2px;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  flex-shrink: 0;
  transition: -webkit-text-stroke 0.3s;
}

.marquee-large-track:hover span {
  -webkit-text-stroke: 1px var(--text-muted);
}

/* ---------- WORKS ---------- */
.works {
  background: var(--white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.work-item {
  position: relative;
  transition: transform 0.5s var(--ease-out);
}

.work-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 10px 30px rgba(13, 23, 35, 0.06);
  transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.work-item:hover .work-image {
  box-shadow: 0 24px 60px rgba(13, 50, 70, 0.16);
}

/* real project photo fills the card; warm tint + grid sit above it */
.work-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}

.work-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 70% at 70% 20%, rgba(190, 150, 105, 0.22) 0%, transparent 60%),
    linear-gradient(150deg, rgba(42, 33, 24, 0.5) 0%, rgba(53, 42, 30, 0.35) 45%, rgba(33, 26, 18, 0.62) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: rgba(240, 226, 204, 0.92);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* faint grid texture for editorial feel */
.work-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 195, 160, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 195, 160, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.work-item:hover .work-photo {
  transform: scale(1.06);
}

.work-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 23, 35, 0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 1;
}

.work-item:hover .work-image-overlay {
  opacity: 1;
}

/* warm spotlight that follows the cursor inside each card */
.work-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 230px at var(--mx, 50%) var(--my, 50%),
    rgba(240, 212, 170, 0.30), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  z-index: 2;
  pointer-events: none;
}
.work-item:hover .work-image::after {
  opacity: 1;
}

.work-info {
  padding: 20px 4px 0;
}

.work-cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--accent-warm);
  text-transform: uppercase;
  font-weight: 500;
}

.work-title {
  font-size: 17px;
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 0.5px;
  transition: color 0.3s var(--ease-out);
}

.work-item:hover .work-title {
  color: var(--accent-warm);
}

.work-year {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.works-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(50px, 6vw, 80px);
}

.btn-circle {
  position: relative;
  width: 150px;
  height: 150px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.5;
  overflow: hidden;
  transition: color 0.4s, transform 0.5s var(--ease-out), border-color 0.4s;
}

/* gradient fill expands from center on hover */
.btn-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #5c4527 60%, var(--accent-warm) 100%);
  transform: scale(0);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

.btn-circle span {
  position: relative;
  z-index: 1;
}

.btn-circle:hover {
  color: var(--white);
  border-color: transparent;
  transform: scale(1.06);
}

.btn-circle:hover::before {
  transform: scale(1);
}

/* ---------- FLOW ---------- */
.flow {
  background: var(--bg);
}

.flow-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.flow-line {
  position: absolute;
  left: 30px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.flow-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 40px;
  padding: 40px 0;
  position: relative;
}

.flow-step::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--accent-warm);
  background: var(--bg);
  z-index: 1;
}

.flow-step-num {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  padding-top: 6px;
}

.flow-step-content h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.flow-step-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--white);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent-warm);
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-icon span {
  position: absolute;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.faq-icon span:first-child {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.faq-icon span:last-child {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.faq-item.active .faq-icon span:last-child {
  transform: rotate(90deg);
}

.faq-item.active .faq-icon span {
  background: var(--accent-warm);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.5s;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 28px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
}

.contact-lead {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 2;
  margin-bottom: 50px;
  letter-spacing: 0.5px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-label {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-detail a {
  font-size: 16px;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.contact-detail a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease-out);
}

.contact-detail a:hover::after {
  width: 100%;
}

.contact-social {
  display: flex;
  gap: 24px;
}

.contact-address {
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.contact-social a {
  font-size: 14px;
  position: relative;
}

.contact-social a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease-out);
}

.contact-social a:hover::after {
  width: 100%;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group label span {
  color: var(--accent-warm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
  cursor: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-warm);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  color: var(--text-muted);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 48px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1px solid var(--text);
  border-radius: 100px;
  transition: background 0.4s var(--ease-out), color 0.4s, gap 0.4s;
  align-self: flex-start;
}

.form-submit svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease-out);
}

.form-submit:hover {
  background: var(--text);
  color: var(--white);
  gap: 24px;
}

.form-submit:hover svg {
  transform: translateX(4px);
}

/* ---------- FOOTER ---------- */
.footer {
  background: linear-gradient(160deg, #1c1611 0%, #261d14 50%, #15100b 100%);
  color: var(--white);
  padding: 60px 0 30px;
  position: relative;
}

/* glowing top edge to match hero / philosophy */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 148, 106, 0.45) 50%, transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 520px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
}

.footer-info > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
}

.footer-info dt {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
  font-family: var(--font-en);
  text-transform: uppercase;
  font-size: 10px;
  padding-top: 2px;
}

.footer-info dd {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
}

.footer-bottom p {
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

.footer-totop {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}

.footer-totop svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-totop:hover {
  border-color: var(--white);
  transform: translateY(-4px);
}

/* ---------- SMOOTH SCROLL BAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---------- PAGE TRANSITION OVERLAY ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.page-transition .col {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-image {
    max-width: 500px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item-inner {
    grid-template-columns: 40px 1fr 60px 30px;
    gap: 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-scroll {
    display: none;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    flex-direction: column;
    gap: 28px;
  }

  .service-item-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }

  .service-item-inner:hover {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-num {
    font-size: 12px;
  }

  .service-icon {
    display: none;
  }

  .service-arrow {
    display: none;
  }

  .service-item-inner .service-desc,
  .service-item-inner .service-tags {
    max-height: none;
    opacity: 1;
  }

  .flow-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 50px;
  }

  .flow-step-num {
    font-size: 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .footer-info > div {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 20px;
    text-align: center;
  }

  .contact-social {
    flex-wrap: wrap;
  }

  .hero-visual-orb { filter: blur(60px); }
  .hero-orb-4 { filter: blur(50px); }
  .philosophy-orb { filter: blur(60px); }
  /* Light streaks add little on small screens; drop them */
  .hero-visual-streak { display: none; }

  /* Declutter ambient shapes on phones — keep only two small accents per section */
  .float-shape { display: none; }
  .float-shape.s1, .float-shape.s3 { display: block; width: 46px; height: 46px; }

  /* Trim the mountain skyline so it doesn't dominate a tall phone hero */
  .hero-ridge-3 { height: clamp(110px, 24vh, 220px); }
  .hero-ridge-2 { height: clamp(90px, 19vh, 180px); }
  .hero-ridge-1 { height: clamp(68px, 14vh, 140px); }

  /* Aurora: lighter blur, fewer layers to spare phone GPUs */
  .hero-aurora { filter: blur(22px) saturate(135%); }
  .aurora-band-3 { display: none; }
  .aurora-curtain { filter: blur(5px) saturate(130%); opacity: 0.42; }
  .philosophy-aurora { filter: blur(28px); }
  .philosophy-aurora-curtain { display: none; }
}

@media (max-width: 480px) {
  .hero-title .hero-line {
    font-size: clamp(36px, 10vw, 48px);
  }
  /* Japanese headline needs to sit on one line per phrase (no mid-word wrap)
     down to small phones, so size it to fit ~10 full-width chars. */
  .hero-title--jp .hero-line {
    font-size: clamp(23px, 7.6vw, 42px);
  }

  .section-title {
    font-size: clamp(36px, 12vw, 48px);
  }

  .btn-circle {
    width: 110px;
    height: 110px;
    font-size: 11px;
  }
}

/* ---------- ANGULAR SECTION DIVIDERS ---------- */
/* Low-poly, faceted transitions between sections.
   Each divider's box bg = the section above; the polygon (currentColor)
   = the section below, rising into it with angular peaks. */
.section-divider {
  position: relative;
  width: 100%;
  height: clamp(40px, 5vw, 72px);
  line-height: 0;
  overflow: hidden;
  z-index: 2;
}
/* shorter, subtler step for low-contrast (light→light) transitions */
.section-divider--sm {
  height: clamp(24px, 3vw, 44px);
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}
.section-divider polygon {
  fill: currentColor;
}

/* ---------- FLOATING ANGULAR SHAPES (ambient motion) ---------- */
.float-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.float-shape {
  position: absolute;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--accent-brown), var(--accent-tan));
  opacity: 0.12;
  will-change: transform;
}
.float-shape.tri { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.float-shape.diamond { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.float-shape.s1 { top: 14%; left: 7%;  width: 70px;  height: 70px;  animation: floatA 17s ease-in-out infinite; }
.float-shape.s2 { bottom: 12%; right: 9%; width: 130px; height: 130px; animation: floatB 24s ease-in-out infinite; }
.float-shape.s3 { top: 58%; left: 72%; width: 54px;  height: 54px;  animation: floatA 20s ease-in-out infinite reverse; }
.float-shape.s4 { top: 30%; right: 22%; width: 46px; height: 46px;  animation: floatB 19s ease-in-out infinite; opacity: 0.1; }
.float-shape.s5 { top: 20%; right: 14%; width: 64px; height: 64px; animation: floatA 21s ease-in-out infinite reverse; }
.float-shape.s6 { bottom: 18%; left: 12%; width: 100px; height: 100px; animation: floatB 26s ease-in-out infinite; opacity: 0.1; }
@keyframes floatA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(26px, -34px) rotate(180deg); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, 26px) rotate(-170deg); }
}
/* lighter shapes for dark sections */
.float-shapes--dark .float-shape {
  background: linear-gradient(135deg, var(--accent-tan), var(--accent-brown));
  opacity: 0.08;
}
/* keep section content above the ambient shapes (global) */
.section, .footer { position: relative; }
.section > .container, .footer > .container { position: relative; z-index: 1; }

/* ---------- FLOW TIMELINE MOTION ---------- */
.flow-line { overflow: visible; }
.flow-line::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -22%;
  width: 3px;
  height: 22%;
  background: linear-gradient(to bottom, transparent, var(--accent-warm), transparent);
  filter: blur(0.5px);
  animation: flowTravel 4.5s linear infinite;
}
@keyframes flowTravel {
  0% { top: -22%; }
  100% { top: 100%; }
}
/* radar-ping pulse on each step dot (staggered) */
.flow-step::before {
  animation: dotPulse 2.6s ease-in-out infinite;
}
.flow-step:nth-child(3)::before { animation-delay: 0.5s; }
.flow-step:nth-child(4)::before { animation-delay: 1s; }
.flow-step:nth-child(5)::before { animation-delay: 1.5s; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 148, 106, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(184, 148, 106, 0); }
}

/* ---------- PULSING ACCENTS ---------- */
.section-num::before {
  transform-origin: right center;
  animation: tickPulse 2.8s ease-in-out infinite;
}
@keyframes tickPulse {
  0%, 100% { opacity: 0.55; transform: scaleX(0.7); }
  50% { opacity: 1; transform: scaleX(1.15); }
}
.philosophy-accent-line {
  animation: linePulse 3.6s ease-in-out infinite;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.7; box-shadow: 0 0 12px rgba(184, 148, 106, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 24px rgba(184, 148, 106, 0.7); }
}

/* ---------- WORK MODAL ---------- */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
.work-modal.active {
  opacity: 1;
  visibility: visible;
}
.work-modal.active .work-modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  /* backdrop-filter ONLY while open: when always-on, Chrome kept applying
     the hidden modal's backdrop blur/dim over the hero title (root cause
     of the intermittent ghost-title bug). */
  cursor: pointer;
}
.work-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  background: var(--white);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.5s var(--ease-out);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.work-modal.active .work-modal-dialog {
  transform: translateY(0) scale(1);
}
.work-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.work-modal-close:hover {
  transform: rotate(90deg);
  background: var(--bg);
}
.work-modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.work-modal-visual {
  position: relative;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}
.work-modal-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-modal-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(26, 20, 14, 0.6) 0%, rgba(26, 20, 14, 0.15) 45%, transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(139, 115, 85, 0.18), transparent 60%);
}
.work-modal-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-en);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #f6efe2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  text-align: center;
  padding: 0 20px;
}
.work-modal-body {
  padding: clamp(32px, 4vw, 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.work-modal-cat {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.work-modal-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
}
.work-modal-year {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.work-modal-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 24px;
}
.work-modal-meta {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.work-modal-meta div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 13px;
}
.work-modal-meta dt {
  color: var(--text-muted);
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}
.work-modal-meta dd {
  color: var(--text);
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 768px) {
  .work-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
  .work-modal-visual {
    min-height: 200px;
  }
}

/* ---------- GRAIN TEXTURE OVERLAY ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ---------- REDUCED MOTION ---------- */
/* Disable continuous/ambient animations for users who prefer reduced motion.
   JS-driven particle canvases are also skipped (see main.js). */
@media (prefers-reduced-motion: reduce) {
  .hero-visual-orb,
  .hero-visual-streak,
  .hero-line-accent span,
  .philosophy-orb,
  .marquee-track,
  .marquee-large-track,
  .hero-scroll-line::after,
  .float-shape,
  .service-icon svg,
  .aurora-band,
  .aurora-curtain,
  .philosophy-aurora,
  .philosophy-aurora-curtain,
  .home-aurora,
  .loader-aurora,
  .loader-rays {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* ---------- AURORA STORM (hidden easter egg) ---------- */
/* Full-screen northern-lights takeover, triggered by a secret code
   (Konami / typing "aurora" / 5 taps on the logo). Controlled by main.js. */
#aurora-storm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
  background:
    radial-gradient(ellipse 130% 80% at 50% -5%, rgba(46, 226, 174, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 90% 65% at 72% 16%, rgba(168, 122, 224, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 24% 22%, rgba(96, 210, 222, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.86) 0%, rgba(6, 10, 18, 0.52) 48%, rgba(4, 7, 13, 0.88) 100%);
}
#aurora-storm-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease;
}
#aurora-storm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.aurora-storm-msg {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#aurora-storm-overlay.show-msg .aurora-storm-msg {
  opacity: 1;
  transform: none;
}
.aurora-storm-label {
  display: block;
  font-family: var(--font-en, sans-serif);
  font-size: clamp(11px, 2.2vw, 14px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #8ff3d0;
  margin-bottom: clamp(18px, 3vw, 28px);
  text-shadow: 0 0 18px rgba(96, 240, 196, 0.8);
}
.aurora-storm-line {
  font-size: clamp(24px, 5.4vw, 52px);
  font-weight: 600;
  line-height: 1.5;
  color: #f4fbff;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 22px rgba(120, 240, 205, 0.55),
    0 0 48px rgba(150, 180, 240, 0.4);
}
.aurora-storm-sign {
  display: block;
  margin-top: clamp(16px, 3vw, 26px);
  font-family: var(--font-en, sans-serif);
  font-size: clamp(13px, 2.6vw, 18px);
  letter-spacing: 0.3em;
  color: #c8d6ea;
  text-shadow: 0 0 16px rgba(150, 180, 240, 0.5);
}

/* ---------- TABBED VIEWS (one-pager → per-tab) ---------- */
/* Each nav item shows one view at a time. Only opacity is animated on entry —
   never transform/filter — so position:fixed descendants (e.g. the work modal)
   keep anchoring to the viewport. */
.view { display: none; }
.view.is-active {
  display: block;
  animation: viewFade 0.55s ease both;
}
@keyframes viewFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   AURORA EVERYWHERE — palette, accents, home landing, ambience
   ============================================================ */
:root {
  --aurora-green: #46e2a6;
  --aurora-teal: #5cd6d0;
  --aurora-ice: #92cadc;
  --aurora-violet: #9678d8;
  --aurora-magenta: #e27cca;
}

/* aurora gradient text accent (reusable) */
.aurora-text {
  background: linear-gradient(100deg, var(--aurora-green) 0%, var(--aurora-teal) 38%, var(--aurora-ice) 60%, var(--aurora-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* keep highlighted phrases whole so they never split across a line break */
  white-space: nowrap;
}

/* ---------- Subtle aurora ambience on the light editorial tabs ---------- */
.sec-aurora {
  position: absolute;
  top: -12%;
  right: -8%;
  width: 70%;
  height: 70%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  filter: blur(55px) saturate(140%);
  background:
    radial-gradient(ellipse 58% 52% at 72% 16%, rgba(70, 226, 170, 0.26) 0%, transparent 60%),
    radial-gradient(ellipse 50% 48% at 92% 4%, rgba(150, 120, 220, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 46% 44% at 50% 28%, rgba(92, 214, 208, 0.16) 0%, transparent 62%);
}
.sec-aurora--left {
  right: auto;
  left: -8%;
  top: auto;
  bottom: -10%;
  background:
    radial-gradient(ellipse 58% 52% at 24% 80%, rgba(92, 214, 208, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 48% at 8% 92%, rgba(226, 124, 202, 0.13) 0%, transparent 60%);
}

/* ---------- HOME LANDING (dark, aurora-forward) ---------- */
.home-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #15100b 0%, #1b1610 50%, #15100b 100%);
  color: var(--white);
  padding: clamp(88px, 13vw, 170px) 0;
}
.home-section .container { position: relative; z-index: 2; }

.home-aurora {
  position: absolute;
  top: -15%;
  left: -10%;
  right: -10%;
  height: 92%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  filter: blur(48px) saturate(150%);
  background:
    radial-gradient(ellipse 50% 42% at 22% 16%, rgba(70, 226, 170, 0.40) 0%, transparent 62%),
    radial-gradient(ellipse 46% 40% at 60% 10%, rgba(150, 120, 220, 0.30) 0%, transparent 62%),
    radial-gradient(ellipse 44% 38% at 82% 24%, rgba(92, 214, 208, 0.30) 0%, transparent 62%);
  animation: aurora2 22s ease-in-out infinite alternate;
}
.home-aurora--right {
  background:
    radial-gradient(ellipse 48% 42% at 80% 14%, rgba(70, 226, 170, 0.36) 0%, transparent 62%),
    radial-gradient(ellipse 46% 40% at 38% 10%, rgba(226, 124, 202, 0.24) 0%, transparent 62%),
    radial-gradient(ellipse 40% 36% at 16% 26%, rgba(92, 214, 208, 0.28) 0%, transparent 62%);
}
.home-aurora--center {
  top: -20%;
  height: 120%;
  background:
    radial-gradient(ellipse 56% 50% at 50% 16%, rgba(70, 226, 170, 0.42) 0%, transparent 60%),
    radial-gradient(ellipse 46% 42% at 28% 30%, rgba(150, 120, 220, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 46% 42% at 74% 26%, rgba(226, 124, 202, 0.26) 0%, transparent 60%);
}
.offstage .home-aurora { animation-play-state: paused; }

/* --- intro --- */
.home-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--aurora-green);
  margin-bottom: clamp(22px, 4vw, 38px);
}
.home-lead {
  font-size: clamp(32px, 6.2vw, 74px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.01em;
}
.home-lead-sub {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 730px;
  color: rgba(251, 247, 240, 0.74);
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 2;
}
.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 6vw, 70px);
  margin-top: clamp(40px, 6vw, 68px);
}
.home-stat { display: flex; flex-direction: column; gap: 8px; }
.home-stat-figure { display: flex; align-items: baseline; gap: 2px; }
.home-stat-num {
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 600;
  line-height: 1;
}
.home-stat-plus { font-family: var(--font-en); font-size: clamp(20px, 3vw, 30px); font-weight: 600; }
.home-stat-num, .home-stat-plus {
  background: linear-gradient(120deg, var(--aurora-green), var(--aurora-ice));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.home-stat-label { color: rgba(251, 247, 240, 0.58); font-size: 13px; letter-spacing: 0.04em; }

/* shared "see all" link */
.home-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(34px, 4vw, 46px);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 6px;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.home-more span { transition: transform 0.3s; }
.home-more:hover { color: var(--aurora-green); border-color: var(--aurora-green); gap: 16px; }
.home-more:hover span { transform: translateX(4px); }

/* --- preview heading row (services / works) --- */
.home-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(38px, 6vw, 60px);
}
.home-preview-num { font-family: var(--font-en); font-size: 14px; color: var(--aurora-green); letter-spacing: 0.2em; }
.home-preview-title { font-size: clamp(40px, 8vw, 92px); font-weight: 600; line-height: 1; margin: 10px 0 6px; }
.home-preview-sub { color: rgba(251, 247, 240, 0.6); font-size: 14px; letter-spacing: 0.1em; }
.home-preview-head .home-more { margin-top: 0; }

/* --- services preview cards --- */
.home-services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.home-service {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
}
.home-service:hover {
  transform: translateY(-3px);
  border-color: rgba(70, 226, 170, 0.45);
  background: linear-gradient(135deg, rgba(70, 226, 170, 0.09), rgba(150, 120, 220, 0.05));
}
.home-service-num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--aurora-teal);
  padding-top: 3px;
  min-width: 24px;
}
.home-service-body { flex: 1; }
.home-service-name { font-size: clamp(17px, 2.2vw, 23px); font-weight: 600; margin-bottom: 9px; }
.home-service-desc { font-size: clamp(13px, 1.4vw, 14.5px); line-height: 1.85; color: rgba(251, 247, 240, 0.66); }
.home-service-arrow {
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--aurora-green);
  align-self: center;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s, transform 0.4s;
}
.home-service:hover .home-service-arrow { opacity: 1; transform: translateX(0); }

/* --- lead paragraph under a section header --- */
.section-lead {
  max-width: 660px;
  margin-top: clamp(22px, 3vw, 32px);
  color: var(--text-light);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 2;
}

/* --- per-tab pager (prev / next) at the foot of each view --- */
.tab-pager {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) clamp(20px, 4vw, 60px) clamp(70px, 9vw, 116px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.tab-pager-link {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: clamp(16px, 2vw, 22px) clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
.tab-pager-next { text-align: right; align-items: flex-end; }
.tab-pager-link:hover {
  border-color: rgba(70, 226, 170, 0.55);
  background: linear-gradient(135deg, rgba(70, 226, 170, 0.06), transparent 70%);
  transform: translateY(-2px);
}
.tab-pager-dir {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-warm);
}
.tab-pager-name {
  font-family: var(--font-en);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--text);
}

/* --- works preview --- */
.home-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.home-work { display: block; color: var(--white); }
.home-work-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.home-work-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) brightness(0.82);
  transition: transform 0.6s var(--ease-out), filter 0.6s;
}
.home-work-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(21, 16, 11, 0.55));
  opacity: 0; transition: opacity 0.4s;
}
.home-work:hover .home-work-img img { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
.home-work:hover .home-work-img::after { opacity: 1; }
.home-work-cat {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--aurora-green);
}
.home-work-title { font-size: clamp(15px, 1.8vw, 19px); font-weight: 500; margin-top: 8px; line-height: 1.5; }

/* --- CTA --- */
.home-cta { text-align: center; }
.home-cta-eyebrow {
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--aurora-green); margin-bottom: 22px;
}
.home-cta-title { font-size: clamp(30px, 6vw, 66px); font-weight: 600; line-height: 1.32; word-break: keep-all; }
.home-cta-sub { margin: 24px auto 0; max-width: 560px; color: rgba(251, 247, 240, 0.72); line-height: 2; font-size: clamp(14px, 1.6vw, 16px); }
.home-cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(34px, 5vw, 50px);
  padding: 16px 40px;
  border-radius: 100px;
  background: linear-gradient(100deg, var(--aurora-green), var(--aurora-teal));
  color: #0d1a16;
  font-family: var(--font-en); font-weight: 600; letter-spacing: 0.08em;
  box-shadow: 0 8px 40px rgba(70, 226, 170, 0.3);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, gap 0.3s;
}
.home-cta-btn span { transition: transform 0.3s; }
.home-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 56px rgba(70, 226, 170, 0.45); gap: 18px; }
.home-cta-btn:hover span { transform: translateX(5px); }
.home-cta-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(251, 247, 240, 0.55);
  letter-spacing: 0.02em;
}

/* ===== HOME · お客様の声 (social proof) ===== */
.home-voice-card {
  position: relative;
  max-width: 880px;
  margin: clamp(6px, 2vw, 18px) auto 0;
  padding: clamp(30px, 5vw, 56px) clamp(24px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--aurora-green);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(70, 226, 170, 0.08), rgba(150, 120, 220, 0.04) 60%, transparent);
}
.home-voice-mark {
  position: absolute;
  top: clamp(2px, 2vw, 10px);
  left: clamp(16px, 3vw, 30px);
  font-family: var(--font-en);
  font-size: clamp(64px, 12vw, 120px);
  line-height: 1;
  color: rgba(70, 226, 170, 0.26);
  pointer-events: none;
}
.home-voice-text {
  position: relative;
  font-size: clamp(15.5px, 2.1vw, 22px);
  line-height: 1.95;
  color: rgba(251, 247, 240, 0.92);
  font-weight: 500;
}
.home-voice-text strong { color: var(--aurora-ice); font-weight: 600; }
.home-voice-meta {
  margin-top: clamp(20px, 3vw, 30px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
}
.home-voice-name { font-weight: 600; letter-spacing: 0.03em; }
.home-voice-result { font-size: 14px; color: rgba(251, 247, 240, 0.58); }
.home-voice-result strong { color: var(--aurora-green); font-family: var(--font-en); }

/* ===== HOME · 代表メッセージ / founder (trust) ===== */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.founder-photo { position: relative; }
.founder-photo img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.founder-photo::before {
  content: '';
  position: absolute;
  inset: -16px -16px auto auto;
  width: 60%;
  height: 60%;
  border-radius: 24px;
  background: radial-gradient(circle at 70% 30%, rgba(70, 226, 170, 0.5), transparent 65%);
  filter: blur(26px);
  z-index: -1;
}
.founder-badge {
  position: absolute;
  left: clamp(12px, 2vw, 18px);
  bottom: clamp(12px, 2vw, 18px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: 100px;
  background: rgba(21, 16, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.founder-badge-role {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #0d1a16;
  background: linear-gradient(120deg, var(--aurora-green), var(--aurora-teal));
  padding: 3px 9px;
  border-radius: 100px;
}
.founder-title {
  font-size: clamp(25px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.42;
  margin: 14px 0 20px;
  word-break: keep-all;
}
.founder-text {
  color: rgba(251, 247, 240, 0.74);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 2;
}
.founder-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: clamp(22px, 3vw, 30px) 0 24px;
}
.founder-creds li {
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(70, 226, 170, 0.35);
  background: rgba(70, 226, 170, 0.06);
  color: rgba(251, 247, 240, 0.9);
}
.founder-sign {
  color: rgba(251, 247, 240, 0.66);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.founder-sign strong { color: var(--white); font-size: 17px; font-weight: 600; }
.founder-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 100px;
  background: linear-gradient(100deg, var(--aurora-green), var(--aurora-teal));
  color: #0d1a16;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 38px rgba(70, 226, 170, 0.28);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, gap 0.3s;
}
.founder-cta span { transition: transform 0.3s; }
.founder-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(70, 226, 170, 0.4); gap: 15px; }
.founder-cta:hover span { transform: translateX(4px); }

@media (max-width: 760px) {
  .founder-grid { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 360px; }
}

@media (max-width: 760px) {
  .home-services { grid-template-columns: 1fr; }
  .home-works { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   THICKER CONTENT — strengths, profile, highlights, callouts
   ============================================================ */

/* --- Home: strengths cards (dark) --- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.strength-card {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
}
.strength-card:hover {
  transform: translateY(-3px);
  border-color: rgba(70, 226, 170, 0.4);
  background: linear-gradient(135deg, rgba(70, 226, 170, 0.08), rgba(150, 120, 220, 0.04) 70%, transparent);
}
.strength-num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--aurora-teal);
}
.strength-card h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  margin: 12px 0 14px;
  line-height: 1.4;
}
.strength-card p {
  font-size: clamp(13px, 1.45vw, 15px);
  line-height: 1.95;
  color: rgba(251, 247, 240, 0.7);
}

/* --- About: company profile table (light) --- */
.about-profile { margin-top: clamp(56px, 8vw, 96px); }
.about-profile-title {
  font-family: var(--font-en);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.about-profile-title span { color: var(--accent-warm); font-size: 0.6em; letter-spacing: 0.15em; display: block; margin-bottom: 6px; }
.profile-table { border-top: 1px solid var(--border); }
.profile-table > div {
  display: flex;
  gap: clamp(14px, 3vw, 44px);
  padding: clamp(15px, 2vw, 22px) 4px;
  border-bottom: 1px solid var(--border);
}
.profile-table dt {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
  min-width: clamp(96px, 16vw, 140px);
  flex-shrink: 0;
  padding-top: 2px;
}
.profile-table dd { color: var(--text-light); font-size: clamp(14px, 1.5vw, 15.5px); line-height: 1.85; }

/* --- Works: highlight figures (light) --- */
.works-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 72px);
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
}
.wh-item { display: flex; flex-direction: column; gap: 8px; }
.wh-num {
  font-family: var(--font-en);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, var(--aurora-green), var(--aurora-ice));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.wh-label { font-size: 13px; color: var(--text-light); letter-spacing: 0.03em; line-height: 1.6; }

/* --- reusable callout band (light) --- */
.tab-callout {
  margin-top: clamp(44px, 6vw, 76px);
  padding: clamp(28px, 4vw, 46px);
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--aurora-green);
  background: linear-gradient(120deg, rgba(70, 226, 170, 0.07), rgba(150, 120, 220, 0.03) 60%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}
.tab-callout-text h3 { font-size: clamp(18px, 2.3vw, 25px); font-weight: 600; margin-bottom: 10px; }
.tab-callout-text p { color: var(--text-light); font-size: clamp(14px, 1.5vw, 16px); line-height: 1.9; }
.tab-callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 100px;
  background: var(--text);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), background 0.3s, gap 0.3s;
}
.tab-callout-btn span { transition: transform 0.3s; }
.tab-callout-btn:hover { transform: translateY(-2px); background: var(--accent-warm); gap: 14px; }
.tab-callout-btn:hover span { transform: translateX(4px); }

/* --- Flow: reassurance points (light) --- */
.flow-assure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(48px, 6vw, 80px);
}
.flow-assure-item {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.4);
}
.flow-assure-item .fa-ico {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--aurora-green), var(--aurora-teal));
  color: #0d1a16; font-weight: 700; margin-bottom: 16px;
}
.flow-assure-item h4 { font-size: clamp(15px, 1.7vw, 18px); font-weight: 600; margin-bottom: 9px; }
.flow-assure-item p { font-size: 13.5px; color: var(--text-light); line-height: 1.85; }

@media (max-width: 760px) {
  .strength-grid { grid-template-columns: 1fr; }
  .flow-assure { grid-template-columns: 1fr; }
  .tab-callout { flex-direction: column; align-items: flex-start; }
}

/* ---------- small-phone polish (newer blocks) ---------- */
@media (max-width: 480px) {
  .tab-pager { padding: 38px 20px 60px; gap: 12px; }
  .tab-pager-link { padding: 15px 16px; }
  .tab-pager-name { font-size: 17px; }
  .tab-pager-dir { font-size: 11px; }
  .home-stats { gap: 18px 28px; }
  .works-highlights { gap: 22px 30px; }
  .tab-callout { padding: 26px 22px; }
}

/* ============================================================
   LEGAL PAGES (privacy.html / tokushoho.html) — standalone
   ============================================================ */
body.legal-page {
  cursor: auto;                 /* these pages don't load the custom-cursor JS */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.legal-page a,
body.legal-page button { cursor: pointer; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(241, 234, 224, 0.9);
  border-bottom: 1px solid var(--border);
}
.legal-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.legal-back { font-size: 13px; letter-spacing: 0.05em; color: var(--text-light); transition: color 0.3s; }
.legal-back:hover { color: var(--accent-warm); }

.legal { flex: 1; padding: clamp(44px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.legal-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.legal-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.legal h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 20px;
}
.legal h1::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--aurora-green), var(--aurora-teal));
}
.legal-updated { color: var(--text-muted); font-size: 13px; margin: 14px 0 clamp(34px, 5vw, 52px); }
.legal-intro {
  color: var(--text-light);
  line-height: 2;
  font-size: clamp(14px, 1.6vw, 16px);
  margin-bottom: clamp(34px, 5vw, 52px);
}
.legal section { margin-bottom: clamp(30px, 4vw, 44px); }
.legal h2 {
  font-size: clamp(17px, 2.3vw, 21px);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 11px;
}
.legal h2 .num { font-family: var(--font-en); font-size: 13px; color: var(--aurora-teal); flex-shrink: 0; }
.legal p { color: var(--text-light); line-height: 2; font-size: clamp(14px, 1.55vw, 15.5px); }
.legal ul { list-style: none; margin-top: 6px; }
.legal ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.95;
  font-size: clamp(14px, 1.55vw, 15.5px);
}
.legal ul li::before {
  content: '';
  position: absolute;
  left: 3px; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aurora-green);
  opacity: 0.7;
}
.legal a { color: var(--accent-warm); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }

/* definition table (特商法) */
.legal-table { border-top: 1px solid var(--border); margin-top: 8px; }
.legal-table > div {
  display: flex;
  gap: clamp(12px, 3vw, 36px);
  padding: clamp(14px, 2vw, 20px) 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.legal-table dt {
  font-weight: 600;
  color: var(--text);
  min-width: clamp(150px, 26vw, 230px);
  flex-shrink: 0;
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.8;
}
.legal-table dd {
  color: var(--text-light);
  line-height: 1.95;
  font-size: clamp(14px, 1.5vw, 15px);
  flex: 1;
  min-width: 220px;
}
.legal-note {
  margin-top: 26px;
  padding: 16px 20px;
  border-left: 3px solid var(--aurora-green);
  background: rgba(70, 226, 170, 0.06);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 13.5px;
  line-height: 1.9;
}

/* legal-page footer */
.legal-footer {
  background: linear-gradient(160deg, #1c1611 0%, #15100b 100%);
  color: var(--white);
  padding: clamp(40px, 6vw, 60px) 0 30px;
}
.legal-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}
.legal-footer-logo { font-family: var(--font-en); font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 22px; }
.legal-footer-links a { color: rgba(251, 247, 240, 0.7); font-size: 13px; letter-spacing: 0.04em; transition: color 0.3s; }
.legal-footer-links a:hover { color: var(--aurora-green); }
.legal-footer-copy { color: rgba(251, 247, 240, 0.4); font-size: 12px; letter-spacing: 0.04em; }

/* legal links in the main site footer */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.footer-legal a { color: var(--text-muted); font-size: 12px; letter-spacing: 0.03em; transition: color 0.3s; }
.footer-legal a:hover { color: var(--accent-brown); }

@media (max-width: 600px) {
  .legal-table dt { min-width: 100%; margin-bottom: 2px; }
}

/* payment note in the contact section */
.contact-payment {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-light);
  max-width: 470px;
}
.contact-payment a {
  color: var(--accent-warm);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-payment a:hover { color: var(--aurora-green); }

/* ============================================================
   DESIGN REFRESH 2026-07 — animation & polish layer
   All effects are additive, transform/opacity-first (GPU-safe),
   and disabled under prefers-reduced-motion at the end.
   ============================================================ */

/* ---------- REVEAL VARIANTS ----------
   [data-reveal] keeps its default fade-up; a value picks a variant.
   JS is unchanged: it matches on the attribute regardless of value. */
[data-reveal="left"]  { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="zoom"]  { transform: translateY(24px) scale(0.94); }
[data-reveal="blur"]  { transform: translateY(24px); filter: blur(10px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
[data-reveal="flip"]  { transform: perspective(900px) rotateX(14deg) translateY(30px); transform-origin: center bottom; }
[data-reveal="left"].visible,
[data-reveal="right"].visible,
[data-reveal="zoom"].visible,
[data-reveal="flip"].visible { transform: none; }
[data-reveal="blur"].visible { transform: none; filter: blur(0); }

/* section titles: chars rise with a touch of rotation for an organic feel */
.section-title .char { transform: translateY(110%) rotate(5deg); }
.section-title .char.visible { transform: translateY(0) rotate(0); }

/* section subtitles: tracking eases in as they appear */
.section-sub[data-reveal] { letter-spacing: 8px; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), letter-spacing 1.1s var(--ease-out); }
.section-sub[data-reveal].visible { letter-spacing: 2px; }

/* ---------- HERO: NIGHT SKY (stars + shooting star) ---------- */
.hero-stars,
.hero-stars-2 {
  position: absolute;
  inset: 0 0 30% 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(1.1px 1.1px at 28% 9%,  rgba(210,240,255,0.8), transparent 55%),
    radial-gradient(1.6px 1.6px at 41% 31%, rgba(255,255,255,0.75), transparent 55%),
    radial-gradient(1px   1px   at 57% 12%, rgba(190,235,225,0.85), transparent 55%),
    radial-gradient(1.4px 1.4px at 68% 27%, rgba(255,255,255,0.8), transparent 55%),
    radial-gradient(1.1px 1.1px at 79% 8%,  rgba(215,225,255,0.9), transparent 55%),
    radial-gradient(1.7px 1.7px at 88% 34%, rgba(255,255,255,0.7), transparent 55%),
    radial-gradient(1px   1px   at 8% 44%,  rgba(255,255,255,0.65), transparent 55%),
    radial-gradient(1.3px 1.3px at 95% 18%, rgba(196,240,220,0.8), transparent 55%);
  animation: starTwinkle 5.5s ease-in-out infinite;
}
.hero-stars-2 {
  background-image:
    radial-gradient(1.2px 1.2px at 18% 15%, rgba(255,255,255,0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 34% 24%, rgba(205,235,255,0.75), transparent 55%),
    radial-gradient(1px   1px   at 49% 7%,  rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(1.4px 1.4px at 63% 19%, rgba(190,240,215,0.8), transparent 55%),
    radial-gradient(1.1px 1.1px at 74% 36%, rgba(255,255,255,0.7), transparent 55%),
    radial-gradient(1.6px 1.6px at 84% 13%, rgba(255,255,255,0.85), transparent 55%),
    radial-gradient(1px   1px   at 22% 38%, rgba(225,215,255,0.75), transparent 55%),
    radial-gradient(1.3px 1.3px at 92% 42%, rgba(255,255,255,0.6), transparent 55%);
  animation: starTwinkle 7s ease-in-out infinite reverse;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* a lone shooting star crosses the sky every ~11s */
.hero-shooting-star {
  position: absolute;
  top: 14%;
  left: -6%;
  width: 130px;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95));
  border-radius: 2px;
  opacity: 0;
  transform: rotate(16deg);
  animation: shootingStar 11s ease-in 3s infinite;
}
@keyframes shootingStar {
  0%    { opacity: 0; transform: rotate(16deg) translateX(0); }
  1.5%  { opacity: 1; }
  6%    { opacity: 0; transform: rotate(16deg) translateX(88vw); }
  100%  { opacity: 0; transform: rotate(16deg) translateX(88vw); }
}

/* hero tag: the existing warm badge gains a soft aurora breathing glow */
.hero-tag span {
  animation: tagBreathe 4s ease-in-out infinite;
}
@keyframes tagBreathe {
  0%, 100% { box-shadow: 0 0 16px rgba(70, 226, 170, 0.12); }
  50% { box-shadow: 0 0 28px rgba(70, 226, 170, 0.35); }
}

/* ---------- AURORA WIPE (tab-switch transition) ---------- */
#aurora-wipe {
  position: fixed;
  inset: -12% -30%;
  z-index: 9500;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-115%) skewX(-12deg);
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(70, 226, 170, 0.22) 28%,
    rgba(92, 214, 208, 0.30) 45%,
    rgba(150, 120, 220, 0.24) 62%,
    rgba(226, 124, 202, 0.16) 78%,
    transparent 100%);
  filter: blur(26px);
  will-change: transform, opacity;
}
#aurora-wipe.sweep {
  animation: auroraWipe 0.72s var(--ease-in-out) both;
}
@keyframes auroraWipe {
  0%   { opacity: 0; transform: translateX(-115%) skewX(-12deg); }
  22%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(115%) skewX(-12deg); }
}

/* ---------- BUTTON POLISH: shine sweep + glow + ripple ---------- */
.home-cta-btn, .tab-callout-btn, .form-submit, .nav-cta, .home-more, .tab-pager-link {
  position: relative;
  overflow: hidden;
}
/* diagonal shine that sweeps across on hover */
.home-cta-btn::before, .tab-callout-btn::before, .form-submit::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.home-cta-btn:hover::before, .tab-callout-btn:hover::before, .form-submit:hover::before {
  transform: translateX(320%) skewX(-18deg);
}
/* CTA halo: the button's aurora glow breathes (box-shadow keyframes — the
   overflow:hidden needed by the shine sweep would clip a pseudo-element halo) */
.home-cta-btn { animation: ctaHalo 3.4s ease-in-out infinite; }
@keyframes ctaHalo {
  0%, 100% { box-shadow: 0 8px 40px rgba(70, 226, 170, 0.3); }
  50% { box-shadow: 0 10px 52px rgba(70, 226, 170, 0.5), 0 0 30px rgba(92, 214, 208, 0.25); }
}

/* click ripple (span injected by JS) */
.fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(120,232,214,0.35) 40%, transparent 70%);
  transform: scale(0);
  animation: fxRipple 0.65s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes fxRipple {
  to { transform: scale(2.6); opacity: 0; }
}

/* ---------- CARD POLISH ---------- */
/* aurora gradient border sheen on dark cards (hover) */
.strength-card, .home-service {
  position: relative;
  background-clip: padding-box;
}
.strength-card::before, .home-service::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(70,226,170,0.65), rgba(92,214,208,0.4) 30%, rgba(150,120,220,0.5) 65%, rgba(226,124,202,0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.strength-card:hover::before, .home-service:hover::before { opacity: 1; }

/* cursor-following aurora glow inside dark cards (—mx/—my set by JS) */
.strength-card::after, .home-service::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 190px at var(--mx, 50%) var(--my, 50%),
    rgba(70, 226, 170, 0.14), rgba(92, 214, 208, 0.07) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.strength-card:hover::after, .home-service:hover::after { opacity: 1; }

/* strength number: aurora tick that extends on hover */
.strength-num { position: relative; padding-left: 0; transition: padding-left 0.4s var(--ease-out); }
.strength-num::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--aurora-green), transparent);
  transition: width 0.4s var(--ease-out);
}
.strength-card:hover .strength-num { padding-left: 26px; }
.strength-card:hover .strength-num::before { width: 20px; }

/* light cards: gentle lift + aurora edge */
.flow-assure-item, .voice-card, .wh-item {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.flow-assure-item:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 226, 170, 0.45);
  box-shadow: 0 16px 40px rgba(30, 60, 50, 0.10);
}
.flow-assure-item .fa-ico { transition: transform 0.4s var(--ease-out), box-shadow 0.4s; }
.flow-assure-item:hover .fa-ico {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 6px 20px rgba(70, 226, 170, 0.4);
}
.voice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(30, 50, 45, 0.10);
}
.voice-quote-mark { animation: quoteBreathe 4.5s ease-in-out infinite; }
@keyframes quoteBreathe {
  0%, 100% { opacity: 0.18; transform: translateY(0); }
  50% { opacity: 0.35; transform: translateY(-4px); }
}

/* works highlight figures: shimmer sweeps through the gradient numbers on hover */
.wh-num { background-size: 200% 100%; background-position: 0% 50%; transition: background-position 0.8s var(--ease-out); }
.wh-item:hover .wh-num { background-position: 100% 50%; }
.wh-item:hover { transform: translateY(-3px); }

/* profile table rows: hover highlight slides in */
.profile-table > div { position: relative; transition: padding-left 0.35s var(--ease-out), background 0.35s; }
.profile-table > div:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(70,226,170,0.06), transparent 60%); }

/* ---------- NAV & HEADER POLISH ---------- */
/* aurora underline for nav links */
.nav-links a::after {
  height: 2px;
  background: linear-gradient(90deg, var(--aurora-green), var(--aurora-teal), var(--aurora-violet));
  border-radius: 2px;
}
/* logo: aurora gradient sweeps through on hover */
.nav-logo span { transition: transform 0.3s var(--ease-out), background-position 0.6s; }
.nav-logo:hover span {
  background: linear-gradient(100deg, var(--aurora-green) 0%, var(--aurora-teal) 40%, var(--aurora-violet) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-1px);
}
#header.scrolled { box-shadow: 0 4px 30px rgba(30, 25, 18, 0.07); }

/* ---------- FAQ POLISH ---------- */
.faq-question { transition: color 0.3s, padding-left 0.35s var(--ease-out); }
.faq-question:hover { padding-left: 10px; }
.faq-item { transition: border-color 0.4s; }
.faq-item.active { border-bottom-color: rgba(70, 226, 170, 0.5); }
.faq-item.active .faq-answer p {
  animation: faqReveal 0.55s var(--ease-out) both;
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- FLOW POLISH ---------- */
/* timeline draws itself downward each time the view opens */
.view.is-active .flow-line { animation: lineGrow 1.3s var(--ease-out) both; transform-origin: top; }
@keyframes lineGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.flow-step-content { transition: transform 0.4s var(--ease-out); }
.flow-step:hover .flow-step-content { transform: translateX(8px); }
.flow-step::before { transition: border-color 0.3s, background 0.3s; }
.flow-step:hover::before { border-color: var(--aurora-green); background: rgba(70, 226, 170, 0.2); }
.flow-step-num { transition: color 0.3s; }
.flow-step:hover .flow-step-num { color: var(--aurora-green); }

/* ---------- CONTACT FORM POLISH ---------- */
/* aurora underline sweeps in on focus */
.form-group { position: relative; }
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--aurora-green), var(--aurora-teal), var(--aurora-violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}
.form-group:focus-within::after { transform: scaleX(1); }
.form-group label { transition: color 0.3s; }
.form-group:focus-within label { color: var(--aurora-green); }

/* ---------- FOOTER POLISH ---------- */
/* top edge: aurora shimmer instead of static tan */
.footer::before {
  background: linear-gradient(90deg, transparent, rgba(70,226,170,0.5) 30%, rgba(92,214,208,0.55) 50%, rgba(150,120,220,0.45) 70%, transparent);
  animation: footerEdge 6s ease-in-out infinite;
}
@keyframes footerEdge {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.footer-links a { transition: color 0.3s, transform 0.3s var(--ease-out); display: inline-block; }
.footer-links a:hover { color: var(--aurora-green); transform: translateX(4px); }
.footer-totop:hover { border-color: var(--aurora-green); box-shadow: 0 0 24px rgba(70, 226, 170, 0.3); }
.footer-totop:hover svg { color: var(--aurora-green); }
.footer-totop svg { transition: color 0.3s, transform 0.3s; }
.footer-totop:hover svg { transform: translateY(-2px); }

/* ---------- BACK-TO-TOP (fixed, with scroll progress ring) ---------- */
#totop-ring {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  width: 52px;
  height: 52px;
  z-index: 9400;
  border-radius: 50%;
  background: rgba(21, 16, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.3s;
  pointer-events: none;
}
#totop-ring.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#totop-ring:hover { box-shadow: 0 0 26px rgba(70, 226, 170, 0.35); }
#totop-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#totop-ring circle {
  fill: none;
  stroke-width: 2;
}
#totop-ring .ring-bg { stroke: rgba(255,255,255,0.12); }
#totop-ring .ring-fg {
  stroke: url(#totop-grad);
  stroke-linecap: round;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}
#totop-ring .totop-arrow {
  width: 16px;
  height: 16px;
  color: rgba(251, 247, 240, 0.85);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
#totop-ring:hover .totop-arrow { transform: translateY(-2px); color: var(--aurora-green); }

/* (marquee scroll-velocity skew is applied inline by mainLoop in main.js) */

/* ---------- STATS: glow while counting (JS adds .counting) ---------- */
.home-stat-figure, .stat { transition: filter 0.4s; }
.counting .home-stat-figure,
.stat.counting {
  filter: drop-shadow(0 0 14px rgba(70, 226, 170, 0.55));
}

/* ---------- SERVICE LIST: aurora accent takes over the hover bar ---------- */
.service-item-inner::before {
  background: linear-gradient(to bottom, var(--aurora-green), var(--aurora-teal));
}
.service-item-inner:hover .service-title {
  background: linear-gradient(100deg, var(--text) 0%, var(--accent-warm) 60%, var(--aurora-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-tags li { transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out); }
.service-tags li:hover { border-color: var(--aurora-green); color: var(--text); transform: translateY(-2px); }

/* ---------- TAB PAGER: arrow nudge ---------- */
.tab-pager-dir { transition: color 0.3s; }
.tab-pager-link:hover .tab-pager-dir { color: var(--aurora-green); }

/* ---------- SELECTION & SCROLLBAR: aurora accents ---------- */
::selection { background: #1e3f33; color: #d9fff0; }
::-webkit-scrollbar-thumb:hover { background: var(--aurora-teal); }

/* ---------- HOME WORK CARDS: category tick-in ---------- */
.home-work-cat { position: relative; padding-left: 0; transition: padding-left 0.35s var(--ease-out); }
.home-work-cat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--aurora-green);
  transition: width 0.35s var(--ease-out);
}
.home-work:hover .home-work-cat { padding-left: 22px; }
.home-work:hover .home-work-cat::before { width: 16px; }
.home-work-title { transition: color 0.3s; }
.home-work:hover .home-work-title { color: var(--aurora-green); }

/* ---------- REDUCED MOTION (new layer) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-stars,
  .hero-stars-2,
  .hero-shooting-star,
  .hero-tag span,
  .home-cta-btn,
  .voice-quote-mark,
  .footer::before,
  .view.is-active .flow-line {
    animation: none !important;
  }
  #aurora-wipe.sweep { animation: none !important; opacity: 0 !important; }
  .fx-ripple { display: none !important; }
}

/* ============================================================
   DESIGN REFRESH 2026-07 — part 2: refinement fold-ins
   ============================================================ */

/* ---------- TYPOGRAPHY: quiet-luxury pass ---------- */
/* proportional kana/kanji metrics on JP display text (palt) */
.home-lead, .home-cta-title, .about-lead,
.strength-card h3, .home-service-name, .home-work-title,
.philosophy-quote, .tab-callout-text h3 {
  font-feature-settings: "palt" 1;
  letter-spacing: 0.02em;
}
/* tabular numerals keep counting stats from jittering */
.home-stat-num, .stat-num, .wh-num {
  font-variant-numeric: tabular-nums;
}
/* balanced headline ragging where supported */
.home-lead, .home-cta-title, .section-lead {
  text-wrap: balance;
}

/* ---------- SECTION HEADER: eyebrow rule grows in after reveal ---------- */
.section-num::after {
  content: '';
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--aurora-teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.35s;
}
.section-num.visible::after { transform: scaleX(1); }

/* ---------- NAV: aurora active dot + entrance cascade ---------- */
.nav-links a:not(.nav-cta)::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--aurora-green), var(--aurora-teal));
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s var(--ease-out);
}
.nav-links a.active:not(.nav-cta)::before { transform: translateX(-50%) scale(1); }
/* one-shot entrance after the loader clears */
.nav-logo, .nav-links li {
  animation: navDrop 0.7s var(--ease-out) both;
}
.nav-links li:nth-child(1) { animation-delay: 1.15s; }
.nav-links li:nth-child(2) { animation-delay: 1.22s; }
.nav-links li:nth-child(3) { animation-delay: 1.29s; }
.nav-links li:nth-child(4) { animation-delay: 1.36s; }
.nav-links li:nth-child(5) { animation-delay: 1.43s; }
.nav-links li:nth-child(6) { animation-delay: 1.5s; }
.nav-logo { animation-delay: 1.05s; }
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- VOICE CARD: aurora bar over the warm edge ---------- */
/* fix: keep the reveal (opacity/transform) transition alongside hover */
.voice-card {
  transition: transform 0.55s var(--ease-out), box-shadow 0.45s var(--ease-out), opacity 0.8s var(--ease-out);
}
.voice-card::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--aurora-green), var(--aurora-teal) 55%, var(--aurora-violet));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.voice-card:hover::before { opacity: 1; }
.voice-result strong { transition: color 0.3s; }
.voice-card:hover .voice-result strong { color: var(--aurora-green); }

/* ---------- WORK MODAL: content settles in sequence ---------- */
.work-modal-cat, .work-modal-title, .work-modal-year,
.work-modal-desc, .work-modal-meta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.work-modal.active .work-modal-cat   { opacity: 1; transform: none; transition-delay: 0.15s; }
.work-modal.active .work-modal-title { opacity: 1; transform: none; transition-delay: 0.22s; }
.work-modal.active .work-modal-year  { opacity: 1; transform: none; transition-delay: 0.29s; }
.work-modal.active .work-modal-desc  { opacity: 1; transform: none; transition-delay: 0.36s; }
.work-modal.active .work-modal-meta  { opacity: 1; transform: none; transition-delay: 0.43s; }

/* ---------- TAB PAGER: name leans toward its destination ---------- */
.tab-pager-name {
  display: inline-block;
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.tab-pager-prev:hover .tab-pager-name { transform: translateX(-5px); }
.tab-pager-next:hover .tab-pager-name { transform: translateX(5px); }
.tab-pager-link:hover .tab-pager-name { color: var(--accent-warm); }

/* ---------- FAQ: aurora bar draws down the open item ---------- */
.faq-item { position: relative; }
.faq-item::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--aurora-green), var(--aurora-teal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}
.faq-item.active::before { transform: scaleY(1); }

/* ---------- GLOBAL MICRO-DETAILS ---------- */
/* aurora selection on dark surfaces (light tabs keep the warm selection) */
.hero ::selection, .philosophy ::selection,
.home-section ::selection, .footer ::selection {
  background: rgba(70, 226, 170, 0.3);
  color: #eafff6;
}
/* keyboard focus: deliberate branded ring */
:focus-visible {
  outline: 2px solid var(--aurora-teal);
  outline-offset: 3px;
  border-radius: 4px;
}
/* hero scroll cue fades once the journey begins (JS toggles .faded) */
.hero-scroll { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.hero-scroll.faded { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------- FOOTER: entrance cascade ---------- */
.footer .footer-links[data-reveal]  { transition-delay: 0.12s; }
.footer .footer-bottom[data-reveal] { transition-delay: 0.22s; }

/* ---------- REVEAL STAGGER LADDERS (light, declarative) ----------
   Delay only the reveal: JS clears the inline delay after the first
   transition ends, so hover states stay instant afterwards. */

/* ---------- REDUCED MOTION (part 2) ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav-logo, .nav-links li { animation: none !important; }
  .section-num::after { transition: none !important; transform: scaleX(1) !important; }
}

/* ============================================================
   TRUST LAYER 2026-07 — 信頼性強化（代表メッセージ・安心ポイント・
   フォーム同意・FAQリンク・404）
   ============================================================ */

/* ---------- HOME: trust strip ---------- */
.home-trust { padding: clamp(40px, 6vw, 72px) 0; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.trust-item:hover {
  transform: translateY(-3px);
  border-color: rgba(70, 226, 170, 0.4);
}
.trust-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--aurora-green), var(--aurora-teal));
  color: #0d1a16;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
}
.trust-body h3 {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
}
.trust-body p {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(251, 247, 240, 0.62);
}
@media (max-width: 1000px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .trust-strip { grid-template-columns: 1fr; } }

/* ---------- ABOUT: representative message ---------- */
.about-message { margin-top: clamp(56px, 8vw, 96px); }
.about-message-title {
  font-family: var(--font-en);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.about-message-title span {
  color: var(--accent-warm);
  font-size: 0.6em;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 6px;
}
.about-message-body {
  position: relative;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--aurora-green);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(70, 226, 170, 0.05), rgba(150, 120, 220, 0.02) 55%, transparent);
}
.about-message-body p {
  font-size: clamp(14px, 1.55vw, 15.5px);
  line-height: 2.15;
  color: var(--text-light);
}
.about-message-body p + p { margin-top: 1.2em; }
.about-message-sign {
  text-align: right;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.about-message-sign strong {
  display: inline-block;
  margin-left: 12px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
}

/* ---------- CONTACT: trust checklist ---------- */
.contact-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -20px 0 40px;
}
.contact-trust li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}
.contact-trust li strong { color: var(--text); font-weight: 600; }
.contact-trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--aurora-green), var(--aurora-teal));
  color: #0d1a16;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- CONTACT: privacy consent checkbox ---------- */
.form-consent { margin-top: -6px; }
.consent-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.7;
}
.consent-label input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.consent-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: transparent;
  position: relative;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.consent-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #0d1a16;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out);
}
.consent-label input:checked + .consent-box {
  background: linear-gradient(120deg, var(--aurora-green), var(--aurora-teal));
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(70, 226, 170, 0.35);
}
.consent-label input:checked + .consent-box::after { transform: rotate(45deg) scale(1); }
.consent-label input:focus-visible + .consent-box {
  outline: 2px solid var(--aurora-teal);
  outline-offset: 2px;
}
.consent-text a {
  color: var(--accent-warm);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}
.consent-text a:hover { color: var(--aurora-green); }
.consent-text .req { color: var(--accent-warm); }

/* ---------- FAQ: room + links in answers ---------- */
.faq-item.active .faq-answer { max-height: 320px; }
.faq-answer a {
  color: var(--accent-warm);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}
.faq-answer a:hover { color: var(--aurora-green); }

/* ---------- 404 PAGE ---------- */
.notfound {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  padding: clamp(80px, 14vw, 160px) 0;
}
.notfound-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  text-align: center;
  width: 100%;
}
.notfound-code {
  font-family: var(--font-en);
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(100deg, var(--aurora-green) 0%, var(--aurora-teal) 38%, var(--aurora-ice) 60%, var(--aurora-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.notfound-title { font-size: clamp(18px, 2.6vw, 26px); font-weight: 600; margin-top: 18px; }
.notfound-text { color: var(--text-light); font-size: clamp(13.5px, 1.6vw, 15px); line-height: 2; margin-top: 14px; }
.notfound-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 36px;
  border-radius: 100px;
  background: var(--text);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.notfound-btn:hover { transform: translateY(-2px); background: var(--accent-warm); }

/* ---------- SKIP LINK (keyboard a11y) ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100001;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--text);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--aurora-teal);
  outline-offset: 2px;
}

/* ---------- FINE-TUNING ---------- */
/* anchor the (visually hidden) checkbox to the label so the browser's
   "please check this box" validation bubble points at the right spot */
.consent-label { position: relative; }

/* keep the back-to-top ring clear of iOS home-indicator / notch insets */
#totop-ring {
  right: calc(clamp(18px, 3vw, 34px) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(18px, 3vw, 34px) + env(safe-area-inset-bottom, 0px));
}

/* ---------- PRINT ---------- */
/* People print the profile / policies for internal approval — make it clean. */
@media print {
  #loader, #cursor, #cursor-follower, canvas,
  .hero-visual, .float-shapes, .mobile-menu, #header,
  .hero-marquee, .marquee-section, .tab-pager, #totop-ring,
  #aurora-wipe, .skip-link, .work-modal, #aurora-storm-overlay,
  .section-divider, .hero-scroll, .sec-aurora, .home-aurora,
  .philosophy-orb, .philosophy-aurora, .philosophy-aurora-curtain {
    display: none !important;
  }
  body { cursor: auto; background: #fff; color: #000; }
  body::after { display: none !important; }
  .view { display: block !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-line span { transform: none !important; color: #000 !important; text-shadow: none !important; }
  .hero-line-accent span { -webkit-text-fill-color: #000 !important; filter: none !important; }
  .hero, .home-section, .footer, .philosophy {
    background: #fff !important;
    color: #000 !important;
  }
  .hero-sub, .home-lead-sub, .home-stat-label, .strength-card p,
  .home-service-desc, .trust-body p, .footer-info dd {
    color: #333 !important;
  }
  a { color: #000; text-decoration: underline; }
}
