/* 素材一覧ページ固有CSS */
    .booth-promo-section {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
        align-items: center;
        min-height: 250px;
        margin: 3rem 0;
        padding: 2.5rem 3rem;
        overflow: hidden;
        border: 1px solid rgba(0, 176, 255, 0.28);
        border-radius: 10px;
        background:
            radial-gradient(circle at 82% 15%, rgba(124, 58, 237, 0.3), transparent 30%),
            linear-gradient(135deg, #050b16 0%, #0a1c35 58%, #07111f 100%);
        box-shadow: 0 16px 42px rgba(0, 61, 122, 0.18);
        color: #ffffff;
    }

    .booth-promo-section::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.13;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(0, 176, 255, 0.4) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 176, 255, 0.4) 1px, transparent 1px);
        background-size: 38px 38px;
        mask-image: linear-gradient(to left, #000, transparent 80%);
    }

    .booth-promo-copy,
    .booth-promo-visual {
        position: relative;
        z-index: 1;
    }

    .booth-promo-kicker {
        display: block;
        margin-bottom: 0.65rem;
        color: #67d8ff;
        font-family: 'Outfit', sans-serif;
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.2em;
    }

    .booth-promo-copy h2 {
        margin: 0 0 0.85rem;
        color: #ffffff;
        font-family: 'Outfit', 'Inter', sans-serif;
        font-size: clamp(1.65rem, 3.5vw, 2.45rem);
        line-height: 1.25;
        letter-spacing: 0.02em;
    }

    .booth-promo-copy p {
        margin: 0 0 1.4rem;
        color: #cbd5e1;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .booth-promo-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        min-height: 48px;
        padding: 0 1.45rem;
        border: 1px solid rgba(103, 216, 255, 0.65);
        border-radius: 5px;
        background: linear-gradient(135deg, #00b0ff, #2563eb);
        color: #ffffff;
        font-weight: 800;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(0, 176, 255, 0.25);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .booth-promo-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 176, 255, 0.4);
    }

    .booth-promo-button:focus-visible {
        outline: 3px solid #ffffff;
        outline-offset: 4px;
    }

    .booth-promo-visual {
        min-height: 180px;
    }

    .booth-promo-card {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: 145px;
        aspect-ratio: 1.35;
        padding: 1rem;
        box-sizing: border-box;
        border: 1px solid rgba(103, 216, 255, 0.45);
        border-radius: 8px;
        background:
            linear-gradient(150deg, rgba(18, 50, 86, 0.95), rgba(5, 11, 22, 0.98));
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 0 24px rgba(0, 176, 255, 0.08);
        color: #ffffff;
    }

    .booth-promo-card::before {
        content: "";
        position: absolute;
        inset: 12px 12px auto;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, #00b0ff, #8b5cf6);
        box-shadow: 0 0 12px rgba(0, 176, 255, 0.8);
    }

    .booth-promo-card span {
        color: #67d8ff;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.16em;
    }

    .booth-promo-card b {
        margin-top: 0.25rem;
        font-family: 'Outfit', sans-serif;
        font-size: 1.1rem;
        letter-spacing: 0.08em;
    }

    .booth-card-one { top: 31px; left: 3%; transform: rotate(-8deg); }
    .booth-card-two { top: 8px; left: 31%; transform: rotate(4deg); z-index: 2; }
    .booth-card-three { top: 48px; left: 59%; transform: rotate(10deg); }

    .creator-partner-banner-section {
        margin: 3rem 0 0;
    }

    .creator-partner-banner-link {
        display: block;
        overflow: hidden;
        border: 1px solid rgba(0, 176, 255, 0.28);
        border-radius: 8px;
        background: #050b16;
        box-shadow: 0 10px 30px rgba(0, 82, 160, 0.13);
        transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .creator-partner-banner-link:hover {
        transform: translateY(-3px);
        border-color: var(--accent-color);
        box-shadow: 0 15px 38px rgba(0, 176, 255, 0.22);
    }

    .creator-partner-banner-link:focus-visible {
        outline: 3px solid var(--accent-color);
        outline-offset: 4px;
    }

    .creator-partner-banner-image {
        display: block;
        width: 100%;
        height: auto;
    }

    @media (max-width: 600px) {
        .booth-promo-section {
            grid-template-columns: 1fr;
            min-height: auto;
            margin: 2rem 0;
            padding: 1.6rem;
        }

        .booth-promo-copy {
            text-align: center;
        }

        .booth-promo-copy h2 br {
            display: none;
        }

        .booth-promo-button {
            width: 100%;
            box-sizing: border-box;
        }

        .booth-promo-visual {
            display: none;
        }

        .creator-partner-banner-section {
            margin-top: 2rem;
        }

        .creator-partner-banner-image {
            width: 175%;
            max-width: none;
            transform: translateX(-3%);
        }
    }

    /* サイバーお知らせ枠 */
    .rules-box {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 1.5rem;
        margin-bottom: 2.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }
    
    .rules-title {
        font-family: 'Outfit', sans-serif;
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
        color: var(--accent-color);
    }
    
    .rules-body ul {
        margin: 0;
        padding-left: 1.2rem;
        line-height: 1.6;
        color: var(--text-color);
    }
    
    .rules-body li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    /* 人気の素材 (4列・小さめ) スタイル */
    .popular-section {
        margin-bottom: 3rem;
    }

    .popular-title {
        border-left-color: var(--accent-color);
    }

    .popular-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    @media (min-width: 600px) {
        .popular-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.85rem;
        }
    }

    @media (min-width: 900px) {
        .popular-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
        }
    }

    @media (min-width: 1200px) {
        .popular-grid {
            grid-template-columns: repeat(5, 1fr);
            gap: 1rem;
        }
    }

    .popular-grid .card-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .popular-grid .card-title {
        font-size: 0.85rem;
    }

    @media (min-width: 768px) {
        .popular-grid .card-title {
            font-size: 0.95rem;
        }
    }

    .popular-grid .card-desc {
        display: none; /* 小さいカードなので説明文は非表示に */
    }

    .popular-grid .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        margin-top: 0.5rem;
    }

    .popular-grid .card-footer span {
        display: none; /* 日付非表示 */
    }

    .popular-grid .btn {
        width: 100%;
        text-align: center;
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        box-sizing: border-box;
    }

    /* 説明文セクション */
    .description-section {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 1.5rem;
        margin-bottom: 3rem;
        border-radius: 4px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }

    .desc-h3 {
        font-size: 1.1rem;
        margin-top: 0;
        margin-bottom: 0.75rem;
        color: var(--accent-purple);
        font-weight: 800;
    }

    .desc-p {
        font-size: 0.88rem;
        line-height: 1.6;
        color: var(--text-muted);
        margin: 0;
    }

    /* 1カラム化して4列のスペースを確保 */
    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }
    
    @media (min-width: 968px) {
        .main-layout {
            flex-direction: column;
        }
        .content-area {
            width: 100%;
        }
        .sidebar {
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2rem;
        }
        .sidebar-box {
            margin-bottom: 0;
        }
    }
    
    .section-title {
        font-size: 1.1rem;
        font-weight: 800;
        letter-spacing: 1.5px;
        color: var(--text-color);
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        width: 100%;
        text-transform: uppercase;
        position: relative;
    }

    .section-title::after {
        content: "";
        height: 1px;
        flex: 1;
        background: linear-gradient(90deg, var(--border-color), transparent);
        margin-left: 12px;
        display: inline-block;
    }

    /* タイトルテキスト自体の装飾（シャープな枠囲みデザイン） */
    .section-title span {
        background: rgba(0, 176, 255, 0.04);
        border: 1px solid rgba(0, 176, 255, 0.15);
        padding: 0.45rem 1.25rem;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        text-shadow: 0 0 10px rgba(0, 176, 255, 0.1);
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    @media (min-width: 600px) {
        .grid {
            gap: 1.25rem;
        }
    }

    @media (min-width: 1024px) {
        .grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }
    }

    .card {
        background-color: var(--container-bg);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }

    .card:hover {
        transform: translateY(-3px);
        border-color: var(--accent-color);
        box-shadow: 0 8px 20px rgba(0, 176, 255, 0.1);
    }

    .card-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        border-bottom: 1px solid var(--border-color);
        overflow: hidden; /* iframeのはみ出しを確実に防止 */
    }

    .card-thumb iframe,
    .card-thumb video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        margin: 0;
        padding: 0;
    }



    @media (min-width: 600px) {
        .card-thumb {
            /* メディアクエリでの高さ上書きを解除しアスペクト比を維持 */
        }
    }

    .card-body {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    @media (min-width: 600px) {
        .card-body {
            padding: 1.25rem;
        }
    }

    .card-title {
        margin: 0 0 0.35rem 0;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: -0.2px;
        color: var(--text-color);
        line-height: 1.3;
    }

    @media (min-width: 600px) {
        .card-title {
            font-size: 1.15rem;
            margin-bottom: 0.5rem;
        }
    }

    .card-desc {
        color: var(--text-muted);
        font-size: 0.78rem;
        line-height: 1.4;
        margin: 0 0 1rem 0;
        flex: 1;
        /* 文字が長い場合に途切れさせる処理 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    @media (min-width: 600px) {
        .card-desc {
            font-size: 0.88rem;
            line-height: 1.5;
            margin-bottom: 1.5rem;
        }
    }

    .card-footer {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        margin-top: auto;
    }

    @media (min-width: 600px) {
        .card-footer {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
    }
    
    /* サイバーサイドバー装飾 */
    .sidebar-box {
        background-color: var(--container-bg);
        border: 1px solid var(--border-color);
        padding: 0.75rem 1rem; /* パディングを減らして高さを低く */
        margin-bottom: 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }
    
    .sidebar-box-title {
        font-weight: 800;
        font-size: 0.9rem;
        letter-spacing: 1px;
        color: var(--accent-color);
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.35rem;
        margin-bottom: 0.65rem;
    }
    
    .search-form {
        display: flex;
        background-color: rgba(0, 0, 0, 0.02);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        height: 36px; /* 高さを低く固定 */
        align-items: center;
    }
    
    .search-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0.35rem 0.65rem;
        font-size: 0.85rem;
        color: var(--text-color);
        outline: none;
    }
    
    .search-btn {
        background: transparent;
        border: none;
        border-left: 1px solid var(--border-color);
        padding: 0.35rem 0.65rem;
        cursor: pointer;
        color: var(--accent-color);
        transition: background 0.2s;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .search-btn:hover {
        background: rgba(0, 176, 255, 0.05);
    }

    /* カテゴリー選択グリッドスタイル (間隔をぐっと詰め、ボタンらしさを強調) */
    .categories-section {
        margin-bottom: 3.5rem;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem; /* 間隔を狭くした */
    }

    @media (min-width: 768px) {
        .category-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }
    }

    @media (min-width: 1024px) {
        .category-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 0.65rem;
        }
    }

    .category-card {
        background-color: var(--card-bg); /* テーマに合わせた背景色 */
        border: 2px solid #e2e8f0; /* ボーダーを2pxにしてボタン感を強調 */
        padding: 0.85rem 1rem; /* パディングを抑える */
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        color: var(--text-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
        transition: all 0.2s ease;
    }

    .category-card:hover {
        border-color: var(--accent-color);
        background-color: var(--card-bg);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 176, 255, 0.1);
    }

    .cat-hash {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--accent-color);
    }

    .cat-icon {
        width: 20px; /* アイコンを少し小さくしバランスを調整 */
        height: 20px;
        object-fit: contain;
        border-radius: 4px;
        filter: drop-shadow(0 1px 3px rgba(0, 176, 255, 0.1));
    }

    .cat-name {
        font-size: 0.88rem; /* 文字を少し小さくして収まりを良く */
        font-weight: 700;
    }

    /* 看板ヘッダーバナー用スタイル */
    .top-banner-container {
        width: 100%;
        margin-bottom: 2rem;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 176, 255, 0.05);
        background-color: var(--card-bg);
    }

    .top-banner-img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    /* 大分類タブ切り替え用レスポンシブスタイル */
    @media (max-width: 600px) {
        .format-tabs {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem !important;
            width: 100%;
        }

        .format-tabs #tab-setting {
            /* grid-column: 1 / -1; ボタン2つのため無効化 */
            width: 100%;
        }

        .format-tabs button,
        .format-tabs a {
            width: 100%;
            padding: 0.65rem 0.5rem !important;
            font-size: 0.85rem !important;
            text-align: center;
        }
    }
