@charset "UTF-8";

@import url("css/reset.css"); 

html{font-size:62.5%;}
/* サンプル font-size:14px; を指定する場合 */
body{font-size:1.4rem;font-family: 'Avenir','Helvetica Neue','Helvetica','Arial','Hiragino Sans','ヒラギノ角ゴシック',YuGothic,'Yu Gothic','メイリオ', Meiryo,'ＭＳ Ｐゴシック','MS PGothic';}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header a{
    color: initial;
    text-decoration: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container .catalog-title{
    margin-bottom: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.main-content {
    padding: 40px 0;
}

.page-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sidebar {
    min-width: 200px;
}

.category-section {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-header {
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
}

.category-item {
    padding: 12px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.category-item:hover {
    background-color: #f8f8f8;
}

.category-item:last-child {
    border-bottom: none;
}

.product-grid {
    flex: 1;
    width: 100%;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 250px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 160px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}
.product-image img{
    width: 100%;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 20px 0;
    }

    .page-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        min-width: auto;
        width: 100%;
    }

    .product-grid {
        width: 100%;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
    }

    .product-card {
        height: 220px;
        width: 100%;
    }

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .product-card {
        height: 200px;
        width: 100%;
    }

    .product-image {
        height: 120px;
    }
}

/* 商品詳細ページ */


/* パンくずナビ */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 商品メイン情報 */
.product-main {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 40px;
}

.product-image-container {
    flex: 1;
    min-width: 0;
    position: relative;
}

.product-image-large {
    width: 100%;
    height: 400px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    overflow: hidden;
}
.product-image-large img{
    max-width: 100%;
}

.product-info-main {
    flex: 1;
    min-width: 0;
}

.maker-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* セクション共通 */
.product-specs,
.food-labeling {
    background-color: #fff;
    padding: 30px 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.specs-content,
.labeling-content {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 15px 0 30px 0;
    }

    .breadcrumb {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .product-main {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        margin-bottom: 20px;
    }

    .product-image-large {
        height: 250px;
        font-size: 16px;
    }

    .product-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .maker-info {
        font-size: 13px;
    }

    .product-description {
        font-size: 13px;
    }

    .product-specs,
    .food-labeling {
        padding: 20px;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .specs-content,
    .labeling-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-main {
        padding: 15px;
    }

    .product-image-large {
        height: 200px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-specs,
    .food-labeling {
        padding: 15px;
    }

    .section-title {
        font-size: 15px;
    }
}


/* 大画像 */
.product-image-large {
    width: 100%;
    height: 400px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.product-image-large .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}
.product-image-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* サムネイル（横スクロール） */
.product-image-thumbs {
    margin-top: 10px;
}
.product-image-thumbs .swiper-wrapper {
    display: flex;
}
.product-image-thumbs .swiper-slide {

    flex-shrink: 0; /* 縮まず横並びに */
    opacity: 0.5;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;

    width: 80px;   /* サムネイルの幅を小さめに */
    height: 80px;
    margin-right: 8px;
}

.product-image-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #007bff;
}
.product-image-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-horizontal {
    touch-action: pan-y;
    overflow: hidden;
}

* 以下を既存のstyle.cssに追加してください */

/* 商品詳細ページ - キャッチコピー・特徴 */
.product-catch-copy {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.product-features h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* 各種情報セクション */
.package-info,
.cooking-info,
.other-info {
    background-color: #fff;
    padding: 30px 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 情報テーブル */
.info-table {
    width: 100%;
}

.info-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    width: 200px;
    flex-shrink: 0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

/* 食品表示セクションの調整 */
.food-labeling .labeling-content {
    margin-bottom: 20px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .product-catch-copy {
        font-size: 15px;
    }

    .product-features h3 {
        font-size: 15px;
    }

    .package-info,
    .cooking-info,
    .other-info {
        padding: 20px;
        margin-bottom: 15px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
        padding: 12px 0;
    }

    .info-label {
        width: 100%;
        font-size: 13px;
    }

    .info-value {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-catch-copy {
        font-size: 14px;
    }

    .package-info,
    .cooking-info,
    .other-info {
        padding: 15px;
    }

    .info-row {
        padding: 10px 0;
    }
}

/* ========================================
   カタログページ用スタイル（マテリアルデザイン風）
   ======================================== */

/* 全体の背景 */
.catalog-page,
.item-detail-page {
    background-color: #f5f5f5;
}

/* ========================================
   トップページ（全商品一覧）専用スタイル
   ======================================== */
.all-items-page .catalog-header {
    margin-bottom: 40px;
}

.all-items-header {
    background: linear-gradient(135deg, #424242 0%, #616161 100%) !important;
}

.all-items-description {
    background: #fff;
    padding: 20px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.all-items-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #616161;
}

/* トップページでは商品カードの下部スペースを調整 */
.all-items-page .product-card {
    padding-bottom: 56px;
}

/* ========================================
   カタログ一覧ページ - ヘッダーセクション
   ======================================== */
.catalog-header {
    margin-bottom: 40px;
}

/* ヘッダーメイン */
.catalog-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    padding: 32px 40px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.catalog-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.catalog-header-content {
    flex: 1;
}

.catalog-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.catalog-title {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* 提案理由セクション */
.proposal-reason-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    border-left: 6px solid #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.proposal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.proposal-icon {
    font-size: 28px;
}

.proposal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #e65100;
    margin: 0;
    letter-spacing: 0.3px;
}

.proposal-content {
    font-size: 15px;
    line-height: 1.8;
    color: #424242;
}

.proposal-content p {
    margin: 0 0 12px 0;
}

.proposal-content p:last-child {
    margin-bottom: 0;
}

.proposal-content ul,
.proposal-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.proposal-content li {
    margin-bottom: 8px;
}

.proposal-content strong {
    color: #e65100;
    font-weight: 600;
}

/* 使用方法の説明 */
.catalog-instructions {
    background: #fff;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.instruction-icon {
    font-size: 24px;
}

.instruction-title {
    font-size: 16px;
    font-weight: 600;
    color: #1976d2;
    letter-spacing: 0.3px;
}

.instruction-list {
    margin: 0;
    padding-left: 24px;
    list-style: decimal;
}

.instruction-list li {
    font-size: 14px;
    line-height: 1.8;
    color: #424242;
    margin-bottom: 10px;
    padding-left: 8px;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.instruction-list strong {
    color: #1976d2;
    font-weight: 600;
}

/* 選択商品カウンター */
.selected-counter {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    padding: 14px 24px;
    border-radius: 28px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    font-size: 15px;
    color: #424242;
    font-weight: 500;
    border: 2px solid #e0e0e0;
}

.counter-icon {
    font-size: 20px;
    margin-right: 8px;
}

.counter-text {
    margin-right: 4px;
}

.counter-number {
    color: #2196f3;
    font-weight: 700;
    font-size: 20px;
    margin: 0 6px;
}

.counter-unit {
    color: #757575;
}

/* ========================================
   カタログ一覧 - カテゴリータブ
   ======================================== */
.category-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: auto;
    flex-wrap: wrap;
    transition: box-shadow 0.3s ease;
}

.category-tabs.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid transparent;
    background: #fafafa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    color: #616161;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.tab-btn.active {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #fff;
    border-color: #2196f3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.tab-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
}

.tab-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
}

/* 商品カードのカテゴリーラベル */
.product-category-label {
    position: absolute;
    top: 48px;
    left: 12px;
    z-index: 5;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-transform: uppercase;
}

/* カテゴリー別の背景色（落ち着いた色） */
.product-category-label.category-snacks,
.product-category-label.category-keishoku {
    background: #fff5a4;
    color: #7e7825;
}

.product-category-label.category-お弁当,
.product-category-label.category-obento,
.product-category-label.category-弁当,
.product-category-label.category-bento {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    color: #e65100;
}

.product-category-label.category-スイーツ,
.product-category-label.category-sweets,
.product-category-label.category-デザート,
.product-category-label.category-dessert {
    background: linear-gradient(135deg, #f8bbd0 0%, #f48fb1 100%);
    color: #c2185b;
}

.product-category-label.category-惣菜,
.product-category-label.category-sozai {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    color: #f57f17;
}

.product-category-label.category-飲料,
.product-category-label.category-drink {
    background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%);
    color: #01579b;
}

.product-category-label.category-uncategorized,
.product-category-label.category-未分類 {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #424242;
}

/* ========================================
   カタログ一覧 - 商品カード
   ======================================== */
.catalog-page .product-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-out,
                transform 0.3s ease-out;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 56px;
    opacity: 0;
    transform: translateY(20px);
}

.catalog-page .product-card.show {
    opacity: 1;
    transform: translateY(0);
}

.catalog-page .product-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px) !important;
}

/* チェックボックス */
.product-checkbox-wrapper {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.product-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label {
    display: block;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #bdbdbd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.checkbox-label:hover {
    border-color: #2196f3;
    background: #fff;
}

.product-checkbox:checked + .checkbox-label {
    background: #2196f3;
    border-color: #2196f3;
}

.product-checkbox:checked + .checkbox-label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

/* バッジ */
.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    max-width: 50%;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    text-transform: uppercase;
}

.badge-recommend {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    color: #fff;
}

.badge-new {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: #fff;
}

.badge-sale {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    color: #fff;
}

.badge-popular {
    background: linear-gradient(135deg, #f57c00 0%, #fb8c00 100%);
    color: #fff;
}

.badge-local {
    background: linear-gradient(135deg, #00897b 0%, #26a69a 100%);
    color: #fff;
}

.badge-price {
    background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%);
    color: #fff;
}

/* 商品画像 */
.catalog-page .product-image {
    width: 100%;
    height: 250px;
    cursor: pointer;
}

/* 商品情報 */
.catalog-page .product-info {
    padding: 16px;
    flex: 1;
    cursor: pointer;
}

.product-catch {
    font-size: 12px;
    color: #2196f3;
    margin-bottom: 6px;
    font-weight: 500;
}

.catalog-page .product-name {
    font-size: 15px;
    font-weight: 600;
    color: #212121;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-lot {
    font-size: 13px;
    color: #757575;
    margin-top: 6px;
}

/* 詳細を見るボタン */
.product-detail-btn {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: #2196f3;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.product-detail-btn:hover {
    background: #1976d2;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}

/* ========================================
   フローティングアクションバー
   ======================================== */
.floating-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.btn-view-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    border: none;
    border-radius: 32px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-view-selected:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.6);
    transform: translateY(-3px);
}

.btn-view-selected .btn-icon {
    font-size: 22px;
}

.btn-view-selected .btn-text {
    font-weight: 700;
}

/* ========================================
   モーダル
   ======================================== */
.selected-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 28px 32px;
    border-bottom: 2px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #212121;
    margin: 0;
    letter-spacing: 0.3px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 36px;
    color: #757575;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    transition: all 0.2s;
    border-radius: 50%;
}

.modal-close:hover {
    color: #212121;
    background: #f5f5f5;
}

.modal-body {
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-description {
    font-size: 14px;
    color: #616161;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.selected-item {
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
    border-radius: 8px;
}

.selected-item:hover {
    background: #fafafa;
}

.selected-item:last-child {
    border-bottom: none;
}

.item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.item-title {
    flex: 1;
    font-size: 15px;
    color: #212121;
    font-weight: 500;
    line-height: 1.5;
}

.modal-footer {
    padding: 20px 32px;
    border-top: 2px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

.btn-cancel,
.btn-quote-request {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.btn-cancel {
    background: #fff;
    color: #616161;
    border: 2px solid #e0e0e0;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
}

.btn-quote-request {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

.btn-quote-request:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 4px 14px rgba(255, 152, 0, 0.4);
    transform: translateY(-1px);
}

.btn-quote-request .btn-icon {
    font-size: 18px;
}

/* 成功メッセージ */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
}

.success-message.show {
    opacity: 1;
    transform: translateX(0);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

.success-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========================================
   アクセス制限ページ
   ======================================== */
.access-denied-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.access-denied-container {
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 3px solid #f44336;
}

.access-denied-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.access-denied-title {
    font-size: 28px;
    font-weight: 600;
    color: #c62828;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.access-denied-message {
    font-size: 16px;
    line-height: 1.8;
    color: #616161;
    margin-bottom: 36px;
}

.access-denied-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-back-catalog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-back-catalog:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.btn-back-catalog .btn-icon {
    font-size: 20px;
}

/* ========================================
   商品詳細ページ - 共通スタイル
   ======================================== */
.item-detail-page .container {
    max-width: 1200px;
}

/* パンくずナビ */
.breadcrumb {
    margin-bottom: 30px;
    padding: 12px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #2196f3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1976d2;
}

/* ========================================
   商品詳細ページ - メインセクション
   ======================================== */
.product-main {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    gap: 32px;
}

/* 画像コンテナ */
.product-image-container {
    flex: 0 0 50%;
    min-width: 0;
}

.product-image-large {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fafafa;
}

.product-image-large .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* サムネイル */
.product-image-thumbs {
    margin-top: 10px;
}

.product-image-thumbs .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
}

.product-image-thumbs .swiper-slide:hover {
    opacity: 0.8;
}

.product-image-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #2196f3;
}

.product-image-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumb {
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    font-size: 16px;
    border-radius: 8px;
}

/* 商品情報メイン */
.product-info-main {
    flex: 1;
    min-width: 0;
}

/* バッジ */
.product-badges-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* メーカー情報ボックス */
.maker-info-box {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    gap: 8px;
}

.maker-label {
    font-size: 12px;
    color: #757575;
    font-weight: 500;
}

.maker-name {
    font-size: 14px;
    color: #212121;
    font-weight: 600;
}

/* 商品名ラベル */
.product-name-label {
    font-size: 12px;
    color: #757575;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 商品タイトル */
.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #212121;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* キャッチコピー */
.product-catch-copy {
    font-size: 16px;
    color: #2196f3;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

/* 商品特徴ボックス */
.product-features-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #ff9800;
}

.features-title {
    font-size: 16px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-title .icon {
    font-size: 20px;
}

.features-text {
    font-size: 16px;
    line-height: 1.8;
    color: #424242;
}

/* ========================================
   商品詳細ページ - 各セクション
   ======================================== */
.detail-section {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* セクションタイトル */
.section-title-detail {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 24px;
}

/* 情報テーブル */
.info-table {
    width: 100%;
}

.info-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.info-row:hover {
    background: #fafafa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex: 0 0 180px;
    font-weight: 600;
    color: #616161;
    font-size: 14px;
    padding-right: 16px;
}

.info-value {
    flex: 1;
    color: #212121;
    font-size: 14px;
    line-height: 1.6;
}

/* アレルギー情報の強調 */
.allergy-row {
    background: #fff3e0;
    padding: 14px 12px;
    margin: 8px 0;
    border-radius: 4px;
    border-left: 4px solid #ff9800;
}

.allergy-row .info-label {
    color: #e65100;
}

/* 特記事項の強調 */
.special-note-row {
    background: #ffebee;
    padding: 14px 12px;
    margin: 8px 0;
    border-radius: 4px;
    border-left: 4px solid #f44336;
}

.special-note-row .info-label {
    color: #c62828;
}

/* セクション別の色分け */
.package-section {
    border-top: 4px solid #4caf50;
}

.cooking-section {
    border-top: 4px solid #ff9800;
}

.specs-section {
    border-top: 4px solid #2196f3;
}

.food-section {
    border-top: 4px solid #9c27b0;
}

.buyer-section {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border-top: 4px solid #fbc02d;
}

.buyer-section .section-title-detail {
    color: #f57f17;
}

.buyer-comment-box {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.8;
    color: #424242;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.other-section {
    border-top: 4px solid #607d8b;
}

/* 商品仕様・食品表示のコンテンツ */
.specs-content,
.labeling-content {
    font-size: 14px;
    line-height: 1.8;
    color: #424242;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
}

.labeling-content {
    margin-bottom: 16px;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 1024px) {
    .product-main {
        flex-direction: column;
        padding: 24px;
    }

    .product-image-container {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* トップページ */
    .all-items-description {
        padding: 16px 20px;
    }

    .all-items-description p {
        font-size: 13px;
    }

    /* ヘッダー */
    .catalog-header-main {
        padding: 24px 20px;
        gap: 16px;
    }

    .catalog-icon {
        font-size: 36px;
    }

    .catalog-label {
        font-size: 11px;
        padding: 5px 12px;
    }

    .catalog-title {
        font-size: 22px;
    }

    .proposal-reason-section {
        padding: 20px 24px;
    }

    .proposal-header h2 {
        font-size: 18px;
    }

    .proposal-content {
        font-size: 14px;
    }

    .catalog-instructions {
        padding: 20px 24px;
    }

    .instruction-list li {
        font-size: 13px;
    }

    /* カテゴリータブ */
    .category-tabs {
        gap: 8px;
        padding: 6px;
        top: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .tab-icon {
        font-size: 18px;
    }

    .tab-count {
        font-size: 11px;
        min-width: 20px;
        height: 20px;
    }

    .catalog-page .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* フローティングボタン */
    .floating-action-bar {
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: auto;
    }

    .btn-view-selected {
        padding: 16px 28px;
        font-size: 15px;
    }

    /* モーダル */
    .modal-header {
        padding: 20px 24px;
    }

    .modal-header h3 {
        font-size: 19px;
    }

    .modal-body {
        padding: 20px 24px;
    }

    .modal-footer {
        padding: 16px 24px;
    }

    /* 商品詳細ページ */
    .product-main {
        padding: 20px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-image-large {
        height: 300px;
    }

    .detail-section {
        padding: 20px;
    }

    .section-title-detail {
        font-size: 18px;
    }

    .info-label {
        flex: 0 0 140px;
        font-size: 13px;
    }

    .info-value {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* アクセス拒否ページ */
    .access-denied-container {
        padding: 40px 24px;
    }

    .access-denied-icon {
        font-size: 64px;
    }

    .access-denied-title {
        font-size: 22px;
    }

    .access-denied-message {
        font-size: 14px;
    }

    .btn-back-catalog {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* ヘッダー */
    .catalog-header-main {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .catalog-icon {
        font-size: 48px;
    }

    .catalog-title {
        font-size: 18px;
    }

    .proposal-reason-section {
        padding: 16px 20px;
    }

    .proposal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .proposal-header h2 {
        font-size: 17px;
    }

    .catalog-instructions {
        padding: 16px 20px;
    }

    .instruction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .instruction-list {
        padding-left: 20px;
    }

    .instruction-list li {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .selected-counter {
        padding: 12px 20px;
        font-size: 14px;
    }

    .counter-number {
        font-size: 18px;
    }

    .catalog-page .products {
        grid-template-columns: 1fr;
    }

    /* タブを縦スクロール可能に */
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
        padding: 6px 15px;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .product-checkbox-wrapper {
        top: 8px;
        left: 8px;
    }

    .product-category-label {
        top: 40px;
        font-size: 10px;
        padding: 4px 10px;
    }

    .product-badges {
        top: 8px;
        right: 8px;
    }

    .badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* フローティングボタン */
    .floating-action-bar {
        bottom: 12px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
    }

    .btn-view-selected {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    /* モーダル */
    .modal-content {
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h3 {
        font-size: 17px;
    }

    .modal-body {
        padding: 16px 20px;
    }

    .modal-footer {
        flex-direction: column;
        padding: 12px 20px;
    }

    .btn-cancel,
    .btn-quote-request {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* 成功メッセージ */
    .success-message {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .success-content {
        padding: 12px 16px;
    }

    /* 商品詳細ページ */
    .product-main {
        padding: 16px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-image-large {
        height: 250px;
    }

    .detail-section {
        padding: 16px;
    }

    .info-row {
        flex-direction: column;
        padding: 12px 0;
    }

    .info-label {
        flex: none;
        margin-bottom: 6px;
        padding-right: 0;
    }
}

/* ========================================
   印刷用スタイル
   ======================================== */
@media print {
    .floating-action-bar,
    .modal-header,
    .modal-footer,
    .breadcrumb,
    .swiper-button-next,
    .swiper-button-prev,
    .success-message,
    .catalog-instructions,
    .selected-counter,
    .category-tabs,
    .product-checkbox-wrapper,
    .product-detail-btn {
        display: none !important;
    }

    .modal-content {
        box-shadow: none;
        max-height: none;
    }

    .selected-item {
        page-break-inside: avoid;
    }

    .detail-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }

    .catalog-header-main {
        background: #fff !important;
        color: #212121 !important;
        border: 2px solid #2196f3;
    }

    .catalog-title {
        color: #212121 !important;
    }

    .catalog-label {
        background: #2196f3 !important;
    }

    .proposal-reason-section {
        border: 2px solid #ff9800;
        page-break-inside: avoid;
    }

    body {
        background: #fff;
    }

    .item-detail-page,
    .catalog-page {
        background: #fff;
    }

    .product-card {
        page-break-inside: avoid;
    }
}

/* 卸商品一覧ページ */
.wholesale-page {
    background: #f5f5f5;
    padding: 40px 0;
}

.wholesale-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-collapse: collapse;
}

.wholesale-table thead {
    background: #424242;
    color: #fff;
}

.wholesale-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.wholesale-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.wholesale-table tbody tr:hover {
    background: #f9f9f9;
}

.wholesale-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image-small {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    border-radius: 4px;
}

.price-cell {
    font-weight: 600;
    color: #2196f3;
    font-size: 15px;
}


/* ========================================
   ページネーション
   ======================================== */
.pagination {
  margin: 60px auto 40px;
  text-align: center;
}

.pagination ul.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #616161;
  background: transparent;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.pagination .page-numbers:hover {
  background: #f5f5f5;
  color: #212121;
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
  border-color: #2196f3;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
  background: #2196f3;
  color: #fff;
  border-color: #2196f3;
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.pagination-arrow {
  font-size: 16px;
  font-weight: 600;
}

.pagination-text {
  font-size: 14px;
}

.pagination .page-numbers.dots {
  border: none;
  pointer-events: none;
  color: #bdbdbd;
  min-width: auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .pagination {
    margin: 40px auto 30px;
  }

  .pagination ul.page-numbers {
    gap: 4px;
    padding: 6px;
  }

  .pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
  }

  .pagination .page-numbers.prev,
  .pagination .page-numbers.next {
    padding: 0 12px;
  }

  .pagination-text {
    display: none;
  }

  .pagination-arrow {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pagination ul.page-numbers {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* モバイルでは端の数字を少なくする */
  .pagination .page-numbers:not(.current):not(.prev):not(.next):not(.dots) {
    display: none;
  }

  .pagination .page-numbers.current,
  .pagination .page-numbers.prev,
  .pagination .page-numbers.next,
  .pagination .page-numbers.dots {
    display: inline-flex;
  }

  /* 現在のページの前後1つを表示 */
  .pagination .page-numbers.current + .page-numbers,
  .pagination .page-numbers:has(+ .current) {
    display: inline-flex !important;
  }
}

/* ========================================
   カタログページャー（ページネーション）
   ======================================== */

.catalog-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0 20px 0;
    padding: 28px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ページ情報表示 */
.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #616161;
    font-weight: 500;
}

.pagination-info .current-range {
    color: #2196f3;
    font-weight: 600;
    font-size: 15px;
}

.pagination-info .separator {
    color: #bdbdbd;
    margin: 0 4px;
}

.pagination-info .total-count {
    color: #757575;
}

/* ページリンク */
.pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #616161;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.page-link:hover {
    background: #f5f5f5;
    border-color: #2196f3;
    color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

/* ページ番号 */
.page-number {
    min-width: 40px;
    font-weight: 600;
}

.page-number.active {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-color: #2196f3;
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    cursor: default;
    pointer-events: none;
}

/* 前へ・次へボタン */
.prev-link,
.next-link {
    gap: 6px;
    padding: 0 16px;
    font-weight: 600;
}

.prev-link .arrow,
.next-link .arrow {
    font-size: 18px;
    font-weight: bold;
}

.prev-link:hover,
.next-link:hover {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-color: #2196f3;
    color: #fff;
}

/* 省略記号 */
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #bdbdbd;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* ========================================
   カテゴリータブの調整（リンク対応）
   ======================================== */

.category-tabs .tab-btn {
    text-decoration: none;
    color: inherit;
}

.category-tabs .tab-btn:visited {
    color: inherit;
}

/* ========================================
   レスポンシブデザイン - ページネーション
   ======================================== */

@media (max-width: 768px) {
    .catalog-pagination {
        padding: 20px 16px;
        margin: 32px 0 16px 0;
    }
    
    .pagination-info {
        font-size: 13px;
    }
    
    .pagination-info .current-range {
        font-size: 14px;
    }
    
    .pagination-links {
        gap: 6px;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
    
    .prev-link .text,
    .next-link .text {
        display: none;
    }
    
    .prev-link,
    .next-link {
        min-width: 36px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .catalog-pagination {
        padding: 16px 12px;
        gap: 16px;
    }
    
    .pagination-info {
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .pagination-links {
        gap: 4px;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .prev-link,
    .next-link {
        min-width: 32px;
    }
    
    .page-ellipsis {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ========================================
   印刷用スタイル
   ======================================== */

@media print {
    .catalog-pagination {
        display: none !important;
    }
}