/* =============================================
   グッズページ専用スタイル
   ドラえもん100サイトデザインに準拠
   ============================================= */

/* ページタイトル */
#slide_sub {
    padding-bottom: 20px;
}

.goods_page_title {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1;
    letter-spacing: 0;
    margin-top: 60px;
    margin-bottom: 10px;
}

.goods_page_subtitle {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

/* グッズセクション */
.goods_section {
    padding: 20px 0 80px;
}

/* カテゴリーフィルターボタン */
.goods_category_filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.goods_cat_btn {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goods_cat_btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.goods_cat_btn.active {
    background: #fff;
    color: var(--color-navy, #003F7E);
}

/* カテゴリーグループ */
.goods_category_group {
    margin-bottom: 50px;
}

.goods_category_group.hidden {
    display: none;
}

.goods_category_title {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* グリッドレイアウト: 3列 */
.goods_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

/* 商品アイテム */
.goods_item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.goods_item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.goods_item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.goods_item a,
.goods_item img,
.goods_item a:hover,
.goods_item img:hover,
.goods_item:hover img,
.goods_item:hover a {
    transform: none !important;
    transition: none !important;
}

/* 画像エリア */
.goods_item_gallery {
    position: relative;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods_noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1rem;
    font-family: "M PLUS Rounded 1c", sans-serif;
    background: #f0f0f0;
    aspect-ratio: 1 / 1;
}

/* 商品情報 */
.goods_item_info {
    padding: 15px 18px 20px;
}

.goods_item_name {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy, #003F7E);
    line-height: 1.5;
    margin: 0 0 8px;
}

.goods_item_size {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 5px;
}

.goods_item_price {
    margin: 0;
    color: #333;
}

.goods_item_price .price_num {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0;
}

.goods_item_price .price_tax {
    font-size: 0.75rem;
    color: #999;
    margin-left: 2px;
}

/* 空メッセージ */
.goods_empty {
    text-align: center;
    color: #fff;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 1.2rem;
    padding: 80px 0;
}


/* =============================================
   矢印切替ギャラリー（グッズ用）
   ============================================= */

.goods_gallery_shell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.goods_gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.goods_item_gallery .swiper,
.goods_item_gallery .swiper-wrapper,
.goods_item_gallery .swiper-slide,
.goods_gallery_track,
.goods_gallery_slide {
    height: 100%;
}

.goods_gallery_track {
    width: 100%;
    height: 100%;
}

.goods_gallery_slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.goods_gallery .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods_gallery_slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.goods_single_img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.goods_media_img.is-portrait {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: calc(100% - 10px) !important;
}

.goods_media_img.is-landscape {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.goods_media_img.is-square {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
}

/* 矢印ボタン */
.goods_gallery_prev,
.goods_gallery_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.goods_gallery_prev:hover,
.goods_gallery_next:hover {
    background: rgba(0, 0, 0, 0.95);
}

.goods_gallery_prev {
    left: -17px;
}

.goods_gallery_next {
    right: -17px;
}


/* =============================================
   レスポンシブ
   ============================================= */

/* タブレット */
@media screen and (max-width: 820px) {
    .goods_page_title {
        font-size: 3.5rem;
        margin-top: 40px;
    }

    .goods_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
    }

    .goods_item_info {
        padding: 12px 15px 18px;
    }
}

/* スマートフォン */
@media screen and (max-width: 640px) {
    .goods_category_filter {
        gap: 6px;
        margin-bottom: 25px;
    }

    .goods_cat_btn {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .goods_category_title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .goods_category_group {
        margin-bottom: 35px;
    }
    .goods_page_title {
        font-size: 2.5rem;
        margin-top: 30px;
        margin-bottom: 5px;
    }

    .goods_page_subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .goods_section {
        padding: 20px 0 50px;
    }

    .goods_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px;
    }

    .goods_item {
        border-radius: 8px;
    }

    .goods_item_info {
        padding: 10px 12px 15px;
    }

    .goods_item_name {
        font-size: 0.8rem;
    }

    .goods_item_price .price_num {
        font-size: 1.05rem;
    }

    .goods_item_price .price_tax {
        font-size: 0.65rem;
    }

    .goods_gallery_prev,
    .goods_gallery_next {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .goods_gallery_prev {
        left: -17px;
    }

    .goods_gallery_next {
        right: -17px;
    }
}
