/* ========================================
   Forward Frame - 共通スタイルシート
   ======================================== */

/* ========================================
   リセット & 基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2196F3;
    --secondary: #FF9800;
    --accent: #00BCD4;
    --dark: #0a0a0a;
    --light: #ffffff;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    cursor: default;
}

/* ========================================
   共通要素
   ======================================== */

/* カスタムカーソル */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* ノイズテクスチャ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,.1) 2px, rgba(255,255,255,.1) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255,255,255,.1) 2px, rgba(255,255,255,.1) 4px);
}

/* ========================================
   ナビゲーション
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 20px 50px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-forward {
    color: #2196F3;
    font-weight: 600;
}

.logo-frame {
    color: #FF9800;
    font-weight: 600;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 5px 0;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   ページヒーロー（共通）
   ======================================== */
.page-hero {
    margin-top: 100px;
    padding: 80px 50px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(255, 152, 0, 0.1));
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    opacity: 0.8;
    letter-spacing: 2px;
}

/* ========================================
   セクション共通
   ======================================== */
.section {
    padding: 100px 50px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-radius: 20px;
}

/* ========================================
   ボタン
   ======================================== */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--dark);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: var(--light);
}

/* ========================================
   カード
   ======================================== */
.card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

/* ========================================
   グリッドレイアウト
   ======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* ========================================
   フッター
   ======================================== */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--light);
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

/* ========================================
   アニメーション
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 
            0.02em 0 0 rgba(33, 150, 243, 0.75),
            -0.02em -0 0 rgba(255, 152, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 188, 212, 0.75);
    }
    15% {
        text-shadow: 
            0.03em 0 0 rgba(33, 150, 243, 0.75),
            -0.03em -0 0 rgba(255, 152, 0, 0.75),
            0.02em 0.02em 0 rgba(0, 188, 212, 0.75);
    }
    50% {
        text-shadow: 
            -0.02em 0 0 rgba(33, 150, 243, 0.75),
            0.025em 0 0 rgba(255, 152, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 188, 212, 0.75);
    }
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    nav {
        padding: 20px;
    }

    .page-hero {
        padding: 60px 20px;
        margin-top: 80px;
    }

    .section {
        padding: 60px 20px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 30px;
    }
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.max-width-sm {
    max-width: 600px;
    margin: 0 auto;
}

.max-width-md {
    max-width: 800px;
    margin: 0 auto;
}

.max-width-lg {
    max-width: 1200px;
    margin: 0 auto;
}

.max-width-xl {
    max-width: 1400px;
    margin: 0 auto;
}