:root {
  --bg: #061221;
  --cyan: #4dd9f0;
  --cyan-dim: rgba(77,217,240,0.15);
  --cyan-mid: rgba(77,217,240,0.5);
  --white: #e8f4f8;
  --text-sub: rgba(200,230,240,0.65);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  /* 高さは画像が決める（画像に対してテキストを固定するため） */
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  min-height: 800px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 画像の四方を背景色に溶け込ませる */
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 上辺 */
    linear-gradient(to bottom, var(--bg) 0px, transparent 32px),
    /* 下辺 */
    linear-gradient(to top,    var(--bg) 0px, transparent 32px),
    /* 左辺 */
    linear-gradient(to right,  var(--bg) 0px, transparent 32px),
    /* 右辺 */
    linear-gradient(to left,   var(--bg) 0px, transparent 32px);
}

/* 下半分をさらに背景色へフェード（テキスト可読性） */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(6,18,33,0.5) 60%,
    var(--bg) 90%
  );
}

.hero-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s 0.2s forwards;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title strong {
  font-weight: 600;
  color: var(--cyan);
}

.hero-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-sub);
  line-height: 1.9;
  letter-spacing: 0.06em;
  max-width: 560px;
  margin: 2vw auto 2.5vw;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

.btn-primary {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  padding: 14px 40px;
  background: var(--cyan);
  color: var(--bg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: #7de9f8; transform: translateY(-2px); }

.btn-outline {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  padding: 14px 40px;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-mid);
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.3s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(6,18,33,0.9), transparent);
}

.nav-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

/* ── STATS ── */
.stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(77,217,240,0.1);
  border-top: 1px solid rgba(77,217,240,0.15);
  border-bottom: 1px solid rgba(77,217,240,0.15);
}

.stat-item {
  background: var(--bg);
  padding: 48px 32px;
  text-align: center;
  transition: background 0.3s;
}
.stat-item:hover { background: rgba(77,217,240,0.04); }

.stat-num {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-unit {
  font-size: 1.2rem;
  opacity: 0.8;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

/* ── SECTION COMMON ── */
section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  letter-spacing: 0.5em;
  font-size: 0.65rem;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  line-height: 1.5;
}

.section-body {
  color: var(--text-sub);
  font-weight: 300;
  line-height: 1.95;
  font-size: 0.95rem;
  max-width: 620px;
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(77,217,240,0.1);
  margin-top: 64px;
  border: 1px solid rgba(77,217,240,0.1);
}

.feature-card {
  background: var(--bg);
  padding: 48px 36px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan-mid), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover { background: rgba(77,217,240,0.04); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  opacity: 0.85;
}

.feature-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.9;
  font-weight: 300;
}

/* ── DATA VIZ ── */
.data-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.data-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
}

.data-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(77,217,240,0.2);
  animation: rotate 20s linear infinite;
}

.data-ring:nth-child(1) { inset: 0; }
.data-ring:nth-child(2) { inset: 12%; animation-duration: 15s; animation-direction: reverse; border-style: dashed; }
.data-ring:nth-child(3) { inset: 24%; animation-duration: 25s; }

.data-ring::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--cyan);
}

.data-center {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,217,240,0.15), transparent);
  border: 1px solid var(--cyan-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.data-center-num {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: 1.8rem;
  color: var(--cyan);
}

.data-center-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  text-transform: uppercase;
}

/* ── FLOW ── */
.flow-list {
  margin-top: 64px;
  display: grid;
  gap: 0;
}

.flow-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(77,217,240,0.08);
  align-items: start;
}

.flow-num {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: 2.5rem;
  color: rgba(77,217,240,0.3);
  line-height: 1;
  padding-top: 4px;
}

.flow-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.flow-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.85;
  font-weight: 300;
}

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 160px 48px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77,217,240,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  max-width: 640px;
  margin: 0 auto 16px;
}

.cta-section .section-body {
  max-width: 480px;
  margin: 0 auto 48px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(77,217,240,0.1);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--text-sub);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(200,230,240,0.3);
  letter-spacing: 0.05em;
  font-family: 'Josefin Sans', sans-serif;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .stats { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .data-section { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}
