/* Premium Visual Effects and Animations */

/* ========================================
   Glassmorphism Effects
   ======================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

/* ========================================
   Advanced Gradients
   ======================================== */

.gradient-aurora {
    background: linear-gradient(
        45deg,
        #667eea 0%,
        #764ba2 20%,
        #f093fb 40%,
        #f5576c 60%,
        #4facfe 80%,
        #00f2fe 100%
    );
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
}

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

.gradient-mesh {
    background-color: #4158D0;
    background-image: 
        radial-gradient(at 47% 33%, hsla(162, 77%, 40%, 1) 0px, transparent 50%),
        radial-gradient(at 82% 65%, hsla(198, 100%, 50%, 1) 0px, transparent 50%),
        radial-gradient(at 20% 100%, hsla(261, 80%, 48%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(261, 85%, 73%, 1) 0px, transparent 50%);
}

/* ========================================
   3D Transform Effects
   ======================================== */

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
    position: relative;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg) scale(1.05);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-3d:hover::before {
    opacity: 1;
}

/* ========================================
   Neon Glow Effects
   ======================================== */

.neon-border {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        #ff00ff,
        #00ffff,
        #ff00ff,
        #00ffff
    );
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: neonGlow 3s ease infinite;
    opacity: 0.8;
    filter: blur(10px);
}

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

/* ========================================
   Particle Effects
   ======================================== */

.particle-container {
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Generate multiple particles */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 20s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 19s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 21s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 15s; }
.particle:nth-child(10) { left: 95%; animation-delay: 18s; animation-duration: 20s; }

/* ========================================
   Liquid Button Effect
   ======================================== */

.liquid-button {
    position: relative;
    padding: 1.3rem 2.8rem;
    display: inline-flex;
    align-items: center;
    background: #00B900 !important; /* LINE公式カラー */
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(0, 185, 0, 0.4);
}

.liquid-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.liquid-button:hover::before {
    width: 300px;
    height: 300px;
}

.liquid-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 185, 0, 0.5);
    background: #00A000 !important; /* ホバー時は少し暗めのLINEカラー */
}

/* ========================================
   Morphing Shapes Background
   ======================================== */

.morphing-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.morph-shape {
    position: absolute;
    background: linear-gradient(135deg, #667eea, #764ba2);
    filter: blur(40px);
    opacity: 0.4;
    animation: morph 20s infinite;
}

.morph-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.morph-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.morph-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 60% 30% 70% / 30% 70% 40% 60%;
    }
    75% {
        border-radius: 60% 30% 40% 70% / 70% 40% 60% 30%;
    }
}

/* ========================================
   Text Effects
   ======================================== */

.text-gradient-animated {
    background: linear-gradient(
        270deg,
        #ff6ec7,
        #667eea,
        #764ba2,
        #f093fb
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
}

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

.text-shadow-premium {
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: perspective(1000px) rotateY(90deg);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-rotate.revealed {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ========================================
   Interactive Hover Effects
   ======================================== */

.hover-lift-rotate {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.hover-lift-rotate:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 40px 80px rgba(0, 0, 0, 0.1);
}

.hover-magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Magnetic effect will be applied with JavaScript */

/* ========================================
   Loading Animations
   ======================================== */

.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   Premium Card Styles
   ======================================== */

.premium-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .card-3d:hover {
        transform: rotateY(5deg) rotateX(5deg) scale(1.02);
    }
    
    .liquid-button {
        padding: 15px 30px;
    }
    
    .morph-shape {
        filter: blur(60px);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
    }
}