/* ============================================
   画像ティッカー - 右から左へ流れるアニメーション（最適化版）
   ============================================ */

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 30px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 30px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* パフォーマンス最適化: GPU加速を有効化 */
    transform: translateZ(0);
}

.ticker-content {
    display: flex;
    gap: 30px;
    /* アニメーション時間を短縮し、パフォーマンス向上 */
    animation: ticker-scroll 40s linear infinite !important;
    /* GPU加速のためtranslate3dを使用 */
    transform: translate3d(0, 0, 0);
}

/* 右から左へ流れるアニメーション（最適化版） */
@keyframes ticker-scroll {
    0% {
        transform: translate3d(0%, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.ticker-item {
    flex-shrink: 0;
    position: relative;
    /* ホバー効果を軽量化 */
    transition: transform 0.3s ease;
}

.ticker-item:hover {
    /* scale効果を削除し、translateYのみに変更 */
    transform: translateY(-8px);
    z-index: 10;
}

.ticker-item img {
    /* 画像サイズを削減してパフォーマンス向上 */
    height: 320px;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* パフォーマンス最適化 */
    will-change: auto;
    /* 画像レンダリング最適化 */
    image-rendering: -webkit-optimize-contrast;
}

.ticker-item:hover img {
    /* シャドウ効果を削減 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ticker-item img {
        height: 240px;
    }
    
    .ticker-content {
        animation: ticker-scroll 35s linear infinite !important;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .ticker-item {
        width: calc(50vw - 30px);
        flex-shrink: 0;
    }
    
    .ticker-item img {
        height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    .ticker-content {
        animation: ticker-scroll 7.5s linear infinite !important;
        gap: 20px;
    }
    
    .ticker-wrapper {
        padding: 20px 10px;
    }
    
    /* モバイルではホバー効果を無効化 */
    .ticker-item:hover {
        transform: none;
    }
}
