body {
    background-color: #040c17;
    background-image: url();
    color: #FFFFFF;
}
a {
    color: #FFFFFF;
}
a:hover {
    color: #FFFFFF;
}

.hidden-phone .bgc_gray {
    color: #333333 !important;
}

/* ===== 横スクロール防止（100vwがスクロールバー幅を含む問題） ===== */
html, body {
    overflow-x: hidden !important;
}

/* ===== YBX メガメニュー・ヘッダー ===== */

/* --- PCヘッダー右メニュー --- */
.ybx-hr {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}
.ybx-mi {
    position: relative !important;
    display: inline-block !important;
}
.ybx-ml {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
    padding: 8px 10px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.ybx-ml:hover {
    background: rgba(0,0,0,0.05);
    color: #000 !important;
}
.ybx-ml .material-icons-outlined {
    font-size: 18px;
    color: #555;
}

/* ドロップダウン（非表示→ホバーで表示） */
.ybx-dd {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: #fff !important;
    min-width: 200px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    z-index: 9999 !important;
    padding: 6px 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.15s, visibility 0.15s;
    list-style: none !important;
}
.ybx-mi:hover > .ybx-dd {
    visibility: visible !important;
    opacity: 1 !important;
}
.ybx-mi::after {
    content: '' !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 4px;
}
.ybx-dd a {
    display: block !important;
    padding: 8px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px;
    margin: 0 6px;
    border-radius: 4px;
    transition: all 0.15s;
}
.ybx-dd a:hover {
    background: rgba(255,215,0,0.15) !important;
}
.ybx-dds {
    height: 1px !important;
    background: #eee;
    margin: 4px 12px;
}
.ybx-sp {
    width: 1px !important;
    height: 20px !important;
    background: #ddd;
    margin: 0 4px;
}

/* --- Header2 カテゴリナビ --- */
.ybx-cn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
}
.ybx-ci {
    position: relative !important;
}
.ybx-cl {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 14px 22px;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}
.ybx-cl:hover {
    color: #FFD700 !important;
    border-bottom-color: #FFD700;
}
.ybx-cl .ybx-ico {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
}
.ybx-cc {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    margin-left: 4px;
}

/* --- メガドロップダウン（フル幅・absolute） --- */
.ybx-mg {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    right: auto !important;
    margin-left: 0;
    width: 100vw;
    background: rgba(4,12,23,0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 9999 !important;
    padding: 24px 0 !important;
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.15s, visibility 0.15s;
    -webkit-overflow-scrolling: touch;
}
.ybx-mg::-webkit-scrollbar { width: 6px; }
.ybx-mg::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.ybx-mg::-webkit-scrollbar-track { background: transparent; }
.ybx-ci:hover > .ybx-mg {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.ybx-ci::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 6px;
}
.ybx-mgi { max-width: 1320px; margin: 0 auto; padding: 0 15px; }
.ybx-mcs { display: flex; gap: 0; }
.ybx-mc { flex: 5; padding: 0 12px; border-right: 1px solid rgba(255,255,255,0.06); min-width: 0; }
.ybx-mc.ybx-mcn { flex: 1; }
.ybx-mc.ybx-mcn .ybx-mcb { grid-template-columns: 1fr; }
.ybx-mc:first-child { padding-left: 0; }
.ybx-mc:last-child { border-right: none; padding-right: 0; }
.ybx-mch {
    font-size: 13px;
    font-weight: 600;
    color: #FFD700;
    padding: 4px 0 8px;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(255,215,0,0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.15s;
}
a.ybx-mch:hover { color: #fff; }
.ybx-mch .ybx-ct { width: 18px; height: 18px; border-radius: 3px; object-fit: contain; }
.ybx-mcc { font-size: 10px; color: rgba(255,255,255,0.3); font-weight: 400; margin-left: auto; }
.ybx-mcb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0 8px;
    align-items: stretch;
}
.ybx-mcb > .ybx-ce { display: flex; flex-direction: column; }

/* サブタイトル・セル */
.ybx-st {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    margin-bottom: 4px;
    padding-left: 4px;
    grid-column: 1 / -1;
}
.ybx-st:first-child { margin-top: 0; }
.ybx-ce {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    margin: 3px 0;
}
.ybx-ceh {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 4px;
    border-radius: 3px;
    transition: all 0.15s;
    margin-bottom: 2px;
}
.ybx-ceh:hover { color: #FFD700; background: rgba(255,215,0,0.08); }
.ybx-cec { font-size: 10px; color: rgba(255,255,255,0.3); font-weight: 400; margin-left: auto; }

/* リスト */
.ybx-ls { padding: 0; margin: 0; }
.ybx-ls a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1.4;
}
.ybx-ls a:hover { background: rgba(255,215,0,0.1); color: #FFD700; padding-left: 10px; }
.ybx-lss a { font-size: 11px; padding: 2px 6px; color: rgba(255,255,255,0.5); }
.ybx-lss a::before { content: '└ '; color: rgba(255,255,255,0.2); font-size: 10px; }
.ybx-lss a:hover { color: #FFD700; }
.ybx-cel {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    padding: 3px 4px;
    border-radius: 3px;
    transition: all 0.15s;
}
.ybx-cel:hover { color: #FFD700; background: rgba(255,215,0,0.08); }
.ybx-va {
    display: block;
    margin-top: 12px;
    padding: 8px 0 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    transition: all 0.15s;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}
.ybx-va:hover { color: #FFD700; }

/* サムネイル */
.ybx-th { width: 24px; height: 24px; object-fit: contain; border-radius: 3px; flex-shrink: 0; background: rgba(255,255,255,0.03); }
.ybx-ceh .ybx-th { width: 19px; height: 19px; }
.ybx-lss .ybx-th { width: 17px; height: 17px; }
.ybx-cel .ybx-th { width: 19px; height: 19px; }

/* --- シンプルドロップダウン（ダーク） --- */
.ybx-sd {
    position: absolute !important;
    top: 100% !important;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(4,12,23,0.97) !important;
    backdrop-filter: blur(20px);
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    z-index: 9999 !important;
    padding: 10px 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.15s, visibility 0.15s;
}
.ybx-ci:hover > .ybx-sd {
    visibility: visible !important;
    opacity: 1 !important;
}
.ybx-sd a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    margin: 0 6px;
    transition: all 0.15s;
}
.ybx-sd a:hover { background: rgba(255,215,0,0.1); color: #FFD700; }

/* --- モバイルカテゴリメニュー --- */
.ybx-mbt { display: block; padding: 14px 20px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; background: rgba(0,0,0,0.15); }
.ybx-mbi { border-bottom: 1px solid rgba(255,255,255,0.06); }
.ybx-mbt2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
}
.ybx-mbt2:hover { background: rgba(255,255,255,0.05); }
.ybx-mbt2 .ybx-ico { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; }
.ybx-mbt2 .ybx-mba { margin-left: auto; font-size: 18px; color: rgba(255,255,255,0.3); transition: transform 0.2s; }
.ybx-mbi.ybx-o .ybx-mba { transform: rotate(180deg); }
.ybx-mbt2 .ybx-mbn { font-size: 11px; color: rgba(255,255,255,0.3); font-weight: 400; }
.ybx-mbs { display: none; background: rgba(0,0,0,0.15); padding: 4px 0; }
.ybx-mbi.ybx-o .ybx-mbs { display: block; }
.ybx-mbsh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px 4px 30px;
    font-size: 11px;
    font-weight: 600;
    color: #FFD700;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.ybx-mbsh .ybx-mbsa { margin-left: auto; font-size: 16px; color: rgba(255,255,255,0.3); transition: transform 0.2s; }
.ybx-mbss.ybx-o .ybx-mbsa { transform: rotate(180deg); }
.ybx-mbsh .ybx-ct { width: 16px; height: 16px; border-radius: 3px; }
.ybx-mbsi { display: none; padding: 2px 0; }
.ybx-mbss.ybx-o .ybx-mbsi { display: block; }
.ybx-mbsi a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px 6px 40px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
}
.ybx-mbsi a:hover { background: rgba(255,215,0,0.08); color: #FFD700; }
.ybx-mbsi a .ybx-th { width: 18px; height: 18px; }

/* --- Header2表示保証（Worker CSSの旧スタイル上書き） --- */
#header2.header2-container {
    display: block !important;
    visibility: visible !important;
    transform: none !important;
    left: auto !important;
    margin-left: calc(-50vw + 50%) !important;
    overflow: visible !important;
    z-index: 1500 !important;
}
/* ヘッダー右ドロップダウンがHeader2より上に表示 */
#header {
    position: relative !important;
    z-index: 2000 !important;
}
/* ヘッダー全体の背景色 */
#header {
    background: #F0F0F0 !important;
}
/* スマホトップバーの背景色 */
.mobile-top-bar {
    background: #F0F0F0 !important;
}
.header2-container .ybx-cn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* --- モバイルメニュー下部余白・スクロール確保 --- */
#mobile-menu.mobile-menu {
    padding-bottom: 100px !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    height: 100vh !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .ybx-hr { display: none !important; }
    #header2.header2-container { display: none !important; }
    .header2-container .ybx-cn { display: none !important; }
}
