/* ===================================
   Part: Section - Menu
   ================================== */
.menu {
    padding: var(--space-lg) 0;
    background: var(--color-cream);
    /* Warm background */
    overflow: hidden;
    /* Prevent horizontal scroll due to swiper overflow */
}

@media (min-width: 900px) {
    .menu {
        min-height: 70vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.menu-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

/* Swiper Styles */
.menu-swiper {
    width: 100%;
    padding: var(--space-md) 0 var(--space-xl);
    overflow: visible;
    /* Allow shadows/hanging tags to show outside slide */
}

.menu-swiper .swiper-wrapper {
    align-items: flex-start;
    /* Swiperのデフォルトtransitionを使用 */
}

.menu-swiper .swiper-slide {
    /* slidesPerView: 'auto' モードでは幅をCSSで指定 */
    width: 280px;
    height: auto;
    opacity: 1;
}

/* "Hanging Tag" Style Card */
.menu-item-inner {
    background: var(--color-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center -40px;
    /* Swing pivot */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* The "Hole" for the tag */
.menu-item-inner::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-dark);
    /* Dark hole */
    border-radius: 50%;
    z-index: 10;
    opacity: 0.15;
}

.menu-item-inner:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: rotate(1.5deg) scale(1.02);
}

.menu-item-image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.menu-item-inner:hover .menu-item-image img {
    transform: scale(1.15);
}

.menu-item-content {
    padding: 1rem;
    text-align: center;
}

.menu-item-content h3 {
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--font-heading);
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.menu-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 0rem;
    line-height: 1.6;
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.8em;
}

.menu-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: auto;
}

.menu-cta {
    text-align: center;
    margin-top: 0rem;
}

/* Pagination */
.swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.4;
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
    background: var(--color-primary);
}

/* Hide Grid on Mobile since using Swiper everywhere */
.menu-grid {
    display: none;
}