/* ============================================================
   QHEAD — Design System
   Apple Store × PlayStation × Cyberpunk × Premium Tech
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Brand accent */
  --accent: #ff6a00;
  --accent-2: #ff9446;
  --accent-hover: #ff8124;
  --accent-grad: linear-gradient(135deg, #ff8a3d 0%, #ff5e00 100%);
  --accent-soft: rgba(255, 106, 0, 0.12);
  --accent-line: rgba(255, 106, 0, 0.35);

  /* Text */
  --text-primary: #f4f4f6;
  --text-secondary: rgba(244, 244, 246, 0.66);
  --text-muted: rgba(244, 244, 246, 0.4);
  --text-tertiary: rgba(244, 244, 246, 0.4);
  --text-on-accent: #ffffff;

  /* Surfaces */
  --bg-dark: #08080a;
  --surface-well: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.09);
  --surface-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  --border: rgba(255, 255, 255, 0.1);
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Shadows & glow */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 28px 64px -16px rgba(0, 0, 0, 0.72);
  --glow-orange-sm: 0 0 24px rgba(255, 106, 0, 0.28);
  --glow-orange-btn: 0 8px 22px -6px rgba(255, 106, 0, 0.55);
  --ring: 0 0 0 3px rgba(255, 106, 0, 0.4);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 30px;
  --r-pill: 9999px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Motion */
  --dur-fast: 0.16s;
  --dur: 0.3s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --header-h: 68px;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Ambient cinematic backdrop: orange glows + faint technical grid.
     Layered directly on body (fixed attachment) for robust compositing. */
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(58vw 48vh at 84% -10%, rgba(255, 106, 0, 0.16), transparent 60%),
    radial-gradient(44vw 40vh at -4% 2%, rgba(255, 106, 0, 0.07), transparent 55%),
    radial-gradient(70vw 60vh at 50% 116%, rgba(255, 106, 0, 0.05), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-position: 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed;
}

::selection { background: rgba(255, 106, 0, 0.32); color: #fff; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
  background-clip: padding-box;
}

/* Focus ring (keyboard only) */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  box-shadow: var(--ring);
}

/* --- Layout --- */
.w {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.qh-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.section-head {
  max-width: 660px;
  margin-bottom: var(--sp-7);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.03em;
}

.section-copy {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

/* Feature steps */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.feature-card {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--highlight-top);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 106, 0, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--highlight-top), var(--shadow-md);
}

.feature-card:hover::after { opacity: 1; }

.feature-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.feature-card h3 {
  font-size: 21px;
  margin-bottom: var(--sp-2);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* --- Components --- */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent-grad);
  color: var(--text-on-accent);
  box-shadow: var(--highlight-top), var(--glow-orange-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--highlight-top), 0 14px 30px -6px rgba(255, 106, 0, 0.72);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-hairline);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border-hairline);
}

.topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: inherit;
}

.brand img { height: 34px; border-radius: 8px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-jp {
  font-weight: 600;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Tiny hinomaru (rising-sun) dot before .jp */
.brand-jp::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 3px 0 1px;
  border-radius: 50%;
  background: #e60023;
  vertical-align: 2px;
  box-shadow: 0 0 6px rgba(230, 0, 35, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur-fast);
}

.nav a:hover { color: var(--text-primary); }

.primary-nav {
  background: var(--accent-grad);
  color: var(--text-on-accent) !important;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  box-shadow: var(--glow-orange-btn);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}

.primary-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(255, 106, 0, 0.7);
}

/* Logo + region switcher grouped together on the left of the header. */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-right: auto;
}
.topbar-brand .brand { margin-right: 0; }

.region-wrap {
  position: relative;
  margin-right: 0;
}
.region-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  background: var(--surface-2);
  border: none;
  border-radius: var(--r-pill);
  padding: 4px 6px;
  transition: background var(--dur-fast);
}
.region-toggle:hover { background: var(--surface-3); }
.region-flag {
  font-size: 18px;
  line-height: 1;
  opacity: 0.4;
  transition: opacity var(--dur-fast);
}
.region-flag.active { opacity: 1; }
.region-toggle:hover .region-flag:not(.active) { opacity: 0.7; }
.region-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  background: #1a1a1e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 6px;
  min-width: 220px;
  /* Centered + capped so it can't push past the viewport edge and add
     horizontal scroll — a fixed toggle position can't be assumed on every
     page, but this keeps the dropdown inside the visible width regardless. */
  max-width: calc(100vw - 32px);
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transform-origin: top center;
  transition: transform 0.2s cubic-bezier(.175,.885,.32,1.275), opacity 0.15s ease;
}
.region-wrap:hover .region-drop,
.region-wrap.open .region-drop {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.region-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--dur-fast);
}
.region-opt:hover { background: var(--surface-3); }
.region-opt.current { background: var(--surface-3); }
.region-opt-flag { font-size: 22px; line-height: 1; flex-shrink: 0; }
.region-opt-info { display: flex; flex-direction: column; gap: 1px; }
.region-opt-title { font-weight: 600; }
.region-opt-desc { font-size: 12px; color: var(--text-tertiary); font-weight: 400; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-7);
  align-items: center;
}

.hero-title {
  font-size: clamp(52px, 9.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: var(--sp-5);
}

.hero-title .accent {
  background: linear-gradient(120deg, #ff9a4d 0%, #ff5e00 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.tag:hover { border-color: var(--accent-line); color: var(--text-primary); }

.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-5);
  padding: 7px 16px 7px 7px;
  background: rgba(255, 106, 0, 0.07);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-promo strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--glow-orange-btn);
}

.hero-panel {
  position: relative;
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  box-shadow: var(--highlight-top), var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 106, 0, 0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.live-pill {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6);
  animation: pulse-live 2s ease-out infinite;
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

.hero-panel h2 {
  font-size: 23px;
  margin-bottom: var(--sp-2);
}

.hero-panel > p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: var(--sp-5);
}

/* ── Hero showcase: floating console with 3D tilt ── */
.hero-panel.showcase { overflow: hidden; perspective: 1000px; text-align: center; }
.hero-panel.showcase .hero-topline { justify-content: center; }

.show-stage {
  position: relative;
  height: 230px;
  margin: var(--sp-4) 0 var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s var(--ease-out);
}
/* Rising-sun rays behind the console — sized relative to the card so it
   looks consistent on every screen width. */
.show-rays {
  position: absolute; top: 50%; left: 50%;
  width: 130%; aspect-ratio: 1; height: auto;
  transform: translate(-50%, -50%) translateZ(-40px);
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255, 106, 0, 0.13) 0deg 5deg, transparent 5deg 13deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 2%, transparent 58%);
          mask: radial-gradient(circle at 50% 50%, #000 2%, transparent 58%);
  animation: showSpin 60s linear infinite;
}
@keyframes showSpin { to { transform: translate(-50%, -50%) translateZ(-40px) rotate(360deg); } }
.show-glow {
  position: absolute; top: 50%; left: 50%;
  width: 82%; aspect-ratio: 1; height: auto;
  transform: translate(-50%, -50%) translateZ(-20px);
  background: radial-gradient(circle, rgba(255, 106, 0, 0.28), transparent 65%);
  border-radius: 50%;
}
.show-console {
  position: relative; z-index: 2;
  max-width: 80%; max-height: 100%; object-fit: contain;
  transform: translateZ(60px);
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.65));
  animation: showFloat 5s ease-in-out infinite;
  transition: opacity 0.45s var(--ease-out);
}
.show-console.swap { opacity: 0; }
@keyframes showFloat {
  0%, 100% { transform: translateZ(60px) translateY(-6px); }
  50% { transform: translateZ(60px) translateY(10px); }
}
.show-shadow {
  position: absolute; bottom: 14px; left: 50%; width: 45%; height: 20px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  animation: showShadow 5s ease-in-out infinite;
}
@keyframes showShadow {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.5; }
  50% { transform: translateX(-50%) scaleX(1.16); opacity: 0.7; }
}

.show-caption { position: relative; z-index: 2; text-align: center; }
.show-caption strong { display: block; font-family: var(--font-display); font-size: 22px; }
.show-sub { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.show-sub b { color: var(--accent); font-weight: 700; }

.show-dots { display: flex; justify-content: center; gap: 7px; margin-top: var(--sp-4); }
.show-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-strong); cursor: pointer; transition: all 0.3s;
}
.show-dots i.on { background: var(--accent); width: 22px; border-radius: 4px; }

/* Cards & Panels */
.card {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--highlight-top);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
}

.proof-item {
  padding: var(--sp-5);
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--highlight-top);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.proof-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: var(--sp-2);
}

.proof-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* Catalog */
.cat-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
  padding-bottom: 8px;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}

.cat-tab:hover { color: var(--text-primary); border-color: var(--border-strong); }

.cat-tab.on {
  background: var(--accent-grad);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--glow-orange-btn);
}

.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.cat-tab.on .cat-count { background: rgba(0, 0, 0, 0.22); }

/* ── Visual catalog: photo-card grid ── */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.cat-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  box-shadow: var(--highlight-top);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--highlight-top), var(--glow-orange-sm);
}

.cat-card-img {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 106, 0, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-hairline);
}
.cat-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  transition: transform var(--dur) var(--ease-out);
}
.cat-card:hover .cat-card-img img { transform: scale(1.05); }

.cat-card-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
}
.cat-card-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.cat-card-price { color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 500; white-space: nowrap; }

/* ── Console detail modal ── */
.console-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.console-modal.open { display: block; }
.cm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: cmFade 0.2s var(--ease-out);
}
.cm-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-elevated, #141416);
  border: 1px solid var(--border-hairline); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg); animation: cmPop 0.26s var(--ease-out);
}
@keyframes cmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmPop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.cm-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-hairline);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.cm-close:hover { background: rgba(0, 0, 0, 0.65); }
.cm-img {
  display: flex; align-items: center; justify-content: center; padding: var(--sp-6);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 106, 0, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.02);
}
.cm-img img { max-width: 100%; max-height: 280px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
.cm-info { padding: var(--sp-6); }
.cm-brand { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.cm-name { font-family: var(--font-display); font-size: 26px; margin: 0 0 var(--sp-4); }
.cm-conds-head { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.cm-conds { margin-bottom: var(--sp-5); }
.cm-cond { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-hairline); font-size: 14px; }
.cm-cond:last-child { border-bottom: none; }
.cm-cond span { color: var(--text-secondary); }
.cm-cond strong { font-family: var(--font-mono); font-weight: 600; }
.cm-actions { display: flex; gap: var(--sp-3); }
.cm-actions .btn { flex: 1; height: 46px; }
.cm-note { margin: var(--sp-4) 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Catalog — "order any model" call-to-action */
.cat-anymodel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: linear-gradient(120deg, rgba(255, 106, 0, 0.1), rgba(255, 255, 255, 0.015) 60%);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xl);
  box-shadow: var(--highlight-top);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.cat-anymodel:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--highlight-top), var(--glow-orange-sm);
}

.cat-anymodel-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 4px;
}

.cat-anymodel-text span {
  display: block;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.cat-anymodel-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  background: var(--accent-grad);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: var(--glow-orange-btn);
  transition: transform var(--dur-fast) var(--ease-out);
}

.cat-anymodel:hover .cat-anymodel-btn { transform: translateY(-1px); }

/* Workspace / Dashboard */
.workspace-shell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-2xl);
  padding: var(--sp-5);
  box-shadow: var(--highlight-top);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-5);
}

.nav-card {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--highlight-top);
}

.brand-stack {
  text-align: center;
  margin-bottom: var(--sp-5);
}

.brand-stack img { width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--sp-2); }
.brand-stack p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  transition: all var(--dur-fast);
}

.tab-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.tab-btn.on {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.badge {
  margin-left: auto;
  background: var(--accent-grad);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}

/* Account Card */
.account-card {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--highlight-top);
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-5);
}

.account-user { display: flex; align-items: center; gap: var(--sp-4); }
.avatar {
  width: 52px;
  height: 52px;
  background: var(--accent-grad);
  color: var(--text-on-accent);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--glow-orange-sm);
}

.account-meta { text-align: right; font-size: 12px; color: var(--text-muted); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-4);
}

.summary-card {
  background: var(--surface-grad);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--highlight-top);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.summary-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.summary-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.summary-card span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Orders & Details */
.orders-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.order-card {
  padding: var(--sp-4);
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-lg);
  cursor: pointer;
  box-shadow: var(--highlight-top);
  transition: all var(--dur-fast) var(--ease-out);
}

.order-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.order-card.on { border-color: var(--accent-line); background: var(--accent-soft); }

.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.order-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.status-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-pill);
}
.online-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }

.order-meta { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.mini-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
}

.detail-panel { display: flex; flex-direction: column; gap: var(--sp-4); }
.detail-slab {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--highlight-top);
}

.detail-slab h3 { margin-bottom: var(--sp-3); font-size: 18px; }

.detail-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.detail-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  text-align: center;
  /* Grid items default to min-width:auto — long values (e.g. a stage name)
     would push the row past the viewport on narrow screens. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-pill strong { display: block; font-family: var(--font-display); font-size: 15px; }
.detail-pill span { font-size: 11px; color: var(--text-muted); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: var(--sp-4); position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-line), var(--border-hairline));
}

.timeline-step { position: relative; }
.timeline-step::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 3px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 1px var(--accent-line);
}

.timeline-step strong { display: block; font-size: 14px; }
.timeline-step span { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.timeline-step p { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }

/* Chat */
.messages-list {
  height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-right: 8px;
  padding-bottom: var(--sp-3);
}

.message {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  max-width: 85%;
}

.message img {
  max-width: 100%;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
  display: block;
  cursor: pointer;
  transition: transform var(--dur-fast);
}

.message img:hover {
  transform: scale(1.02);
}

.message.mine {
  align-self: flex-end;
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--text-on-accent);
  box-shadow: var(--glow-orange-btn);
}

.message-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; margin-bottom: 4px; opacity: 0.7; }
.message-head span:last-child { font-family: var(--font-mono); }
.message p { margin: 0; font-size: 14px; line-height: 1.45; }

.composer { margin-top: var(--sp-4); }
.composer textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  resize: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.composer textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.composer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-3);
}

.quick-row { display: flex; gap: var(--sp-2); }
.quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.quick-btn:hover { color: var(--text-primary); border-color: var(--accent-line); }

/* Quote Table */
.quote-table { display: flex; flex-direction: column; gap: var(--sp-3); }
.quote-line { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); font-size: 14px; font-family: var(--font-mono); }
.quote-line span { color: var(--text-secondary); font-family: var(--font-body); }
.quote-total { color: var(--accent); font-weight: 700; }

/* Payment rows */
.pay-title { display: flex; flex-direction: column; gap: 2px; }
.pay-title em { font-style: normal; font-size: 11.5px; color: var(--text-muted); line-height: 1.4; max-width: 320px; }
.pay-btn {
  flex-shrink: 0; height: 38px; padding: 0 18px; border: none; border-radius: var(--r-md);
  background: var(--accent-grad); color: #fff; font-family: var(--font-body); font-weight: 600;
  font-size: 13px; white-space: nowrap; cursor: pointer; box-shadow: var(--glow-orange-btn);
  transition: transform var(--dur-fast) var(--ease-out);
}
.pay-btn:hover { transform: translateY(-1px); }
/* Pending payment: promo selector + pay button */
.quote-line.pay-pending { align-items: flex-start; }
.pay-controls { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex-shrink: 0; min-width: 200px; }
.promo-sel {
  height: 36px; padding: 0 12px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.04); border: 1px solid var(--accent-line);
  color: var(--text-primary); font-family: var(--font-body); font-size: 13px; cursor: pointer;
}
.promo-sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.promo-sel option { background: #1a1a1a; }
@media (max-width: 600px) { .pay-controls { min-width: 150px; flex: 1; } }
.pay-status { flex-shrink: 0; font-family: var(--font-mono); font-size: 13px; }
.pay-status.paid { color: #2ecc71; }
.pay-status.processing { color: var(--accent); }
.pay-status.locked { color: var(--text-muted); }

@media (max-width: 480px) {
  /* Side-by-side squeezes .pay-title down to a sliver, so its note wraps
     into many narrow lines that visually interleave with .pay-status
     floating at mid-height next to them. Stack instead. */
  .quote-line { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pay-title em { max-width: none; }
  .pay-status { align-self: flex-start; }
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--highlight-top);
}
.review-stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; }
.review-text { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin: 0; flex: 1; }
.review-foot { display: flex; align-items: center; gap: var(--sp-3); }
.review-avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--text-on-accent); background: var(--accent-grad);
}
.review-who { display: flex; flex-direction: column; gap: 1px; }
.review-name { font-weight: 600; font-size: 15px; }
.review-meta { font-size: 12px; color: var(--text-tertiary); }

/* FAQ */
.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1;
  color: var(--accent); transition: transform var(--dur) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-secondary); font-size: 15px; line-height: 1.65;
}
.faq-item .faq-answer p { margin: 0 0 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Legal / prose pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(90px, 12vw, 140px) var(--sp-5) var(--sp-8);
}
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.03em;
}
.legal .legal-updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: var(--sp-7); }
.legal h2 {
  font-size: 20px; margin: var(--sp-7) 0 var(--sp-3);
  letter-spacing: -0.02em;
}
.legal p, .legal li { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.legal p { margin: 0 0 var(--sp-3); }
.legal ul { margin: 0 0 var(--sp-3); padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal .legal-note {
  margin-top: var(--sp-7); padding: var(--sp-5);
  background: var(--accent-soft); border-radius: var(--r-lg);
  font-size: 14px; color: var(--text-secondary);
}
.legal-back {
  display: inline-block; margin-bottom: var(--sp-6);
  color: var(--text-secondary); text-decoration: none; font-size: 14px;
}
.legal-back:hover { color: var(--text-primary); }

/* Register consent */
.consent {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  font-size: 13px; line-height: 1.5; color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
}
.consent input { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.consent a { color: var(--accent); }

@media (max-width: 860px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer {
  position: relative;
  background: #050506;
  padding: var(--sp-8) 0 var(--sp-6);
  border-top: 1px solid var(--border-hairline);
}

.footer-panel { display: flex; flex-direction: column; gap: var(--sp-6); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-6); }
.footer-brand { max-width: 400px; }
.footer-brand img { height: 34px; border-radius: 8px; margin-bottom: var(--sp-3); }
.footer-brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0; }

.footer-links { display: flex; gap: var(--sp-8); }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col strong { font-family: var(--font-display); font-size: 14px; color: var(--text-primary); }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Toast Notifications --- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--text-muted);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.32s var(--ease-out) forwards;
  font-size: 14px;
  font-weight: 500;
  min-width: 220px;
}

.toast.success { border-left-color: #34d399; }
.toast.error { border-left-color: #f87171; }
.toast.info { border-left-color: var(--accent); }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ───────── Japan accents ───────── */
/* Hero rising-sun rays (orange, on-brand — a nod to 日本 without kitsch) */
.hero { overflow: hidden; }
.hero-grid { position: relative; z-index: 2; }
.hero-rays {
  position: absolute; top: -180px; right: -140px;
  width: 640px; height: 640px; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 8deg at 50% 50%,
    rgba(255, 106, 0, 0.11) 0deg 5deg, transparent 5deg 13deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 4%, transparent 60%);
          mask: radial-gradient(circle at 50% 50%, #000 4%, transparent 60%);
}
.hero-rays::after {
  content: ""; position: absolute; inset: 41%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.35), transparent 72%);
}
/* Giant faint kana watermark behind the hero */
.jp-watermark {
  position: absolute; top: 50%; right: 1.5%; transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-display); font-weight: 700; line-height: 0.92;
  font-size: clamp(90px, 15vw, 190px);
  color: rgba(255, 255, 255, 0.028); letter-spacing: 0.08em;
  z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
}
/* Kanji prefix chip for eyebrows */
.qh-eyebrow .jp {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0;
  margin-right: 9px; padding-right: 9px;
  border-right: 1px solid var(--accent-line);
  color: var(--accent);
}
/* Small "from Japan" sub-line under the hero title */
.hero-jp-line {
  display: inline-flex; align-items: center; gap: 10px;
  margin: calc(-1 * var(--sp-3)) 0 var(--sp-4);
  font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
}
.hero-jp-line b { color: var(--accent); font-weight: 700; }
/* 日本 → Россия delivery route accent */
.jp-route {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  margin: 0 auto var(--sp-6); padding: 12px 22px; width: fit-content; max-width: 100%;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-hairline);
  border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 13px;
  color: var(--text-secondary); flex-wrap: wrap;
}
.jp-route .pt { display: inline-flex; align-items: center; gap: 7px; color: var(--text-primary); font-weight: 600; }
.jp-route .pt span { font-family: var(--font-display); color: var(--accent); }
.jp-route .dash {
  flex: 1; min-width: 40px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent-line) 0 6px, transparent 6px 12px);
}
/* Subtle seigaiha (wave-scale) texture strip */
.jp-seigaiha {
  height: 22px;
  background-image:
    radial-gradient(circle at 50% 110%, transparent 38%, rgba(255, 106, 0, 0.10) 38% 40%, transparent 41%);
  background-size: 36px 22px;
  opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    border-bottom: 1px solid var(--border-hairline);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: var(--sp-5); }
  .feature-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; }
  .cat-anymodel { flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5); }
  .cat-anymodel-btn { width: 100%; }

  /* Catalog: 2-up photo cards on mobile */
  .cat-list { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .cat-card-img { height: 130px; padding: var(--sp-4); }
  .cat-card-name { font-size: 14px; }
  .cat-card-body { flex-direction: column; align-items: flex-start; gap: 2px; padding: var(--sp-3) var(--sp-3) var(--sp-4); }

  /* Console modal becomes a stacked sheet */
  .cm-card { grid-template-columns: 1fr; width: calc(100% - 24px); max-height: calc(100% - 32px); }
  .cm-img { padding: var(--sp-5); }
  .cm-img img { max-height: 200px; }
  .cm-info { padding: var(--sp-5); }
  .cm-name { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
