/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/
/* カスタムアニメーションとエフェクト */

/* グローバルスタイル */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    overflow: hidden;
}

/* セクション基本スタイル */
.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* フローティングエレメント */
.floating-element {
    animation: floatIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.floating-element.delay-200 {
    animation-delay: 0.2s;
}

.floating-element.delay-300 {
    animation-delay: 0.3s;
}

.floating-element.delay-400 {
    animation-delay: 0.4s;
}

.floating-element.delay-600 {
    animation-delay: 0.6s;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* グローテキストエフェクト */
.glow-text {
    text-shadow: 
        0 0 10px #fbbf24,
        0 0 20px #fbbf24,
        0 0 30px #fbbf24,
        0 0 40px #fbbf24;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px #fbbf24,
            0 0 20px #fbbf24,
            0 0 30px #fbbf24,
            0 0 40px #fbbf24;
    }
    to {
        text-shadow: 
            0 0 20px #fbbf24,
            0 0 30px #fbbf24,
            0 0 40px #fbbf24,
            0 0 50px #fbbf24,
            0 0 60px #fbbf24;
    }
}

/* スクロールインジケーター */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* セクションドット */
.section-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-dot:hover {
    transform: scale(1.2);
}

.section-dot.active {
    background-color: #fbbf24;
    transform: scale(1.3);
    box-shadow: 0 0 15px #fbbf24;
}

/* カード効果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ボタンエフェクト */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* パーティクルエフェクト用キャンバス */
#dreamCanvas {
    background: transparent;
}

/* フォーム要素 */
.input, .textarea {
    transition: all 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .floating-element {
        animation-duration: 0.6s;
    }
    
    .section {
        padding: 1rem;
    }
    
    .glow-text {
        text-shadow: 
            0 0 5px #fbbf24,
            0 0 10px #fbbf24,
            0 0 15px #fbbf24;
    }
}

/* パララックス効果 */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* 星のキラキラエフェクト */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* 背景グラデーションアニメーション */
body {
    background: linear-gradient(-45deg, #1e3a8a, #1e40af, #3b82f6, #1e40af);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ナビゲーション */
.nav-btn {
    position: relative;
    transition: all 0.3s ease;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-btn:hover::after {
    width: 100%;
}

/* スムーズなトランジション */
.transition-smooth {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}