/**
 * Animation Pages Common Layout Styles
 * 全アニメーションページ共通のレイアウトスタイル
 */

/* 基本設定 */
body {
    background: #000;
    color: #fff;
    font-family: 'Orbitron', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container, .sample-grid, .nav-links {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ナビゲーションバー */
.nav-header {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    color: #00ffff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateY(-2px);
}

.nav-links a.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.page-title {
    font-size: 2.5rem;
    color: #00ffff;
    text-shadow: 0 0 20px currentColor;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
}

/* サンプルグリッド */
.sample-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    margin-bottom: 150px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.sample-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sample-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.sample-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
}

.sample-card:hover::before {
    opacity: 0.3;
}

.sample-title {
    color: #00ffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.sample-demo {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.sample-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 128, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin: 80px auto 40px;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2rem;
    color: #00ffff;
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    color: #000;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.4);
}

/* フッターナビゲーション */
.nav-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.nav-section .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-section .nav-links a {
    color: #00ffff;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-section .nav-links a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .sample-grid {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
    
    .nav-links {
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 40px 20px;
        margin: 40px auto 20px;
    }
}