/* =====================================================
   LOSTMAN - Animations Stylesheet
   Using 'both' fill-mode, visibility instead of opacity:0
   ===================================================== */

/* ===== Blend Animations ===== */
.blend-animation {
    position: relative;
    animation: blendIn 1s ease both;
}

@keyframes blendIn {
    0% {
        visibility: hidden;
        filter: blur(12px);
        transform: scale(0.88);
    }
    100% {
        visibility: visible;
        filter: blur(0);
        transform: scale(1);
    }
}

/* ===== Text Morph Animation (LOSTMAN → with you) ===== */
.morph-text {
    position: relative;
    display: inline-block;
}

.morph-text.morphing {
    animation: textMorph 4s ease-in-out both;
}

@keyframes textMorph {
    0% {
        letter-spacing: 0.1em;
        filter: blur(0);
    }
    40% {
        letter-spacing: 0.35em;
        filter: blur(3px);
    }
    60% {
        letter-spacing: 0.35em;
        filter: blur(3px);
    }
    100% {
        letter-spacing: 0.1em;
        filter: blur(0);
    }
}

/* ===== Reviews Marquee (動的テクスチャ) ===== */
.reviews-marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    /* 左右フェードグラデーション */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 1) 8%,
        rgba(0, 0, 0, 1) 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 1) 8%,
        rgba(0, 0, 0, 1) 92%,
        transparent 100%
    );
}

.reviews-marquee-track {
    display: flex;
    gap: 2rem;
    animation: reviewsMarquee 60s linear infinite;
    width: max-content;
}

.reviews-marquee-track:hover {
    animation-play-state: paused;
}

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

/* 口コミカード - 動的テクスチャとして */
.review-marquee-item {
    flex-shrink: 0;
    animation: floatReviewItem 4s ease-in-out infinite;
}

.review-marquee-item:nth-child(1), .review-marquee-item:nth-child(5) { animation-delay: 0s; }
.review-marquee-item:nth-child(2), .review-marquee-item:nth-child(6) { animation-delay: 0.5s; }
.review-marquee-item:nth-child(3), .review-marquee-item:nth-child(7) { animation-delay: 1s; }
.review-marquee-item:nth-child(4), .review-marquee-item:nth-child(8) { animation-delay: 1.5s; }

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

.review-marquee-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.15);
    width: 340px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* 装飾クオート */
.review-marquee-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    right: 10px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
}

/* シャインエフェクト */
.review-marquee-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.review-marquee-card:hover::after {
    left: 100%;
}

.review-marquee-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px) scale(1.02);
}

/* アイコン */
.review-marquee-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

/* アイコンカラーバリエーション */
.review-marquee-icon.icon-blue {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.review-marquee-icon.icon-green {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.review-marquee-icon.icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.review-marquee-icon.icon-gold {
    background: linear-gradient(135deg, #c9a227, #f0d060);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

/* アイコンパルスリング */
.review-marquee-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: reviewIconPulse 2.5s ease-out infinite;
}

.review-marquee-icon.icon-blue::after { border-color: #3b82f6; }
.review-marquee-icon.icon-green::after { border-color: #10b981; }
.review-marquee-icon.icon-purple::after { border-color: #8b5cf6; }
.review-marquee-icon.icon-gold::after { border-color: #c9a227; }

@keyframes reviewIconPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.review-marquee-card:hover .review-marquee-icon {
    transform: rotate(5deg) scale(1.1);
}

/* コンテンツ */
.review-marquee-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.review-marquee-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    transition: all 0.3s ease;
}

.review-marquee-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.review-marquee-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ホバー時のテキストカラー変化 */
.review-marquee-card:hover .review-marquee-title {
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* 引用ブロック */
.reviews-quote {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
}

.reviews-quote::before {
    content: '❝';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

/* ===== Legacy Reviews Slider (保持) ===== */
.reviews-slider {
    display: none;
}

.review-card-new {
    display: none;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.review-icon-new {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.review-meta {
    flex: 1;
}

.review-text-new {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.review-author-new {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-author-new::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.review-body {
    flex: 1;
    margin-bottom: 0.5rem;
}

.review-content-new {
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 1rem;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

/* Reviews Navigation */
.reviews-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.reviews-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reviews-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: var(--shadow-neon);
}

.reviews-btn:active {
    transform: scale(0.95);
}

.reviews-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.reviews-pagination {
    display: flex;
    gap: 0.75rem;
}

.reviews-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: var(--bg-tertiary);
    border: 2px solid var(--primary);
    opacity: 1;
    transition: all 0.35s ease;
    cursor: pointer;
}

.reviews-pagination .swiper-pagination-bullet:hover {
    background: rgba(99, 102, 241, 0.3);
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    transform: scale(1.25);
    box-shadow: 0 0 12px var(--primary);
}

/* Reviews Quote */
.reviews-quote {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

/* Legacy cube styles - kept for reference */
.cube-carousel { display: none; }
.cube-container { display: none; }
.cube { display: none; }
.cube-face { display: none; }
.cube-controls { display: none; }
.cube-btn { display: none; }
.review-card { display: none; }
.review-icon {
    display: none;
    color: #fff;
    font-size: 1.5rem;
}

.review-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.review-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.review-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.reviews-quote {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    font-style: italic;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
    text-align: center;
}

/* ===== Features Grid (Always Visible 01-03) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.feature-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-8px) scale(1.02);
}

.feature-card.active::before {
    transform: scaleX(1);
}

.feature-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.feature-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.feature-card.active .feature-number {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card.active .feature-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card.active .feature-title {
    color: var(--primary);
}

.feature-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.feature-card.active .feature-card-body {
    max-height: 400px;
    opacity: 1;
}

.feature-card-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.feature-highlight {
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Feature Indicators */
.feature-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.feature-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.feature-dot:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.2);
}

.feature-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary);
}

/* ===== Cinematic Logo Animation ===== */
.logo-cinematic {
    position: relative;
    overflow: hidden;
}

.logo-cinematic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: none;
}

.logo-cinematic:hover::before {
    animation: cinematicSweep 1s ease both;
}

@keyframes cinematicSweep {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ===== Button Animations ===== */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.btn-animated:active::after {
    width: 300px;
    height: 300px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* ===== Scroll Reveal Animations - Using visibility ===== */
.reveal {
    visibility: hidden;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    visibility: visible;
    transform: translateY(0);
}

.reveal-left {
    visibility: hidden;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    visibility: visible;
    transform: translateX(0);
}

.reveal-right {
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    visibility: visible;
    transform: translateX(0);
}

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ===== Shake Animation ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ===== Glow Pulse ===== */
@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px var(--primary));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--primary));
    }
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ===== Loop Animations - 自然なループアニメーション ===== */

/* ゆらゆら浮遊（アイコン・バッジ用） */
@keyframes gentleFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-4px) rotate(0.5deg); 
    }
    50% { 
        transform: translateY(-8px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-4px) rotate(-0.5deg); 
    }
}

/* 呼吸するような拡縮（CTAボタン用） */
@keyframes breathe {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
    }
}

/* キラキラ光る（特別要素用） */
@keyframes shimmer {
    0% { 
        background-position: -200% center; 
    }
    100% { 
        background-position: 200% center; 
    }
}

/* ゆっくり回転（アイコン用） */
@keyframes slowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 左右にゆらゆら */
@keyframes sway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-3px) rotate(-1deg); }
    75% { transform: translateX(3px) rotate(1deg); }
}

/* パルス（注目要素用） */
@keyframes attentionPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ハートビート（重要CTAアイコン用） */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

/* バッジのアイコン - ゆらゆら浮遊 */
.hero-badge .badge-icon {
    display: inline-block;
    animation: gentleFloat 3s ease-in-out infinite;
}

/* ヒーローCTAボタン - 呼吸アニメーション */
.hero-cta .btn-primary {
    animation: breathe 3s ease-in-out infinite;
}

/* Feature番号 - ゆっくりパルス */
.feature-number {
    animation: attentionPulse 4s ease-in-out infinite;
}

/* Featureアイコン - 浮遊 */
.feature-icon iconify-icon {
    display: inline-block;
    animation: gentleFloat 4s ease-in-out infinite;
}

/* コースカードのアイコン - ゆらゆら */
.course-badge iconify-icon,
.course-icon iconify-icon {
    display: inline-block;
    animation: sway 3s ease-in-out infinite;
}

/* プレミアムコースは特別なハートビート */
.course-card.premium .course-icon iconify-icon,
.course-card.special .course-icon iconify-icon {
    animation: heartbeat 2s ease-in-out infinite;
}

/* ハイライトアイテムのアイコン */
.highlight-item iconify-icon {
    display: inline-block;
    animation: gentleFloat 3.5s ease-in-out infinite;
}

/* 各アイテムに遅延を付けてバラバラに動かす */
.highlight-item:nth-child(1) iconify-icon { animation-delay: 0s; }
.highlight-item:nth-child(2) iconify-icon { animation-delay: 0.5s; }
.highlight-item:nth-child(3) iconify-icon { animation-delay: 1s; }

.feature-card:nth-child(1) .feature-icon iconify-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon iconify-icon { animation-delay: 0.3s; }
.feature-card:nth-child(3) .feature-icon iconify-icon { animation-delay: 0.6s; }

/* About カードのアイコン */
.about-card iconify-icon {
    display: inline-block;
    animation: gentleFloat 4s ease-in-out infinite;
}

.about-card:nth-child(1) iconify-icon { animation-delay: 0s; }
.about-card:nth-child(2) iconify-icon { animation-delay: 0.4s; }
.about-card:nth-child(3) iconify-icon { animation-delay: 0.8s; }

/* フッターロゴ - ゆっくり浮遊 */
.footer-logo-image {
    animation: gentleFloat 5s ease-in-out infinite;
}

/* SNSカードのアイコン */
.sns-icon iconify-icon {
    display: inline-block;
    animation: sway 3s ease-in-out infinite;
}

/* スマホでは軽量化（アニメーション速度を落とす） */
@media (max-width: 768px) {
    .hero-badge .badge-icon,
    .feature-icon iconify-icon,
    .highlight-item iconify-icon,
    .about-card iconify-icon {
        animation-duration: 5s;
    }
    
    .hero-cta .btn-primary {
        animation-duration: 4s;
    }
}

/* ===== Enhanced Animations - Inertia & Transitions ===== */

/* 慣性を感じるイージング */
:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-inertia: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ホバーアニメーション強化 */
.btn, .tab-btn, .info-card, .course-card, .feature-card, .about-card, .accordion-header {
    transition: all 0.4s var(--ease-out-expo);
}

/* ボタンホバー - 慣性付き */
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    transition: all 0.3s var(--ease-out-back);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* カードホバー - 滑らかな浮遊感 */
.info-card:hover,
.course-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    transition: all 0.4s var(--ease-out-expo);
}

/* リンクホバー - 下線アニメーション */
.nav-link, .footer-links a {
    position: relative;
}

.nav-link::after, .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.4s var(--ease-out-expo);
    transform: translateX(-50%);
}

.nav-link:hover::after, .footer-links a:hover::after {
    width: 100%;
}

/* スクロール連動フェードイン */
.scroll-reveal {
    visibility: hidden;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.scroll-reveal.revealed {
    visibility: visible;
    transform: translateY(0);
}

/* ブラーイン効果 */
.blur-in {
    filter: blur(10px);
    transform: scale(0.95);
    transition: all 0.6s var(--ease-out-expo);
}

.blur-in.visible {
    filter: blur(0);
    transform: scale(1);
}

/* スライドイン（左から） */
.slide-in-left {
    transform: translateX(-60px);
    visibility: hidden;
    transition: all 0.7s var(--ease-out-expo);
}

.slide-in-left.visible {
    transform: translateX(0);
    visibility: visible;
}

/* スライドイン（右から） */
.slide-in-right {
    transform: translateX(60px);
    visibility: hidden;
    transition: all 0.7s var(--ease-out-expo);
}

.slide-in-right.visible {
    transform: translateX(0);
    visibility: visible;
}

/* 矢印アニメーション - 慣性付きループ */
@keyframes arrowLoop {
    0% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.arrow-animate {
    animation: arrowLoop 2s var(--ease-inertia) infinite;
}

/* 矢印が右に消えて左から出てくる */
@keyframes arrowThrough {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    45% {
        transform: translateX(20px);
        opacity: 0;
    }
    50% {
        transform: translateX(-20px);
        opacity: 0;
    }
    55% {
        transform: translateX(-20px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.arrow-through {
    animation: arrowThrough 2.5s var(--ease-inertia) infinite;
}

/* ページトランジション効果 */
.page-transition {
    animation: pageIn 0.6s var(--ease-out-expo) both;
}

@keyframes pageIn {
    from {
        filter: blur(8px);
        transform: scale(0.98);
        visibility: hidden;
    }
    to {
        filter: blur(0);
        transform: scale(1);
        visibility: visible;
    }
}

/* テキスト積み上げアニメーション */
.stack-text {
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.stack-text.visible {
    transform: translateY(0);
}

/* アイコンホバー - 回転とスケール */
.icon-hover {
    transition: all 0.3s var(--ease-out-back);
}

.icon-hover:hover {
    transform: rotate(10deg) scale(1.2);
}

/* パルス効果（CTAボタン用） */
@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(201, 162, 39, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
    }
}

.cta-pulse {
    animation: ctaPulse 2s infinite;
}

/* ビームボーダーアニメーション */
@keyframes beamBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.beam-border {
    position: relative;
}

.beam-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #c9a227, #f5d76e, #c9a227, #f5d76e);
    background-size: 300% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: beamBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beam-border:hover::before {
    opacity: 1;
}

/* ===== Responsive Animations ===== */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card-body {
        max-height: none;
        opacity: 1;
    }
    
    .feature-card:not(.active) .feature-card-body {
        max-height: 0;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .feature-number {
        font-size: 1.2rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    /* Reviews Marquee responsive */
    .reviews-marquee-container {
        padding: 1.5rem 0;
    }
    
    .reviews-marquee-track {
        gap: 1.5rem;
        animation-duration: 45s;
    }
    
    .review-marquee-card {
        width: 280px;
        min-height: 160px;
        padding: 1.25rem;
    }
    
    .review-marquee-card::before {
        font-size: 3.5rem;
        top: -10px;
        right: 8px;
    }
    
    .review-marquee-icon {
        width: 40px;
        height: 40px;
    }
    
    .review-marquee-icon iconify-icon {
        width: 22px;
        height: 22px;
    }
    
    .review-marquee-title {
        font-size: 0.9rem;
    }
    
    .review-marquee-author {
        font-size: 0.75rem;
    }
    
    .review-marquee-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .reviews-quote {
        padding: 1.25rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .reviews-nav {
        gap: 1rem;
        margin-top: 1.25rem;
    }
    
    .reviews-btn {
        width: 46px;
        height: 46px;
    }
    
    .reviews-pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }
    
    .reviews-quote {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        margin: 1.5rem auto 0;
    }
}
