/* 画像ティッカー */

.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 60s linear infinite !important;
    /* GPU最適化 */
    will-change: transform;
}

/* 右から左へ流れるアニメーション */
@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 {
    /* 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 50s linear infinite !important;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .ticker-item {
        flex-shrink: 0;
    }

    .ticker-item img {
        height: 260px;
        width: auto;
    }

    .ticker-content {
        animation: ticker-scroll 8s linear infinite !important;
        gap: 16px;
    }

    .ticker-wrapper {
        padding: 16px 0;
    }

    .ticker-item:hover {
        transform: none;
    }
}
