/* =========================================================
   Altaxia - Design System
   ========================================================= */

:root {
  /* Colors */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-warm: #FFF7ED;
  --bg-navy: #0B1F3A;

  --text: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;

  --accent: #F97316;
  --accent-dark: #EA580C;
  --accent-soft: #FFEDD5;

  --navy: #0B1F3A;
  --navy-soft: #1E3A5F;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --success: #16A34A;
  --warning: #F59E0B;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 16px 40px rgba(249, 115, 22, 0.18);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Spacing */
  --container: 1200px;
  --container-narrow: 960px;
  --section-y: clamp(64px, 9vw, 120px);
  --section-y-sm: clamp(48px, 7vw, 80px);

  /* Font */
  --font-jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-en: 'Manrope', 'Inter', -apple-system, sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
  /* prevent any descendant overflow from creating horizontal scroll
     (clip preserves position:sticky; hidden is the fallback for Safari < 16) */
  overflow-x: hidden;
  overflow-x: clip;
}

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

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS Safari: prevent any descendant overflow from creating horizontal scroll */
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  font-feature-settings: "palt";
  position: relative;
}

/* Subtle grain texture across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Make sure content sits above grain */
.site-banner, .site-header, .hero, .section, .cta-section, .site-footer { position: relative; z-index: 2; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease-soft); }
a:hover { color: var(--accent-dark); }

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

/* =========================================================
   Layout
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section--sm { padding: var(--section-y-sm) 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--navy { background: var(--bg-navy); color: #fff; }

@media (max-width: 600px) {
  .container { padding: 0 20px; }
}

/* =========================================================
   Typography
   ========================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 18px;
  padding: 6px 14px 6px 0;
  position: relative;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.eyebrow::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.04); }
}
.section--navy .eyebrow { color: #fdba74; }
.section--navy .eyebrow::before { background: linear-gradient(90deg, #fdba74, transparent); }
.section--navy .eyebrow::after { background: #fdba74; box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.2); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 16px; color: var(--text); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.h1, h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.h2, h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.25;
}
.h3, h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}
.h4, h4 {
  font-size: 1.125rem;
}

p { margin: 0 0 16px; color: var(--text-muted); }
.lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 720px;
}
.muted { color: var(--text-light); }

.eng { font-family: var(--font-en); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-full);
  transition: all 0.25s var(--ease-soft);
  white-space: nowrap;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn-icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease-soft); }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn--primary,
.btn--primary:link,
.btn--primary:visited,
.btn--primary:hover,
.btn--primary:focus,
.btn--primary:active {
  /* Force white in every state — the global `a:hover { color: accent-dark }`
     would otherwise tint the label on hover. */
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.btn--primary {
  /* Slightly deeper orange so the button reads as more clickable
     (was: var(--accent) → var(--accent-dark); now: --accent-dark → #C2410C). */
  background: linear-gradient(135deg, var(--accent-dark) 0%, #C2410C 100%);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #C2410C 0%, var(--accent-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.12);
}
.btn--primary:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 2px;
}
.btn--primary:hover::before { transform: translateX(100%); }

.btn--secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--accent-dark); }

.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}

/* =========================================================
   Header
   ========================================================= */

.site-banner {
  background:
    radial-gradient(ellipse at left, rgba(249, 115, 22, 0.20), transparent 50%),
    linear-gradient(90deg, var(--navy), var(--navy-soft));
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 10px 24px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.site-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}
.site-banner strong { color: #fdba74; font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.site-logo__mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #fff url('../../altaxia.jpg') center/cover no-repeat;
  font-size: 0;
  color: transparent;
  display: block;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-logo:hover .site-logo__mark {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.40);
}
.site-logo__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.site-footer__brand .site-logo__mark { width: 40px; height: 40px; }
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease-soft);
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav a.is-current { color: var(--accent-dark); }
.site-nav a.is-current::after { transform: scaleX(1); }
.site-header__cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 102;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-soft), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .site-header__cta .btn { padding: 11px 18px; font-size: 13px; }
  .site-nav a { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }

  /* CRITICAL: drop backdrop-filter on mobile.
     `backdrop-filter` (and transform / filter / will-change) on an
     ancestor makes that ancestor become the containing block for any
     `position: fixed` descendant — meaning a fixed dropdown placed
     inside the header would be positioned relative to the header's box,
     not the viewport, and end up at "top: 0 of the header" (= the very
     top of the page even when scrolled). We compensate by making the
     header background more opaque so it still looks solid. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
  .site-header.is-scrolled {
    background: #fff;
  }

  /* Drop-down menu anchored to the actual viewport-bottom of the sticky
     header. We use `position: fixed` (not absolute) because iOS Safari is
     unreliable about positioning absolute children of sticky elements —
     they can render at the original (un-stuck) document position, which
     made the menu open at the very top of the page when scrolled.
     --header-bottom is set by main.js from getBoundingClientRect(). */
  .site-nav {
    position: fixed;
    top: var(--header-bottom, 64px);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: max-height 0.32s var(--ease-soft),
                opacity 0.18s ease,
                transform 0.32s var(--ease-soft),
                visibility 0s linear 0.32s;
    z-index: 101;
  }
  .site-nav.is-open {
    max-height: calc(100vh - var(--header-bottom, 64px));
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: max-height 0.32s var(--ease-soft),
                opacity 0.18s ease,
                transform 0.32s var(--ease-soft),
                visibility 0s linear 0s;
  }
  .site-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    min-height: 56px;
    box-sizing: border-box;
  }
  .site-nav a::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
  }
  .site-nav a::after { display: none; }
  .site-nav a.is-current {
    background: var(--bg-soft);
    color: var(--accent-dark);
  }
  .site-nav .btn {
    margin: 16px 20px 20px;
    padding: 16px;
    font-size: 15px;
    width: calc(100% - 40px);
    min-height: 52px;
    border-radius: var(--r-md);
    justify-content: center;
  }
  .site-nav .btn::before { display: none; }
}

/* =========================================================
   Hero (FV)
   ========================================================= */

.hero {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(249, 115, 22, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(11, 31, 58, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(253, 230, 138, 0.10), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fffbf5 60%, var(--bg-soft) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg-soft));
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin: 0 0 28px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent-dark); /* fallback */
  background: linear-gradient(120deg, var(--accent) 0%, #fb923c 50%, #fdba74 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  padding: 0 4px;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 0.05em;
  height: 0.18em;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.20), rgba(253, 186, 116, 0.10));
  border-radius: 4px;
  z-index: -1;
}
.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  margin: 0 0 32px;
  line-height: 1.85;
}
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 32px;
}
.hero__visual {
  position: relative;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s var(--ease-soft);
}
.badge:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.badge--accent {
  background: linear-gradient(135deg, var(--accent-soft), #ffedd5);
  border-color: #fed7aa;
  color: var(--accent-dark);
}

/* =========================================================
   Media frames (画像枠)
   ========================================================= */

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-soft));
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
}
.media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--16x10 { aspect-ratio: 16 / 10; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

.media-frame--placeholder {
  display: grid;
  place-items: center;
  color: var(--text-light);
  background:
    radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(circle at 30% 80%, rgba(99, 102, 241, 0.10), transparent 60%),
    linear-gradient(135deg, var(--bg-warm), var(--bg-soft) 60%, #e0e7ff);
}
.media-frame--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 90%);
}
.media-frame__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-radius: var(--r-full);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.16em;
}
.media-frame__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

/* Hero photo (replaces .hero-mockup on pages that use a real photo).
   Inherits .media-frame styling but adds the soft float animation
   and a richer shadow so it sits nicely beside the headline. */
.hero-photo {
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.05);
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
}
.hero-photo img {
  border-radius: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
}

/* =========================================================
   Quality page UI mocks (no external image dependency)
   ========================================================= */

/* Pre-launch checklist mock — used on quality.html FV right column */
.quality-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 24px 20px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.05);
  font-family: var(--font-jp);
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .quality-mock { animation: none; } }
.quality-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.quality-mock__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #cbd5e1;
}
.quality-mock__dot--r { background: #f87171; }
.quality-mock__dot--y { background: #fbbf24; }
.quality-mock__dot--g { background: #34d399; }
.quality-mock__title {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.quality-mock__list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 10px;
}
.quality-mock__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.quality-mock__list li.is-pending {
  background: var(--bg-warm);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--accent-dark);
}
.qm-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--success);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}
.quality-mock__list li.is-pending .qm-check {
  background: var(--accent);
  font-size: 14px;
}
.quality-mock__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.quality-mock__progress {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.quality-mock__progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: inherit;
}
.quality-mock__count {
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

/* Performance / SEO scoreboard mock — used on quality.html SPEED & SEO */
.perf-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.10),
    0 4px 12px rgba(15, 23, 42, 0.04);
  font-family: var(--font-jp);
}
.perf-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.perf-mock__label { color: var(--accent-dark); }
.perf-mock__url {
  font-family: var(--font-en);
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.perf-mock__scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.perf-score {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}
.perf-score__ring {
  width: 92px; height: 92px;
  transform: rotate(-90deg);
}
.perf-score__track {
  fill: none;
  stroke: var(--bg-soft);
  stroke-width: 3;
}
.perf-score__fill {
  fill: none;
  stroke: var(--c, var(--success));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p));
  transition: stroke-dashoffset 1.2s var(--ease);
}
.perf-score__num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% - 8px));
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.perf-score__name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.perf-mock__items {
  list-style: none;
  padding: 16px 0 8px;
  margin: 0;
  display: grid;
  gap: 10px;
}
.perf-mock__items li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.perf-mock__note {
  margin: 12px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-light);
}

/* Hero mockup illustration */
.hero-mockup {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.6), transparent 50%),
    linear-gradient(135deg, #ffedd5, #fef3c7 60%, #e0e7ff);
  border-radius: var(--r-xl);
  padding: 48px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.06);
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(11, 31, 58, 0.08), transparent 50%);
}
.hero-mockup__pc {
  position: absolute;
  top: 18%; left: 8%;
  width: 70%;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.hero-mockup__pc::before {
  content: "";
  display: block;
  height: 18px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(circle at 10px 9px, #fca5a5 3.5px, transparent 4px),
    radial-gradient(circle at 26px 9px, #fcd34d 3.5px, transparent 4px),
    radial-gradient(circle at 42px 9px, #86efac 3.5px, transparent 4px);
}
.hero-mockup__pc-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-mockup__pc-content span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-soft), var(--border));
}
.hero-mockup__pc-content span:nth-child(1) { width: 60%; height: 14px; background: var(--text); }
.hero-mockup__pc-content span:nth-child(2) { width: 90%; }
.hero-mockup__pc-content span:nth-child(3) { width: 75%; }
.hero-mockup__pc-content span:nth-child(4) { width: 85%; }
.hero-mockup__pc-content .mockup-cta {
  margin-top: 8px;
  width: 110px; height: 28px;
  border-radius: var(--r-full);
  background: var(--accent);
}
.hero-mockup__phone {
  position: absolute;
  right: 6%; bottom: 6%;
  width: 26%;
  aspect-ratio: 9 / 18;
  background: #fff;
  border-radius: 18px;
  border: 4px solid #0f172a;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.25);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-mockup__phone::before {
  content: "";
  width: 30%;
  height: 4px;
  background: #0f172a;
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
}
.hero-mockup__phone span {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--bg-soft), var(--border));
}
.hero-mockup__phone span:nth-child(1) { width: 70%; height: 10px; background: var(--text); }
.hero-mockup__phone span:nth-child(2) { width: 100%; }
.hero-mockup__phone span:nth-child(3) { width: 90%; }
.hero-mockup__phone span:nth-child(4) {
  margin-top: auto;
  width: 100%; height: 24px;
  border-radius: var(--r-full);
  background: var(--accent);
}
.hero-mockup__floating {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  z-index: 2;
}
.hero-mockup__floating--1 {
  top: 8%; right: 6%;
  color: var(--success);
  animation: floatBounce 4s ease-in-out infinite;
}
.hero-mockup__floating--2 {
  bottom: 8%; left: 4%;
  color: var(--accent-dark);
  animation: floatBounce 4s ease-in-out infinite 2s;
}
@keyframes floatBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}
.hero-mockup__floating::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 600px) {
  .hero-mockup { padding: 24px; }
}

/* =========================================================
   Section Header
   ========================================================= */

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
  position: relative;
}
.section-head .eyebrow { justify-content: center; }
.section-head--left { text-align: left; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.section-head--left .lead { margin-left: 0; }
.section-head h2 {
  position: relative;
  display: inline-block;
}

/* =========================================================
   Cards & Grids
   ========================================================= */

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
/* 4-col grid (price cards) — even when the viewport is wide, the
   container is capped at 1200px, which means each card is ~282px in
   4-col mode. That's too narrow to keep the price line side-by-side
   at the headline font size, so for laptops (16:10 around 1280px and
   below) we drop to 2x2 immediately. The 4-col layout is reserved for
   actually wide displays where comparison-at-a-glance makes sense. */
@media (max-width: 1279px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
  z-index: 1;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at top right, rgba(253, 186, 116, 0.6), transparent 70%),
    linear-gradient(135deg, var(--accent-soft), #fef3c7);
  color: var(--accent-dark);
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}
.card__icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 50%);
  pointer-events: none;
}
.card__icon svg { width: 28px; height: 28px; stroke-width: 2; position: relative; z-index: 1; }
.card__num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 8px;
  display: block;
}

@media (max-width: 600px) {
  .card { padding: 24px; }
}

/* Worry list (悩み項目) */
.worry-list {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.worry-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.worry-list li::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.worry-list li:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.worry-list li:hover::after { transform: scaleY(1); }
.worry-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image:
    linear-gradient(45deg, transparent 45%, var(--accent-dark) 45%, var(--accent-dark) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--accent-dark) 45%, var(--accent-dark) 55%, transparent 55%);
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Check list */
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}
.check-list--cross li::before {
  background: #fee2e2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* =========================================================
   Pricing
   ========================================================= */

.price-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.price-group-head__tag {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.1em;
}
.price-group-head h3 { margin: 0; font-size: 1.5rem; }

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.price-card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 16px 48px rgba(249, 115, 22, 0.20), 0 1px 2px rgba(15, 23, 42, 0.04);
  background:
    radial-gradient(ellipse at top right, rgba(253, 186, 116, 0.16), transparent 60%),
    linear-gradient(180deg, #fff, #fffaf3);
  transform: translateY(-6px);
}
.price-card--featured::before {
  content: "★ おすすめ";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 7px 18px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.40);
  white-space: nowrap;
}
.price-card--featured::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 70%);
  pointer-events: none;
  border-top-right-radius: var(--r-lg);
}
.price-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.price-card__desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
  min-height: 42px;
}
/* Legacy price-card__price classes — kept for any older references */
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-card__price-num {
  font-family: var(--font-en);
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text), var(--navy-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.price-card--featured .price-card__price-num {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card__price-unit { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.price-card__price-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.price-card__price-sub strong {
  color: var(--text);
  font-weight: 700;
}

/* New 2-line price layout — initial fee + monthly fee shown side-by-side
   with explicit "初期費用 / 月額" labels so visitors can never misread
   the headline number as the monthly cost. */
.price-lines {
  display: grid;
  gap: 10px;
  margin: 14px 0 8px;
}
.price-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: baseline;
  column-gap: 14px;
}
.price-line__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  height: 26px;
  align-self: center;
}
.price-line__value {
  color: var(--text);
  font-family: var(--font-en), var(--font-jp);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.price-line--initial .price-line__value {
  font-size: clamp(28px, 4.4vw, 44px);
  background: linear-gradient(135deg, var(--text), var(--navy-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-line--monthly .price-line__value {
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--text);
}
.price-card--featured .price-line--initial .price-line__value {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card--featured .price-line__label {
  background: rgba(249, 115, 22, 0.10);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--accent-dark);
}
@media (max-width: 600px) {
  .price-line { grid-template-columns: 64px 1fr; column-gap: 10px; }
  .price-line__label { font-size: 11.5px; padding: 3px 8px; height: 22px; }
}

/* When price-cards are shown 4-up (>=1280px), each card is fixed at
   ~282px (container 1200px / 4). Stack the price-line vertically so
   the value gets the full card width, and reduce the headline size
   slightly so digits like "298,000円〜" never push past the edge. */
@media (min-width: 1280px) {
  .grid--4 .price-line {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .grid--4 .price-line__label {
    justify-self: start;
    height: 24px;
    font-size: 12px;
    padding: 3px 10px;
  }
  .grid--4 .price-line--initial .price-line__value {
    font-size: clamp(26px, 2.5vw, 34px);
    line-height: 1.05;
  }
  .grid--4 .price-line--monthly .price-line__value {
    font-size: clamp(16px, 1.4vw, 20px);
  }
  .grid--4 .price-lines { gap: 12px; }
}
.price-card__price-meta {
  font-size: 12.5px;
  color: var(--text-light);
  margin: 0 0 24px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  flex-grow: 1;
}
.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.price-card__features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background: var(--accent-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

/* Pricing tables (additional pages, options) */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 14px;
}
.price-table thead {
  background: var(--bg-soft);
}
.price-table th, .price-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.price-table td.num, .price-table th.num { text-align: right; font-family: var(--font-en); font-weight: 700; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--bg-soft); }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.table-wrap .price-table { border: none; border-radius: 0; }

/* =========================================================
   Flow / Steps
   ========================================================= */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  position: relative;
}
.step:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}
.step__num {
  background:
    radial-gradient(circle at top right, rgba(253, 186, 116, 0.4), transparent 70%),
    linear-gradient(180deg, var(--accent-soft), #fef3c7);
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-dark);
  letter-spacing: -0.04em;
  position: relative;
}
.step__num::before {
  content: "STEP";
  position: absolute;
  top: 12px;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  opacity: 0.6;
}
.step__num::after {
  content: "";
  position: absolute;
  right: -1px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
}
.step__body { padding: 24px 28px; }
.step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 800;
}
.step__body p { margin: 0; font-size: 14.5px; line-height: 1.75; }

@media (max-width: 600px) {
  .step { grid-template-columns: 72px 1fr; }
  .step__num { font-size: 1.5rem; }
  .step__num::before { font-size: 8px; top: 8px; }
  .step__body { padding: 18px 20px; }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-group {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-group--full { max-width: none; }

.faq-cat {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.faq-cat:first-child { margin-top: 0; }

.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.3s;
}
.faq[open] { border-color: var(--accent); box-shadow: var(--shadow-md); }
.faq summary {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  position: relative;
  line-height: 1.55;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  flex-shrink: 0;
  width: 34px; height: 34px;
  background:
    radial-gradient(circle at top right, rgba(253, 186, 116, 0.5), transparent 60%),
    linear-gradient(135deg, var(--accent-soft), #fef3c7);
  color: var(--accent-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 14px;
  margin-top: -2px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.18);
  transition: transform 0.3s var(--ease);
}
.faq[open] summary::before {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  transform: scale(1.05);
}
.faq summary::after {
  content: "";
  margin-left: auto;
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s var(--ease-soft);
}
.faq[open] summary::after { transform: rotate(180deg); }
.faq__body {
  padding: 0 28px 24px 76px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.85;
}
.faq__body p { margin: 0 0 8px; }
.faq__body p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .faq summary { padding: 18px 20px; gap: 12px; font-size: 14.5px; }
  .faq__body { padding: 0 20px 20px 64px; }
}

/* =========================================================
   Team cards
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  transition: all 0.3s var(--ease);
}
.team-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.team-card__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, transparent 60%),
    linear-gradient(135deg, var(--accent-soft), #fef3c7 60%, #e0e7ff);
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.20), 0 0 0 1px rgba(249, 115, 22, 0.12);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 32px;
  color: var(--accent-dark);
  letter-spacing: -0.04em;
}
.team-card__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 50%);
  pointer-events: none;
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
/* When the avatar holds a real photo, drop the gradient + initial styling
   so the photo isn't tinted, and bias cropping toward the upper-third
   so the face stays centered when cover-cropped to a circle. */
.team-card__avatar--photo {
  background: #f1f5f9;
  font-size: 0;
  color: transparent;
}
.team-card__avatar--photo img { object-position: center 25%; }
.team-card__role {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.team-card__name {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.team-card__name-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.team-card__tagline {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.55;
}
.team-card__body p { font-size: 14px; margin: 0 0 14px; line-height: 1.85; color: var(--text); }
.team-card__body p:last-of-type { margin-bottom: 0; }
.team-card__body strong { color: var(--accent-dark); font-weight: 800; }

.team-card__hl {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.team-card__hl h4 {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-card__hl h4::before {
  content: "";
  display: inline-block;
  width: 14px; height: 2px;
  background: var(--accent);
}
.team-card__hl ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.team-card__hl li {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.team-card__hl li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #fdba74);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.team-card__hl strong { color: var(--accent-dark); font-weight: 800; }

.team-card__tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-card__tags span {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  transition: border-color 0.2s, color 0.2s;
}
.team-card__tags span:hover { border-color: var(--accent); color: var(--accent-dark); }

@media (max-width: 880px) {
  .team-card { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
  .team-card__avatar { width: 84px; height: 84px; font-size: 28px; }
}
@media (max-width: 600px) {
  .team-card { padding: 22px; }
  .team-card__name { font-size: 1.25rem; }
  .team-card__hl { padding: 14px 16px; }
  .team-card__hl li { font-size: 13px; }
}

/* =========================================================
   Simulation
   ========================================================= */

.sim-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.sim-progress {
  height: 4px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.sim-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fb923c);
  width: 20%;
  transition: width 0.4s var(--ease-soft);
}
.sim-step {
  padding: 40px;
  display: none;
  animation: fadeUp 0.4s var(--ease-soft);
}
.sim-step.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sim-step__num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sim-step__q {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1.4;
}
.sim-options {
  display: grid;
  gap: 10px;
  margin: 0 0 32px;
}
.sim-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s var(--ease-soft);
  width: 100%;
}
.sim-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(4px);
}
.sim-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.sim-option__radio {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
  transition: all 0.2s;
}
.sim-option.is-selected .sim-option__radio {
  border-color: var(--accent);
  background: var(--accent);
}
.sim-option.is-selected .sim-option__radio::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}
.sim-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sim-result {
  padding: 40px;
  display: none;
}
.sim-result.is-active { display: block; }
.sim-result__head {
  text-align: center;
  margin-bottom: 32px;
}
.sim-result__eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.sim-result__plan {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin: 0 0 12px;
}
.sim-result__lead {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto;
}
.sim-result__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
}
.sim-result__stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.sim-result__stat-value {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
.sim-result__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin: 32px 0;
  list-style: none;
  padding: 0;
}
.sim-result__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.sim-result__features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background: var(--accent-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 600px) {
  .sim-step, .sim-result { padding: 28px 24px; }
  .sim-result__stats { grid-template-columns: 1fr; gap: 12px; }
  .sim-result__features { grid-template-columns: 1fr; }
  .sim-option { padding: 14px 18px; font-size: 14px; }
}

/* =========================================================
   CTA section
   ========================================================= */

.cta-section {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(249, 115, 22, 0.30), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(217, 70, 239, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(11, 31, 58, 0.4), transparent 70%),
    linear-gradient(135deg, var(--bg-navy), var(--navy-soft));
  color: #fff;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.6) 0%, transparent 30%),
    linear-gradient(0deg, rgba(11, 31, 58, 0.6) 0%, transparent 30%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; text-align: center; }
.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}
.cta-section .lead {
  color: rgba(255, 255, 255, 0.78);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}
.cta-section .btn-group { justify-content: center; }
.cta-section .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-section .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--bg-navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 32px;
  font-size: 14px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer__brand .site-logo__mark { box-shadow: none; }
.site-footer p { color: rgba(255, 255, 255, 0.65); font-size: 13.5px; line-height: 1.85; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  transition: color 0.2s;
}
.site-footer ul a:hover { color: var(--accent); }
.site-footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom .eng { letter-spacing: 0.05em; }

@media (max-width: 880px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .site-footer { padding: 60px 0 24px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
}

/* =========================================================
   Animations
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

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

/* =========================================================
   Misc / Utilities
   ========================================================= */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }

.divider {
  height: 1px; background: var(--border); border: 0; margin: clamp(48px, 6vw, 64px) 0;
}

.notice {
  background: var(--bg-warm);
  border: 1px solid #fed7aa;
  border-radius: var(--r-md);
  padding: 20px 24px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.85;
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--text); }

.tag-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 0;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
}

/* small flex util */
.flex-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flex-list .tag {
  background: #fff;
  border: 1px solid var(--border-strong);
}

.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 880px) { .compare-cards { grid-template-columns: 1fr; } }
.compare-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.compare-card h4 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: 1.125rem;
}
.compare-card h4 .compare-card__tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-weight: 800;
}

/* highlight callout */
.callout {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.8), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(253, 186, 116, 0.4), transparent 60%),
    linear-gradient(135deg, var(--accent-soft), #fef3c7);
  border-radius: var(--r-lg);
  padding: 32px;
  align-items: center;
  border: 1px solid #fed7aa;
  position: relative;
  overflow: hidden;
}
.callout::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.10), transparent 60%);
  pointer-events: none;
}
.callout__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  color: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.18), 0 0 0 1px rgba(249, 115, 22, 0.10);
  position: relative;
  z-index: 1;
}
.callout__icon svg { width: 26px; height: 26px; }
.callout h3 { margin: 0 0 6px; font-size: 1.125rem; position: relative; z-index: 1; }
.callout p { margin: 0; font-size: 14.5px; position: relative; z-index: 1; }
.callout > div:nth-child(3) { position: relative; z-index: 1; }
@media (max-width: 880px) { .callout { grid-template-columns: 1fr; gap: 16px; } }

/* Stats / meta blocks */
.meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.meta-row__cell {
  background: #fff;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: background 0.3s var(--ease);
}
.meta-row__cell:hover {
  background: linear-gradient(180deg, #fff, var(--bg-warm));
}
.meta-row__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
  letter-spacing: 0.16em;
}
.meta-row__value {
  font-family: var(--font-en);
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
}
@media (max-width: 880px) { .meta-row { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Legal Documents (privacy, tokushoho)
   ========================================================= */

.legal-doc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.legal-doc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #fdba74, var(--accent));
}
.legal-doc__intro {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
}
.legal-doc h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 14px;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.legal-doc h3::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #fdba74);
}
.legal-doc h3:first-child { margin-top: 0; }
.legal-doc p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.legal-doc ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 8px;
}
.legal-doc ul li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-muted);
}
.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-doc ul li strong { color: var(--text); font-weight: 800; }
.legal-doc__contact {
  margin: 16px 0 0;
  padding: 24px;
  background: var(--bg-warm);
  border: 1px solid #fed7aa;
  border-radius: var(--r-md);
}
.legal-doc__contact dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 24px;
  margin: 0;
}
.legal-doc__contact dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.legal-doc__contact dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}
.legal-doc__contact a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc__date {
  font-size: 13px;
  color: var(--text-light);
  text-align: right;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}

.legal-table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(16px, 3vw, 32px) clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.legal-table::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #fdba74, var(--accent));
}
.legal-table dl { margin: 0; }
.legal-table__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.legal-table__row:last-child { border-bottom: none; }
.legal-table dt {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.04em;
  padding-top: 4px;
  position: relative;
  padding-left: 14px;
}
.legal-table dt::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-table dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.85;
}
.legal-table dd a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) {
  .legal-table__row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .legal-table dt { font-size: 12px; padding-top: 0; }
}

/* =========================================================
   Animations (heavy)
   ========================================================= */

/* Page-load fade in (CSS fallback if JS doesn't run) */
@keyframes pageFadeIn { to { opacity: 1; } }
body {
  opacity: 0;
  animation: pageFadeIn 0.6s var(--ease) 0.1s forwards;
}
body.is-loaded { opacity: 1; animation: none; }
.no-js body { opacity: 1; animation: none; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.04);
}
.scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fdba74, var(--accent-dark));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

/* Cursor blob */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.5);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s, mix-blend-mode 0.3s;
  will-change: transform;
}
.cursor-blob.is-visible { opacity: 1; }
.cursor-blob.is-active {
  background: rgba(249, 115, 22, 0.18);
  mix-blend-mode: normal;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
}
@media (pointer: coarse) {
  .cursor-blob { display: none; }
}

/* Hero canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}

/* Split title char animation */
[data-split-title] .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(8deg);
  filter: blur(8px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease),
    filter 0.7s var(--ease);
  transition-delay: var(--ch-delay, 0ms);
}
[data-split-title].is-revealing .ch {
  opacity: 1;
  transform: translateY(0) rotate(0);
  filter: blur(0);
}

/* Word cycler */
.word-cycler {
  display: inline-block;
  position: relative;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s var(--ease);
  background: linear-gradient(120deg, var(--accent), #fb923c, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  padding: 0 0.1em;
}
.word-cycler.is-out {
  opacity: 0;
  transform: translateY(-0.3em);
  filter: blur(6px);
}

/* Magnetic buttons base */
[data-magnetic] {
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

/* 3D tilt base */
[data-tilt] {
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  background: linear-gradient(90deg, var(--bg-soft), var(--bg-warm), var(--bg-soft));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 48px;
  align-items: center;
  flex-shrink: 0;
  padding-right: 48px;
  animation: marqueeRoll 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.marquee__item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.marquee__item.jp {
  font-family: var(--font-jp);
  font-size: 14px;
  letter-spacing: 0;
}
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Floating shapes (decorations behind content) */
.float-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: shapeFloat 12s ease-in-out infinite;
}
.float-shape--1 {
  top: 10%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(249, 115, 22, 0.4), transparent);
}
.float-shape--2 {
  top: 50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.18), transparent);
  animation-delay: -4s;
  animation-duration: 16s;
}
.float-shape--3 {
  bottom: -10%; left: 30%;
  width: 350px; height: 350px;
  background: radial-gradient(closest-side, rgba(253, 186, 116, 0.3), transparent);
  animation-delay: -8s;
  animation-duration: 18s;
}
@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  z-index: 1;
  opacity: 0;
  animation: scrollIndicatorFade 0.6s var(--ease) 2.4s forwards;
}
.scroll-indicator__line {
  position: relative;
  width: 1.5px;
  height: 56px;
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
}
.scroll-indicator__line::before {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scrollLine 2s linear infinite;
}
@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 100%; }
}
@keyframes scrollIndicatorFade {
  to { opacity: 0.7; }
}

/* Hero rotating words container */
.hero-rotator {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.hero-rotator__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Stat row (animated counter cards) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat-cell {
  background: #fff;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.stat-cell:hover {
  background: linear-gradient(180deg, #fff, var(--bg-warm));
}
.stat-cell__num {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-cell__unit {
  font-family: var(--font-en);
  font-size: 0.65em;
  font-weight: 800;
  color: var(--accent-dark);
  margin-left: 2px;
}
.stat-cell__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { padding: 28px 16px; }
}

/* Spotlight section (gradient mesh follows scroll) */
.spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(249, 115, 22, 0.10), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(99, 102, 241, 0.08), transparent 50%);
  animation: spotlightDrift 18s ease-in-out infinite;
}
@keyframes spotlightDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

/* =========================================================
   Futuristic Hero Intro (index.html)
   ========================================================= */

/* =========================================================
   Boot Overlay - "Altaxia" wordmark assembly
   0.0-0.4s  Construction frame draws
   0.4-1.7s  Letters assemble (7 letters, 0.18s stagger)
   1.7-2.0s  Underline + sweep
   2.0-2.6s  Subline appears, hold
   2.6-3.3s  Fade out
   ========================================================= */

.cosmos-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(ellipse at center, #14213d 0%, #0a1224 55%, #050912 100%);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-en);
  animation: bootFadeOut 0.7s var(--ease) 2.6s forwards;
  will-change: opacity;
}
.cosmos-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(253, 224, 71, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 224, 71, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0;
  animation: bootGridIn 0.9s var(--ease) 0.05s forwards, bootGridOut 0.6s var(--ease) 2.7s forwards;
  pointer-events: none;
}
.cosmos-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(249, 115, 22, 0.16), transparent 70%);
  opacity: 0;
  animation: bootGlowIn 1.2s var(--ease) 0.4s forwards;
  pointer-events: none;
}
.cosmos-overlay.is-done { display: none; }
@keyframes bootFadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes bootGridIn { to { opacity: 1; } }
@keyframes bootGridOut { to { opacity: 0; } }
@keyframes bootGlowIn { to { opacity: 1; } }

/* Boot stage */
.boot-stage {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 24px;
  max-width: 92vw;
}

/* Construction frame — top + bottom hairlines that draw in then retract */
.boot-frame {
  position: relative;
  display: inline-block;
  padding: 14px 32px 18px;
}
.boot-frame::before,
.boot-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(253, 224, 71, 0.6) 20%, rgba(253, 224, 71, 0.6) 80%, transparent 100%);
  transform: scaleX(0);
  animation: bootFrameDraw 0.6s var(--ease) 0.05s forwards, bootFrameOut 0.5s var(--ease) 2.5s forwards;
}
.boot-frame::before { top: 0; }
.boot-frame::after  { bottom: 0; animation-delay: 0.15s, 2.5s; }
@keyframes bootFrameDraw { to { transform: scaleX(1); } }
@keyframes bootFrameOut { to { opacity: 0; transform: scaleX(0.5); } }

/* Frame corner ticks — small accents at each corner */
.boot-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid rgba(253, 224, 71, 0.7);
  opacity: 0;
  animation: bootCornerIn 0.4s var(--ease) 0.55s forwards, bootCornerOut 0.4s var(--ease) 2.55s forwards;
}
.boot-corner--tl { top: -1px;    left: -1px;    border-right: 0; border-bottom: 0; }
.boot-corner--tr { top: -1px;    right: -1px;   border-left: 0;  border-bottom: 0; }
.boot-corner--bl { bottom: -1px; left: -1px;    border-right: 0; border-top: 0; }
.boot-corner--br { bottom: -1px; right: -1px;   border-left: 0;  border-top: 0; }
@keyframes bootCornerIn  { to { opacity: 1; } }
@keyframes bootCornerOut { to { opacity: 0; } }

/* Wordmark — 7 letters of "Altaxia" */
.boot-wordmark {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 6.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.boot-letter {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, #fde68a 0%, #fdba74 30%, #f97316 60%, #fb923c 80%, #fde68a 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(249, 115, 22, 0.35));
  opacity: 0;
  clip-path: inset(45% 0 45% 0);
  transform: translateY(8px);
  animation:
    bootLetterAssemble 0.65s var(--ease) forwards,
    bootLetterShine 5s ease-in-out 1.7s infinite;
}
@keyframes bootLetterAssemble {
  0%   { opacity: 0; clip-path: inset(45% 0 45% 0); transform: translateY(10px); filter: drop-shadow(0 6px 18px rgba(249, 115, 22, 0.35)) blur(6px); }
  60%  { opacity: 1; clip-path: inset(0 0 0 0);     transform: translateY(0);    filter: drop-shadow(0 6px 18px rgba(249, 115, 22, 0.35)) blur(0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0);     transform: translateY(0);    filter: drop-shadow(0 6px 18px rgba(249, 115, 22, 0.35)); }
}
@keyframes bootLetterShine {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.boot-letter:nth-child(1) { animation-delay: 0.40s, 1.7s; }
.boot-letter:nth-child(2) { animation-delay: 0.55s, 1.7s; }
.boot-letter:nth-child(3) { animation-delay: 0.70s, 1.7s; }
.boot-letter:nth-child(4) { animation-delay: 0.85s, 1.7s; }
.boot-letter:nth-child(5) { animation-delay: 1.00s, 1.7s; }
.boot-letter:nth-child(6) { animation-delay: 1.15s, 1.7s; }
.boot-letter:nth-child(7) { animation-delay: 1.30s, 1.7s; }

/* Tiny scaffold pip below each letter (drops in then fades) */
.boot-letter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(253, 224, 71, 0.85);
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.7);
  transform: translateX(-50%) scale(0);
  animation: bootPipIn 0.4s var(--ease) forwards, bootPipOut 0.6s var(--ease) forwards;
}
.boot-letter:nth-child(1)::after { animation-delay: 0.30s, 1.55s; }
.boot-letter:nth-child(2)::after { animation-delay: 0.45s, 1.55s; }
.boot-letter:nth-child(3)::after { animation-delay: 0.60s, 1.55s; }
.boot-letter:nth-child(4)::after { animation-delay: 0.75s, 1.55s; }
.boot-letter:nth-child(5)::after { animation-delay: 0.90s, 1.55s; }
.boot-letter:nth-child(6)::after { animation-delay: 1.05s, 1.55s; }
.boot-letter:nth-child(7)::after { animation-delay: 1.20s, 1.55s; }
@keyframes bootPipIn  { to { transform: translateX(-50%) scale(1); } }
@keyframes bootPipOut { to { opacity: 0; transform: translateX(-50%) scale(0.4) translateY(6px); } }

/* Sweep highlight that passes across the wordmark after letters land */
.boot-sweep {
  position: absolute;
  top: 14px; bottom: 18px;
  left: 0;
  width: 25%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  animation: bootSweep 1s var(--ease) 1.7s forwards;
}
@keyframes bootSweep {
  0%   { opacity: 0; transform: translateX(-30%); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(420%); }
}

/* Subline — "WEB DESIGN STUDIO" */
.boot-subline {
  margin-top: 22px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: rgba(253, 230, 138, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-left: 0.5em;
  opacity: 0;
  animation: bootSublineIn 0.8s var(--ease) 1.9s forwards;
}
.boot-subline::before, .boot-subline::after {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 224, 71, 0.6), transparent);
}
@keyframes bootSublineIn {
  from { opacity: 0; transform: translateY(6px); letter-spacing: 0.7em; }
  to   { opacity: 1; transform: translateY(0);   letter-spacing: 0.5em; }
}

@media (max-width: 600px) {
  .boot-wordmark { font-size: clamp(2.6rem, 14vw, 4.4rem); }
  .boot-frame { padding: 10px 18px 14px; }
  .boot-subline { letter-spacing: 0.36em; font-size: 10px; }
}

/* Constellation clusters in 4 corners (replaces HUD brackets) */
.constellation {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 90px; height: 90px;
  opacity: 0;
  animation: constellationIn 1.4s var(--ease) 1.6s forwards;
}
.constellation svg { width: 100%; height: 100%; overflow: visible; }
.constellation__line {
  stroke: rgba(249, 115, 22, 0.35);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: constellationDraw 1.6s var(--ease) 1.8s forwards;
}
.constellation__star {
  fill: rgba(253, 224, 71, 0.95);
  filter: drop-shadow(0 0 4px rgba(253, 224, 71, 0.7));
  animation: starTwinkle 3s ease-in-out infinite;
}
.constellation__star:nth-child(2n) { animation-delay: 0.6s; }
.constellation__star:nth-child(3n) { animation-delay: 1.2s; }
.constellation--tl { top: 24px; left: 24px; }
.constellation--tr { top: 24px; right: 24px; animation-delay: 1.7s; transform: scaleX(-1); }
.constellation--bl { bottom: 24px; left: 24px; animation-delay: 1.8s; transform: scaleY(-1); }
.constellation--br { bottom: 24px; right: 24px; animation-delay: 1.9s; transform: scale(-1, -1); }
@keyframes constellationIn { to { opacity: 1; } }
@keyframes constellationDraw { to { stroke-dashoffset: 0; } }
@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Star coordinate panels (replaces HUD readouts) */
.star-tag {
  position: absolute;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: starTagIn 0.8s var(--ease) 2.2s forwards;
  pointer-events: none;
}
.star-tag--tr {
  top: 72px;
  right: 32px;
}
.star-tag--bl {
  bottom: 60px;
  left: 32px;
  animation-delay: 2.4s;
}
.star-tag__icon {
  width: 12px; height: 12px;
  flex-shrink: 0;
}
.star-tag__icon svg { width: 100%; height: 100%; }
.star-tag__text {
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}
@keyframes starTagIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 880px) {
  .star-tag, .constellation { display: none; }
}

/* Comet streaks (replaces diag-line, occasional shooting stars) */
.hero-comet {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 220px; height: 1.2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, rgba(253, 224, 71, 0.85) 92%, white 100%);
  border-radius: 2px;
  filter: blur(0.5px);
  opacity: 0;
  transform-origin: right center;
}
.hero-comet::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: white;
  transform: translateY(-50%);
  box-shadow: 0 0 8px white, 0 0 16px rgba(253, 224, 71, 0.7);
}
.hero-comet--1 {
  top: 12%;
  animation: heroCometShoot 2.4s var(--ease) 3s infinite;
  animation-delay: 3s;
}
.hero-comet--2 {
  top: 38%;
  animation: heroCometShoot 2.6s var(--ease) 6s infinite;
  animation-delay: 6s;
}
@keyframes heroCometShoot {
  0% { transform: translate(-30vw, 0) rotate(-18deg); opacity: 0; }
  6% { opacity: 1; }
  60% { opacity: 0.9; }
  100% { transform: translate(120vw, 30vh) rotate(-18deg); opacity: 0; }
}
@media (max-width: 880px) {
  .hero-comet { display: none; }
}

/* Aurora ribbon in hero (gentle wave, replaces scan-beam) */
.hero-aurora {
  position: absolute;
  top: 25%; bottom: 25%;
  left: -10%; right: -10%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(168, 85, 247, 0.10) 30%,
    rgba(236, 72, 153, 0.12) 50%,
    rgba(249, 115, 22, 0.10) 70%,
    transparent 100%);
  filter: blur(36px);
  transform: skewY(-6deg);
  mix-blend-mode: screen;
  opacity: 0;
  animation: heroAuroraIn 1.8s var(--ease) 2.4s forwards;
  will-change: opacity;
}
@keyframes heroAuroraIn { to { opacity: 1; } }
@media (max-width: 880px) {
  .hero-aurora { display: none; }
}

/* Orbital planets in corners (replaces geo-shape, slow drift) */
.cosmic-orb {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: cosmicOrbIn 1.4s var(--ease) 2.4s forwards, cosmicOrbDrift 18s ease-in-out infinite;
}
.cosmic-orb svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cosmic-orb--1 {
  width: 56px; height: 56px;
  top: 5%; right: 4%;
}
.cosmic-orb--2 {
  width: 36px; height: 36px;
  bottom: 8%; left: 3%;
  animation-delay: 2.6s, 0s;
  animation-duration: 1.4s, 22s;
  animation-direction: normal, reverse;
}
.cosmic-orb--3 {
  width: 44px; height: 44px;
  top: 60%; left: 2%;
  animation-delay: 2.8s, 0s;
  animation-duration: 1.4s, 26s;
}
@keyframes cosmicOrbIn { to { opacity: 0.6; } }
@keyframes cosmicOrbDrift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(8px, -10px); }
  66% { transform: translate(-6px, 6px); }
}
@media (max-width: 1080px) {
  .cosmic-orb--3 { display: none; }
}
@media (max-width: 880px) {
  .cosmic-orb { display: none; }
}

/* Hero title — celestial glow (replaces holo) */
.hero__title em.celestial {
  /* Solid color fallback for browsers where background-clip:text fails */
  color: var(--accent-dark);
  /* Stronger orange-only gradient — no pale stops that vanish mid-animation */
  background: linear-gradient(120deg, var(--accent) 0%, #fb923c 25%, #fdba74 50%, #fb923c 75%, var(--accent-dark) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: celestialShift 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.35));
}
@supports not (background-clip: text) {
  .hero__title em.celestial {
    background: none;
    -webkit-text-fill-color: var(--accent-dark);
    color: var(--accent-dark);
  }
}
@keyframes celestialShift {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* Twinkle accent dots floating around the em */
.hero__title em.celestial::before,
.hero__title em.celestial::after {
  content: "✦";
  position: absolute;
  font-size: 0.4em;
  color: rgba(253, 224, 71, 0.9);
  text-shadow: 0 0 8px rgba(253, 224, 71, 0.7);
  -webkit-text-fill-color: rgba(253, 224, 71, 0.9);
  animation: titleTwinkle 3s ease-in-out infinite;
  z-index: -1;
}
.hero__title em.celestial::before {
  top: -0.1em;
  left: -0.4em;
  animation-delay: 0.5s;
}
.hero__title em.celestial::after {
  bottom: -0.1em;
  right: -0.3em;
  animation-delay: 1.6s;
}
@keyframes titleTwinkle {
  0%, 100% { opacity: 0.9; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.4; transform: scale(0.6) rotate(180deg); }
}

/* Mockup CRT scanline */
.hero-mockup__pc {
  position: absolute; /* (existing) */
}
.hero-mockup__pc::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 18px; height: 100%;
  background: linear-gradient(180deg,
    transparent 0%, transparent 49%,
    rgba(249, 115, 22, 0.06) 49.5%, rgba(249, 115, 22, 0.06) 50.5%,
    transparent 51%, transparent 100%);
  background-size: 100% 6px;
  pointer-events: none;
  opacity: 0.7;
}
.hero-mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 70%, rgba(249, 115, 22, 0.1) 100%);
  mix-blend-mode: screen;
}

/* Energy node chips (orbs of light around the mockup) */
.hero-chip {
  position: absolute;
  z-index: 3;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, rgba(26, 19, 64, 0.95), rgba(11, 31, 58, 0.95));
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
  box-shadow:
    0 12px 32px rgba(26, 19, 64, 0.35),
    0 0 0 1px rgba(253, 224, 71, 0.3),
    0 0 24px rgba(253, 224, 71, 0.25);
  opacity: 0;
  animation: chipIn 0.8s var(--ease) 2.4s forwards, chipFloat 6s ease-in-out 3s infinite;
}
.hero-chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f97316 60%);
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.9), 0 0 20px rgba(249, 115, 22, 0.5);
  animation: chipDotPulse 2.4s ease-in-out infinite;
}
@keyframes chipDotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(253, 224, 71, 0.9), 0 0 20px rgba(249, 115, 22, 0.5); }
  50% { transform: scale(1.2); box-shadow: 0 0 16px rgba(253, 224, 71, 1), 0 0 28px rgba(249, 115, 22, 0.7); }
}
.hero-chip__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(253, 230, 138, 0.7);
}
/* Plain-text chip variant (no fake KPI numbers) */
.hero-chip__text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.hero-chip__value {
  font-variant-numeric: tabular-nums;
  color: #fde68a;
  text-shadow: 0 0 8px rgba(253, 224, 71, 0.4);
}
.hero-chip--1 {
  top: 5%; left: -4%;
  animation-delay: 2.4s, 3s;
}
.hero-chip--2 {
  top: 32%; right: -6%;
  animation-delay: 2.6s, 3.2s;
}
.hero-chip--3 {
  bottom: 6%; left: 8%;
  animation-delay: 2.8s, 3.4s;
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.7) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 880px) {
  .hero-chip--1, .hero-chip--2 { display: none; }
  .hero-chip--3 { left: 4%; }
}

/* Mandala / star sigil (replaces aim-cross — sacred geometry) */
.cosmic-sigil {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 64px; height: 64px;
  bottom: 16%; right: 4%;
  opacity: 0;
  animation: sigilAppear 1.2s var(--ease) 2.6s forwards, sigilDrift 12s ease-in-out 3s infinite;
}
.cosmic-sigil svg { width: 100%; height: 100%; overflow: visible; }
.cosmic-sigil__ring {
  fill: none;
  stroke: rgba(249, 115, 22, 0.35);
  stroke-width: 1;
}
.cosmic-sigil__ring--dashed {
  stroke-dasharray: 3 4;
  stroke: rgba(253, 224, 71, 0.4);
  animation: sigilSpin 24s linear infinite;
  transform-origin: center;
}
.cosmic-sigil__star {
  fill: rgba(253, 224, 71, 0.9);
  filter: drop-shadow(0 0 4px rgba(253, 224, 71, 0.7));
  animation: starTwinkle 2.5s ease-in-out infinite;
}
@keyframes sigilAppear { to { opacity: 0.9; } }
@keyframes sigilDrift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(12px, -10px); }
  66% { transform: translate(-8px, 6px); }
}
@keyframes sigilSpin { to { transform: rotate(360deg); } }
@media (max-width: 880px) { .cosmic-sigil { display: none; } }

/* Hero internal content delay — only applied when boot overlay runs.
   `:not(.boot-skipped)` ensures repeat visitors (boot suppressed via
   localStorage) don't have to wait 3 seconds to see the FV text. */
.has-boot:not(.boot-skipped) .hero__inner > div > .eyebrow,
.has-boot:not(.boot-skipped) .hero__inner > div > .hero-rotator,
.has-boot:not(.boot-skipped) .hero__inner > div > .hero__title,
.has-boot:not(.boot-skipped) .hero__inner > div > .hero__lead,
.has-boot:not(.boot-skipped) .hero__inner > div > .hero__badges,
.has-boot:not(.boot-skipped) .hero__inner > div > .btn-group {
  opacity: 0;
  animation: heroContentIn 0.8s var(--ease) forwards;
}
.has-boot:not(.boot-skipped) .hero__inner > div > .eyebrow         { animation-delay: 2.9s; }
.has-boot:not(.boot-skipped) .hero__inner > div > .hero-rotator    { animation-delay: 3.0s; }
.has-boot:not(.boot-skipped) .hero__inner > div > .hero__title     { animation-delay: 3.1s; }
.has-boot:not(.boot-skipped) .hero__inner > div > .hero__lead      { animation-delay: 3.2s; }
.has-boot:not(.boot-skipped) .hero__inner > div > .hero__badges    { animation-delay: 3.3s; }
.has-boot:not(.boot-skipped) .hero__inner > div > .btn-group       { animation-delay: 3.4s; }
.has-boot:not(.boot-skipped) .hero__visual {
  opacity: 0;
  animation: heroVisualIn 1.0s var(--ease) 3.2s forwards;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Once intro is past, override the override so .reveal works */
.hero.is-ready .hero__inner > div > * { animation: none; opacity: 1; transform: none; }
.hero.is-ready .hero__visual { animation: none; opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .float-shape,
  .hero-mockup,
  .hero-mockup__floating--1,
  .hero-mockup__floating--2,
  .scroll-indicator__line::before,
  .spotlight::before,
  .cosmos-overlay,
  .boot-frame::before,
  .boot-frame::after,
  .boot-corner,
  .boot-letter,
  .boot-letter::after,
  .boot-sweep,
  .boot-subline,
  .hero-aurora,
  .hero-comet,
  .cosmic-orb,
  .cosmic-sigil,
  .cosmic-sigil__ring--dashed,
  .constellation,
  .constellation__line,
  .constellation__star,
  .star-tag,
  .hero-chip,
  .hero-chip__dot,
  .hero__title em.celestial,
  .hero__title em.celestial::before,
  .hero__title em.celestial::after,
  .hero__inner > div > *,
  .hero__visual {
    animation: none !important;
  }
  .cosmos-overlay { display: none; }
  body { opacity: 1 !important; }
  [data-split-title] .ch {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero__inner > div > * { opacity: 1 !important; transform: none !important; }
  .hero__visual { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Heading text layout — prevent mid-word breaks &
   balance line lengths so single-character orphans don't appear
   ========================================================= */
.hero__title,
.section-title,
h1, h2, h3 {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: balance;
  /* Let trailing punctuation (、。 ） 」 etc.) hang past the right edge
     instead of orphaning onto a new line. Supported in Safari & FF;
     Chromium ignores it gracefully. */
  hanging-punctuation: allow-end last;
  /* never let a heading overflow its container horizontally */
  max-width: 100%;
}
/* Body copy: prefer prettier line breaks (avoids single-char dangling lines)
   in browsers that support text-wrap: pretty (Chromium 117+, Safari 17.4+). */
p, li, .lead {
  text-wrap: pretty;
  hanging-punctuation: allow-end last;
}
/* Force Web/Latin words to stay intact even if container is narrow */
.hero__title em,
.section-title em,
h1 em, h2 em, h3 em { white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* On narrow screens, `keep-all` is too strict for long Japanese phrases
   that have no kinsoku break points within the visible width — relax it
   so the browser may break between any CJK chars rather than overflowing. */
@media (max-width: 600px) {
  .hero__title,
  .section-title,
  h1, h2, h3 {
    word-break: normal;
    line-break: auto;
    overflow-wrap: anywhere;
  }
  /* Let .section-head h2 wrap as a block instead of an inline-block so
     the box width is bounded by the parent, not by the longest word. */
  .section-head h2 {
    display: block;
    font-size: clamp(1.4rem, 5.6vw, 1.85rem);
    line-height: 1.3;
  }
  .hero__title {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
    line-height: 1.25;
  }
}

/* =========================================================
   Contact form (contact.html / inline)
   ========================================================= */
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-shell { grid-template-columns: 1fr; }
}
.contact-form {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.18);
}
@media (max-width: 600px) {
  .contact-form { padding: 22px; }
}
.contact-form__row { margin-bottom: 18px; }
.contact-form__row:last-of-type { margin-bottom: 0; }
.contact-form__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-form__label .req {
  color: var(--accent);
  font-weight: 800;
  margin-left: 4px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}
.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(-45deg, transparent 50%, var(--text-muted) 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.contact-form__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 18px;
  font-size: 14px;
  color: var(--text);
}
.contact-form__consent input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.contact-form__consent a {
  color: var(--accent-dark);
  text-decoration: underline;
}
.contact-form__submit { text-align: center; }
.contact-form__submit .btn { width: 100%; }
.contact-form__notice {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}
.contact-form__feedback {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}
.contact-form__feedback.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #166534;
}
.contact-form__feedback.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

.contact-aside {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}
@media (max-width: 880px) {
  .contact-aside { position: static; }
}
.contact-aside__photo {
  margin: 0 0 22px;
}
.contact-aside h3 {
  font-size: 1.05rem;
  margin: 0 0 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-aside h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}
.contact-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-aside li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.contact-aside li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-aside__direct {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.contact-aside__direct a {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}
