/* =====================================================
   LOSTMAN - Organic Effects & Parallax
   圧倒的世界観を構築するための有機的エフェクト
   ===================================================== */

/* ===== Parallax Container ===== */
.parallax-section {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

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

/* ===== Organic Logo Animation ===== */
.logo-organic {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-organic:hover {
    transform: scale(1.05);
}

.logo-organic::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 165, 0, 0.2) 40%, transparent 70%);
    animation: none; /* Disabled - only animates on hover */
    pointer-events: none;
    filter: blur(8px);
    opacity: 0.5;
}

.logo-organic::after {
    content: '';
    position: absolute;
    inset: -15px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, rgba(244, 114, 182, 0.1) 30%, transparent 60%);
    animation: none; /* Disabled - only animates on hover */
    pointer-events: none;
    filter: blur(4px);
    opacity: 0.5;
}

/* Animate only on hover */
.logo-organic:hover::before {
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-organic:hover::after {
    animation: logoBreath 3s ease-in-out infinite;
}

/* Logo animations - only on hover, not automatic */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes logoBreath {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(2deg); opacity: 0.7; }
}

/* Logo Golden Aura - Static, animates only on hover */
.logo-organic .logo-image,
.logo-organic .footer-logo-image {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 15px rgba(255, 165, 0, 0.3));
    animation: none; /* Disabled auto animation */
    transition: filter 0.3s ease;
}

.logo-organic:hover .logo-image,
.logo-organic:hover .footer-logo-image {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 25px rgba(255, 165, 0, 0.5));
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 15px rgba(255, 165, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 25px rgba(255, 165, 0, 0.5)); }
}

/* Header Logo Special Effect */
.header .logo-organic::before {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, rgba(255, 107, 0, 0.2) 30%, transparent 60%);
}

.header .logo-organic:hover::before {
    animation: logoPulseIntense 2s ease-in-out infinite;
}

@keyframes logoPulseIntense {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 0.9; }
}

/* Logo Sparkles */
.logo-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 2s ease-in-out infinite;
    box-shadow: 0 0 6px #ffd700, 0 0 12px #ffd700;
}

.logo-sparkle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.logo-sparkle:nth-child(2) { top: 30%; right: 15%; animation-delay: 0.3s; }
.logo-sparkle:nth-child(3) { bottom: 20%; left: 30%; animation-delay: 0.6s; }
.logo-sparkle:nth-child(4) { top: 50%; right: 25%; animation-delay: 0.9s; }
.logo-sparkle:nth-child(5) { bottom: 30%; right: 10%; animation-delay: 1.2s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===== Floating Stars Effect ===== */
.floating-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    box-shadow: 0 0 var(--glow) var(--color);
}

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

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(-45deg);
    animation: shoot var(--duration) ease-out infinite;
    opacity: 0;
}

.shooting-star::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px rgba(99, 102, 241, 0.8);
}

@keyframes shoot {
    0% { transform: translateX(-100px) translateY(-100px) rotate(-45deg); opacity: 0; }
    10% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 200px)) translateY(calc(100vh + 200px)) rotate(-45deg); opacity: 0; }
}

/* ===== Night Sky Footer ===== */
.night-sky-footer {
    position: relative;
    background: linear-gradient(180deg, 
        var(--bg-primary) 0%,
        #0a0a1a 30%,
        #0f0f2a 60%,
        #1a1a3a 100%
    );
    overflow: hidden;
}

.night-sky-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 160px 120px, #fff, transparent);
    background-size: 200px 200px;
    animation: starField 50s linear infinite;  /* 2倍の速度 */
}

@keyframes starField {
    from { background-position: 0 0; }
    to { background-position: -200px 200px; }
}

/* フッター星コンテナ */
.footer-stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 星の点滅アニメーション */
@keyframes footerStarTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }
}

/* 星のゆらぎアニメーション（本物の星のように微妙に動く） */
@keyframes footerStarFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(1px, -1px);
    }
    40% {
        transform: translate(-1px, 1px);
    }
    60% {
        transform: translate(1px, 1px);
    }
    80% {
        transform: translate(-1px, -1px);
    }
}

/* 流星アニメーション（ゆっくり） */
@keyframes footerMeteorFall {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(35deg);
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateX(120px) translateY(160px) rotate(35deg);
    }
}

.footer-shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* ===== Fire Spark Effect for Principal Photo ===== */
.principal-photo-container {
    position: relative;
    display: inline-block;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

.principal-photo-container img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ===== Speech Bubbles Container (吹き出しコンテナ) ===== */
.speech-bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
}

/* プロフィールセクションにposition: relativeを確保 + オーバーフロー制御 */
.profile-section {
    position: relative;
    overflow-x: clip;  /* 横方向の見切れを防止 */
}

/* ===== Speech Bubble (吹き出し) ===== */
.speech-bubble {
    position: absolute;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 
        0 4px 16px rgba(99, 102, 241, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    white-space: nowrap;  /* 基本は1行 */
    max-width: none;  /* 幅制限なし - 内容に応じて */
    text-align: center;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    animation: speechBubbleFloat 2s ease-in-out forwards;
    pointer-events: none;
    line-height: 1.4;
}

/* 吹き出しの三角形（しっぽ） - 位置によって変わる */
.speech-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

/* 下向きしっぽ（上に出る吹き出し用） */
.speech-bubble.tail-bottom::before {
    bottom: -10px;
    left: 20px;
    border-top: 10px solid #fff;
}

/* 上向きしっぽ（下に出る吹き出し用） */
.speech-bubble.tail-top::before {
    top: -10px;
    left: 20px;
    border-bottom: 10px solid #fff;
}

/* 左向きしっぽ（右に出る吹き出し用） */
.speech-bubble.tail-left::before {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: none;
    border-right: 10px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* 右向きしっぽ（左に出る吹き出し用） */
.speech-bubble.tail-right::before {
    right: -10px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    border-right: none;
    border-left: 10px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* しっぽなし（シンプル） */
.speech-bubble.no-tail::before {
    display: none;
}

/* ===== グラデーションバージョンの吹き出し ===== */
/* パープル系グラデーション */
.speech-bubble.gradient-purple {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-color: rgba(139, 92, 246, 0.4);
}
.speech-bubble.gradient-purple .speech-text {
    color: #fff;
}

/* インディゴ→ピンク グラデーション */
.speech-bubble.gradient-pink {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-color: rgba(236, 72, 153, 0.4);
}
.speech-bubble.gradient-pink .speech-text {
    color: #fff;
}

/* ダークパープル グラデーション */
.speech-bubble.gradient-dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border-color: rgba(99, 102, 241, 0.4);
}
.speech-bubble.gradient-dark .speech-text {
    color: #e0e7ff;
}

/* ゴールド系グラデーション */
.speech-bubble.gradient-gold {
    background: linear-gradient(135deg, #92400e 0%, #c9a227 50%, #f0d060 100%);
    border-color: rgba(201, 162, 39, 0.4);
}
.speech-bubble.gradient-gold .speech-text {
    color: #fff;
}

/* 青→紫 グラデーション */
.speech-bubble.gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    border-color: rgba(99, 102, 241, 0.4);
}
.speech-bubble.gradient-blue .speech-text {
    color: #fff;
}

.speech-icon {
    margin-right: 0.4rem;
    font-size: 1rem;
}

.speech-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6366f1;
    display: inline;
}

/* 吹き出し出現・消滅アニメーション（2秒版） */
@keyframes speechBubbleFloat {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(8px);
    }
    20% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    80% {
        opacity: 1;
        transform: scale(1) translateY(-4px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-12px);
    }
}

/* ダークモード対応 */
[data-theme="dark"] .speech-bubble {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .speech-bubble.tail-bottom::before {
    border-top-color: #1e1b4b;
}

[data-theme="dark"] .speech-bubble.tail-top::before {
    border-bottom-color: #1e1b4b;
}

[data-theme="dark"] .speech-bubble.tail-left::before {
    border-right-color: #1e1b4b;
}

[data-theme="dark"] .speech-bubble.tail-right::before {
    border-left-color: #1e1b4b;
}

[data-theme="dark"] .speech-text {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .speech-bubble {
        padding: 0.45rem 0.85rem;
        white-space: nowrap;
        max-width: none;
        border-radius: 10px;
    }
    
    .speech-text {
        font-size: 0.75rem;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .speech-bubble {
        padding: 0.4rem 0.75rem;
        white-space: nowrap;
        max-width: none;
        border-radius: 8px;
        border-width: 1px;
    }
    
    .speech-text {
        font-size: 0.65rem;
        line-height: 1.3;
    }
    
    .speech-icon {
        font-size: 0.7rem;
        margin-right: 0.2rem;
    }
}

/* 小型モバイル対応 */
@media (max-width: 480px) {
    .speech-bubble {
        padding: 0.35rem 0.65rem;
        white-space: nowrap;
        max-width: none;
    }
    
    .speech-text {
        font-size: 0.6rem;
    }
}

.fire-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* セクションが見えたら自動で火の粉が出る */
.profile-section.in-view .fire-sparks,
.principal-photo-container:hover .fire-sparks,
.principal-photo-container.active .fire-sparks {
    opacity: 1;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff6b00;
    border-radius: 50%;
    animation: sparkRise var(--duration) ease-out infinite;
    box-shadow: 0 0 4px #ff6b00, 0 0 8px #ff9500, 0 0 12px rgba(255, 107, 0, 0.5);
}

@keyframes sparkRise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) translateX(var(--drift)) scale(0);
        opacity: 0;
    }
}

/* Ember glow underneath */
.ember-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse, rgba(255, 107, 0, 0.4) 0%, transparent 70%);
    filter: blur(10px);
    animation: emberPulse 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* セクションが見えたら自動でemberも出る */
.profile-section.in-view .ember-glow,
.principal-photo-container:hover .ember-glow,
.principal-photo-container.active .ember-glow {
    opacity: 1;
}

@keyframes emberPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* ===== Smooth Scroll-Based Transitions ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }
.scroll-reveal.delay-4 { transition-delay: 0.4s; }

/* ===== Premium Section Transitions ===== */
section {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Swipe Parallax Effect ===== */
.swipe-parallax-container {
    position: relative;
    overflow: hidden;
}

.swipe-parallax-bg {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

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

/* ===== Mission Statement Section (Replaces Reviews) ===== */
.mission-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(244, 114, 182, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-quote {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
}

.mission-quote::before,
.mission-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    font-family: Georgia, serif;
}

.mission-quote::before {
    top: -20px;
    left: -30px;
}

.mission-quote::after {
    bottom: -40px;
    right: -30px;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.mission-value {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.mission-value:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.mission-value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.mission-value h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.mission-value p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .mission-quote {
        font-size: 1.3rem;
    }
    
    .mission-quote::before,
    .mission-quote::after {
        font-size: 2.5rem;
    }
    
    .mission-values {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mission-value {
        padding: 1.5rem;
    }
    
    .logo-organic::before,
    .logo-organic::after {
        display: none;
    }
}

/* ===== Image Protection (Enhanced Screenshot Prevention) ===== */
.protected-image {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Principal photo container with protective overlay */
.principal-photo-container {
    position: relative;
    display: inline-block;
    user-select: none;
    -webkit-user-drag: none;
    /* ピンチズーム防止 - 全端末対応 */
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
}

/* 塾長画像のズーム/ピンチ防止強化 */
.principal-photo-container img {
    touch-action: none;
    -ms-touch-action: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Invisible protective overlay to prevent screenshot tools */
.principal-photo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    pointer-events: none;
}

/* Add subtle noise pattern overlay for screenshot prevention */
.principal-photo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        );
    pointer-events: none;
    mix-blend-mode: overlay;
}

.principal-photo-container img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    position: relative;
    z-index: 1;
}

/* Legacy wrapper support */
.protected-image-wrapper {
    position: relative;
    display: inline-block;
}

.protected-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: auto;
}

/* ===== Mission Statement Blockquote ===== */
.mission-statement {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 2;
    text-align: center;
}

/* ===== Footer Night Sky Enhancements ===== */
.night-sky-footer {
    color: #fff !important;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.night-sky-footer .footer-container {
    position: relative;
    z-index: 2;
}

.night-sky-footer .footer-tagline,
.night-sky-footer .footer-column h4,
.night-sky-footer .footer-column a,
.night-sky-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.night-sky-footer .footer-column a:hover {
    color: var(--neon-blue) !important;
}

.night-sky-footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-mission {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 0.5rem;
}

/* ===== Highlight Info Cards ===== */
.info-card.highlight-card {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.info-card.highlight-card.special {
    border-color: var(--neon-orange);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 107, 0, 0.05) 100%);
}

.info-card.highlight-card.special .info-card-icon {
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
}

.info-card.highlight-card.special:hover {
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

/* ===== Button Outline Style ===== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

/* ===== Enhanced Fade Effects ===== */
.fade-target {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--fade-delay, 0s);
}

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

/* フェードインのバリエーション */
.fade-target.fade-scale {
    transform: translateY(20px) scale(0.95);
}

.fade-target.fade-scale.fade-visible {
    transform: translateY(0) scale(1);
}

/* ===== Hover Icon Effects ===== */
.hover-icon-effect {
    position: absolute;
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.hover-icon-top-right {
    top: -8px;
    right: -8px;
}

.hover-icon-top-left {
    top: -8px;
    left: -8px;
}

.hover-icon-left {
    top: 50%;
    left: -30px;
    transform: translateY(-50%) scale(0.5);
}

.hover-icon-right {
    top: 50%;
    right: -30px;
    transform: translateY(-50%) scale(0.5);
}

/* ホバー時にアイコンを表示 */
*:hover > .hover-icon-effect {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

*:hover > .hover-icon-left {
    transform: translateY(-50%) scale(1);
    left: -25px;
}

*:hover > .hover-icon-right {
    transform: translateY(-50%) scale(1);
    right: -25px;
}

/* アイコンの輝きエフェクト */
.hover-icon-effect iconify-icon {
    filter: drop-shadow(0 0 4px currentColor);
    animation: none;
}

*:hover > .hover-icon-effect iconify-icon {
    animation: iconPop 0.4s ease;
}

@keyframes iconPop {
    0% {
        transform: scale(0.5);
        filter: drop-shadow(0 0 0px currentColor);
    }
    50% {
        transform: scale(1.3);
        filter: drop-shadow(0 0 10px currentColor);
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px currentColor);
    }
}

/* コースカード用の特別なエフェクト */
.course-card .hover-icon-effect {
    background: var(--accent);
    border-radius: 50%;
    padding: 6px;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.4);
}

/* SNSカード用 */
.sns-card .hover-icon-effect {
    background: var(--bg-primary);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ボタン用 */
.btn-course .hover-icon-effect {
    position: relative;
    display: inline-flex;
    margin-left: 8px;
    top: auto;
    right: auto;
}

.btn-course:hover .hover-icon-effect {
    animation: sparkleRotate 0.6s ease;
}

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

/* スマホではホバーエフェクトを軽減 */
@media (max-width: 768px) {
    .hover-icon-effect {
        display: none;
    }
    
    .fade-target {
        transform: translateY(20px);
    }
}

/* ===== Premium Scroll Transitions ===== */
.scroll-parallax {
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Enhanced Parallax Effects ===== */

/* パララックス対象要素 */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* セクションタイトルのパララックス */
.section-title[data-parallax] {
    position: relative;
    z-index: 2;
}

/* カード要素のパララックス */
.about-card[data-parallax],
.feature-card[data-parallax],
.course-card[data-parallax] {
    transition: transform 0.15s ease-out;
}

/* ヒーローコンテンツのパララックス */
.hero-content[data-parallax] {
    transition: transform 0.2s ease-out;
}

/* 塾長画像のパララックス */
.principal-photo-container[data-parallax] {
    transition: transform 0.2s ease-out;
}

/* フッターロゴのパララックス */
.footer-logo[data-parallax] {
    transition: transform 0.15s ease-out;
}

/* 背景レイヤー用 */
.parallax-bg-layer {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}

/* ===== Section Parallax Background ===== */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

/* スマホでのパララックス軽減 */
@media (max-width: 768px) {
    [data-parallax] {
        transition: transform 0.05s linear;
    }
    
    .hero-content[data-parallax] {
        /* スマホではパララックス効果を軽減 */
    }
}
