/* ===== 基本レイアウト - 完全幅固定版 ===== */
.events-search-container-horizontal-fixed {
    width: 1000px !important;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* ===== 水平ファセットナビゲーション（完全幅固定版） ===== */
.horizontal-facet-navigation-fixed {
    width: 960px !important;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto 30px auto;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.horizontal-facet-container-fixed {
    width: 920px !important;
    margin: 0 auto;
    box-sizing: border-box;
}

.horizontal-facet-form-fixed {
    width: 100%;
    box-sizing: border-box;
}

/* ===== メイン検索行（完全幅固定版・CTA位置修正・AND検索対応版） ===== */
.main-search-row-fixed {
    display: flex;
    gap: 8px; /* 12pxから8pxに縮小 */
    margin-bottom: 15px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    height: 50px;
}

.search-input-container-fixed {
    position: relative;
    width: 800px !important; /* 680pxから750pxに拡大 */
    box-sizing: border-box;
    height: 50px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.main-search-input-fixed {
    width: 100% !important;
    height: 50px !important;
    padding: 15px 15px 15px 45px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    line-height: 1.2;
    vertical-align: top;
}

.main-search-input-fixed:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.main-search-input-fixed::placeholder {
    color: #6c757d;
    font-style: normal;
    opacity: 1;
}

.main-search-button-fixed {
    padding: 0 20px; /* 24pxから20pxに縮小 */
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 110px !important; /* 128pxから110pxに縮小 */
    height: 50px !important;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

.main-search-button-fixed:hover {
    background: #3367d6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-search-button-fixed:active {
    background: #2951a3;
    transform: translateY(1px);
}

/* ===== ファセットドロップダウン行（完全固定グリッド版） ===== */
.facet-dropdowns-row-fixed {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* ★修正点1: 5→6に変更 */
    gap: 12px !important;
    width: 920px !important;
    box-sizing: border-box;
    margin-bottom: 0;
}

.facet-dropdown-container-fixed {
    position: relative;
    width: 100% !important;
    box-sizing: border-box;
}

/* 最後の要素（カテゴリ）も通常の幅に */
.facet-dropdowns-row-fixed .facet-dropdown-container-fixed:last-child {
    grid-column: unset;
}

.facet-dropdown-fixed {
    position: relative;
    display: block;
    width: 100%;
}

.dropdown-trigger-fixed {
    display: flex;
    align-items: center;
    gap: 4px; /* 6pxから4pxに縮小 */
    padding: 10px 8px; /* 左右パディングを12pxから8pxに縮小 */
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 15px; /* 13pxから12pxに縮小 */
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100% !important;
    height: 40px !important;
    justify-content: space-between;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    outline: none;
}

.dropdown-trigger-fixed:hover {
    border-color: #4285f4;
    background: #f8f9ff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dropdown-trigger-fixed:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.dropdown-trigger-fixed:active {
    background: #e8f0fe;
}

.selected-count {
    background: #4285f4;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    min-width: 14px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.dropdown-arrow {
    font-size: 15px;
    color: #6c757d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.facet-dropdown-fixed.active .dropdown-arrow {
    transform: rotate(180deg);
}

.facet-dropdown-fixed.active .dropdown-trigger-fixed {
    border-color: #4285f4;
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* ===== ドロップダウンコンテンツ ===== */
.dropdown-content-fixed {
    display: none !important;
}

#facet-dropdown-portal {
    display: none;
    position: absolute;
    z-index: 99999;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-height: 300px;
    overflow-y: auto;
    box-sizing: border-box;
}

#facet-dropdown-portal .dropdown-options-fixed {
    padding: 10px;
    box-sizing: border-box;
}

#facet-dropdown-portal .dropdown-option-fixed {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
    user-select: none;
}

#facet-dropdown-portal .dropdown-option-fixed:hover {
    background: #f8f9fa;
}

#facet-dropdown-portal .dropdown-option-fixed:active {
    background: #e9ecef;
}

#facet-dropdown-portal .dropdown-option-fixed input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #4285f4;
}

#facet-dropdown-portal .dropdown-option-fixed input[type="checkbox"]:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

#facet-dropdown-portal .option-text-fixed {
    flex: 1;
    color: #495057;
    min-width: 0;
    font-weight: 400;
    line-height: 1.3;
}

#facet-dropdown-portal .dropdown-option-fixed input[type="checkbox"]:checked + .option-text-fixed {
    font-weight: 600;
    color: #4285f4;
}

#facet-dropdown-portal .option-count-fixed {
    color: #6c757d;
    font-size: 15px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: auto;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    border: 1px solid #e9ecef;
}

#facet-dropdown-portal .date-range-container-fixed {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 2px 0;
}

#facet-dropdown-portal .date-label-fixed {
    font-size: 15px;
    color: #6c757d;
    min-width: 50px;
    flex-shrink: 0;
    font-weight: 500;
}

#facet-dropdown-portal .date-input-fixed {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    outline: none;
}

#facet-dropdown-portal .date-input-fixed:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

/* ===== アクティブフィルタ行（完全幅固定版・AND検索対応版） ===== */
.active-filters-row-fixed {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    width: 920px !important;
    box-sizing: border-box;
}

.active-filters-horizontal-fixed {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    width: 920px !important;
    box-sizing: border-box;
}

.filter-tags-horizontal-fixed {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.filter-tag-horizontal-fixed {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #4285f4;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    max-width: 250px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.filter-tag-horizontal-fixed:hover {
    background: #3367d6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.filter-tag-horizontal-fixed.date-filter-tag-fixed {
    padding: 8px 12px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-label-horizontal-fixed {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.date-filter-tag-fixed .filter-label-horizontal-fixed {
    max-width: 250px;
    word-break: keep-all;
    overflow-wrap: normal;
}

.filter-remove-horizontal-fixed {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    outline: none;
}

.filter-remove-horizontal-fixed:hover {
    background: rgba(255, 255, 255, 0.5);
    color: white;
}

.filter-remove-horizontal-fixed:focus {
    background: rgba(255, 255, 255, 0.6);
    outline: 2px solid rgba(255, 255, 255, 0.8);
}

.clear-all-horizontal-fixed {
    flex-shrink: 0;
}

.clear-all-link-horizontal-fixed {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
}

.clear-all-link-horizontal-fixed:hover {
    color: #495057;
    border-color: #adb5bd;
    text-decoration: none;
    background: #f8f9fa;
}

.clear-all-link-horizontal-fixed:focus {
    outline: 2px solid #4285f4;
    outline-offset: 1px;
}

/* ===== 検索結果エリア（完全幅固定版） ===== */
.events-results-wrapper-fixed {
    width: 960px !important;
    margin: 20px auto 0 auto;
    box-sizing: border-box;
}

/* ===== 検索統計（ソート機能付き版・AND検索対応版） ===== */
.search-stats-fixed {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #4285f4;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===== H1を含む検索統計の新しいレイアウト ===== */
.results-count-wrapper-fixed {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.results-count-h1-fixed {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.results-range-fixed {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .results-count-wrapper-fixed {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .results-count-h1-fixed {
        font-size: 15px;
    }
    
    .results-range-fixed {
        font-size: 15px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .results-count-h1-fixed {
        font-size: 15px;
    }
    
    .results-range-fixed {
        font-size: 15px;
    }
}

@media (max-width: 320px) {
    .results-count-h1-fixed {
        font-size: 15px;
    }
    
    .results-range-fixed {
        font-size: 15px;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .results-count-h1-fixed,
    .results-range-fixed {
        color: #000;
    }
}

.results-count-fixed {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.search-type-info {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
    margin-left: 8px;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.sort-controls-fixed {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sort-label-fixed {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
}

.sort-select-fixed {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.sort-select-fixed:hover {
    border-color: #4285f4;
}

.sort-select-fixed:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

/* ===== イベントリスト - 完全幅固定版・PR枠対応版 ===== */
.events-list-fixed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.event-item-horizontal-fixed {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    width: 920px !important;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.event-item-horizontal-fixed:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4285f4;
    transform: translateY(-1px);
}

/* ===== PR枠専用スタイル（新規追加） ===== */
.event-item-horizontal-fixed.pr-frame {
    border: 2px solid #FF6B35;
    background: #FFF9F5;
    position: relative;
}

.event-item-horizontal-fixed.pr-frame:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    border-color: #E55A2B;
}

.pr-tag-fixed {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FF6B35;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.event-content-horizontal-fixed {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 880px !important;
    box-sizing: border-box;
}

/* ===== 左側: 画像エリア（完全固定幅） ===== */
.event-image-area-fixed {
    width: 260px !important;
    max-width: 260px !important;
    min-width: 260px !important;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

.event-image-fixed {
    width: 260px !important;
    height: 180px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.event-image-fixed:hover {
    transform: scale(1.02);
}

.event-image-placeholder-fixed {
    width: 260px !important;
    height: 180px !important;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.event-image-placeholder-fixed:hover {
    background: #e9ecef;
}

.placeholder-text-fixed {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* ===== 右側: イベント詳細（完全固定幅・CTA修正版・リンク対応） ===== */
.event-details-area-fixed {
    width: 600px !important;
    max-width: 600px !important;
    min-width: 600px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.event-header-horizontal-fixed {
    margin-bottom: 12px;
}

.event-header-horizontal-fixed h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 600px;
    overflow-wrap: break-word;
    color: #333;
    transition: color 0.3s ease;
}

.event-header-horizontal-fixed h2 a {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-header-horizontal-fixed h2 a:hover {
    color: #3367d6;
    text-decoration: underline;
}

.event-header-horizontal-fixed h2 a:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
    border-radius: 2px;
}

.event-company-info-fixed {
    margin-bottom: 15px;
    font-size: 14px;
}

.company-name-fixed {
    font-weight: 1000;
    color: #495057;
    line-height: 1.3;
    font-size: 20px !important;
}

/* ===== イベント詳細のラベルデザイン強化（文字サイズ統一版・PC用2列レイアウト） ===== */
.event-details-horizontal-fixed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    flex: 1;
}

.performer-info-fixed,
.venue-info-fixed,
.location-info-fixed,
.price-info-fixed,
.date-info-fixed,
.payment-info-fixed {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 15px; /* タグと統一 */
    line-height: 1.4;
}

.info-label-fixed {
    background: #E4E2E0; /* 統一グレー */
    color: #495057; /* ミディアムダークグレー */
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    width: 5.5em !important;
    min-width: 5.5em !important;
    max-width: 5.5em !important;
    text-align: center;
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* 個別の色分けを削除し、すべて統一グレー */
.performer-info-fixed .info-label-fixed,
.venue-info-fixed .info-label-fixed,
.location-info-fixed .info-label-fixed,
.date-info-fixed .info-label-fixed,
.price-info-fixed .info-label-fixed,
.payment-info-fixed .info-label-fixed {
    background: #E4E2E0; /* 統一グレー */
}

.info-value-fixed {
    color: #333;
    font-weight: 500;
    flex: 1;
    font-size: 18px !important;
}

/* カテゴリタグのデザイン */
.event-tags-fixed {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    max-width: 600px;
    align-items: center;
}

.event-tag-fixed {
    background: white;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
}

.event-tag-fixed:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

/* ===== CTA対応のアクションエリア（完全幅固定版・テキスト修正版） ===== */
.event-actions-fixed {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 15px;
    width: 600px !important;
    box-sizing: border-box;
}

.action-buttons-fixed {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-apply-fixed {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    width: 160px !important;
    max-width: 160px !important;
    min-width: 160px !important;
    text-align: center;
    box-sizing: border-box;
    line-height: 1;
    outline: none;
    position: relative;
    overflow: visible;
    text-overflow: clip;
}

.btn-apply-fixed:hover {
    background: #3367d6;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    transform: translateY(-1px);
}

.btn-apply-fixed:active {
    background: #2951a3;
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(66, 133, 244, 0.3);
}

.btn-apply-fixed:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* ===== ファセット内部リンク（新規追加） ===== */
.facet-internal-link {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.facet-internal-link:hover {
    color: #3367d6;
    text-decoration: underline;
}

.facet-internal-link:focus {
    outline: 2px solid #4285f4;
    outline-offset: 1px;
    border-radius: 2px;
}

/* タグ内のリンク */
.event-tag-fixed .facet-internal-link {
    color: inherit;
    text-decoration: none;
}

.event-tag-fixed:hover .facet-internal-link {
    color: inherit;
    text-decoration: none;
}

.event-tag-fixed .facet-internal-link:hover {
    color: #4285f4 !important;
    text-decoration: underline !important;
}

/* ===== 検索ハイライト（AND検索対応版） ===== */
.search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #ffeaa7;
}

.search-highlight:hover {
    background: #ffeaa7;
    border-color: #ffdb70;
}

/* 複数キーワードの場合の異なる色分け */
.search-highlight:nth-of-type(odd) {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.search-highlight:nth-of-type(even) {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* ===== 検索結果なし（完全幅固定版・AND検索対応版） ===== */
.no-results-fixed {
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    width: 920px !important;
    max-width: 920px !important;
    margin: 0 auto;
    box-sizing: border-box;
}

.no-results-fixed h2 {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 20px;
    font-weight: 600;
}

.no-results-fixed p {
    margin: 8px 0;
    color: #6c757d;
    line-height: 1.5;
    font-size: 16px;
}

.no-results-fixed small {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #adb5bd;
    font-style: italic;
}

/* ===== ページネーション（完全幅固定版） ===== */
.pagination-wrapper-fixed {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    width: 920px !important;
    max-width: 920px !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.pagination-fixed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.pagination-numbers-fixed {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-link-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #4285f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
    outline: none;
}

.pagination-link-fixed:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.2);
}

.pagination-link-fixed:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

.pagination-link-fixed.current-fixed {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(66, 133, 244, 0.3);
    cursor: default;
    pointer-events: none;
}

.pagination-ellipsis-fixed {
    padding: 10px 8px;
    color: #6c757d;
    font-weight: 500;
    line-height: 1;
}

.prev-link-fixed,
.next-link-fixed {
    font-weight: 600;
    padding: 10px 16px;
}

.prev-link-fixed {
    margin-right: 10px;
}

.next-link-fixed {
    margin-left: 10px;
}

/* ===== ローディングオーバーレイ（改良版） ===== */
.loading-overlay-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.loading-spinner-fixed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
}

.spinner-circle-fixed {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4285f4;
    border-radius: 50%;
    animation: spin-fixed 1s linear infinite;
    position: relative;
}

.spinner-circle-fixed::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid #3367d6;
    animation: spin-reverse-fixed 2s linear infinite;
}

@keyframes spin-fixed {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse-fixed {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.loading-text-fixed {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    animation: pulse-text-fixed 1.5s ease-in-out infinite;
}

@keyframes pulse-text-fixed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== スクロールバー設定 ===== */
#facet-dropdown-portal::-webkit-scrollbar {
    width: 6px;
}

#facet-dropdown-portal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#facet-dropdown-portal::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#facet-dropdown-portal::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#facet-dropdown-portal {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* ===== 中画面での調整（768px-1000px） ===== */
@media (min-width: 769px) and (max-width: 1000px) {
    .events-search-container-horizontal-fixed {
        padding: 15px;
    }
    
    .horizontal-facet-navigation-fixed {
        padding: 18px;
    }
    
    .event-item-horizontal-fixed {
        padding: 18px;
    }
    
    .search-stats-fixed {
        padding: 12px 18px;
    }
}

/* ===== 小画面での完全レスポンシブ対応（768px以下） ===== */
@media (max-width: 768px) {
    html {
        min-width: auto;
    }
    
    .events-search-container-horizontal-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 15px;
        overflow-x: hidden;
    }

    .horizontal-facet-navigation-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 15px;
    }
    
    .horizontal-facet-container-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .main-search-row-fixed {
        flex-direction: column;
        gap: 12px;
        height: auto;
    }

    .search-input-container-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 50px;
    }

    .main-search-input-fixed {
        font-size: 16px; /* iOS対応で16px以上に設定 */
    }

    .main-search-button-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 50px;
    }

    .facet-dropdowns-row-fixed {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .facet-dropdown-container-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .dropdown-trigger-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        font-size: 14px;
        padding: 12px 15px;
        gap: 6px;
    }

    .info-label-fixed {
        width: 5.5em !important;
        min-width: 5.5em !important;
        max-width: 5.5em !important;
        font-size: 17px !important;
        padding: 6px 8px;
        background: #E4E2E0;
        color: #495057;
        border-radius: 4px;
        font-weight: 600;
        text-align: center;
        margin-right: 8px;
        flex-shrink: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
        line-height: 1.2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .info-value-fixed {
        color: #333;
        font-weight: 500;
        flex: 1;
        font-size: 17px !important;
        line-height: 1.4;
    }
    
    .performer-info-fixed,
    .venue-info-fixed,
    .location-info-fixed,
    .price-info-fixed,
    .date-info-fixed,
    .payment-info-fixed {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        font-size: 17px;
        line-height: 1.4;
    }

    .event-tag-fixed {
        font-size: 16px;
        padding: 3px 6px;
    }

    .search-type-info {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 11px;
    }

    .active-filters-row-fixed {
        width: 100% !important;
    }
    
    .active-filters-horizontal-fixed {
        width: 100% !important;
        flex-direction: column;
        gap: 12px;
    }

    .filter-tags-horizontal-fixed {
        justify-content: center;
        width: 100%;
    }

    .clear-all-horizontal-fixed {
        text-align: center;
    }

    .events-results-wrapper-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 20px 0 0 0;
    }

    .search-stats-fixed {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .sort-controls-fixed {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select-fixed {
        min-width: auto;
        flex: 1;
        margin-left: 10px;
    }

    .event-item-horizontal-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px;
    }

    /* PR枠のレスポンシブ対応 */
    .event-item-horizontal-fixed.pr-frame {
        border: 2px solid #FF6B35;
        background: #FFF9F5;
    }

    .pr-tag-fixed {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 11px;
    }

    .event-content-horizontal-fixed {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 16px;
    }

    .event-image-area-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-self: center;
        display: flex;
        justify-content: center;
    }

    .event-image-fixed,
    .event-image-placeholder-fixed {
        width: 100% !important;
        max-width: 320px !important;
        height: 200px !important;
        margin: 0 auto;
        display: block;
    }

    .event-details-area-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: auto;
    }

    .event-header-horizontal-fixed h2 {
        max-width: 100%;
        font-size: 20px;
    }

    .event-tags-fixed {
        max-width: 100%;
    }

    .event-actions-fixed {
        width: 100% !important;
        justify-content: center;
        padding-top: 16px;
    }

    .action-buttons-fixed {
        width: 100%;
        justify-content: center;
    }

    .btn-apply-fixed {
        width: 100% !important;
        max-width: 280px !important;
        min-width: 200px !important;
        padding: 12px 20px;
        font-size: 14px;
    }

    .no-results-fixed,
    .pagination-wrapper-fixed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .pagination-fixed {
        flex-direction: column;
        gap: 16px;
    }

    .pagination-numbers-fixed {
        order: 2;
        justify-content: center;
        gap: 6px;
    }

    .prev-link-fixed {
        order: 1;
        margin-right: 0;
    }

    .next-link-fixed {
        order: 3;
        margin-left: 0;
    }

    .pagination-link-fixed {
        padding: 8px 12px;
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .filter-tag-horizontal-fixed.date-filter-tag-fixed {
        max-width: 100%;
        padding: 6px 10px;
        white-space: normal;
        text-overflow: clip;
    }

    .date-filter-tag-fixed .filter-label-horizontal-fixed {
        max-width: none;
        word-break: break-word;
        white-space: normal;
    }

    /* ▼▼▼▼▼ ここから修正・追加 ▼▼▼▼▼ */
    .performers-modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .performers-group-list {
        grid-template-columns: repeat(2, 1fr);
    }
    /* ▲▲▲▲▲ ここまで修正・追加 ▲▲▲▲▲ */
}

/* ===== 極小画面対応（480px以下） ===== */
@media (max-width: 480px) {
    .events-search-container-horizontal-fixed {
        padding: 12px;
    }

    .horizontal-facet-navigation-fixed {
        padding: 12px;
    }

    .main-search-input-fixed {
        font-size: 16px;
        padding: 14px 14px 14px 42px;
        height: 48px !important;
    }

    .search-icon {
        left: 14px;
        font-size: 15px;
    }

    .main-search-button-fixed {
        padding: 14px 20px;
        font-size: 15px;
        height: 48px !important;
    }

    .dropdown-trigger-fixed {
        height: 42px !important;
        font-size: 13px;
        padding: 10px 12px;
    }

    .info-label-fixed {
        font-size: 16px !important;
        padding: 5px 6px;
        line-height: 1.2;
    }

    .info-value-fixed {
        font-size: 16px !important;
        line-height: 1.4;
    }
    
    .performer-info-fixed,
    .venue-info-fixed,
    .location-info-fixed,
    .price-info-fixed,
    .date-info-fixed,
    .payment-info-fixed {
        font-size: 16px;
        line-height: 1.4;
    }

    .event-tag-fixed {
        font-size: 14px;
        padding: 3px 6px;
    }

    .search-type-info {
        font-size: 10px;
        padding: 1px 4px;
    }

    .event-item-horizontal-fixed {
        padding: 14px;
    }

    .pr-tag-fixed {
        top: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 10px;
    }

    .event-header-horizontal-fixed h2 {
        font-size: 20px;
    }

    .company-name-fixed {
        font-size: 13px;
    }

    .btn-apply-fixed {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 180px !important;
        max-width: 100% !important;
    }

    #facet-dropdown-portal {
        max-height: 250px;
    }

    .filter-tag-horizontal-fixed {
        font-size: 15px;
        padding: 4px 8px;
    }

    .filter-remove-horizontal-fixed {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }
        
    .event-image-area-fixed {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100% !important;
    }

    .event-image-fixed,
    .event-image-placeholder-fixed {
        width: 100% !important;
        max-width: 280px !important;
        height: 180px !important;
        margin: 0 auto;
        display: block;
    }

    .filter-tag-horizontal-fixed.date-filter-tag-fixed {
        flex-direction: column;
        align-items: flex-start;
        padding: 6px 8px;
        gap: 4px;
    }

    .date-filter-tag-fixed .filter-remove-horizontal-fixed {
        align-self: flex-end;
    }

    .no-results-fixed {
        padding: 40px 20px;
    }

    .no-results-fixed h2 {
        font-size: 15px;
    }

    .no-results-fixed p {
        font-size: 15px;
    }

    .search-stats-fixed {
        padding: 12px 16px;
    }

    .results-count-fixed {
        font-size: 15px;
    }

    .sort-controls-fixed {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sort-select-fixed {
        width: 100%;
        margin-left: 0;
    }

    .loading-spinner-fixed {
        padding: 30px 25px;
        margin: 0 20px;
        max-width: calc(100vw - 40px);
    }

    .spinner-circle-fixed {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .loading-text-fixed {
        font-size: 14px;
    }
    
    .performers-modal {
        width: 100%;
        height: 80vh;
        max-height: 80vh;
        border-radius: 0;
    }

    .performers-modal-body {
        max-height: calc(100vh - 120px);
    }

    .performers-index-tabs {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 4px;
    }
}

/* ===== 超小画面対応（320px以下） ===== */
@media (max-width: 320px) {
    .events-search-container-horizontal-fixed {
        padding: 10px;
    }

    .horizontal-facet-navigation-fixed {
        padding: 10px;
    }

    .main-search-input-fixed {
        padding: 12px 12px 12px 38px;
        font-size: 14px;
        height: 44px !important;
    }

    .search-icon {
        left: 12px;
        font-size: 14px;
    }

    .main-search-button-fixed {
        padding: 12px 16px;
        font-size: 14px;
        height: 44px !important;
    }

    .dropdown-trigger-fixed {
        padding: 8px 10px;
        font-size: 15px;
        height: 38px !important;
    }

    .selected-count {
        padding: 1px 4px;
        font-size: 14px;
        min-width: 12px;
    }

    .filter-tag-horizontal-fixed {
        font-size: 16px;
        padding: 3px 6px;
    }

    .filter-remove-horizontal-fixed {
        width: 14px;
        height: 14px;
        font-size: 14px;
    }

    .event-header-horizontal-fixed h2 {
        font-size: 20px;
    }

    .company-name-fixed {
        font-size: 15px;
    }

    .info-label-fixed {
        font-size: 15px !important;
        padding: 4px 5px;
        line-height: 1.2;
    }
    
    .info-value-fixed {
        font-size: 15px !important;
        line-height: 1.4;
    }
    
    .performer-info-fixed,
    .venue-info-fixed,
    .location-info-fixed,
    .price-info-fixed,
    .date-info-fixed,
    .payment-info-fixed {
        font-size: 15px;
        line-height: 1.4;
    }

    .event-tag-fixed {
        font-size: 12px;
        padding: 2px 4px;
    }

    .search-type-info {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .btn-apply-fixed {
        min-width: 160px !important;
        font-size: 15px;
        padding: 8px 12px;
    }
        
    .event-image-area-fixed {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .event-image-fixed,
    .event-image-placeholder-fixed {
        width: 100% !important;
        max-width: 260px !important;
        height: 160px !important;
        margin: 0 auto;
        display: block;
    }

    .pr-tag-fixed {
        top: 4px;
        right: 4px;
        padding: 2px 4px;
        font-size: 9px;
    }

    .pagination-link-fixed {
        padding: 6px 10px;
        min-width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .prev-link-fixed,
    .next-link-fixed {
        padding: 6px 12px;
        font-size: 15px;
    }

    .loading-spinner-fixed {
        padding: 25px 20px;
        margin: 0 15px;
    }

    .spinner-circle-fixed {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }

    .loading-text-fixed {
        font-size: 13px;
    }
}

/* ===== 高コントラストモード対応（PR枠対応版） ===== */
@media (prefers-contrast: high) {
    .horizontal-facet-navigation-fixed {
        border: 2px solid #000;
        background: #fff;
    }

    .main-search-input-fixed,
    .dropdown-trigger-fixed,
    .date-input-fixed {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }

    .main-search-button-fixed {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }

    .event-item-horizontal-fixed {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }

    /* PR枠の高コントラスト対応 */
    .event-item-horizontal-fixed.pr-frame {
        border: 3px solid #000;
        background: #fff;
    }

    .pr-tag-fixed {
        background: #000;
        color: #fff;
        border: 2px solid #000;
        font-weight: 900;
    }

    .search-highlight {
        background: #ff0 !important;
        color: #000 !important;
        outline: 1px solid #000;
        border: 1px solid #000 !important;
    }

    .search-type-info {
        background: #000;
        color: #fff;
        border: 1px solid #000;
    }

    .pagination-link-fixed {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }

    .pagination-link-fixed:hover,
    .pagination-link-fixed.current-fixed {
        background: #000;
        color: #fff;
    }

    .event-image-fixed {
        border: 2px solid #000;
    }

    .btn-apply-fixed {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }

    .filter-tag-horizontal-fixed {
        background: #000;
        color: #fff;
        border: 1px solid #000;
    }

    .loading-overlay-fixed {
        background: rgba(255, 255, 255, 0.95);
    }

    .loading-spinner-fixed {
        background: white;
        border: 2px solid #000;
    }

    .spinner-circle-fixed {
        border-color: #ccc;
        border-top-color: #000;
    }

    .loading-text-fixed {
        color: #000;
    }

    .facet-internal-link {
        color: #000;
        text-decoration: underline;
        border: 1px solid transparent;
    }
    
    .facet-internal-link:hover,
    .facet-internal-link:focus {
        background: #000;
        color: #fff;
        border: 1px solid #000;
    }

    .info-label-fixed {
        background: #000 !important;
        color: #fff !important;
        border: 1px solid #000;
    }
        
    .event-tag-fixed {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .event-tag-fixed:hover {
        background: #f0f0f0;
    }

    .sort-select-fixed {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .sort-select-fixed:hover {
        background: #f0f0f0;
    }
}

/* ===== アクセシビリティ向上 ===== */
.dropdown-option-fixed:focus-within {
    outline: 2px solid #4285f4;
    outline-offset: 1px;
}

.main-search-input-fixed:focus {
    outline: 2px solid #4285f4;
    outline-offset: 1px;
}

.date-input-fixed:focus {
    outline: 2px solid #4285f4;
    outline-offset: 1px;
}

/* ===== フォーカス管理強化 ===== */
*:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #4285f4;
    outline-offset: 1px;
}

/* PR枠のフォーカス対応 */
.event-item-horizontal-fixed.pr-frame:focus-within {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* ===== 長いテキストの対応 ===== */
.dropdown-trigger-fixed,
.option-text-fixed,
.filter-label-horizontal-fixed {
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-header-horizontal-fixed h2 {
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== 縮小表示モード対応 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .dropdown-content-fixed.show {
        animation: none;
    }

    .event-image-fixed:hover {
        transform: none;
    }

    .event-item-horizontal-fixed:hover {
        transform: none;
    }

    .btn-apply-fixed:hover {
        transform: none;
    }

    .spinner-circle-fixed {
        animation: none;
        border: 4px solid #4285f4;
    }

    .spinner-circle-fixed::after {
        animation: none;
        display: none;
    }

    .loading-text-fixed {
        animation: none;
    }
}

/* ===== ローディング状態（将来の拡張用） ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 重要な固定設定の最終確認 ===== */
.events-search-container-horizontal-fixed *,
.horizontal-facet-navigation-fixed *,
.events-results-wrapper-fixed * {
    box-sizing: border-box !important;
}

/* ===== 最終調整 ===== */
.btn-apply-fixed {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

.main-search-button-fixed {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

/* ===== ドロップダウンポジショニング改善（はみ出し防止） ===== */
#facet-dropdown-portal.left-aligned {
    transform-origin: top left;
}

#facet-dropdown-portal.right-aligned {
    transform-origin: top right;
}

/* レスポンシブ時の幅制限強化 */
@media (max-width: 768px) {
    #facet-dropdown-portal {
        max-width: calc(100vw - 30px) !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
    }
}

/* ===== PC表示専用レイアウト修正（768px以上・35%×2列グリッド） ===== */
@media (min-width: 769px) {
    /* イベント詳細を2列グリッドレイアウトに変更（35%×2） */
    .event-details-horizontal-fixed {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 50% 50% と同等 */
        grid-template-rows: repeat(3, auto);
        gap: 8px 15px; /* 縦のギャップを少し狭く */
        margin-bottom: 15px;
        flex: 1;
        width: 100%; /* データ詳細エリア（600px）の100%を使用 */
        max-width: 600px;
    }

    .performer-info-fixed {
        grid-column: 1;
        grid-row: 1;
    }
        
    .venue-info-fixed {
        grid-column: 2;
        grid-row: 1;
    }

    .location-info-fixed {
        grid-column: 1;
        grid-row: 2;
    }
        
    .date-info-fixed {
        grid-column: 2;
        grid-row: 2;
    }

    .price-info-fixed {
        grid-column: 1;
        grid-row: 3;
    }

    .payment-info-fixed {
        grid-column: 2;
        grid-row: 3;
    }

    /* タグとCTAを同じ行に配置 */
    .event-tags-and-cta-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
        padding-top: 12px;
        width: 100%;
    }

    .event-tags-fixed {
        flex: 1;
        margin: 0;
        margin-right: 15px;
        max-width: calc(100% - 175px); /* CTAボタンの幅を考慮 */
    }

    .event-actions-fixed {
        margin: 0;
        padding: 0;
        flex-shrink: 0;
        width: auto !important;
    }
}

/* ===== 過去のイベント用チェックボックススタイル ===== */
#facet-dropdown-portal .past-events-option-fixed {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #e9ecef !important;
}

#facet-dropdown-portal .past-events-option-fixed:hover {
    background: #e9ecef;
}

#facet-dropdown-portal .past-events-option-fixed input[type="checkbox"] {
    accent-color: #6c757d;
}

#facet-dropdown-portal .past-events-option-fixed input[type="checkbox"]:checked + .option-text-fixed {
    font-weight: 600;
    color: #6c757d;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #facet-dropdown-portal .past-events-option-fixed {
        padding: 8px 10px !important;
    }
}

@media (max-width: 480px) {
    #facet-dropdown-portal .past-events-option-fixed {
        padding: 6px 8px !important;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    #facet-dropdown-portal .past-events-option-fixed {
        background: #f0f0f0;
        border: 2px solid #000 !important;
    }
    
    #facet-dropdown-portal .past-events-option-fixed:hover {
        background: #e0e0e0;
    }
}

/* ===== 人気検索ワード（デザイン・余白修正版） ===== */
.popular-searches-container {
    display: flex;
    align-items: center;
    gap: 10px; /* タグ間の隙間 */
    margin-top: 10px; /* 検索ボックスとの間隔を確保 */
    margin-bottom: 20px; /* ドロップダウンとの間隔を確保 */
    flex-wrap: wrap;
    padding: 5px 0;
}

.popular-searches-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
}

.popular-search-link {
    display: inline-block;
    padding: 6px 16px;
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.popular-search-link:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== オートコンプリート（新規追加） ===== */
.autocomplete-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.autocomplete-suggestions li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 15px;
    color: #495057;
    border-bottom: 1px solid #f1f3f5;
}

.autocomplete-suggestions li:last-child {
    border-bottom: none;
}

.autocomplete-suggestions li:hover {
    background-color: #f8f9fa;
}

/* ===== デュアル検索（通常検索+除外検索）対応 - 背景色修正版 ===== */
.dual-search-container-fixed {
    display: flex;
    gap: 8px;
    width: 800px !important;
    box-sizing: border-box;
}

.search-input-container-fixed.search-include {
    width: 50% !important;
    flex: 1;
}

.search-input-container-fixed.search-exclude {
    width: 50% !important;
    flex: 1;
}

.search-exclude .search-icon.exclude-icon {
    color: #dc3545;
    font-size: 14px;
}

/* 除外検索入力欄の背景を白に統一 */
.search-exclude-input {
    border-color: #dee2e6 !important; /* 通常の検索と同じボーダー色 */
    background: white !important; /* 背景を白に統一 */
}

.search-exclude-input:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
    background: white !important;
}

.search-exclude-input::placeholder {
    color: #dc3545;
    opacity: 0.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .dual-search-container-fixed {
        width: 100% !important;
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input-container-fixed.search-include,
    .search-input-container-fixed.search-exclude {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .dual-search-container-fixed {
        gap: 8px;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .search-exclude-input {
        border: 2px solid #dc3545 !important;
        background: #fff !important;
    }
    
    .search-exclude-input:focus {
        background: #fff !important;
        border: 3px solid #dc3545 !important;
    }
    
    .search-exclude .search-icon.exclude-icon {
        color: #dc3545;
        font-weight: bold;
    }
}

/* 除外検索のアクティブフィルタタグのスタイル */
.filter-tag-horizontal-fixed.exclude-filter-tag-fixed {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.filter-tag-horizontal-fixed.exclude-filter-tag-fixed:hover {
    background: #c82333;
    border-color: #c82333;
}

/* 高コントラストモードでの除外検索フィルタタグ */
@media (prefers-contrast: high) {
    .filter-tag-horizontal-fixed.exclude-filter-tag-fixed {
        background: #dc3545;
        color: #fff;
        border: 2px solid #dc3545;
    }
    
    .filter-tag-horizontal-fixed.exclude-filter-tag-fixed:hover {
        background: #c82333;
        border-color: #c82333;
    }
}

/* ===== サーバーサイド生成画像用スタイル ===== */
.event-generated-image {
    width: 260px !important;
    height: 180px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.event-generated-image:hover {
    transform: scale(1.02);
}

.event-generated-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-generated-performer {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.9;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-generated-date {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 8px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.event-generated-category {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .event-generated-image {
        width: 100% !important;
        max-width: 320px !important;
        height: 200px !important;
        margin: 0 auto;
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .event-generated-image {
        max-width: 280px !important;
        height: 180px !important;
    }
    
    .event-generated-title {
        font-size: 15px;
    }
    
    .event-generated-performer {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .event-generated-image {
        max-width: 260px !important;
        height: 160px !important;
        padding: 12px;
    }
    
    .event-generated-title {
        font-size: 14px;
    }
    
    .event-generated-performer {
        font-size: 12px;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .event-generated-image {
        border: 2px solid #000;
        text-shadow: 0 0 1px #000, 0 0 2px #000;
    }
    
    .event-generated-title,
    .event-generated-performer {
        font-weight: 900;
    }
}

/* 開催日ドロップダウンの検索ボタン */
.date-search-cta-container-fixed {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.date-search-button-fixed {
    width: 100%;
    padding: 10px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}

.date-search-button-fixed:hover {
    background: #3367d6;
}

.date-search-button-fixed:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* ===== 出演者モーダルウィンドウ ===== */
.performers-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    backdrop-filter: blur(2px);
}

.performers-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    z-index: 10002;
    display: flex;
    flex-direction: column;
}

.performers-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

.performers-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.performers-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.performers-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.performers-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.performers-search-box {
    margin-bottom: 20px;
}

.performers-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.performers-search-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.performers-index-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.performers-index-tab {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
    user-select: none;
}

.performers-index-tab:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.performers-index-tab.active {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.performers-list-container {
    min-height: 200px;
    position: relative;
}

.performers-list {
    display: block;
}

.performers-group-heading {
    font-size: 18px;
    font-weight: 600;
    color: #4285f4;
    padding: 12px 0;
    margin-top: 15px;
    border-bottom: 2px solid #4285f4;
}

.performers-group-heading:first-child {
    margin-top: 0;
}

.performers-group-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding-top: 15px;
}

/* ▼▼▼ 修正：件数表示対応版 ▼▼▼ */
.performers-list-item {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.performers-list-item:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* 新規追加：performer-info コンテナ */
.performers-list-item .performer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 4px;
}

.performers-list-item .performer-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.performers-list-item .performer-kana {
    font-size: 12px;
    opacity: 0.7;
}

/* 新規追加：出演者件数表示 */
.performers-list-item .performer-count {
    font-size: 11px;
    color: #6c757d;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 2px;
    font-weight: 500;
    border: 1px solid #e9ecef;
    white-space: nowrap;
}

.performers-list-item:hover .performer-count {
    background: rgba(255, 255, 255, 0.95);
    color: #4285f4;
    border-color: white;
    font-weight: 600;
}
/* ▲▲▲ 修正終了 ▲▲▲ */

.performers-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.performers-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.performers-no-results {
    display: none;
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.performers-error {
    display: none;
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 6px;
    margin: 20px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .performers-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .performers-modal-header {
        padding: 15px 20px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .performers-modal-title {
        font-size: 18px;
    }

    .performers-modal-close {
        font-size: 32px;
        padding: 0 8px;
        line-height: 1;
        font-weight: 300;
    }
    
    .performers-index-tabs {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }
    
    .performers-index-tab {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .performers-group-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* ▼▼▼ 追加：モバイル時の件数表示調整 ▼▼▼ */
    .performers-list-item .performer-count {
        font-size: 10px;
        padding: 2px 6px;
    }
    /* ▲▲▲ 追加終了 ▲▲▲ */
}

@media (max-width: 480px) {
    .performers-modal {
        width: 100%;
        height: 80vh;
        max-height: 80vh;
        border-radius: 0;
    }

    .performers-modal-body {
        max-height: calc(100vh - 120px);
    }

    .performers-index-tabs {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 4px;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .performers-modal {
        border: 3px solid #000;
    }
    
    .performers-index-tab {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
    
    .performers-index-tab.active {
        background: #000;
        color: #fff;
    }

    .performers-group-heading {
        color: #000;
        border-color: #000;
    }
    
    .performers-list-item {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
    
    .performers-list-item:hover {
        background: #000;
        color: #fff;
    }
    
    /* ▼▼▼ 追加：高コントラストモード時の件数表示 ▼▼▼ */
    .performers-list-item .performer-count {
        background: #f0f0f0;
        color: #000;
        border: 1px solid #000;
    }
    
    .performers-list-item:hover .performer-count {
        background: #fff;
        color: #000;
        border: 2px solid #fff;
    }
    /* ▲▲▲ 追加終了 ▲▲▲ */
}

/* ===== 追従型「上に戻る」ボタン ===== */
#back-to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    outline: none;
    user-select: none;
    line-height: 1;
    justify-content: center;
    align-items: center;
}

#back-to-top-button:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.5);
}

#back-to-top-button:active {
    background: #2951a3;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
}

#back-to-top-button:focus {
    outline: 2px solid #4285f4;
    outline-offset: 3px;
}

/* タブレット対応 */
@media (max-width: 1024px) {
    #back-to-top-button {
        bottom: 25px;
        right: 25px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    #back-to-top-button {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* 小画面対応 */
@media (max-width: 480px) {
    #back-to-top-button {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
}

/* 超小画面対応 */
@media (max-width: 320px) {
    #back-to-top-button {
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    #back-to-top-button {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    }
    
    #back-to-top-button:hover {
        background: #333;
        border-color: #fff;
    }
    
    #back-to-top-button:focus {
        outline: 3px solid #fff;
        outline-offset: 2px;
    }
}

/* モーション削減設定対応 */
@media (prefers-reduced-motion: reduce) {
    #back-to-top-button {
        transition: opacity 0.2s ease !important;
        transform: none !important;
    }
    
    #back-to-top-button:hover {
        transform: none !important;
    }
    
    #back-to-top-button:active {
        transform: none !important;
    }
}

/* ===== 月選択機能用CSS（新規追加） ===== */

/* 月選択コンテナ */
.month-selection-container-fixed {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 12px;
}

.month-selection-label-fixed {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
}

/* 月選択ボタングリッド */
.month-buttons-grid-fixed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* 月選択オプション */
.month-option-fixed {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.month-option-fixed:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.month-option-fixed:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.month-option-fixed input[type="checkbox"] {
    margin: 0;
    margin-right: 6px;
    cursor: pointer;
    accent-color: #4285f4;
    flex-shrink: 0;
}

.month-option-fixed input[type="checkbox"]:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

.month-option-fixed input[type="checkbox"]:checked + .month-text-fixed {
    font-weight: 600;
    color: #4285f4;
}

.month-text-fixed {
    font-size: 13px;
    color: #495057;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 月選択チェックボックスがチェックされた時の背景色 */
.month-option-fixed:has(input[type="checkbox"]:checked) {
    background: #e8f0fe;
    border-color: #4285f4;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .month-selection-container-fixed {
        padding: 10px 0;
    }
    
    .month-selection-label-fixed {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .month-buttons-grid-fixed {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .month-option-fixed {
        padding: 6px 8px;
    }
    
    .month-text-fixed {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .month-selection-label-fixed {
        font-size: 12px;
    }
    
    .month-buttons-grid-fixed {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .month-option-fixed {
        padding: 5px 6px;
    }
    
    .month-text-fixed {
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .month-buttons-grid-fixed {
        grid-template-columns: 1fr;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .month-option-fixed {
        border: 2px solid #000;
        background: #fff;
    }
    
    .month-option-fixed:hover {
        background: #f0f0f0;
        border-color: #000;
    }
    
    .month-option-fixed:has(input[type="checkbox"]:checked) {
        background: #000;
        border-color: #000;
    }
    
    .month-option-fixed:has(input[type="checkbox"]:checked) .month-text-fixed {
        color: #fff;
    }
    
    .month-selection-label-fixed {
        color: #000;
        font-weight: 700;
    }
}

/* モーション削減設定対応 */
@media (prefers-reduced-motion: reduce) {
    .month-option-fixed {
        transition: none;
    }
    
    .month-option-fixed:hover {
        transform: none;
    }
    
    .month-option-fixed:active {
        transform: none;
    }
}

/* フォーカス管理強化 */
.month-option-fixed:focus-within {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* アクセシビリティ向上：キーボード操作時の視覚的フィードバック */
.month-option-fixed input[type="checkbox"]:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* ポータル内での月選択表示 */
#facet-dropdown-portal .month-selection-container-fixed {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

#facet-dropdown-portal .month-buttons-grid-fixed {
    padding-bottom: 5px;
}

/* 月選択のスクロールバーカスタマイズ */
#facet-dropdown-portal .month-selection-container-fixed::-webkit-scrollbar {
    width: 6px;
}

#facet-dropdown-portal .month-selection-container-fixed::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#facet-dropdown-portal .month-selection-container-fixed::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#facet-dropdown-portal .month-selection-container-fixed::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox用スクロールバー */
#facet-dropdown-portal .month-selection-container-fixed {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* 月選択エリアと日付入力エリアの区切り線 */
.month-selection-container-fixed + .date-range-container-fixed {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* タブレット対応（768px-1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .month-buttons-grid-fixed {
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }
    
    .month-option-fixed {
        padding: 7px;
    }
    
    .month-text-fixed {
        font-size: 12px;
    }
}

/* 極小画面対応（280px以下） */
@media (max-width: 280px) {
    .month-selection-label-fixed {
        font-size: 11px;
    }
    
    .month-buttons-grid-fixed {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .month-option-fixed {
        padding: 4px 5px;
    }
    
    .month-text-fixed {
        font-size: 10px;
    }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    .month-option-fixed {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .month-option-fixed:hover {
        background: #374151;
        border-color: #6b7280;
    }
    
    .month-option-fixed:has(input[type="checkbox"]:checked) {
        background: #1e3a8a;
        border-color: #3b82f6;
    }
    
    .month-text-fixed {
        color: #e2e8f0;
    }
    
    .month-option-fixed input[type="checkbox"]:checked + .month-text-fixed {
        color: #93c5fd;
    }
    
    .month-selection-label-fixed {
        color: #e2e8f0;
    }
}

/* プリント時の最適化 */
@media print {
    .month-selection-container-fixed {
        display: none;
    }
}

/* ホバー非対応デバイス対応 */
@media (hover: none) and (pointer: coarse) {
    .month-option-fixed:hover {
        background: #f8f9fa;
        border-color: #dee2e6;
        transform: none;
        box-shadow: none;
    }
    
    .month-option-fixed:active {
        background: #e9ecef;
        border-color: #adb5bd;
    }
}

/* タッチデバイス用のタップ領域拡大 */
@media (pointer: coarse) {
    .month-option-fixed {
        min-height: 44px;
        padding: 10px;
    }
    
    .month-option-fixed input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
}

/* 縦画面モード対応 */
@media (orientation: portrait) and (max-width: 768px) {
    .month-buttons-grid-fixed {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 横画面モード対応 */
@media (orientation: landscape) and (max-height: 500px) {
    .month-selection-container-fixed {
        max-height: 150px;
        overflow-y: auto;
    }
    
    .month-buttons-grid-fixed {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .month-option-fixed {
        padding: 5px 6px;
    }
}

/* ===== 月選択機能用CSS ここまで ===== */

/* ===== タブ切り替え機能用CSS（修正版） ===== */

/* タブコンテナ */
.date-filter-tabs-container-fixed {
    margin: 0;
    padding: 0;
}

/* タブボタンエリア */
.date-filter-tabs-fixed {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin: 0 0 15px 0;
    padding: 0;
}

/* タブボタン */
.date-filter-tab-fixed {
    flex: 1;
    padding: 12px 15px;
    background: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
    box-sizing: border-box;
}

.date-filter-tab-fixed:first-child {
    border-radius: 4px 0 0 0;
}

.date-filter-tab-fixed:last-child {
    border-radius: 0 4px 0 0;
}

.date-filter-tab-fixed:hover {
    background: #e9ecef;
    color: #495057;
}

.date-filter-tab-fixed.active {
    background: white;
    color: #4285f4;
    font-weight: 600;
    border-bottom-color: #4285f4;
}

.date-filter-tab-fixed:focus {
    outline: 2px solid #4285f4;
    outline-offset: -2px;
    z-index: 1;
}

/* タブコンテンツエリア */
.date-filter-tab-content-fixed {
    display: none;
    padding: 0;
    margin: 0;
}

.date-filter-tab-content-fixed.active {
    display: block;
}

/* 開催月タブ内のグリッド */
#month-tab-content .month-buttons-grid-fixed {
    padding: 0;
    margin: 0;
}

/* 日付指定タブ内の日付入力 */
#date-tab-content .date-range-container-fixed {
    margin-bottom: 10px;
    padding: 0;
    border: none;
}

#date-tab-content .date-range-container-fixed:first-child {
    margin-top: 0;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    .date-filter-tab-fixed {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .date-filter-tab-fixed {
        padding: 8px 10px;
        font-size: 12px;
    }
}