/* Works page styles split from css/style.css (PoC) */

/* =========================================
   13. Works Page (3D Stream) - Base Styles (Desktop)
   ========================================= */
#works-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    perspective: 2000px;
    overflow: hidden;
    cursor: grab;
    z-index: 10;
}

#works-container:active {
    cursor: grabbing;
}

#works-container.stream-mode {
    overflow: hidden;
    touch-action: none;
    /* フッターが表示されるように、コンテナの高さを調整 */
    height: calc(100vh - 0px);
    /* フッター分のスペースを確保 */
}

#works-container.grid-mode {
    cursor: default;
    overflow: auto;
    touch-action: pan-y;
    position: relative;
    z-index: 1;
    /* ヘッダー（z-index: 1000）の下に */
    /* スクロールバーを非表示（Grid） */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

#works-container.grid-mode::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

#works-container.list-mode {
    cursor: default;
    overflow: auto;
    /* List表示でもスクロール可能 */
    touch-action: pan-y;
    position: relative;
    z-index: 1;
    /* ヘッダー（z-index: 1000）の下に */
    /* スクロールバーを完全に非表示 */
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE/Edge */
}

#works-container.list-mode::-webkit-scrollbar {
    display: none !important;
    /* Chrome/Safari */
    width: 0 !important;
    height: 0 !important;
}

#works-container.album-mode {
    cursor: default;
    overflow: visible;
    /* Swiperが表示されるように */
    touch-action: pan-y;
    position: relative;
    z-index: 1;
}

/* Worksページでヘッダーとフッターが確実に表示され、クリック可能になるように */
body.works-page-body .site-header {
    display: flex !important;
    z-index: 1001 !important;
    /* works-container (z-index: 10) より上に */
    pointer-events: auto !important;
    position: fixed !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* Worksページでは全モードでフッターを非表示 */
body.works-page-body #common-footer,
body.works-page-body .site-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    max-width: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
}

/* Grid/List/Streamモード時も同様に表示 */
body.works-page-body.grid-mode .site-header,
body.works-page-body.list-mode .site-header,
body.works-page-body.stream-mode .site-header {
    display: flex !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
    position: fixed !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* 表示モード切り替えタブ */
.view-switcher {
    position: fixed;
    top: 100px;
    left: 40px;
    z-index: 2100;
    display: flex;
    gap: 0;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.view-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: var(--text-color);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
    touch-action: manipulation;
}

.view-tab:hover {
    opacity: 0.7;
}

.view-tab.active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    opacity: 1;
}

/* Lock Button Style */
.lock-toggle-btn {
    margin-left: 10px;
    padding: 8px 12px;
    font-size: 16px;
    /* Slightly larger for emoji */
    opacity: 0.8;
}

.lock-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 表示コンテンツの切り替え */
.view-content {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    display: none;
}

.view-content.active {
    display: block;
    opacity: 1;
}

/* Stream表示（既存の3Dストリーム） */
#gallery-stream {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    width: 0;
    height: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    /* 子要素のクリックイベントを有効にするため */
}

#works-container.stream-mode #gallery-stream {
    display: block !important;
}

#gallery-stream.active {
    opacity: 1 !important;
}

/* Grid表示（画像グリッド） */
#gallery-grid {
    padding: 140px 40px 40px;
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    row-gap: 80px;
    column-gap: 0;
    /* 横横の隙間を0に */
    width: 100%;
    max-width: 100%;
    opacity: 1 !important;
    /* 表示時は確実に不透明 */
    visibility: visible !important;
    /* 表示時は確実に可視 */
}

#works-container.grid-mode #gallery-grid {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* List表示（テキストのみ） */
#gallery-list {
    padding: 140px 0 40px 40px;
    /* Streamの文字（view-switcher）のすぐ下、左寄せ */
    max-width: none;
    margin: 0;
    display: none;
    overflow: visible;
    /* スクロールバーを完全になくす */
    height: auto;
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    /* 表示時は確実に不透明 */
    visibility: visible !important;
    /* 表示時は確実に可視 */
    /* スクロールバーを完全に非表示 */
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE/Edge */
}

#gallery-list::-webkit-scrollbar {
    display: none !important;
    /* Chrome/Safari */
    width: 0 !important;
    height: 0 !important;
}

/* Gridモード専用スタイル */
body.grid-mode .grid-item {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
}

body.grid-mode .grid-item.in-view {
    opacity: 1;
}

body.grid-mode .grid-item:hover {
    opacity: 1;
}

body.grid-mode .grid-item:hover .grid-item-image-container {
    transform: scale(1.05) translate(2px, 2px);
    transition: transform 0.3s ease;
}

body.grid-mode .grid-item:hover .grid-item-info {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Gridモード専用スタイル */
/* --- Grid Image Animation Fix --- */
body.grid-mode .grid-item-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
}

body.grid-mode .grid-item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* 基本状態: 透明で奥に配置 */
    opacity: 0;
    z-index: 1;

    /* フェードイン・アウトの時間: 2秒かけて滑らかに */
    transition: opacity 2.0s ease-in-out;
    will-change: opacity;
    pointer-events: none;
    /* 画像のクリックイベントを無効化 */
}

/* テーマ切り替え時でもGridのクロスフェード優先度を維持 */
body.dark-mode.grid-mode .grid-item-img,
body.dark-mode .grid-item-img.next-active,
body.dark-mode .grid-item .grid-item-img.active {
    transition: opacity 2s ease-in-out !important;
}

/* 表示中の画像（詳細度を上げて確実に適用） */
body.grid-mode .grid-item .grid-item-img.active {
    opacity: 1 !important;
    z-index: 5;
    /* 手前 */
}

/* 次に表示される画像（フェードイン中） */
body.grid-mode .grid-item-img.next-active {
    opacity: 1;
    z-index: 10;
    /* 最前面でフェードイン */
}

body.grid-mode .grid-item.locked .grid-item-img {
    filter: blur(15px);
    opacity: 0.5;
}

body.grid-mode .grid-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    padding: 20px 12px 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 20;
    /* 画像の上に表示されるようにz-indexを設定 */
}

body.grid-mode .grid-item-info-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    line-height: 1.3;
}

body.grid-mode .grid-item-info-date {
    font-size: 12px;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

/* List表示（テキストのみ） - 古い定義を削除（下の定義を使用） */

/* Listモード専用背景画像 */
/* Listモード専用背景画像（全画面表示） */
#gallery-list-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
    z-index: 0 !important;
    /* 背景として表示 */
    pointer-events: none !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    display: none !important;
    /* デフォルトは非表示 */
    visibility: visible !important;
}

body.list-mode #gallery-list-background {
    display: block !important;
    /* Listモードでのみ表示 */
    z-index: 0 !important;
    /* Listコンテンツの後ろに配置 */
}

/* Album/Stream/Gridモードでは確実に非表示 */
body.album-mode #gallery-list-background,
body.stream-mode #gallery-list-background,
body.grid-mode #gallery-list-background {
    display: none !important;
}

body.list-mode #gallery-list-background.active {
    opacity: 1 !important;
}

body.list-mode #gallery-list-background.active {
    opacity: 1 !important;
}

body.list-mode #works-container.list-mode #gallery-list,
#works-container.list-mode #gallery-list {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Listモード専用スタイル（2枚目＝正しい実装: sans-serif・コンパクト） */
body.list-mode .list-item {
    padding: 2px 0;
    margin-bottom: 0;
    border-bottom: none;
    cursor: default;
    /* デフォルトカーソル（タイトルのみpointer） */
    transition: opacity 0.2s ease;
    line-height: 1.2;
    /* 行間を詰める */
    opacity: 1 !important;
    /* 初期状態で確実に表示 */
    visibility: visible !important;
    /* 初期状態で確実に可視 */
    color: #333 !important;
    /* テキスト色を確実に設定 */
    text-align: left;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    pointer-events: none !important;
    /* アイテム全体はクリック不可（確実に） */
    position: relative;
    /* 位置指定の基準 */
}

body.list-mode .list-item-title {
    font-size: 14px;
    font-weight: 700;
    /* 太字に */
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.2;
    display: inline-flex;
    /* flexからinline-flexに変更（幅を内容に合わせる） */
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    pointer-events: auto !important;
    /* タイトルのみクリック可能 */
    cursor: pointer !important;
    /* タイトルはポインターカーソル */
    opacity: 1 !important;
    /* 確実に表示 */
    visibility: visible !important;
    /* 確実に可視 */
    color: #333 !important;
    /* テキスト色を確実に設定 */
    width: fit-content;
    /* 幅を内容に合わせる */
    max-width: 100%;
    /* 最大幅を制限 */
}

body.list-mode .list-item-title:hover {
    opacity: 0.7 !important;
}

body.list-mode .list-item-title-text {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 1 !important;
    visibility: visible !important;
    color: #333 !important;
}

/* 日付は非表示 */
body.list-mode .list-item-date {
    display: none !important;
}

body.list-mode .lock-icon {
    display: inline-flex;
    align-items: center;
    color: #666;
    /* グレー */
    margin-left: 8px;
    /* タイトルとの間隔 */
    vertical-align: middle;
    flex-shrink: 0;
    /* 縮小を防ぐ */
    opacity: 0.7;
    /* 控えめな表示 */
}

body.list-mode .lock-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {

    /* スマホ版: モード選択ボタンを最上位に固定（全モード共通） */
    .view-switcher,
    #works-view-switcher {
        position: fixed !important;
        top: 90px !important;
        left: 20px !important;
        font-size: 13px;
        z-index: 9999 !important;
        /* 最上位 */
        pointer-events: auto;
        transform: translateZ(0) !important;
        /* GPU レイヤー分離 */
        -webkit-transform: translateZ(0) !important;
        will-change: transform;
    }

    .view-tab {
        padding: 10px 14px;
        min-width: 50px;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    #gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        row-gap: calc(100px * 0.4);
        column-gap: 0;
        padding: 130px 10px 20px;
        min-height: auto !important;
        height: auto !important;
    }

    #gallery-list {
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 40px;
    }

    body.list-mode #gallery-list {
        padding: 130px 0 20px 20px;
        /* 左寄せ */
        overflow: visible !important;
        /* スクロールバーを完全に非表示 */
    }

    body.list-mode #works-container.list-mode {
        overflow: auto !important;
        /* List表示でもスクロール可能 */
    }

    body.list-mode .list-item {
        padding: 2px 0;
        margin-bottom: 0;
    }

    body.list-mode .list-item-title,
    body.list-mode .list-item-title-text {
        font-size: 13px;
    }

    body.list-mode .list-item-title {
        letter-spacing: 0.06em;
    }

    /* スマホ版Gridモード: テキストサイズを小さく */
    body.grid-mode .grid-item-info {
        padding: 10px 6px 6px;
    }

    body.grid-mode .grid-item-info-title {
        font-size: 10px;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    body.grid-mode .grid-item-info-date {
        font-size: 8px;
    }
}

@media (max-width: 768px) {

    /* Streamモード時のみ固定レイアウト */
    body.works-page-body.stream-mode {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Grid/Listモード時はスクロール可能 */
    body.works-page-body.grid-mode,
    body.works-page-body.list-mode {
        overflow: auto !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #works-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        overflow: hidden !important;
        cursor: grab !important;
        perspective: 2000px !important;
        touch-action: none !important;
        /* スムーズなスクロールのための最適化 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: scroll-position;
    }

    /* Grid/Listモードの時は固定レイアウトを解除してスクロール可能にする */
    #works-container.grid-mode,
    #works-container.list-mode {
        position: relative !important;
        overflow: auto !important;
        cursor: default !important;
        touch-action: pan-y !important;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        perspective: none !important;
        will-change: auto !important;
    }

    #works-container:active {
        cursor: grabbing !important;
    }

    /* Fixed要素がContaining Blockに閉じ込められないよう、念のためviewportサイズを強制 */
    body.works-detail-open #work-detail-overlay {
        height: 100vh !important;
        width: 100vw !important;
        max-height: 100vh !important;
    }

    #gallery-stream {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform-style: preserve-3d !important;
        width: 0 !important;
        height: 0 !important;
        transform: translate(-50%, -50%) !important;
        /* スマホ版でも画面中央に配置 */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* モバイル版も画面中央配置を維持 */
    #works-container .work-item-3d {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        /* JS読み込み前の初期位置用 */
        margin: 0 !important;
    }
}

/* 個々の作品カード（ガラス風ブロック・スクエア3D表現） */
/* PC/Mobile共通の基本設定 */
/* Streamモード専用スタイル */
body.stream-mode #works-container .work-item-3d {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    /* translate(-50%, -50%) はJS側の transform 文字列の先頭に含めるため、ここでは初期位置用に設定 */
    transform: translate(-50%, -50%);
    /* JS読み込み前の初期位置用 */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    visibility: visible;
    /* クリック・ホバーイベントを有効化 */
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
    /* 常に表示 */
    will-change: transform;
    /* transformのtransitionはJSで制御するため、CSS側では設定しない */
    /* 画像に効果を付与しない（白とび防止） */
    filter: none !important;

    /* ガラス表現 */
    box-shadow: 20px 25px 60px rgba(0, 0, 0, 0.5);

    border-radius: 0;
    background-color: #000;
    background-clip: padding-box;
    overflow: hidden;
    transform-origin: center center;
    display: block;

    /* marginは使用しない - transformのみで位置を制御 */
    margin: 0 !important;
}

/* Streamモードのホバーエフェクト：右方向へ引き出す */
body.stream-mode #works-container .work-item-3d:hover {
    /* JS側でtransformを制御するため、CSS側では追加のエフェクトのみ */
    cursor: pointer;
}

/* PCサイズ */
@media (min-width: 769px) {
    #works-container .work-item-3d {
        width: 50vh !important;
        height: 65vh !important;
        max-width: 600px !important;
        max-height: 800px !important;
    }
}

/* モバイルサイズ */
@media (max-width: 768px) {
    #works-container .work-item-3d {
        width: 35vh !important;
        height: 45vh !important;
        max-width: 80vw !important;
    }
}

.work-item-info {
    display: none !important;
}

/* 鍵付きアイテム（角丸削除に合わせて調整） */
.work-item-3d.locked {
    filter: none !important;
    overflow: hidden;
}

.work-item-3d.locked::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 5;
    border-radius: 0;
    /* ★ここもスクエアに */
}

.work-item-3d.locked::after {
    content: "🔒";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    z-index: 10;
    opacity: 1;
}

.work-item-3d.unlocked::before,
.work-item-3d.unlocked::after {
    display: none;
}

.work-item-3d.hidden-virtual {
    display: none !important;
}

/* 詳細画面の拍手ボタンエリア */
#detail-clap-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* =========================================
   Works Hover Info (Desktop & Common)
   ========================================= */

/* 右下の情報エリアコンテナ */
/* --- Stream Mode Hover Info (画面右下に固定) --- */
#stream-hover-info {
    position: fixed;
    bottom: 15%;
    right: 5%;
    z-index: 1000;
    text-align: right;
    pointer-events: none;
    /* マウスイベントを透過 */
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--text-color, #333);
}

#stream-hover-info.visible {
    opacity: 1;
}

#stream-hover-info .info-date {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    opacity: 0.7;
}

#stream-hover-info .info-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

/* 下線アニメーション */
#stream-hover-info .info-line {
    display: block;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    margin-top: 15px;
    margin-left: auto;
    /* 右寄せ */
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#stream-hover-info.visible .info-line {
    width: 100%;
}

/* --- Stream Hover Info (画面右下に固定) --- */
#works-hover-info {
    position: fixed !important;
    bottom: 10% !important;
    right: 5% !important;
    z-index: 1000 !important;
    text-align: right !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(20px) !important;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease !important;
    color: #333 !important;
    display: block !important;
}

#works-hover-info.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

#works-hover-info .info-date {
    display: block !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 5px !important;
    color: #666 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#works-hover-info .info-title {
    display: block !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 2.5rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#works-hover-info .info-line {
    display: block !important;
    width: 0% !important;
    height: 2px !important;
    background-color: #333 !important;
    margin-top: 10px !important;
    margin-left: auto !important;
    transition: width 0.5s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#works-hover-info.visible .info-line {
    width: 100% !important;
}

/* 写真の中のテキストは非表示 */
.work-item-info {
    display: none !important;
}

/* --- Works List Mode Background --- */
#gallery-list-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.05s ease;
    /* 最優先：ほぼ即座に表示（0.1s → 0.05s） */
    z-index: 0;
    pointer-events: none;
    will-change: opacity, background-image;
    /* パフォーマンス最適化 */
    image-rendering: -webkit-optimize-contrast;
    /* 高速レンダリング */
    image-rendering: crisp-edges;
    /* 画像読み込みを最適化 */
    background-attachment: scroll;
    transform: translateZ(0);
    /* GPU加速 */
    backface-visibility: hidden;
    /* レンダリング最適化 */
}

#gallery-list-background.active {
    opacity: 0.6;
}


