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

.food .info-sub-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.food .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;
}

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

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

.food .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;
}

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

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

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

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

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

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

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

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

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

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

    /* カルーセル用スタイル */
    .food .carousel-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        overflow: hidden;
        position: relative;
    }

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

    .food .carousel-slide {
        flex: 0 0 100%;
        width: 100%;
        padding-bottom: 75%;
        position: relative;
    }

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

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

    .food .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;
    }

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

    .food .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) {
    .food {
        padding: 2rem 0;
    }
    
    .food .info-sub-content {
        padding: 0 0.8rem;
    }
    
    .food .info-sub-heading {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .food .info-sub-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}