/* Enhanced Card Hover Effects */
.card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: translateY(0);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0, 122, 136, 0.05), transparent);
    transition: height 0.3s ease;
    z-index: -1;
}

.card:hover::after {
    height: 100%;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.card:hover .card-header {
    background-color: var(--primary-color);
}

.card .btn {
    position: relative;
    overflow: hidden;
}

.card .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 ease;
}

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

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

/* Enhanced Navigation Hover Effects */
nav ul li a {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Enhanced Filter Button Effects */
.filter-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    width: 100%;
}

.filter-btn:hover {
    color: var(--light-text);
}

/* Enhanced Section Title Animation */
.section-title {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.section-title:hover::before {
    width: 100%;
}

/* Animated Background for Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 8s infinite linear;
    z-index: 1;
}

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

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 126, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 126, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 126, 69, 0);
    }
}

.hero-buttons .btn:first-child {
    animation: pulse 2s infinite;
}

/* Floating Animation for Cards */
/* アニメーションを無効化 */
/*
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.categories .card:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.categories .card:nth-child(even) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}
*/

/* Progress Bar Animation */
.progress-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Enhanced Footer Links */
.footer-links a {
    position: relative;
    padding: 0.3rem 0;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    transform: translateY(-3px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--light-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}


/* Particles.js Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

