/* ============================================================
   JoNexus — 人類とAIと自然をつないで、前進しよう
   カラー: 人類=アンバー / AI=シアン / 自然=グリーン
   ============================================================ */

:root {
  --bg-0: #05070f;
  --bg-1: #0a0f1e;
  --bg-2: #101830;
  --text: #e6ecf7;
  --text-dim: #8b96ad;
  --line: rgba(140, 160, 200, 0.14);

  --human: #ffb547;   /* アンバー: 人類 */
  --ai: #22d3ee;      /* シアン: AI */
  --nature: #4ade80;  /* グリーン: 自然 */

  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Orbitron", var(--font-jp);

  --radius: 18px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 10% 30%, rgba(74, 222, 128, 0.07), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(255, 181, 71, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-0));
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ---------- 背景キャンバス ---------- */
#nexus-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(6, 9, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot-human  { background: var(--human);  box-shadow: 0 0 8px var(--human); }
.dot-nature { background: var(--nature); box-shadow: 0 0 8px var(--nature); }
.dot-ai     { background: var(--ai);     box-shadow: 0 0 8px var(--ai); }

.brand-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--ai); }

/* ---------- ヒーロー ---------- */
main { position: relative; z-index: 1; }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  letter-spacing: 0.45em;
  color: var(--text-dim);
  margin-bottom: 26px;
  animation: fadeUp 0.9s ease both;
}

.hero-title {
  font-size: clamp(1.7rem, 5.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero-title .line { display: block; }

.hero-title em {
  font-style: normal;
}
.c-ai {
  color: var(--ai);
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.55);
}
.c-nature {
  color: var(--nature);
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.5);
}

.hero-title .accent {
  margin-top: 0.2em;
  background: linear-gradient(90deg, var(--human), #fff 55%, var(--ai));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cursor {
  -webkit-text-fill-color: var(--ai);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin-top: 30px;
  color: var(--text-dim);
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.9s 0.45s ease both;
}

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn-primary {
  color: #041018;
  background: linear-gradient(90deg, var(--ai), #6ee7ff);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(34, 211, 238, 0.55);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(140, 160, 200, 0.35);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  border-color: var(--nature);
  color: var(--nature);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(140, 160, 200, 0.4);
  border-radius: 12px;
}
.scroll-hint span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ai);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- セクション共通 ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) 22px;
}

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.section-no {
  font-family: var(--font-en);
  font-size: 0.85em;
  color: var(--ai);
  opacity: 0.8;
}

.section-lead {
  color: var(--text-dim);
  margin-bottom: 46px;
}

/* ---------- 3つの柱 ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.pillar {
  --glow: var(--ai);
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: 0.9;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--glow) 45%, transparent);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--glow) 55%, transparent);
}

.pillar-human  { --glow: var(--human); }
.pillar-ai     { --glow: var(--ai); }
.pillar-nature { --glow: var(--nature); }

.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--glow);
  background: color-mix(in srgb, var(--glow) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--glow) 30%, transparent);
  margin-bottom: 20px;
}
.pillar-icon svg { width: 26px; height: 26px; }

.pillar h3 {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.pillar h3 .en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--glow);
  margin-top: 4px;
  opacity: 0.85;
}

.pillar p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- ビジョン ---------- */
.vision-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 60px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  overflow: hidden;
}

.vision-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--human), var(--nature), var(--ai));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}

.vision-text {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

.vision-body {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 640px;
}

/* ---------- ゲーム ---------- */
.game-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 18px 44px -20px rgba(74, 222, 128, 0.5);
}

.game-thumb {
  position: relative;
  height: 160px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), transparent 55%),
    linear-gradient(180deg, transparent 62%, rgba(74, 222, 128, 0.22) 62%),
    var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.voxel {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 4px;
  animation: floatVoxel 4s ease-in-out infinite;
}
.v1 { left: 18%; bottom: 34%; background: #5b8c3e; box-shadow: 0 0 14px rgba(91,140,62,0.7); }
.v2 { left: 42%; bottom: 46%; background: #8a6a45; animation-delay: 0.6s; }
.v3 { left: 66%; bottom: 32%; background: #5b8c3e; animation-delay: 1.2s; }
.v4 { left: 30%; bottom: 60%; background: rgba(34,211,238,0.75); box-shadow: 0 0 16px rgba(34,211,238,0.6); animation-delay: 1.8s; }
.v5 { left: 58%; bottom: 66%; background: rgba(255,181,71,0.85); box-shadow: 0 0 16px rgba(255,181,71,0.55); animation-delay: 2.4s; }

@keyframes floatVoxel {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(6deg); }
}

.badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--human);
  border: 1px solid color-mix(in srgb, var(--human) 45%, transparent);
  background: color-mix(in srgb, var(--human) 10%, transparent);
  margin-bottom: 12px;
}

.game-info h3 {
  font-family: var(--font-en);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.game-info p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.game-url {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--nature);
  opacity: 0.85;
}

/* ---------- フッター ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 44px;
}

.footer-line {
  width: min(520px, 70%);
  height: 1px;
  margin: 0 auto 36px;
  background: linear-gradient(90deg, transparent, var(--human), var(--nature), var(--ai), transparent);
  opacity: 0.5;
}

.footer-brand {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ---------- スクロール出現 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- レスポンシブ ---------- */
.pc-only { display: inline; }

@media (max-width: 720px) {
  .pc-only { display: none; }
  .game-card { grid-template-columns: 1fr; }
  .game-thumb { height: 130px; }
  .site-nav a { font-size: 0.82rem; }
}

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
