/* ==================================================
   Burlesque Header - カラフル & アニメチックデザイン
   - 原色のグラデーション背景
   - ショッキングピンクのメインカラー
   - イエローの差し色
   - かわいいアニメチックなフォント
   - ポップなアニメーション
   ================================================== */

/* ヘッダー基本スタイル */
.burlesque-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: 
        radial-gradient(circle at 20% 30%, rgba(244, 143, 177, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 241, 118, 0.4) 0%, transparent 55%),
        radial-gradient(circle at 60% 70%, rgba(128, 222, 234, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, 
            #F48FB1 0%, 
            #F8BBD9 20%, 
            #FFF176 40%, 
            #F8BBD9 60%, 
            #F48FB1 80%, 
            #FFF176 100%
        );
    background-size: 300% 300%;
    animation: headerGradient 12s ease-in-out infinite;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid #F48FB1;
    box-shadow: 
        0 4px 20px rgba(244, 143, 177, 0.25),
        0 0 30px rgba(255, 241, 118, 0.15),
        inset 0 -2px 0 rgba(255, 241, 118, 0.2);
    height: 80px;
}

/* グラデーションアニメーション */
@keyframes headerGradient {
    0%, 100% { 
        background-position: 0% 50%; 
        box-shadow: 
            0 4px 20px rgba(244, 143, 177, 0.25),
            0 0 30px rgba(255, 241, 118, 0.15);
    }
    25% { 
        background-position: 100% 50%; 
        box-shadow: 
            0 4px 20px rgba(255, 241, 118, 0.3),
            0 0 30px rgba(244, 143, 177, 0.2);
    }
    50% { 
        background-position: 100% 100%; 
        box-shadow: 
            0 4px 20px rgba(128, 222, 234, 0.25),
            0 0 30px rgba(244, 143, 177, 0.15);
    }
    75% { 
        background-position: 0% 100%; 
        box-shadow: 
            0 4px 20px rgba(244, 143, 177, 0.3),
            0 0 30px rgba(255, 241, 118, 0.2);
    }
}

/* ナビゲーション */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ロゴ */
.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.logo-image {
    height: 50px;
    width: auto;
    filter: 
        drop-shadow(0 3px 6px rgba(233, 30, 99, 0.4))
        drop-shadow(0 0 15px rgba(253, 216, 53, 0.3));
    transition: all 0.3s ease;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-image:hover {
    transform: scale(1.05) rotate(3deg);
    filter: 
        drop-shadow(0 4px 8px rgba(233, 30, 99, 0.6))
        drop-shadow(0 0 20px rgba(253, 216, 53, 0.4));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* メニューリスト */
.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #FFFFFF;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(248, 187, 208, 0.2) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 213, 79, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
}

.menu-link:hover::before {
    left: 100%;
}

.menu-link:hover {
    background: linear-gradient(135deg, 
        rgba(255, 235, 59, 0.3) 0%, 
        rgba(216, 27, 96, 0.25) 50%,
        rgba(255, 235, 59, 0.3) 100%);
    border-color: rgba(255, 213, 79, 0.6);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 15px rgba(216, 27, 96, 0.3),
        0 0 20px rgba(255, 213, 79, 0.4);
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 0 12px rgba(216, 27, 96, 0.5);
}

.menu-item.active .menu-link {
    background: linear-gradient(135deg, 
        #D81B60 0%, 
        #FFD54F 25%, 
        #D81B60 50%, 
        #FFD54F 75%, 
        #D81B60 100%);
    border-color: #FFD54F;
    color: #FFFFFF;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 0 12px rgba(255, 213, 79, 0.6);
    box-shadow: 
        0 4px 15px rgba(216, 27, 96, 0.5),
        0 0 20px rgba(255, 213, 79, 0.4);
    animation: activeMenuPulse 3s ease-in-out infinite;
}

@keyframes activeMenuPulse {
    0%, 100% { 
        box-shadow: 
            0 6px 20px rgba(255, 20, 147, 0.6),
            0 0 25px rgba(255, 255, 0, 0.4);
    }
    50% { 
        box-shadow: 
            0 8px 25px rgba(255, 20, 147, 0.8),
            0 0 35px rgba(255, 255, 0, 0.6);
    }
}

.menu-text {
    position: relative;
    z-index: 2;
}

/* スターエフェクト */
.star-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-link:hover .star-effect {
    opacity: 1;
}

.star-effect::before {
    content: '✨';
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 12px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

.star-effect::after {
    content: '⭐';
    position: absolute;
    bottom: -5px;
    left: 5px;
    font-size: 10px;
    animation: starTwinkle 1.5s ease-in-out infinite 0.5s;
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(0.8) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(180deg); 
    }
}

/* モバイルメニューボタン */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 20, 147, 0.2) 100%);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 0, 0.4) 0%, 
        rgba(255, 20, 147, 0.3) 100%);
    border-color: rgba(255, 255, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

.menu-line {
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #FF1493 0%, #FFFF00 50%, #FF1493 100%);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 20, 147, 0.5);
}

.menu-toggle:hover .menu-line {
    background: linear-gradient(90deg, #FFFF00 0%, #FF1493 50%, #FFFF00 100%);
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.7);
}

/* 背景エフェクト */
.header-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 0, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 75% 85%, rgba(255, 255, 0, 0.2) 0.5px, transparent 0.5px);
    background-size: 100px 100px, 120px 120px, 80px 80px, 90px 90px;
    animation: bgEffectMove 15s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes bgEffectMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(90deg); }
    50% { transform: translate(0, -20px) rotate(180deg); }
    75% { transform: translate(10px, -10px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .burlesque-header {
        height: 70px;
    }
    
    .header-nav {
        padding: 0 20px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: 
            linear-gradient(135deg, 
                rgba(255, 20, 147, 0.95) 0%, 
                rgba(255, 69, 180, 0.9) 30%,
                rgba(255, 255, 0, 0.8) 60%,
                rgba(255, 20, 147, 0.95) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-top: 3px solid #FFFF00;
        box-shadow: 
            0 10px 40px rgba(255, 20, 147, 0.5),
            0 0 60px rgba(255, 255, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .header-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-item {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .menu-link {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 15px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(255, 255, 255, 0.1) 100%);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
    
    .menu-link:hover {
        background: linear-gradient(135deg, 
            rgba(255, 255, 0, 0.5) 0%, 
            rgba(255, 255, 255, 0.3) 100%);
        border-color: rgba(255, 255, 0, 0.9);
    }
    
    .menu-item.active .menu-link {
        background: linear-gradient(135deg, 
            #FFFF00 0%, 
            #FF1493 50%, 
            #FFFF00 100%);
        border-color: #FFFFFF;
        color: #2d1b69;
        font-weight: 800;
    }
}

@media (max-width: 480px) {
    .burlesque-header {
        height: 60px;
    }
    
    .header-nav {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .menu-toggle {
        width: 45px;
        height: 45px;
    }
    
    .menu-line {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    .menu-link {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ハンバーガーメニュー開閉アニメーション */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: linear-gradient(90deg, #FFFF00 0%, #FF1493 100%);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: linear-gradient(90deg, #FFFF00 0%, #FF1493 100%);
}

/* フォーカス状態 */
.menu-link:focus {
    outline: 3px solid rgba(255, 255, 0, 0.8);
    outline-offset: 2px;
}

.menu-toggle:focus {
    outline: 3px solid rgba(255, 255, 0, 0.8);
    outline-offset: 2px;
}
