/* 在庫管理システム フロントエンド CSS */

/* 基本スタイル */
#inventory-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000000; /* 文字色を黒に */
}

/* 見積フォームボタン */
.quote-form-button-container {
    text-align: right;
    margin-bottom: 20px;
}

.cart-view-btn {
    font-size: 16px;
    padding: 12px 24px;
    font-weight: bold;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    height: 100%;
}

.btn-primary {
    background-color: #007cba;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-search, .btn-filter {
    background-color: #17a2b8;
    color: white;
    width: 100%;
    font-weight: bold;
}

.btn-search:hover, .btn-filter:hover {
    background-color: #117a8b;
}

.btn-reset {
    background-color: #6c757d;
    color: white;
    width: 100%;
    text-align: center;
}

.btn-reset:hover {
    background-color: #545b62;
    color: white;
    text-decoration: none;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
}

/* フィルター */
.inventory-filters {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-form .filter-row {
    display: flex;
    gap: 15px;
    /* align-items: center; */
    /* flex-wrap: wrap; */
    justify-content: space-between;
}

/* フィルタ行のレイアウト */
.filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.manufacturer-filter {
    display: flex;
    position: relative;
    min-width: 200px;
}

.search-input {
    min-width: 250px;
}

.search-input input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-actions {
    display: flex;
    align-items: center;
}

.quote-button {
    margin-left: auto;
}

.manufacturer-filter input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.manufacturer-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* テーブルスタイル */
.inventory-table-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS でのスムーズスクロール */
}

/* SP時のテーブル横スクロール対応 */
@media (max-width: 768px) {
    
    .filter-inputs {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .manufacturer-filter,
    .search-input {
        min-width: unset;
        width: 100%;
    }

    .search-input input[type="text"] {
        width: 100%;
    }

    .search-actions {
        justify-content: center;
    }

    .quote-button {
        margin-left: 0;
        text-align: center;
    }

    .quote-button .cart-view-btn {
        width: 100%;
        font-size: 14px;
        font-weight: bold;
    }

    .inventory-table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f0f0f0;
    }
    
    .inventory-table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .inventory-table-container::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .inventory-table-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    
    .inventory-table-container::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
    
    .inventory-table {
        min-width: 800px; /* テーブルの最小幅を設定 */
        width: auto;
    }
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
    color: #000000; /* テーブル内の文字色を黒に */
}

.inventory-table th,
.inventory-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.inventory-table th {
    background-color: #0085b2; /* 指定された青色 */
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    text-align: center; /* タイトル行を中央寄せ */
}

.inventory-table th.table-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.inventory-table tr:hover {
    background-color: #f8f9fa;
}

/* テーブルのカラム整列 */
.inventory-table th,
.inventory-table td {
    text-align: center; /* すべてのセルを中央揃え */
}

/* 在庫数列のスタイル */
.inventory-table td:nth-child(3), /* 在庫数 */
.inventory-table th:nth-child(3) {
    text-align: center;
}

/* 見積数列のスタイル */
.inventory-table td:nth-child(5), /* 見積数 */
.inventory-table th:nth-child(5) {
    text-align: center;
}

/* 見積フォームボタンのスタイル調整 */
.search-box .cart-view-btn {
    white-space: nowrap; /* ボタンテキストを改行させない */
    padding: 8px 16px;
    font-size: 14px;
}

.inventory-table .quote-quantity {
    width: auto;
    max-width: 100px;
    padding: 5px 0 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    margin: 0 auto;
}

.datasheet-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
}

.datasheet-link:hover {
    text-decoration: underline;
}

.btn-add-cart {
    width: 100%;
    background-color: #28a745;
    color: white;
    font-size: 14px; /* フォントサイズを少し大きく */
    padding: 12px 16px; /* 高さを増やすためにpaddingを調整 */
    min-height: 44px; /* 最小高さを指定 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #1e7e34;
}

.btn-remove-cart {
    width: 100%;
    background-color: #dc3545;
    color: white;
    font-size: 14px; /* フォントサイズを統一 */
    padding: 12px 16px; /* パディングを統一 */
    min-height: 44px; /* 最小高さを統一 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-remove-cart:hover {
    background-color: #c82333;
}

.table-info {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.no-items {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

/* 見積フォーム */
#quote-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000000;
}

/* 見積フォームナビゲーション */
.quote-form-navigation {
    margin-bottom: 20px;
    text-align: left;
}

.back-to-inventory {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.back-to-inventory:hover {
    background-color: #5a6268;
    color: white;
}

/* 成功時のアクション */
#quote-form-success-actions {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

.close-quote-form {
    background-color: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.close-quote-form:hover {
    background-color: #005a87;
}

.quote-form-header {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.quote-form-header h2 {
    margin-top: 0;
    color: #333;
}

.cart-items-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

.cart-items-section h3 {
    margin: 0 20px 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.cart-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: #000000;
}

.cart-items-table th,
.cart-items-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.cart-items-table th {
    background-color: #0085b2;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    text-align: center;
}

.cart-items-table tr:hover {
    background-color: #f8f9fa;
}

.cart-quantity-input {
    width: auto;
    max-width: 100px !important;
    padding: 5px 0 5px 10px !important;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    margin: 0 auto;
}

.btn-remove-from-cart {
    width: 100%;
    background-color: #dc3545;
    color: white;
    font-size: 14px;
    padding: 12px 16px;
    min-height: 44px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-remove-from-cart:hover {
    background-color: #c82333;
}

.empty-cart {
    padding: 40px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.empty-cart a {
    color: #007cba;
}

/* フォームスタイル */
.quote-request-form {
    background: white;
    border-radius: 5px;
    padding: 20px;
}

.quote-request-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.form-table th,
.form-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.form-table th {
    width: 150px;
    text-align: left;
    font-weight: bold;
    color: #333;
}

.form-table input[type="text"],
.form-table input[type="tel"],
.form-table input[type="email"],
.form-table textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-table textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-actions {
    text-align: center;
    padding: 20px 0;
}

/* Contact Form 7 フィールドの統一スタイル */
#quote-form-container .wpcf7 input[type="text"],
#quote-form-container .wpcf7 input[type="email"],
#quote-form-container .wpcf7 input[type="tel"],
#quote-form-container .wpcf7 textarea,
#quote-form-container .wpcf7 select {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-weight: normal;
}

#quote-form-container .wpcf7 textarea {
    resize: vertical;
    min-height: 100px;
}

/* Contact Form 7 フィールドのコンテナ */
#quote-form-container .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Contact Form 7 ラベルとフィールドのレイアウト */
#quote-form-container .wpcf7 p {
    margin-bottom: 15px;
}

#quote-form-container .wpcf7 label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* 送信ボタンのスタイル */
#quote-form-container .wpcf7 input[type="submit"] {
    width: auto;
    background-color: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

#quote-form-container .wpcf7 input[type="submit"]:hover {
    background-color: #005a87;
}

/* CF7内のカート表示を在庫管理と同じスタイルに */
.cf7-cart-items-display {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cf7-cart-items-display .cart-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: #000000;
}

.cf7-cart-items-display .cart-items-table th,
.cf7-cart-items-display .cart-items-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.cf7-cart-items-display .cart-items-table th {
    background-color: #0085b2;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    text-align: center;
}

.cf7-cart-items-display .cart-items-table tr:hover {
    background-color: #f8f9fa;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #inventory-manager-container {
        padding: 10px;
    }
    
    /* 見積フォームのテーブルもレスポンシブ対応 */
    .cart-items-section,
    .cf7-cart-items-display {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f0f0f0;
    }
    
    .cart-items-section::-webkit-scrollbar,
    .cf7-cart-items-display::-webkit-scrollbar {
        height: 8px;
    }
    
    .cart-items-section::-webkit-scrollbar-track,
    .cf7-cart-items-display::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .cart-items-section::-webkit-scrollbar-thumb,
    .cf7-cart-items-display::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    
    .cart-items-section::-webkit-scrollbar-thumb:hover,
    .cf7-cart-items-display::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
    
    .cart-items-table {
        min-width: 600px;
        width: auto;
    }
    
    .filter-form .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box,
    .manufacturer-filter {
        min-width: auto;
        width: 100%;
        flex-direction: column;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .inventory-table-container {
        font-size: 14px;
    }
    
    .inventory-table th,
    .inventory-table td {
        padding: 8px 6px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .form-table th {
        border-bottom: none;
        margin-bottom: 5px;
    }
}

/* メッセージ表示 */
.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* ローディング表示 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ページネーション */
.pagination-container {
    margin: 0px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 表示件数選択 */
.per-page-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem;
    font-size: 14px;
    color: #333;
}

.per-page-selector label {
    margin: 0;
    font-weight: normal;
}

.per-page-selector select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.per-page-selector select:hover {
    border-color: #0085b2;
}

.per-page-selector select:focus {
    outline: none;
    border-color: #0085b2;
    box-shadow: 0 0 0 2px rgba(0, 133, 178, 0.2);
}

/* ページネーション中央配置 */
.pagination-center {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 15px 20px;
    margin: 0 !important;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
    border: 1px solid #e3f2fd;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #424242;
    background: #fafafa;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    width: auto !important;
    min-width: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    line-height: 1 !important;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.5s;
}

.page-btn:hover::before {
    left: 100%;
}

.page-btn:hover {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: #2196f3;
    color: #1565c0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.3);
}

.page-btn.current {
    background-color: #0085b2;
    color: white;
    border-color: #0085b2;
    box-shadow: 0 4px 12px rgba(0, 133, 178, 0.4);
    font-weight: 600;
}

.page-btn.current:hover {
    background-color: #006d94;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 133, 178, 0.5);
}

.page-btn.prev-btn,
.page-btn.next-btn {
    padding: 10px 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    border-color: #bdbdbd;
}

.page-btn.prev-btn:hover,
.page-btn.next-btn:hover {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border-color: #4caf50;
    color: #2e7d32;
}

.page-dots {
    padding: 10px 8px;
    color: #757575;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .pagination {
        gap: 6px;
        padding: 12px 16px;
    }
    
    .page-btn {
        padding: 9px 12px;
        min-width: 36px;
        font-size: 13px;
    }
    
    .page-btn.prev-btn,
    .page-btn.next-btn {
        padding: 9px 16px;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .pagination-container {
        margin: 20px 0;
        padding: 0 10px;
        flex-direction: column;
        gap: 15px;
    }
    
    .per-page-selector {
        order: 1;
        justify-content: center;
    }
    
    .pagination-center {
        order: 2;
    }
    
    .pagination {
        flex-wrap: nowrap;
        gap: 4px;
        padding: 10px 12px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        overflow-x: auto;
        min-width: 100%;
        justify-content: center;
    }
    
    .page-btn {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 36px;
        border-radius: 6px;
        flex-shrink: 0;
        font-weight: 500;
    }
    
    .page-btn.prev-btn,
    .page-btn.next-btn {
        padding: 8px 14px;
        font-weight: 600;
        white-space: nowrap;
    }
    
    .page-dots {
        padding: 8px 6px;
        font-size: 14px;
    }
}

/* 小さいモバイル画面対応 */
@media (max-width: 480px) {
    .pagination-container {
        margin: 15px 0;
        padding: 0 5px;
    }
    
    .pagination {
        gap: 2px;
        padding: 8px 10px;
        border-radius: 8px;
        /* より小さい画面では横スクロールを許可 */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .page-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
        border-radius: 5px;
    }
    
    .page-btn.prev-btn,
    .page-btn.next-btn {
        padding: 6px 12px;
        /* モバイルでは省略形を使用 */
    }
    
    .page-btn.prev-btn::before {
        content: '‹';
    }
    
    .page-btn.next-btn::before {
        content: '›';
    }
    
    .page-btn.prev-btn,
    .page-btn.next-btn {
        font-size: 16px;
        font-weight: 700;
        text-indent: -9999px;
        position: relative;
    }
    
    .page-btn.prev-btn::before,
    .page-btn.next-btn::before {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
    }
    
    .page-dots {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    /* 非常に小さい画面では一部のページ番号を隠す */
    .pagination-small .page-btn:not(.prev-btn):not(.next-btn):not(.current) {
        display: none;
    }
    
    .pagination-small .page-btn.current ~ .page-btn:nth-child(n+3):not(.next-btn),
    .pagination-small .page-btn.current ~ .page-btn:nth-child(-n+2):not(.prev-btn) {
        display: none;
    }
}

/* タッチデバイス対応 */
.touch-device .page-btn {
    /* タッチデバイスではより大きなタップエリア */
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.touch-device .page-btn:active,
.page-btn.touch-active {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    transform: scale(0.95);
}

.touch-device .page-btn.current:active,
.page-btn.current.touch-active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

/* フォーカス状態の改善 */
.page-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

.page-btn.current:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* ページネーション横スクロール時のスクロールバーを隠す */
@media (max-width: 480px) {
    .pagination::-webkit-scrollbar {
        display: none;
    }
    
    .pagination {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* スクロール可能であることを示すヒント */
    .pagination::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
        pointer-events: none;
        border-radius: 0 8px 8px 0;
    }
    
    .pagination::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
        pointer-events: none;
        z-index: 1;
        border-radius: 8px 0 0 8px;
    }
}