/* =========================================================
   星雲 / NebulaCore-ARK — Landing Page
   Theme: Dark / Modern / Seamless — space & nebula
   ========================================================= */

:root {
  --bg:            #05060f;
  --bg-2:          #0a0c1c;
  --bg-3:          #0f1230;
  --surface:       rgba(20, 24, 54, 0.55);
  --surface-solid: #12152e;
  --border:        rgba(120, 150, 255, 0.16);

  --text:          #eef1ff;
  --text-muted:    #b4bad6;
  --text-dim:      #838ab0;

  --accent-blue:   #4da3ff;
  --accent-blue-2: #7cc0ff;
  --accent-red:    #ff4757;
  --accent-red-2:  #ff7b86;
  --accent-purple: #a855f7;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-jp: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Orbitron", var(--font-jp);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Seamless cosmic backdrop that runs behind every section */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(77, 163, 255, 0.16), transparent 60%),
    radial-gradient(1000px 800px at 100% 12%, rgba(168, 85, 247, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 71, 87, 0.10), transparent 60%),
    linear-gradient(180deg, #05060f 0%, #070a1c 45%, #05060f 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.2px 1.2px at 75% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.6px 1.6px at 60% 70%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.3px 1.3px at 90% 60%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.5), transparent);
  background-repeat: repeat;
  background-size: 700px 700px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

/* ---------- Accent text ---------- */
.accent-blue {
  color: var(--accent-blue-2);
  text-shadow:
    0 0 14px rgba(77, 163, 255, 0.65),
    0 0 34px rgba(77, 163, 255, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.55);
}
.accent-red {
  color: var(--accent-red-2);
  text-shadow:
    0 0 14px rgba(255, 71, 87, 0.6),
    0 0 34px rgba(255, 71, 87, 0.32),
    0 2px 4px rgba(0, 0, 0, 0.55);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 999;
  background: var(--accent-blue);
  color: #001028;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 8, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: baseline; gap: 0.55rem; }
.brand__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  align-self: center;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent-purple) 45%, #3b1d6e 80%);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.8), 0 0 34px rgba(77, 163, 255, 0.5);
}
.brand__name {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
}
.brand__domain {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s var(--ease);
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.nav-cta):hover { color: var(--text); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(77, 163, 255, 0.5);
  color: var(--text) !important;
  background: rgba(77, 163, 255, 0.12);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}
.nav-cta:hover {
  background: rgba(77, 163, 255, 0.24);
  box-shadow: 0 0 22px rgba(77, 163, 255, 0.45);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 12, 28, 0.6);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   1. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/hero-bg.png");
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  filter: brightness(0.5) saturate(1.18) blur(4px);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* suppress the caption baked into the artwork (upper-left band) */
    radial-gradient(130% 80% at 24% 30%, rgba(5, 6, 15, 0.92), rgba(5, 6, 15, 0.4) 58%, transparent 78%),
    linear-gradient(180deg, rgba(5, 6, 15, 0.78) 0%, rgba(5, 6, 15, 0.45) 42%, rgba(5, 6, 15, 0.84) 84%, var(--bg) 100%);
}

.hero__content {
  padding-top: 96px;
  padding-bottom: 120px;
  max-width: 940px;
}
.hero__title {
  font-size: clamp(1.72rem, 5.6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.7),
    0 8px 40px rgba(0, 0, 0, 0.55);
}
.hero__subtitle {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--accent-blue), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}
.hero__scroll-text {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-bg: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
  will-change: transform;
}
.btn--lg { padding: 1.15rem 2.4rem; font-size: 1.05rem; }

.btn--primary {
  color: #00122b;
  background: linear-gradient(135deg, var(--accent-blue-2), var(--accent-blue) 55%, var(--accent-purple));
  box-shadow: 0 10px 30px rgba(77, 163, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(77, 163, 255, 0.5), 0 0 30px rgba(168, 85, 247, 0.4);
}
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(124, 192, 255, 0.5);
}
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* =========================================================
   Generic section
   ========================================================= */
.section {
  position: relative;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
}
.section--about   { background: linear-gradient(180deg, transparent, rgba(10, 12, 28, 0.5) 12%, rgba(10, 12, 28, 0.5) 88%, transparent); }
.section--services{ background: linear-gradient(180deg, transparent, rgba(15, 18, 48, 0.4) 20%, transparent); }

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-blue-2);
  margin-bottom: 0.9rem;
}
.section__eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  margin-right: 0.8rem;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
}
.section__title {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 2.6rem;
}

/* ---------- About ---------- */
.about__body {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.about__body p {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-muted);
}
.about__body strong {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 71, 87, 0.55);
  padding-bottom: 1px;
}

/* ---------- Services ---------- */
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.6), transparent 40%, rgba(255, 71, 87, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.service-card__title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.03em;
}
.service-card__title::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: 0.9rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}
.service-card__lead {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.product {
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
}
.product__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
}
.product__bullet {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent-blue) 55%, var(--accent-purple));
  box-shadow: 0 0 14px rgba(77, 163, 255, 0.8);
  flex: none;
}
.product__desc {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}
.product__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 2rem;
}
.product__tags li {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-blue-2);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(77, 163, 255, 0.35);
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.08);
}
.product__url {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

/* ---------- Company profile ---------- */
.profile {
  max-width: 820px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.profile__row {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.profile__row + .profile__row { border-top: 1px solid var(--border); }
.profile dt {
  padding: 1.15rem 1.6rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--border);
  letter-spacing: 0.04em;
}
.profile dd {
  padding: 1.15rem 1.6rem;
  color: var(--text-muted);
}
.profile dd a {
  color: var(--accent-blue-2);
  border-bottom: 1px solid rgba(77, 163, 255, 0.4);
  transition: color 0.2s var(--ease);
}
.profile dd a:hover { color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: rgba(5, 6, 15, 0.8);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.site-footer__brand { display: flex; align-items: baseline; gap: 0.6rem; }
.site-footer__nav { display: flex; gap: 1.6rem; }
.site-footer__nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.site-footer__nav a:hover { color: var(--text); }
.site-footer__copy {
  width: 100%;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.75rem;
    background: #070a18;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(-140%);
    transition: transform 0.4s var(--ease);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a {
    padding: 1rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    padding: 0.9rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 1.75rem, var(--maxw)); }
  body { line-height: 1.8; }

  .hero__content { padding-top: 88px; padding-bottom: 96px; }
  .hero__title { line-height: 1.5; }
  .hero__title br { display: none; }
  .hero__subtitle { margin-top: 1rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .profile__row { grid-template-columns: 1fr; }
  .profile dt {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.7rem;
  }
  .profile dd { padding-top: 0.8rem; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Motion / accessibility preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--accent-blue-2);
  outline-offset: 3px;
  border-radius: 4px;
}
