/* サイバーパンク風ランディングページ スタイルシート */

/* 基本スタイルと変数 */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    --neon-yellow: #ffff00;
    --text-light: #ffffff;
    --text-gray: #808080;
    --shadow-blue: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
    --shadow-pink: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    --shadow-green: 0 0 5px #39ff14, 0 0 10px #39ff14, 0 0 20px #39ff14;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

section {
    padding: 80px 20px;
    min-height: 100vh;
    position: relative;
}

.section.dark {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

/* ローディングアニメーション */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-bar {
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: loading 2s infinite;
}

.loading-text {
    margin-top: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-blue);
    text-shadow: var(--shadow-blue);
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ヒーローセクション */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-light);
    text-shadow: 
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue);
    letter-spacing: 5px;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    top: 0;
    color: var(--neon-blue);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-green);
    top: 0;
    color: var(--neon-yellow);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(44px, 9999px, 44px, 0);
    }
    5% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    6% {
        clip: rect(46px, 9999px, 44px, 0);
    }
    8% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    9% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    10% {
        clip: rect(44px, 9999px, 44px, 0);
    }
    11% {
        clip: rect(46px, 9999px, 44px, 0);
    }
    12% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    13% {
        clip: rect(44px, 9999px, 44px, 0);
    }
    14% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    15% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    20% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    24% {
        clip: rect(46px, 9999px, 44px, 0);
    }
    25% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    29% {
        clip: rect(44px, 9999px, 44px, 0);
    }
    30% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    34% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    35% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    39% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    40% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    44% {
        clip: rect(46px, 9999px, 44px, 0);
    }
    45% {
        clip: rect(44px, 9999px, 44px, 0);
    }
    49% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    50% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    55% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    56% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    59% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    60% {
        clip: rect(44px, 9999px, 44px, 0);
    }
    64% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    65% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    69% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    70% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    74% {
        clip: rect(46px, 9999px, 44px, 0);
    }
    75% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    79% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    80% {
        clip: rect(44px, 9999px, 44px, 0);
    }
    84% {
        clip: rect(40px, 9999px, 44px, 0);
    }
    85% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    89% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    90% {
        clip: rect(46px, 9999px, 44px, 0);
    }
    94% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    95% {
        clip: rect(48px, 9999px, 44px, 0);
    }
    99% {
        clip: rect(46px, 9999px, 44px, 0);
    }
    100% {
        clip: rect(44px, 9999px, 44px, 0);
    }
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: transparent;
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

.btn-primary:hover {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-pink);
    border-color: var(--neon-pink);
    box-shadow: 0 0 5px var(--neon-pink);
}

.btn-secondary:hover {
    background: var(--neon-pink);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    transform: translateY(-3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s;
}

.btn:hover::before {
    animation: shine 0.5s;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.2) 1px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.2) 1px,
            transparent 2px,
            transparent 4px
        );
    opacity: 0.3;
    pointer-events: none;
    animation: glitch-overlay-anim 3s infinite;
}

@keyframes glitch-overlay-anim {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0, 0); }
}

/* ナビゲーション */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.nav-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: var(--shadow-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo span {
    color: var(--neon-pink);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
}

.nav-menu li a {
    color: var(--text-light);
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width var(--transition-speed);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--neon-blue);
    transition: all 0.3s;
}

/* セクション共通スタイル */
.section {
    position: relative;
    overflow: hidden;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--text-light);
    text-shadow: 
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-blue);
    letter-spacing: 3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-gray);
    text-align: center;
}

.section-image {
    text-align: center;
}

.glitch-img {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    max-width: 100%;
    height: auto;
}

.glitch-img img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.glitch-img:hover img {
    transform: scale(1.05);
}

/* 特徴セクション */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.5);
    transition: all var(--transition-speed);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    border-color: var(--neon-blue);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.feature-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* テクノロジーグリッド */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-item {
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.5);
    transition: all var(--transition-speed);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.tech-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.tech-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* タイムライン */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--neon-blue),
        transparent
    );
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    clear: both;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 120px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 5px var(--neon-yellow);
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 10, 0.8);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--neon-yellow);
    box-shadow: 0 0 10px var(--neon-yellow);
}

.timeline-content {
    width: calc(100% - 140px);
    padding: 20px;
    background: rgba(10, 10, 10, 0.6);
    border-left: 2px solid var(--neon-blue);
    border-radius: 0 10px 10px 0;
    position: relative;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 2px solid var(--neon-blue);
    border-radius: 10px 0 0 10px;
}

.timeline-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--neon-blue);
}

.timeline-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTAセクション */
.cta-section {
    text-align: center;
    padding: 100px 20px;
    background: rgba(5, 5, 5, 0.9);
    border-top: 2px solid var(--neon-blue);
    border-bottom: 2px solid var(--neon-blue);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--neon-blue);
    min-width: 80px;
}

.countdown-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: var(--shadow-blue);
    display: block;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.3rem;
}

/* フッター */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition-speed);
}

.footer-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: var(--shadow-blue);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-speed);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-gray);
    border-radius: 50%;
}

.social-icons a:hover {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--neon-blue);
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
        .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-date {
        width: auto;
        margin-bottom: 10px;
    }
    
    .timeline-content {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--neon-blue);
        border-radius: 10px 10px 0 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        border-left: none;
        border-top: 2px solid var(--neon-blue);
        border-radius: 10px 10px 0 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-menu li a {
        font-size: 0.9rem;
    }
    
    .feature-icon,
    .tech-item h3 {
        width: 50px;
        height: 50px;
    }
}