/* ============================================
   Sukimagiken — Spatial Tech Hub
   ============================================ */
:root {
  --bg: #06080c;
  --bg-elevated: #0c1118;
  --bg-panel: #101820;
  --line: rgba(120, 200, 255, 0.14);
  --line-strong: rgba(80, 255, 210, 0.45);
  --accent: #3dffc1;
  --accent-dim: rgba(61, 255, 193, 0.12);
  --signal: #6ec9ff;
  --text: #e7eef6;
  --text-secondary: #9aabbd;
  --text-muted: #6b7c8f;
  --header-h: 72px;
  --radius: 4px;
  --font-display: "Oxanium", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #8fffe0; }

.main { min-height: 60vh; }

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.logo-mark::before {
  width: 8px;
  height: 8px;
  top: 4px;
  left: 4px;
}

.logo-mark::after {
  width: 12px;
  height: 1px;
  bottom: 7px;
  left: 4px;
  box-shadow: 0 -4px 0 var(--accent), 4px -8px 0 var(--signal);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-service {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.logo-by {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 8px 12px;
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #04110c;
}

.btn-primary:hover {
  background: #8fffe0;
  color: #04110c;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg { padding: 16px 28px; font-size: 14px; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 24px 72px;
  overflow: hidden;
}

.hero-compact {
  min-height: 78vh;
  min-height: 78dvh;
  padding-bottom: 56px;
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 201, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 201, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(61, 255, 193, 0.04) 48%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scanMove 7s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 75% 35%, rgba(61, 255, 193, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.2) 0%, rgba(6, 8, 12, 0.55) 55%, rgba(6, 8, 12, 0.96) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
  animation: riseIn 0.9s var(--ease) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--accent);
  animation: riseIn 0.9s var(--ease) 0.08s both;
}

.hero-lead {
  max-width: 34em;
  color: var(--text-secondary);
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 32px;
  animation: riseIn 0.9s var(--ease) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: riseIn 0.9s var(--ease) 0.24s both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 72px 24px;
  position: relative;
}

.section-compact {
  padding: 56px 24px 80px;
}

.section-hub {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-desc-short {
  margin-bottom: 28px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head-row .section-title {
  margin-bottom: 0;
}

.section-head-row .section-label {
  margin-bottom: 10px;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-desc {
  max-width: 40em;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 17px;
}

.section-cta { margin-top: 40px; }

.section-philosophy {
  background:
    linear-gradient(180deg, transparent, rgba(16, 24, 32, 0.7)),
    var(--bg);
  border-top: 1px solid var(--line);
}

.philosophy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.philosophy-point {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.philosophy-num {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.philosophy-point h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.philosophy-point p {
  color: var(--text-secondary);
  font-size: 15px;
}

.section-businesses {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-contact {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.company-fact {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.company-fact:nth-child(2n) { border-right: none; }

.company-fact:last-child {
  border-bottom: none;
  border-right: none;
}

.company-facts:has(.company-fact:nth-child(odd):last-child) .company-fact:last-child {
  grid-column: 1 / -1;
}

.company-fact dt {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.company-fact dd {
  font-size: 18px;
  font-weight: 500;
}

.section-cta-full {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(61, 255, 193, 0.1), transparent 60%),
    var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.section-cta-full h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 12px;
}

.section-cta-full p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ============================================
   Business cards (interaction containers)
   ============================================ */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.biz-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  min-height: 180px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.biz-card-live:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: #121c26;
  color: inherit;
}

.biz-card-soon {
  opacity: 0.72;
}

.biz-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.biz-en {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.biz-status {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #04110c;
  background: var(--accent);
  padding: 4px 8px;
}

.biz-status-soon {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.biz-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.biz-summary {
  color: var(--text-secondary);
  font-size: 15px;
  flex: 1;
}

.biz-action {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.biz-card-soon .biz-action { color: var(--text-muted); }

/* ============================================
   Page / content
   ============================================ */
.page-hero {
  padding: calc(var(--header-h) + 48px) 24px 36px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(61, 255, 193, 0.05), transparent 70%),
    var(--bg);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 12px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.page-desc {
  color: var(--text-secondary);
  max-width: 36em;
}

.page {
  padding: 40px 24px 72px;
}

.page-slim {
  padding-bottom: 64px;
}

.page-content {
  max-width: var(--max);
  margin: 0 auto;
}

.page-content > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 17px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p { margin-bottom: 16px; color: var(--text-secondary); }
.page-content strong { color: var(--text); font-weight: 700; }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 15px;
}

.page-content th,
.page-content td {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.page-content th {
  width: 28%;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.page-content td { background: var(--bg-panel); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  min-height: 200px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: inherit;
}

.contact-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}

.contact-card h2 {
  all: unset;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.contact-card p {
  color: var(--text-secondary);
  flex: 1;
  margin: 0;
}

.contact-card-action {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.contact-note {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  background: #04060a;
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.footer-tagline {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav-link {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.footer-nav-link:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ============================================
   Reveal
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .philosophy-points,
  .biz-grid,
  .contact-grid,
  .company-facts {
    grid-template-columns: 1fr;
  }

  .company-fact {
    border-right: none !important;
  }

  .company-fact:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .company-facts:has(.company-fact:nth-child(odd):last-child) .company-fact:last-child {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
