/* 
 * サイバーパンク風ランディングページ - ネオ・ノワール・グリッチウェーブコンセプト
 * デザインコンセプト: ダーク・フューチャリスティック・ハイテク・アングラ・ミステリアス
 * キーカラーパレット: 
 *   - ベース: #0A0A0A (ディープブラック)
 *   - メインアクセント: #00FFFF (エレクトリックブルー)
 *   - サブアクセント: #808080 (シルバーグレイ)
 * タイポグラフィ: Orbitron (見出し), Roboto Mono (本文)
 */

/* =========================================
   CSSリセットとベース設定
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0A0A0A;
    --color-primary: #00FFFF;
    --color-secondary: #808080;
    --color-text: #FFFFFF;
    --color-glow-primary: 0 0 10px #00FFFF, 0 0 20px #00FFFF;
    --color-glow-secondary: 0 0 5px #808080;
    --font-main: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   ローディングスクリーン
   ========================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: scan 4s linear infinite;
    box-shadow: var(--color-glow-primary);
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.loading-text {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: var(--color-glow-primary);
    position: relative;
    z-index: 10;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #FF00FF;
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #FFFF00;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: inset(47px 0 93px 0); }
    20% { clip: inset(72px 0 18px 0); }
    40% { clip: inset(86px 0 67px 0); }
    60% { clip: inset(17px 0 89px 0); }
    80% { clip: inset(92px 0 40px 0); }
    100% { clip: inset(52px 0 46px 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: inset(68px 0 8px 0); }
    20% { clip: inset(15px 0 62px 0); }
    40% { clip: inset(75px 0 93px 0); }
    60% { clip: inset(52px 0 68px 0); }
    80% { clip: inset(72px 0 57px 0); }
    100% { clip: inset(67px 0 40px 0); }
}

/* =========================================
   ナビゲーション
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-primary);
    box-shadow: var(--color-glow-primary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: var(--color-glow-primary);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
    text-shadow: var(--color-glow-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   ファーストビュー (ヒーローセクション)
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-main);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: var(--color-glow-primary);
    margin-bottom: 1rem;
    letter-spacing: 4px;
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--color-primary);
    opacity: 0.3;
    animation: border-pulse 3s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    line-height: 2;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: var(--color-glow-primary);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-bg);
    box-shadow: var(--color-glow-secondary);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border: 1px solid var(--color-primary);
    opacity: 0.3;
}

.floating-elements::before {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation: float-rotate 15s linear infinite;
}

.floating-elements::after {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    animation: float-rotate 20s linear infinite reverse;
}

@keyframes float-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   共通セクションスタイル
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 4rem;
    text-shadow: var(--color-glow-primary);
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--color-primary);
    margin: 1rem auto;
    box-shadow: var(--color-glow-primary);
}

/* =========================================
   セクション2: 問題提起
   ========================================= */
.problem-section {
    background: rgba(10, 10, 10, 0.5);
    position: relative;
    overflow: hidden;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
}

.problem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.problem-text {
    font-size: 1.2rem;
    line-height: 2;
}

.problem-text p {
    margin-bottom: 1.5rem;
}

.circuit-pattern {
    width: 100%;
    height: 300px;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: var(--color-glow-primary);
    animation: circuit-flow 10s linear infinite;
}

@keyframes circuit-flow {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* =========================================
   セクション3: ソリューション
   ========================================= */
.solution-section {
    background: var(--color-bg);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.solution-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.solution-item:hover::before {
    left: 100%;
}

.solution-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px var(--color-primary));
}

.solution-item h3 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.solution-item p {
    color: var(--color-secondary);
    font-size: 1rem;
}

/* =========================================
   セクション4: 詳細
   ========================================= */
.technology-section {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.circuit-diagram {
    width: 100%;
    height: 400px;
    background: 
        linear-gradient(45deg, rgba(0, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 255, 255, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 255, 255, 0.03) 75%);
    background-size: 60px 60px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.circuit-diagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, transparent 40%, rgba(0, 255, 255, 0.02) 100%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tech-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

/* =========================================
   セクション5: 実行プロトコル
   ========================================= */
.protocol-section {
    background: var(--color-bg);
}

.protocol-timeline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.timeline-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.timeline-point {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    margin: 0 auto 1.5rem;
    box-shadow: var(--color-glow-primary);
    position: relative;
}

.timeline-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--color-primary);
    opacity: 0.3;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.timeline-item h4 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.timeline-item p {
    color: var(--color-secondary);
}

/* =========================================
   セクション6: CTA
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, #001122 0%, #0A0A0A 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 255, 255, 0.02) 10px,
            rgba(0, 255, 255, 0.02) 20px
        );
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.countdown {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-shadow: var(--color-glow-primary);
}

.countdown span:last-child {
    color: var(--color-text);
    font-size: 1.8rem;
    letter-spacing: 4px;
}

/* =========================================
   フッター
   ========================================= */
.footer {
    background: #050505;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-shadow: var(--color-glow-primary);
}

/* =========================================
   レスポンシブ対応
   ========================================= */
@media (max-width: 768px) {
    .hero-content,
    .problem-content,
    .tech-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    .protocol-timeline {
        flex-direction: column;
    }
    
    .nav-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}