/* ゲーム別おすすめPC レイアウト */
.game-category-parent-layout {
    width: 100%;
    padding: 20px 0;
}

.game-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.game-section:last-child {
    border-bottom: none;
}

.game-section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #333;
}

.game-section-title a {
    color: #333;
    text-decoration: none;
}

.game-section-title a:hover {
    color: #007bff;
}

/* PC・スマホ共通: 横一列（アイコン左 + 商品右） */
.game-section-layout {
    display: flex !important;
    gap: 20px;
    align-items: flex-start;
}

/* 左側：ゲームアイコン */
.game-icon-section {
    flex: 0 0 240px !important;
    width: 240px !important;
    display: block;
    position: relative;
    transition: all 0.3s;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.game-icon-section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* 光るエフェクト */
.game-icon-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    50%, 100% {
        left: 150%;
    }
}

.game-icon-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 12px !important;
}

/* 右側：商品スライダー */
.game-products-section {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.game-products-slider {
    position: relative;
    width: 100%;
}

/* Slickスライダー */
.game-products-slider .slick-list {
    overflow: hidden !important;
    margin: 0 50px;
}

.game-products-slider .slick-track {
    display: flex !important;
}

.game-products-slider .slick-slide {
    height: auto !important;
    float: none !important;
    margin: 0 10px;
}

/* 矢印ボタン */
.game-products-slider .slick-prev,
.game-products-slider .slick-next {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0,0,0,0.7) !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.game-products-slider .slick-prev:hover,
.game-products-slider .slick-next:hover {
    background: rgba(0,0,0,0.9) !important;
}

.game-products-slider .slick-prev {
    left: 0 !important;
}

.game-products-slider .slick-next {
    right: 0 !important;
}

.game-products-slider .slick-prev img,
.game-products-slider .slick-next img {
    width: 24px !important;
    height: 24px !important;
    filter: brightness(0) invert(1);
}

.game-products-slider .slick-prev:before,
.game-products-slider .slick-next:before {
    content: '' !important;
}

.game-products-slider .slick-disabled {
    opacity: 0.3 !important;
}

.game-products-slider .slick-dots {
    display: none !important;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .game-section-layout {
        gap: 15px;
    }
    
    .game-icon-section {
        flex: 0 0 120px !important;
        width: 120px !important;
    }
    
    /* 矢印ボタンを非表示 */
    .game-products-slider .slick-prev,
    .game-products-slider .slick-next {
        display: none !important;
    }
    
    .game-products-slider .slick-list {
        margin: 0;
    }
    
/* 「もっと商品があるよ」インジケーター */
    .game-products-section {
        position: relative;
    }
    
    .game-products-section::after {
        content: '››';
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 80px;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.6);
        pointer-events: none;
        z-index: 5;
        text-shadow: -3px 0 5px rgba(255, 255, 255, 0.9), 
                     3px 0 5px rgba(255, 255, 255, 0.9);
        animation: slideHint 1.2s ease-in-out infinite;
    }
    
    @keyframes slideHint {
        0%, 100% {
            opacity: 0.4;
            right: 5px;
        }
        50% {
            opacity: 0.9;
            right: 10px;
        }
    }
    
    /* 最後のスライドに到達したらインジケーター非表示 */
    .game-products-section.no-more-slides::after {
        display: none !important;
    }
    
    .game-section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .game-icon-section {
        flex: 0 0 100px !important;
        width: 100px !important;
    }
    
    .game-products-section::after {
        font-size: 50px;
    }
}
