:root {
  --color-bg: #0A0A0A;
  --color-primary: #00FFFF; /* Electric Blue */
  --color-secondary: #FF00FF; /* Cyber Pink */
  --color-accent: #39FF14; /* Neon Green */
  --color-text: #FFFFFF;
  --color-muted: #808080;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--color-bg); color: var(--color-text); font-family: var(--font-body); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ローディングスクリーン */
.loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #000; display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 1s ease-out; }
.loading-content { text-align: center; }
.loading-text { font-family: var(--font-mono); color: var(--color-accent); margin-bottom: 20px; animation: pulse 1.5s infinite; }
.loading-bar { width: 300px; height: 4px; background: #333; border-radius: 2px; overflow: hidden; }
.loading-progress { width: 0%; height: 100%; background: var(--color-primary); animation: loadProgress 2s linear forwards; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes loadProgress { 0% { width: 0%; } 100% { width: 100%; } }

/* パーティクルキャンバス */
.particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* グリッチオーバーレイ */
.glitch-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 998; opacity: 0.05; }
.scanlines { background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,255,255,0.2) 1px, transparent 2px); animation: scan 10s linear infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(-100vh); } }

/* ナビゲーション */
.hud-nav { position: fixed; top: 0; left: 0; width: 100%; background: rgba(0, 10, 20, 0.8); backdrop-filter: blur(5px); z-index: 1000; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0, 255, 255, 0.3); }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 2px; color: var(--color-primary); text-shadow: 0 0 10px var(--color-primary); }
.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-menu a { font-family: var(--font-mono); font-size: 0.9rem; color: var(--color-text); text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s, text-shadow 0.3s; }
.nav-menu a:hover { color: var(--color-accent); text-shadow: 0 0 5px var(--color-accent); }

/* ヒーローセクション */
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 2rem; }
.hero-container { max-width: 1200px; width: 100%; text-align: center; z-index: 2; }
.hero-badge { display: inline-block; background: rgba(255, 0, 255, 0.1); border: 1px solid var(--color-secondary); padding: 5px 15px; font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 20px; letter-spacing: 2px; }
.hero-title { font-family: var(--font-heading); font-size: clamp(3rem, 8vw, 6rem); line-height: 1.2; margin-bottom: 1rem; text-transform: uppercase; }
.title-main { display: block; color: var(--color-text); text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
.title-sub { display: block; font-family: var(--font-mono); font-size: clamp(1rem, 3vw, 2rem); color: var(--color-primary); margin-top: -10px; letter-spacing: 5px; }
.hero-lead { font-size: 1.1rem; max-width: 600px; margin: 2rem auto; line-height: 1.6; color: var(--color-muted); }

.cyber-btn { position: relative; padding: 15px 30px; border: 1px solid var(--color-primary); background: transparent; font-family: var(--font-mono); font-size: 1rem; letter-spacing: 2px; color: var(--color-text); cursor: pointer; overflow: hidden; transition: all 0.3s ease; margin: 10px; }
.cyber-btn::before { content: ''; position: absolute; top: 0; left: -px; width: 100%; height: 100%; background: var(--color-primary); opacity: 0; transition: opacity 0.3s; z-index: -1; }
.cyber-btn:hover { color: #000; border-color: transparent; text-shadow: none; box-shadow: 0 0 20px var(--color-primary); }
.cyber-btn:hover::before { opacity: 0.8; }
.hero-actions { margin-top: 3rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* コンテンツセクション共通 */
.content-section { padding: 100px 20px; position: relative; opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.content-section.visible { opacity: 1; transform: translateY(0); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-text); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 0.5rem; }
.section-subtitle { font-family: var(--font-mono); color: var(--color-accent); font-size: 1rem; letter-spacing: 2px; }

/* セクション2 */
.narrative-text { font-size: 1.2rem; line-height: 1.8; max-width: 800px; margin: 0 auto; color: var(--color-muted); text-align: center; }

/* セクション3 (特徴) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.feature-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(0, 255, 255, 0.2); padding: 2rem; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1); border-color: var(--color-primary); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.feature-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-text); margin-bottom: 0.5rem; }
.feature-subtitle { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-primary); margin-bottom: 1rem; letter-spacing: 1px; }
.feature-desc { font-size: 0.95rem; line-height: 1.6; color: var(--color-muted); }

/* セクション4 (アーキテクチャ) */
.architecture-display { display: flex; gap: 2rem; flex-wrap: wrap; }
.arch-diagram { flex: 1; min-width: 300px; background: #111; border: 1px solid #333; padding: 2rem; position: relative; overflow: hidden; }
.arch-node { background: var(--color-secondary); color: #000; padding: 10px 20px; margin-bottom: 10px; font-family: var(--font-mono); font-weight: bold; text-align: center; position: relative; z-index: 2; }
.arch-line { height: 2px; background: var(--color-accent); margin: 5px 0; box-shadow: 0 0 10px var(--color-accent); }
.tech-specs { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 1rem; }
.spec-item { background: rgba(0, 255, 255, 0.05); padding: 15px; border-left: 3px solid var(--color-primary); font-family: var(--font-mono); }
.spec-label { color: var(--color-muted); margin-right: 10px; }
.spec-value { color: var(--color-text); font-weight: bold; }

/* セクション5 (タイムライン) */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--color-muted); }
.timeline-item { padding-left: 50px; margin-bottom: 3rem; position: relative; }
.timeline-marker { position: absolute; left: 0; top: 15px; width: 20px; height: 20px; background: var(--color-primary); border-radius: 50%; box-shadow: 0 0 10px var(--color-primary); z-index: 1; }
.timeline h3 { font-family: var(--font-heading); color: var(--color-text); margin-bottom: 5px; letter-spacing: 2px; }
.timeline p { color: var(--color-muted); line-height: 1.6; }

/* CTAセクション */
.cta-section { padding: 100px 20px; text-align: center; background: linear-gradient(180deg, #0A0A0A 0%, #112 100%); }
.cta-title { font-family: var(--font-heading); font-size: 3rem; color: var(--color-text); margin-bottom: 1rem; text-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
.cta-subtitle { font-family: var(--font-mono); color: var(--color-muted); margin-bottom: 3rem; letter-spacing: 3px; }
.cta-main { padding: 20px 40px; font-size: 1.2rem; }
.countdown-timer { font-family: var(--font-mono); font-size: 2rem; color: var(--color-accent); margin-top: 2rem; letter-spacing: 5px; text-shadow: 0 0 10px var(--color-accent); }

/* フッター */
.site-footer { padding: 3rem 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-muted); }
.footer-links { margin-top: 1rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--color-primary); transition: color 0.3s; }
.footer-links a:hover { color: var(--color-text); }
.social-links { margin-top: 1rem; display: flex; justify-content: center; gap: 15px; }
.social-link { width: 30px; height: 30px; border: 1px solid #333; display: flex; align-items: center; justify-content: center; color: var(--color-muted); transition: all 0.3s; }
.social-link:hover { border-color: var(--color-accent); color: var(--color-accent); box-shadow: 0 0 10px var(--color-accent); }

@media (max-width: 768px) {
    .hud-nav { padding: 1rem; flex-direction: column; gap: 1rem; }
    .nav-menu { display: none; } /* モバイルメニューは別途JSで制御 */
    .hero-title { font-size: 2.5rem; }
    .cta-title { font-size: 2rem; }
}