:root {
    /* カラーパレット */
    --deep-black: #0A0A0A;
    --midnight-blue: #001F3F;
    --dark-purple: #2A0A2A;
    --electric-blue: #00FFFF;
    --cyber-pink: #FF00FF;
    --neon-green: #39FF14;
    --bright-yellow: #FFFF00;
    --silver-gray: #808080;
    --white: #FFFFFF;
    
    /* フォント */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
    
    /* アニメーション */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease;
    --transition-slow: 1s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--deep-black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* パーティクル背景 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ローディング画面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyber-pink));
    width: 0%;
    animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes loadingProgress {
    to { width: 100%; }
}

.loading-subtext {
    font-size: 1rem;
    color: var(--silver-gray);
    letter-spacing: 0.1em;
}

/* ヒーローセクション */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-black), var(--midnight-blue));
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.neon-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    animation: neonPulse 4s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--electric-blue);
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--cyber-pink);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--neon-green);
    z-index: -2;
}

@keyframes glitch {
    0%, 74%, 76%, 100% { transform: translate(0); }
    75% { transform: translate(-2px, 2px); }
}

@keyframes glitch-1 {
    0%, 74%, 76%, 100% { transform: translate(0); }
    75% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 74%, 76%, 100% { transform: translate(0); }
    75% { transform: translate(-2px, -2px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--silver-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    position: relative;
    background: transparent;
    border: 2px solid var(--electric-blue);
    color: var(--electric-blue);
    padding: 1rem 2.5rem;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.cta-button:hover {
    color: var(--deep-black);
    box-shadow: 0 0 30px var(--electric-blue);
}

.cta-button:hover .button-glow {
    transform: translateX(100%);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    transition: transform 0.6s;
    z-index: -1;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.hologram-object {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--electric-blue), var(--cyber-pink));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: rotate3d 10s linear infinite;
    opacity: 0.8;
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.1) 2px,
        rgba(0, 255, 255, 0.1) 4px
    );
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--silver-gray);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--electric-blue);
    margin: 0 auto 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* セクション共通スタイル */
section {
    padding: 6rem 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--electric-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.title-prefix {
    color: var(--cyber-pink);
}

/* プロローグセクション */
.prologue-section {
    background: linear-gradient(135deg, var(--deep-black), var(--dark-purple));
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content {
    color: var(--white);
}

.lead-text {
    font-size: 1.3rem;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.body-text {
    font-size: 1.1rem;
    color: var(--silver-gray);
    line-height: 1.8;
}

.data-visualization {
    background: rgba(0, 31, 63, 0.3);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.data-stream {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--neon-green);
}

.data-line {
    display: block;
    margin-bottom: 0.5rem;
    animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* ソリューションセクション */
.solution-section {
    background: var(--deep-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.5), rgba(42, 10, 42, 0.5));
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
    transition: transform var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-shape {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.icon-quantum {
    background: linear-gradient(45deg, var(--electric-blue), var(--cyber-pink));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: pulse 2s ease-in-out infinite;
}

.icon-neural {
    background: radial-gradient(circle, var(--neon-green), transparent);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
}

.icon-security {
    background: linear-gradient(135deg, var(--bright-yellow), var(--cyber-pink));
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: securityPulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes securityPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.feature-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--silver-gray);
    line-height: 1.6;
}

/* アーキテクチャセクション */
.architecture-section {
    background: linear-gradient(135deg, var(--midnight-blue), var(--deep-black));
}

.architecture-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.circuit-board {
    flex: 1;
    position: relative;
    height: 400px;
    background: rgba(0, 31, 63, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.circuit-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--electric-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--electric-blue);
    cursor: pointer;
}

.circuit-node:nth-child(1) { top: 30%; left: 25%; }
.circuit-node:nth-child(2) { top: 50%; left: 50%; }
.circuit-node:nth-child(3) { top: 70%; left: 75%; }

.circuit-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, var(--electric-blue) 50%, transparent 60%);
    animation: circuitFlow 3s linear infinite;
}

@keyframes circuitFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.system-info {
    flex: 1;
}

.info-panel {
    background: rgba(42, 10, 42, 0.5);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.info-panel h3 {
    color: var(--cyber-pink);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

/* プロトコルセクション */
.protocol-section {
    background: var(--deep-black);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--electric-blue), var(--cyber-pink));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--electric-blue);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--electric-blue);
}

.timeline-content {
    flex: 1;
    padding: 2rem;
    background: rgba(0, 31, 63, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    margin: 0 2rem;
}

.timeline-content h3 {
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

/* ファイナルCTAセクション */
.final-cta-section {
    background: linear-gradient(135deg, var(--dark-purple), var(--midnight-blue));
    text-align: center;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--silver-gray);
    margin-bottom: 2rem;
}

.countdown-timer {
    margin-top: 3rem;
}

.timer-display {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
}

.timer-label {
    color: var(--silver-gray);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* フッター */
.footer {
    background: var(--deep-black);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.copyright {
    color: var(--silver-gray);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--cyber-pink);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-visual {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
