.art {
    background-color: #EFFF2A;
    padding: 6rem 0;
}

.art .info-sub-content {
    max-width: 1600px; /* コンテナの最大幅を増やす */
    margin: 0 auto;
    padding: 0 2rem;
}

.art .info-sub-heading {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

.art .info-sub-description {
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.art .desktop-view {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1600px;
}

.art .mobile-view {
    display: none;
}

.art .carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.art .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.art .info-sub-image {
    flex: 1;
    max-width: 500px;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.art .info-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.art .info-sub-image:hover {
    transform: translateY(-10px);
}

/* タブレット向け */
@media (max-width: 1440px) {
    .art .info-sub-image {
        max-width: 400px;
        height: 300px;
    }
}

@media (max-width: 1024px) {
    .art .info-sub-image {
        max-width: 300px;
        height: 250px;
    }
}

/* スマートフォン向け */
@media (max-width: 768px) {
    .art {
        padding: 3rem 0;
    }

    .art .info-sub-content {
        padding: 0 1rem;
    }

    .art .info-sub-heading {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .art .info-sub-description {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        line-height: 1.6;
    }

    /* デスクトップ表示を非表示に */
    .art .desktop-view {
        display: none;
    }

    /* モバイル用カルーセルを表示 */
    .art .mobile-view {
        display: block;
    }

.art .carousel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.art .carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.art .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding-bottom: 75%; /* アスペクト比をPC表示と同じに */
    position: relative;
}

.art .carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}    .art .carousel-slide img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    .art .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 12px;
        margin: 0;
        padding: 0;
        z-index: 10;
    }

    .art .carousel-indicator {
        width: 8px;
        height: 8px;
        border: none;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .art .carousel-indicator:hover {
        transform: scale(1.2);
        background-color: rgba(255, 255, 255, 0.8);
    }

    .art .carousel-indicator.active {
        background-color: #ffffff;
        transform: scale(1.2);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

/* より小さいスマホ向け */
@media (max-width: 480px) {
    .art {
        padding: 2rem 0;
    }
    
    .art .info-sub-content {
        padding: 0 0.8rem;
    }
    
    .art .info-sub-heading {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .art .info-sub-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}