:root { --modal-bg: rgba(0, 0, 0, 0.9); --window-bg: #ffffff; --ease-actus: cubic-bezier(0.2, 1, 0.3, 1); }
.page-intro { text-align: center; padding: 60px 0 10px; }
.page-title { font-weight: 200; font-size: 2.4rem; letter-spacing: 0.2em; margin: 0; }
.page-subtitle { font-size: 0.8rem; color: var(--text-sub); margin-top: 10px; letter-spacing: 0.1em; }

/* フィルターバー */
/* 通常時は margin の負値で container の左右パディングを打ち消して全幅表示 */
/* 固定時（.is-fixed）は JS が position:fixed + top を設定する */
.filter-bar {
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    margin: 0 -30px;
    padding: 0 30px;
}

.filter-bar.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
}

.category-filter { margin: 12px 0 8px; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.filter-item { font-size: 0.8rem; letter-spacing: 0.2em; color: #aaa; cursor: pointer; position: relative; padding-bottom: 5px; transition: color 0.3s; }
.filter-item.active, .filter-item:hover { color: #333; }
.filter-item.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: #333; }

.exhibitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 80px 40px; padding-bottom: 120px; transition: opacity 0.6s ease; }
.exhibitor-grid.is-empty { display: flex; flex-direction: column; min-height: 40vh; padding-bottom: 0; }

.coming-soon-section { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 100px 0; }
.cs-content { text-align: center; }
.cs-text { font-size: 1.5rem; letter-spacing: 0.5em; color: #ccc; font-weight: 200; margin-bottom: 20px; }
.cs-subtext { font-size: 0.8rem; color: #999; letter-spacing: 0.05em; line-height: 1.8; }

.shop-card { display: flex; flex-direction: column; cursor: pointer; transition: transform 0.4s var(--ease-actus); }
.shop-card:hover { transform: translateY(-8px); }

.img-wrapper { 
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; 
    min-height: 200px;
    background-color: #fcfcfc; 
    overflow: hidden; 
    margin-bottom: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #f0f0f0; 
}

.fade-in-img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.fade-in-img.loaded { opacity: 1; }

.no-image-placeholder { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 0.8rem; color: #ccc; letter-spacing: 0.1em; 
    background: #f9f9f9; 
}

.genre { display: block; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--text-sub); text-transform: uppercase; margin-bottom: 12px; }
.shop-name { font-size: 1.15rem; font-weight: 400; margin: 0 0 16px 0; letter-spacing: 0.05em; }
.shop-footer { font-size: 0.78rem; color: var(--text-sub); padding-top: 15px; border-top: 1px solid #f0f0f0; }

/* モーダル */
.modal-overlay { display: none; position: fixed; z-index: 3000; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--modal-bg); opacity: 0; transition: opacity 0.5s ease; backdrop-filter: blur(12px); overflow-y: auto; padding: 60px 20px; }
.modal-window { max-width: 1050px; margin: 0 auto; background-color: var(--window-bg); position: relative; padding: 80px 60px; opacity: 0; transform: scale(0.96) translateY(20px); transition: transform 0.6s var(--ease-actus), opacity 0.6s ease; box-sizing: border-box; }
.modal-overlay.active { display: block; opacity: 1; }
.modal-overlay.active .modal-window { opacity: 1; transform: scale(1) translateY(0); }
.modal-close-btn { position: absolute; top: 30px; right: 30px; font-size: 2.2rem; cursor: pointer; border: none; background: none; color: #ccc; }
.modal-body { display: grid; grid-template-columns: 1.2fr 1.1fr; gap: 60px; }

.modal-left { display: flex; flex-direction: column; gap: 30px; }
.modal-logo-wrapper { width: 120px; margin: 0 auto; }
.modal-logo-wrapper img { width: 100%; height: auto; border: 1px solid #eee; }

/* ▼ スライダー縦長3:4、画像は常に中央表示 ▼ */
.product-slider { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #fcfcfc; overflow: hidden; border: 1px solid #f5f5f5; }
.product-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.product-slider .slide.active { opacity: 1; }
.product-slider img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.product-slider img.loaded { opacity: 1; }

/* スライダー画像読み込み中のスピナー */
/* DOM の最後に配置して slides・controls より自然に前面に出す */
.slider-loader {
    position: absolute;
    inset: 0;           /* top/right/bottom/left: 0 */
    margin: auto;       /* transform を使わず中央寄せ。spin の rotate と競合しない */
    z-index: 20;
    width: 28px; height: 28px;
    border: 2px solid #e0e0e0;
    border-top-color: #888;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* ローダーフェードアウト */
.slider-loader.hiding {
    opacity: 0;
}

/* ロゴ画像のフェードイン */
.modal-logo-wrapper img {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal-logo-wrapper img.loaded { opacity: 1; }

.prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 20px 15px; margin-top: -30px; color: #333; font-size: 20px; background: rgba(255,255,255,0.7); user-select: none; }
.next { right: 0; } .prev { left: 0; }
.slide-number { position: absolute; bottom: 15px; right: 15px; font-size: 0.7rem; color: #999; background: rgba(255,255,255,0.8); padding: 2px 6px; }

.modal-header-meta { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 12px; }
.modal-date { font-size: 0.78rem; color: #aaa; }
.modal-shop-name { font-size: 1.8rem; font-weight: 400; margin: 0 0 40px 0; letter-spacing: 0.05em; line-height: 1.4; }
.section-label { font-size: 0.7rem; letter-spacing: 0.3em; color: #ddd; margin-bottom: 12px; font-weight: bold; }
.section-text { font-size: 0.95rem; line-height: 2.2; color: #444; margin-bottom: 30px; }
.instagram-link { display: inline-block; border: 1px solid #333; padding: 18px 50px; text-decoration: none; color: #333; font-size: 0.78rem; letter-spacing: 0.3em; transition: 0.4s; text-align: center; }
.instagram-link:hover { background: #333; color: #fff; }

@media (max-width: 768px) {
    .page-intro { padding: 40px 0 10px; }
    .page-title { font-size: 1.8rem; }

    /* フィルターバー */
    .filter-bar { margin: 0 -20px; padding: 0; }

    /* カテゴリー: 横スクロール型。右端フェードでスクロール可能と示す */
    .category-filter-scroll {
        position: relative;
        overflow: hidden; /* グラデーション疑似要素がはみ出さないように */
    }

    /* 右端グラデーション: 続きがあることを示す視覚ヒント */
    .category-filter-scroll::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95));
        pointer-events: none;
    }

    #category-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 24px;
        margin: 8px 0 6px;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #category-filter::-webkit-scrollbar { display: none; }

    /* 日付: 3項目なのでセンター揃えで十分 */
    #date-filter {
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: visible;
        margin: 4px 0 8px;
        padding: 0 20px;
    }

    .filter-item {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.78rem;
    }
    .exhibitor-grid { gap: 50px 20px; padding-bottom: 80px; grid-template-columns: 1fr; }
    .modal-overlay { padding: 20px 15px; }
    .modal-window { padding: 40px 20px; }
    .modal-body { grid-template-columns: 1fr; gap: 30px; }
    .modal-shop-name { font-size: 1.5rem; text-align: center; margin-bottom: 25px; }
    .instagram-link { display: block; width: 100%; box-sizing: border-box; padding: 15px 0; }
    .img-wrapper { min-height: 250px; }
}