/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, dt, dd { margin: 0; }
ul, dl { margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ink: #10161f;
  --ink-muted: #5b6572;
  --navy-900: #070f1a;
  --navy-800: #0d1e30;
  --navy-700: #143349;
  --accent: #c9973f;
  --accent-light: #e8c37e;
  --border: #e6e8eb;
  --mono: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;
  --container-width: 1120px;
}

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.logo-mark {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.35s ease;
}
.logo-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.35s ease;
}
.is-scrolled .logo-mark { color: var(--navy-800); }
.is-scrolled .logo-text { color: var(--ink-muted); }

.site-nav { display: flex; gap: 2.5rem; }
.site-nav a {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
}
.nav-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-light);
}
.is-scrolled .site-nav a { color: var(--ink); }
.is-scrolled .nav-index { color: var(--accent); }
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.35s ease;
}
.is-scrolled .nav-toggle span { background: var(--navy-800); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 8rem;
  background: radial-gradient(1200px 600px at 78% 8%, rgba(201, 151, 63, 0.16), transparent 55%),
              linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
  color: #fff;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, black 20%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  top: -160px;
  background: radial-gradient(circle, rgba(201, 151, 63, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-light);
  margin-bottom: 1.75rem;
}
.eyebrow-line { width: 32px; height: 1px; background: var(--accent-light); }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
}
.hero-accent {
  background: linear-gradient(100deg, var(--accent-light), var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.75rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-light);
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ===== Content sheet (overlaps hero) ===== */
.content-sheet {
  position: relative;
  background: var(--bg);
  border-radius: 32px 32px 0 0;
  margin-top: -32px;
  box-shadow: 0 -20px 50px rgba(7, 15, 26, 0.12);
}

/* ===== Section shared ===== */
section { padding: 6rem 0; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 2.75rem;
}

/* ===== Business ===== */
.business { background: var(--bg); }
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.business-card {
  position: relative;
  padding: 2.75rem 2.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.business-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(201, 151, 63, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.business-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10, 22, 34, 0.12);
  border-color: rgba(201, 151, 63, 0.35);
}
.business-card:hover::before { opacity: 1; }
.business-index {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border);
}
.business-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  color: var(--accent-light);
  margin-bottom: 1.75rem;
  position: relative;
}
.business-icon svg { width: 25px; height: 25px; }
.business-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy-800);
  position: relative;
}
.business-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
  position: relative;
}
.business-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-800);
  position: relative;
}
.business-link svg { transition: transform 0.25s ease; }
.business-link:hover { color: var(--accent); }
.business-link:hover svg { transform: translate(2px, -2px); }

/* ===== Product panel ===== */
.product-panel {
  margin-top: 1.75rem;
  padding: 3rem 2.75rem;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  border-radius: 20px;
  color: #fff;
}
.product-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  margin: 0 0 0.9rem;
}
.product-logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0.25rem 0 0.75rem -6px;
}
.product-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.5rem;
}
.product-pain {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  max-width: 62ch;
  margin: 0 0 2.5rem;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem 2.25rem;
}
.feature-list li {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.feature-list h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-light);
  margin: 0 0 0.5rem;
}
.feature-list p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

/* ===== About ===== */
.about { background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.about-lead .section-title { margin-bottom: 1.25rem; }
.about-text {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 32ch;
}
.info-table {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.5rem 2rem;
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s ease;
}
.info-row:last-child { border-bottom: none; }
.info-row:hover { padding-left: 0.4rem; }
.info-row dt {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.info-row dd { color: var(--ink); }

/* ===== History ===== */
.history { background: var(--bg); }
.timeline {
  list-style: none;
  max-width: 720px;
  margin: 0;
  padding: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 1.75rem;
}
.timeline-date {
  padding-top: 0.05rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-800);
}
.timeline-date span {
  color: var(--accent);
  font-size: 0.85rem;
  margin-left: 1px;
}
.timeline-body {
  position: relative;
  padding-left: 1.75rem;
  padding-bottom: 2.75rem;
  border-left: 2px solid var(--border);
}
.timeline-item:last-child .timeline-body {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline-body::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.timeline-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact p:last-child { color: var(--ink-muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--mono);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
.footer-logo span {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 0.4em;
  font-size: 0.85rem;
}
.site-footer p { margin: 0; font-size: 0.82rem; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .business-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; z-index: 110; position: relative; }
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 260px; }
  .site-nav a {
    padding: 1.1rem 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 7rem 0 6rem; min-height: auto; }
  section { padding: 4rem 0; }
  .business-card { padding: 2.25rem 1.75rem; }
  .info-table { padding: 0.25rem 1.5rem; }
  .info-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .timeline-item { grid-template-columns: 70px 1fr; gap: 0 1rem; }
  .product-panel { padding: 2.25rem 1.75rem; }
  .feature-list { grid-template-columns: 1fr; gap: 1.5rem; }
}
