/**
 * お弁当商品カルーセルセクションのスタイル
 * Green Spoonライクなモダンでクリーンなデザイン
 */

.product-carousel-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

/* 背景装飾 */
.product-carousel-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: 50%;
    z-index: 1;
}

.product-carousel-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 50%;
    z-index: 1;
}

.product-carousel-section .container {
    position: relative;
    z-index: 2;
}

/* セクションヘッダー */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* カルーセルラッパー */
.product-carousel-wrapper {
    position: relative;
    margin-bottom: 60px;
}

/* Swiperスタイル */
.product-swiper {
    padding: 20px 0 40px;
    overflow: visible;
}

.product-swiper .swiper-wrapper {
    align-items: stretch;
}

.product-swiper .swiper-slide {
    height: auto;
}

/* 商品カード */
.product-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 商品カードリンク */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-card-link:focus {
    outline: 3px solid rgba(34, 197, 94, 0.5);
    outline-offset: 2px;
}

/* ホバー時のインタラクション改善 */
.product-card-link:hover .product-name {
    color: #22c55e;
}

.product-card-link:hover .price-value {
    transform: scale(1.05);
}

/* 商品画像 */
.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f9fafb;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* カテゴリーバッジ */
.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(34, 197, 94, 0.9);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* 商品情報 */
.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex: 1;
}

/* 商品詳細情報 */
.product-details {
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-details>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.product-details span[class$="-label"] {
    color: #6b7280;
    font-weight: 500;
}

.product-details span[class$="-value"] {
    color: #1f2937;
    font-weight: 600;
}

.price-value {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

/* ナビゲーションボタン */
.swiper-button-prev,
.swiper-button-next {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.8);
    color: #374151;
    transition: all 0.3s ease;
    top: 50%;
    margin-top: -24px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #22c55e;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

.swiper-button-prev {
    left: 30px;
}

.swiper-button-next {
    right: 30px;
}

.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ページネーション */
.swiper-pagination {
    position: absolute;
    margin-top: 30px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #22c55e;
    transform: scale(1.2);
}

/* セクションフッター */
.section-footer {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-view-all svg {
    transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
    transform: translateX(4px);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .swiper-button-prev {
        left: -16px;
    }

    .swiper-button-next {
        right: -16px;
    }
}

@media (max-width: 768px) {
    .product-carousel-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .product-carousel-wrapper {
        margin-bottom: 40px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }

    .product-info {
        padding: 20px;
    }

    .product-name {
        font-size: 1.125rem;
    }

    .btn-view-all {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-carousel-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .product-swiper {
        padding: 10px 0 30px;
    }

    .product-info {
        padding: 16px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .btn-view-all {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
}