/* カスタムアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* ヘッダーのスクロール効果 */
.header-scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* スライドショー */
.slideshow-container {
    position: relative;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
    animation: fadeIn 1s;
}

.fade {
    animation-name: fadeIn;
    animation-duration: 1s;
}

/* スライドドット */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.dot.active {
    opacity: 1;
    transform: scale(1.3);
}

/* フェードインセクション */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* サービスカードのホバーエフェクト */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* トップへ戻るボタンの表示 */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* ナビゲーションリンクのアクティブ状態 */
.nav-link.active {
    color: #1E88E5;
    font-weight: bold;
}

/* モバイルメニューアニメーション */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.show {
    max-height: 500px;
}

/* フォーム要素のフォーカススタイル */
input:focus, textarea:focus {
    transform: scale(1.01);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

/* ローディングアニメーション */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
