/* グローバルスタイルと変数 */
: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;
    
    --glitch-duration: 0.3s;
    --neon-glow: 0 0 10px var(--electric-blue), 0 0 20px var(--electric-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--deep-black);
    color: var(--silver-gray);
    overflow-x: hidden;
    position: relative;
}

/* ローディングアニメーション */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--deep-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#loader .scan-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    animation: scanLine 2s infinite;
    margin-bottom: 20px;
}

#loader p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--electric-blue);
    text-shadow: var(--neon-glow);
    letter-spacing: 3px;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* HUDナビゲーション */
.hud-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--electric-blue);
}

.nav-toggle {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--electric-blue);
    cursor: pointer;
    text-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--electric-blue), 0 0 30px var(--electric-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-family: 'Orbitron', sans-serif;
    color: var(--silver-gray);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--electric-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--electric-blue);
    text-shadow: var(--neon-glow);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* セクション共通スタイル */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
}

/* ヒーローセクション */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, var(--dark-purple) 0%, var(--deep-black) 70%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--white);
    position: relative;
    text-shadow: 0 0 10px var(--electric-blue);
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--cyber-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim var(--glitch-duration) infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-green);
    clip: rect(24px, 450px, 36px, 0);
    animation: glitch-anim var(--glitch-duration) infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 47px, 0); }
    5% { clip: rect(62px, 9999px, 28px, 0); }
    10% { clip: rect(57px, 9999px, 7px, 0); }
    15% { clip: rect(45px, 9999px, 95px, 0); }
    20% { clip: rect(9px, 9999px, 74px, 0); }
    25% { clip: rect(87px, 9999px, 70px, 0); }
    30% { clip: rect(16px, 9999px, 11px, 0); }
    35% { clip: rect(62px, 9999px, 61px, 0); }
    40% { clip: rect(62px, 9999px, 50px, 0); }
    45% { clip: rect(81px, 9999px, 69px, 0); }
    50% { clip: rect(33px, 9999px, 22px, 0); }
    55% { clip: rect(85px, 9999px, 87px, 0); }
    60% { clip: rect(19px, 9999px, 95px, 0); }
    65% { clip: rect(50px, 9999px, 47px, 0); }
    70% { clip: rect(78px, 9999px, 55px, 0); }
    75% { clip: rect(95px, 9999px, 9px, 0); }
    80% { clip: rect(77px, 9999px, 18px, 0); }
    85% { clip: rect(73px, 9999px, 75px, 0); }
    90% { clip: rect(52px, 9999px, 94px, 0); }
    95% { clip: rect(53px, 9999px, 10px, 0); }
    100% { clip: rect(37px, 9999px, 41px, 0); }
}

.sub-title {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--silver-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTAボタン */
.cta-button {
    padding: 15px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: transparent;
    border: 2px solid var(--electric-blue);
    color: var(--electric-blue);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--electric-blue);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--deep-black);
    box-shadow: var(--neon-glow);
}

.cta-button:hover::before {
    transform: translateX(0);
}

.cta-button.large {
    padding: 20px 60px;
    font-size: 1.2rem;
}

/* 問題提起セクション */
#problem {
    background-color: var(--midnight-blue);
    position: relative;
}

#problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, var(--dark-purple) 25%, transparent 25%),
        linear-gradient(-45deg, var(--dark-purple) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--dark-purple) 75%),
        linear-gradient(-45deg, transparent 75%, var(--dark-purple) 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
    opacity: 0.1;
    z-index: -1;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.circuit-pattern {
    width: 100%;
    height: 100px;
    background-image: 
        radial-gradient(circle, var(--electric-blue) 2px, transparent 2px),
        radial-gradient(circle, var(--cyber-pink) 1px, transparent 1px);
    background-size: 50px 50px, 25px 25px;
    background-position: 0 0, 12px 12px;
    opacity: 0.3;
}

/* ソリューションセクション */
#solution {
    background-color: var(--deep-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    background: rgba(0, 31, 63, 0.3);
    border: 1px solid var(--electric-blue);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.feature-item:hover::before {
    transform: translateX(100%);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--electric-blue);
    text-shadow: var(--neon-glow);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--silver-gray);
    letter-spacing: 1px;
}

/* テクノロジーセクション */
#tech {
    background-color: var(--dark-purple);
    text-align: center;
}

.tech-diagram {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 50px;
    position: relative;
    padding: 50px 0;
}

.tech-diagram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    z-index: 1;
}

.node {
    width: 120px;
    height: 120px;
    background: rgba(0, 31, 63, 0.5);
    border: 2px solid var(--electric-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--electric-blue);
    text-shadow: var(--neon-glow);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.node::before {
    content: attr(data-node);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--electric-blue);
    color: var(--deep-black);
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node:hover {
    transform: scale(1.1);
    box-shadow: var(--neon-glow);
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, var(--midnight-blue), var(--dark-purple));
    text-align: center;
    padding: 120px 0;
}

.countdown-timer {
    margin-top: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--bright-yellow);
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--bright-yellow);
    animation: timerGlow 2s ease-in-out infinite alternate;
}

@keyframes timerGlow {
    from { text-shadow: 0 0 10px var(--bright-yellow); }
    to { text-shadow: 0 0 30px var(--bright-yellow), 0 0 40px var(--bright-yellow); }
}

.timer-digit {
    display: inline-block;
    min-width: 60px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border: 2px solid var(--bright-yellow);
    margin: 0 5px;
    animation: digitFloat 2s ease-in-out infinite;
}

@keyframes digitFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* フッター */
.footer {
    background-color: var(--deep-black);
    padding: 60px 0 30px;
    border-top: 1px solid var(--silver-gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--silver-gray);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-link {
    color: var(--silver-gray);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--electric-blue);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--electric-blue);
    text-shadow: var(--neon-glow);
}

.footer-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--silver-gray);
    color: var(--silver-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--electric-blue);
    color: var(--deep-black);
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .sub-title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-diagram {
        flex-direction: column;
        gap: 50px;
    }
    
    .tech-diagram::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .countdown-timer {
        font-size: 1.5rem;
    }
}

/* パーティクルエフェクト用のスタイル */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--electric-blue);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
}

/* スクロールエフェクト用のスタイル */
[data-scroll-animation] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

[data-scroll-animation="visible"] {
    opacity: 1;
    transform: translateY(0);
}

/* マウス追従用のスタイル */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--electric-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}
