﻿/* ==========================================================================
   header.css (一般ヘッダー専用スタイル完全版)
   ブレークポイント: スマホ (<600px) / タブレット (600px-899px) / PC (>=900px)
   ========================================================================== */

/* --------------------------------------------------
   1. PC表示 (900px以上)
   -------------------------------------------------- */
@media screen and (min-width: 900px) {

    /* 最上部PCメインヘッダー帯 */
    #HeaderMenuContainer {
        width: 100%;
        background-color: #ffffff;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    #HeaderMenuBox {
        width: 1200px;
        margin: 0 auto;
        padding: 6px 0 0 0;
    }

    .headertitleBox {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 0 10px 0;
        margin: 0;
        gap: 15px;
    }

    .headertitlembox {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

        .headertitlembox img {
            display: block;
            height: 28px;
            width: auto;
        }

    /* PCヘッダーバナー (ロゴの高さに抑制) */
    .headertitleBox .HeaderBnrWaku {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        max-height: 48px;
        margin: 0 15px;
        overflow: hidden;
    }

    .headertitleBox .HeaderBnrBox,
    .headertitleBox .HeaderBnrBox a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

        .headertitleBox .HeaderBnrBox img {
            height: 48px;
            width: auto;
            max-width: 100%;
            object-fit: contain;
            display: block;
        }

    .headerUserName {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .HdrLoginBtn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 16px;
        border-radius: 9999px;
        background: linear-gradient(135deg, #1e293b, #0f172a);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }

        .HdrLoginBtn:hover {
            background: linear-gradient(135deg, #334155, #1e293b);
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
        }

    .HdrLoginIcon {
        width: 14px;
        height: 14px;
        fill: #f59e0b;
    }

    .HdrLoginText {
        font-size: 13px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .HdrMypageBtn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 14px;
        border-radius: 9999px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
    }

        .HdrMypageBtn:hover {
            border-color: #cbd5e1;
            background: #f8fafc;
            transform: translateY(-1px);
        }

    .HdrUserBadge {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #f1f5f9;
    }

        .HdrUserBadge svg {
            width: 14px;
            height: 14px;
            fill: #475569;
        }

    .HdrUserInfo {
        display: flex;
        flex-direction: column;
        text-align: left;
        line-height: 1.15;
    }

    .HdrUserNameText {
        font-size: 11.5px;
        color: #64748b;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .HdrMypageLabel {
        font-size: 12.5px;
        font-weight: bold;
        color: #0f172a;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .HdrOnlineDot {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
    }

    /* PC 9項目メニュー */
    .ModernGNav {
        width: 100%;
        margin-top: 4px;
        margin-bottom: 8px;
    }

    .ModernGNavList {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    .ModernGNavItem {
        flex: 1 1 0;
        min-width: 0;
    }

    .ModernGNavLink {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px 6px 4px;
        background-color: #ffffff;
        border: 1px solid #fce7f3;
        border-radius: 8px;
        transition: all 0.2s ease;
        height: 100%;
    }

        .ModernGNavLink:hover {
            background-color: #fff1f2;
            border-color: #f43f5e;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(244, 63, 94, 0.12);
        }

        .ModernGNavLink.is-active {
            background: linear-gradient(135deg, #f43f5e, #e11d48);
            border-color: #e11d48;
            box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
        }

            .ModernGNavLink.is-active .GNavIcon {
                fill: #ffffff;
            }

            .ModernGNavLink.is-active .GNavTitle,
            .ModernGNavLink.is-active .GNavSub {
                color: #ffffff;
            }

    .GNavIcon {
        width: 20px;
        height: 20px;
        fill: #e11d48;
        margin-bottom: 3px;
        transition: fill 0.2s ease;
    }

    .GNavTitle {
        font-size: 12px;
        font-weight: 700;
        color: #1e293b;
        line-height: 1.2;
        white-space: nowrap;
    }

    .GNavSub {
        font-size: 9px;
        font-weight: 600;
        color: #94a3b8;
        letter-spacing: 0.5px;
        margin-top: 2px;
        line-height: 1;
        white-space: nowrap;
    }

    /* PC パンくずリスト */
    #Pan_Wrapper {
        display: block;
        width: 1200px;
        margin: 10px auto;
        padding: 8px 16px;
        background: linear-gradient(to bottom, #f8fafc, #ffffff);
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 12px;
        line-height: 1.4;
    }

    #Pan_Container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }

    .Pan_Container_Item {
        display: inline-flex;
        align-items: center;
        font-size: 11.5px;
        font-weight: bold;
        color: #334155;
    }

        .Pan_Container_Item a {
            color: #334155;
        }

            .Pan_Container_Item a:hover {
                color: #e11d48;
                text-decoration: underline;
            }

    .Pan_Container_Pan {
        display: inline-flex;
        align-items: center;
        margin: 0 8px;
        color: #94a3b8;
        font-size: 11px;
    }

    /* PC h1見出し */
    #Header_Up_Container {
        display: block;
        width: 1200px;
        margin: 0 auto 14px auto;
        padding: 0;
        background: transparent;
        border: none;
    }

    #Header_Up_Text {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .Header_Up_LeftMenu {
        display: block;
        width: 100%;
    }

        .Header_Up_LeftMenu h1 {
            font-size: 17px;
            font-weight: bold;
            color: #0f172a;
            line-height: 1.4;
            margin: 0;
            padding: 2px 0 2px 12px;
            border-left: 5px solid #e11d48;
            letter-spacing: 0.3px;
        }

    /* PC時 非表示要素 */
    .sp-header-bar,
    .sp-genre-select-btn,
    .genre-modal-overlay,
    .drawer-overlay {
        display: none;
    }
}

/* --------------------------------------------------
   2. SP固定バー・モーダル・ドロワー基盤
   -------------------------------------------------- */
.sp-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 1001;
}

.sp-header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95px;
}

    .sp-header-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sp-header-logo img {
        height: 17px;
        width: auto;
        max-width: 95px;
        object-fit: contain;
        display: block;
    }

.sp-header-left-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    flex-shrink: 0;
}

.sp-hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.sp-hamburger-icon {
    width: 22px;
    height: 22px;
    fill: #1e293b;
}

.sp-genre-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
    padding: 0 7px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #334155;
    font-size: 10.5px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

    .sp-genre-select-btn svg {
        width: 11px;
        height: 11px;
        fill: #e11d48;
    }

    .sp-genre-select-btn:hover,
    .sp-genre-select-btn:active {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #0f172a;
    }

.sp-header-user {
    display: flex;
    align-items: center;
    z-index: 5;
    flex-shrink: 0;
}

.sp-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
    padding: 0 8px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #334155;
    font-size: 10.5px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

    .sp-user-btn svg {
        width: 12px;
        height: 12px;
        fill: #e11d48;
    }

    .sp-user-btn:hover,
    .sp-user-btn:active {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #0f172a;
    }

/* ジャンル選択モーダル */
.genre-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

    .genre-modal-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

.genre-modal-window {
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.genre-modal-overlay.is-open .genre-modal-window {
    transform: scale(1);
}

.genre-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.genre-modal-title {
    font-size: 15px;
    font-weight: bold;
    color: #1e293b;
}

.genre-modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

    .genre-modal-close:hover {
        color: #e11d48;
    }

.genre-modal-body {
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.genre-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.genre-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 4px;
    font-size: 11.5px;
    font-weight: bold;
    color: #334155;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -0.2px;
    transition: all 0.15s ease;
}

    .genre-modal-btn:active,
    .genre-modal-btn:hover {
        background: linear-gradient(to bottom, #f02b66, #d80046);
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(233, 30, 99, 0.35);
        border-color: transparent;
    }

    .genre-modal-btn.genre-modal-btn-parent {
        grid-column: 1 / -1;
        min-height: 46px;
        font-size: 14.5px;
        font-weight: 900;
        background-color: #ffffff;
        border: 1.5px solid #cbd5e1;
        color: #1e293b;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 2px;
    }

        .genre-modal-btn.genre-modal-btn-parent:hover,
        .genre-modal-btn.genre-modal-btn-parent:active {
            background: linear-gradient(to bottom, #f02b66, #d80046);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(233, 30, 99, 0.35);
            border-color: transparent;
        }

    .genre-modal-btn.is-active,
    .genre-modal-btn.is-active.genre-modal-btn-parent {
        background: linear-gradient(to bottom, #f02b66, #d80046);
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(233, 30, 99, 0.35);
        border-color: transparent;
        font-weight: 900;
    }

/* スライドドロワー */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .drawer-overlay.is-active {
        opacity: 1;
        pointer-events: auto;
    }

.drawer-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.drawer-overlay.is-active .drawer-menu {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close-icon {
    width: 20px;
    height: 20px;
    fill: #64748b;
}

.drawer-body {
    padding: 0 0 90px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

    .drawer-body .ModernGNav {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        order: 2;
    }

    .drawer-body .ModernGNavList {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border-top: 1px solid #e2e8f0;
    }

    .drawer-body .ModernGNavItem {
        width: 100%;
        flex: none;
        margin: 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .drawer-body .ModernGNavLink {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        min-height: 42px;
        padding: 8px 14px;
        background-color: #ffffff;
    }

        .drawer-body .ModernGNavLink.is-active {
            background: linear-gradient(135deg, #f02b66, #d80046);
        }

            .drawer-body .ModernGNavLink.is-active .GNavTitle {
                color: #ffffff;
            }

            .drawer-body .ModernGNavLink.is-active .GNavIcon {
                fill: #ffffff;
            }

    .drawer-body .GNavIcon {
        width: 18px;
        height: 18px;
        fill: #64748b;
    }

    .drawer-body .GNavTitle {
        font-size: 14px;
        font-weight: 700;
        color: #334155;
    }

    .drawer-body .GNavSub {
        display: none;
    }

/* --------------------------------------------------
   3. スマホ・タブレット表示 (899px以下)
   ================================================== */
@media screen and (max-width: 899px) {

    .sp-header-bar {
        display: flex !important;
    }

    /* 9項目メニューはスマホ時は非表示（ドロワーに退避済みのため） */
    #HeaderMenuBox > .ModernGNav {
        display: none !important;
    }

    /* PCヘッダーコンテナをスマホ時はバナー用コンテナとして利用 */
    #HeaderMenuContainer {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #HeaderMenuBox {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .headertitleBox {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

        /* 固定バーに既にあるロゴ・ログイン・コメント枠は非表示 */
        .headertitleBox .headertitlembox,
        .headertitleBox .headerUserName,
        .headertitleBox .HeaderTitleComment {
            display: none !important;
        }

        /* ★唯一のバナーを固定バー(50px)直下に横幅100%・上下余白ゼロで展開 */
        .headertitleBox .HeaderBnrWaku {
            display: block !important;
            width: 100% !important;
            max-height: none !important;
            margin-top: 50px !important; /* 固定バー50px回避 */
            margin-bottom: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding: 0 !important;
            line-height: 0 !important;
        }

        .headertitleBox .HeaderBnrBox,
        .headertitleBox .HeaderBnrBox a {
            display: block !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            line-height: 0 !important;
        }

            .headertitleBox .HeaderBnrBox img {
                width: 100% !important;
                max-width: 100% !important;
                height: auto !important;
                display: block !important;
                margin: 0 !important;
                padding: 0 !important;
                border-radius: 0 !important;
                object-fit: fill !important;
            }

    /* ② 一般専用パンくず (#Pan_Wrapper) */
    html body nav#Pan_Wrapper,
    html body #Pan_Wrapper {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 0 !important; /* バナー直下に隙間ゼロ密着 */
        padding: 6px 12px !important;
        background: linear-gradient(to bottom, #f8fafc, #ffffff) !important;
        border: none !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        clear: both !important;
    }

    /* バナーが存在しない場合のみ、後ろに続くパンくずが固定ヘッダー(50px)を回避 */
    body:not(:has(.HeaderBnrWaku)) #Pan_Wrapper {
        margin-top: 50px !important;
    }

    html body #Pan_Wrapper #Pan_Container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: max-content !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-sizing: border-box !important;
        list-style: none !important;
    }

    html body #Pan_Wrapper::-webkit-scrollbar {
        display: none !important;
    }

    /* ③ スマホ h1: ソリッド・ミニマル見出し (カプセル廃止・高級感重視) */
    #Header_Up_Container {
        display: block;
        width: 100%;
        margin: 4px 0 10px 0;
        padding: 6px 12px;
        background: transparent;
        border: none;
        border-bottom: 1px solid #f1f5f9;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    #Header_Up_Text {
        width: max-content;
        min-width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .Header_Up_LeftMenu {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

        .Header_Up_LeftMenu h1 {
            display: inline-block;
            font-size: 14px;
            font-weight: 700;
            color: #1e293b;
            line-height: 1.2;
            margin: 0;
            padding: 1px 0 1px 8px;
            background: transparent;
            border: none;
            border-left: 3px solid #e11d48;
            border-radius: 0;
            box-shadow: none;
            letter-spacing: 0.2px;
            white-space: nowrap;
        }

            .Header_Up_LeftMenu h1::before {
                display: none;
            }

    #Header_Up_Container::-webkit-scrollbar {
        height: 2px;
    }

    #Header_Up_Container::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 2px;
    }
}







/* ==========================================================
   YORU-COM スマホ専用クイックナビ
   省スペース・高視認性・5パネル構成
   ==========================================================

   ・PC（900px以上）は非表示
   ・スマホ（899px以下）は表示
   ・固定ヘッダー50pxの直下に追従
   ・高さ48px
   ・5パネル均等表示
   ・6パネル目以降は横スクロール
   ・アイコン20px・鮮やかな赤
   ・文字13px・太字・ほぼ黒
   ・外枠・下ラインなし
   ・パネル間の縦線のみ
   ・JavaScript不要
   ========================================================== */


/* PCでは非表示 */
.sp-quick-nav {
    display: none !important;
}


@media screen and (max-width: 899px) {

    /* ナビ全体 */
    .sp-quick-nav {
        position: sticky !important;
        top: 50px !important;
        left: 0;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        margin: 0;
        padding: 0;
        gap: 0;
        box-sizing: border-box;
        background: #ffffff;
        border: none;
        border-radius: 0;
        /* コンテンツとの境界を軽く表現 */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        /* 横スクロール */
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
    }


        /* スクロールバー非表示 */
        .sp-quick-nav::-webkit-scrollbar {
            display: none;
        }


        /* 各パネル */
        .sp-quick-nav .sp-quick-nav-link {
            display: flex !important;
            /* 5パネル均等表示 */
            flex: 0 0 20%;
            flex-direction: column;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: center;
            width: 20%;
            min-width: 20%;
            max-width: 20%;
            height: 48px;
            min-height: 48px;
            margin: 0;
            padding: 2px 0;
            gap: 2px;
            box-sizing: border-box;
            background: #ffffff;
            /* 外枠なし */
            border: none;
            border-radius: 0;
            box-shadow: none;
            color: #111827;
            text-align: center;
            text-decoration: none;
            scroll-snap-align: start;
            -webkit-tap-highlight-color: transparent;
        }


            /* パネル間の縦線 */
            .sp-quick-nav .sp-quick-nav-link + .sp-quick-nav-link {
                border-left: 1px solid #d1d5db;
            }


        /* SVGアイコン */
        .sp-quick-nav .sp-quick-nav-icon {
            display: block;
            width: 20px;
            height: 20px;
            min-width: 20px;
            min-height: 20px;
            max-width: 20px;
            max-height: 20px;
            flex: 0 0 20px;
            margin: 0;
            padding: 0;
            fill: #e11d48;
            color: #e11d48;
            border: none;
        }


        /* 日本語ラベル */
        .sp-quick-nav .sp-quick-nav-label {
            display: block;
            margin: 0;
            padding: 0;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.2;
            color: #111827;
            white-space: nowrap;
        }


        /* 英語サブラベル非表示 */
        .sp-quick-nav .sp-quick-nav-sub {
            display: none !important;
        }


        /* 選択中（将来用） */
        .sp-quick-nav .sp-quick-nav-link.is-active {
            background: #e11d48;
        }

            .sp-quick-nav .sp-quick-nav-link.is-active .sp-quick-nav-icon {
                fill: #ffffff;
                color: #ffffff;
            }

            .sp-quick-nav .sp-quick-nav-link.is-active .sp-quick-nav-label {
                color: #ffffff;
            }


        /* タップ時 */
        .sp-quick-nav .sp-quick-nav-link:active {
            background: #fff1f2;
        }


        /* キーボード操作時 */
        .sp-quick-nav .sp-quick-nav-link:focus-visible {
            outline: 2px solid #e11d48;
            outline-offset: -2px;
        }
}




/* ==========================================================================
   ヘッダー検索ボタン ＆ キーワード検索モーダル
   ========================================================================== */

/* --------------------------------------------------
   1. ヘッダー内 検索ボタン (PC用 ＆ スマホ用)
   -------------------------------------------------- */

/* 右側ボタングループ (スマホ側横並び強制) */
.sp-header-user {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    z-index: 5 !important;
    flex-shrink: 0 !important;
}

/* ★PC用 検索ボタン (バナーとマイページの間にカプセル型で美しく配置) */
.pc-global-search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 34px !important;
    padding: 0 16px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9999px !important; /* カプセル型ピル */
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    outline: none !important;
    margin: 0 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

    .pc-global-search-btn svg {
        width: 15px !important;
        height: 15px !important;
        fill: #e11d48 !important; /* ピンク赤アクセント */
        flex-shrink: 0 !important;
        display: block !important;
    }

    .pc-global-search-btn:hover {
        background-color: #fff1f2 !important;
        border-color: #f43f5e !important;
        color: #e11d48 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 8px rgba(244, 63, 94, 0.15) !important;
    }

/* ★スマホ用 検索ボタン (ロゴ横の30px正円アイコンボタン) */
.sp-global-search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50% !important; /* 洗練された正円 */
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    margin-right: 2px !important;
    transition: all 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

    .sp-global-search-btn svg {
        width: 14px !important;
        height: 14px !important;
        fill: #e11d48 !important;
        flex-shrink: 0 !important;
        display: block !important;
    }

    .sp-global-search-btn:active,
    .sp-global-search-btn:hover {
        background-color: #f8fafc !important;
        border-color: #94a3b8 !important;
    }

/* --------------------------------------------------
   2. モーダル背景オーバーレイ ＆ ウィンドウ本体
   -------------------------------------------------- */

/* モーダル背景オーバーレイ (通常時は完全に非表示) */
.global-search-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
}

    /* 開いた時 (PC・スマホ問わず画面中央に表示) */
    .global-search-modal-overlay.is-open {
        display: block !important;
    }

/* モーダルウィンドウ本体 (上下左右 完全中央配置 ＆ iPhoneはみ出し防止) */
.global-search-modal-content {
    position: absolute !important;
    top: 50% !important; /* 縦中央50% */
    left: 50% !important; /* 横中央50% */
    transform: translate(-50%, -50%) !important; /* 完全ど真ん中へ固定 */
    width: calc(100% - 24px) !important;
    max-width: 480px !important; /* PC・タブレットでも美しく収まる横幅 */
    height: auto !important;
    max-height: 80dvh !important; /* iPhoneのアドレスバーでも絶対はみ出させない */
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: gSearchModalCenterFadeIn 0.25s ease-out !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

@keyframes gSearchModalCenterFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* --------------------------------------------------
   3. モーダル各部パーツ
   -------------------------------------------------- */

/* モーダルヘッダー */
.global-search-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
}

.global-search-modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
}

    .global-search-modal-title svg {
        width: 18px !important;
        height: 18px !important;
        fill: #e11d48 !important;
    }

.global-search-modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 26px !important;
    line-height: 1 !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    outline: none !important;
    transition: color 0.15s ease !important;
}

    .global-search-modal-close:hover {
        color: #0f172a !important;
    }

/* 店舗 / キャスト 切り替えトグル */
.GlobalSearchToggleContainer {
    margin: 14px auto 4px auto !important;
    text-align: center !important;
    width: 90% !important;
    max-width: 360px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.GlobalSearchToggleSwitch {
    display: flex !important;
    background-color: #e2e8f0 !important;
    border-radius: 25px !important;
    padding: 3px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box !important;
}

    .GlobalSearchToggleSwitch .ToggleBtn {
        flex: 1 1 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 36px !important;
        font-size: 13.5px !important;
        font-weight: bold !important;
        color: #475569 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 22px !important;
        cursor: pointer !important;
        transition: all 0.2s ease-in-out !important;
        user-select: none !important;
        white-space: nowrap !important;
        outline: none !important;
    }

    /* 選択中タブ (指定の統制デザイン完全適用) */
    .GlobalSearchToggleSwitch .ToggleActive {
        background: linear-gradient(to bottom, #f02b66, #d80046) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(233, 30, 99, 0.35) !important;
        cursor: default !important;
    }

/* 本文エリア (キーワード入力 ＆ 決定ボタン) */
.global-search-modal-body {
    padding: 14px 18px 18px 18px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

.search-input-group {
    margin-bottom: 16px !important;
}

.search-input-label {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: bold !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
}

.search-modal-text-input {
    width: 100% !important;
    height: 44px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

    .search-modal-text-input:focus {
        border-color: #f43f5e !important;
        box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15) !important;
    }

/* 決定ボタン (指定の統制デザイン完全適用) */
.search-submit-wrap {
    text-align: center !important;
    margin-top: 8px !important;
}

.BtnGlobalSearchSubmit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 44px !important;
    padding: 0 24px !important;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    background: linear-gradient(to bottom, #f02b66, #d80046) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.35) !important;
    border: none !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: opacity 0.2s ease, transform 0.1s ease !important;
}

    .BtnGlobalSearchSubmit:hover {
        opacity: 0.92 !important;
        transform: translateY(-1px) !important;
    }

/* フッター (閉じるボタン) */
.global-search-modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.BtnGlobalSearchCancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    min-width: 120px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

    .BtnGlobalSearchCancel:hover {
        background-color: #f1f5f9 !important;
        color: #1e293b !important;
    }

/* --------------------------------------------------
   4. レスポンシブ切り替え (PC用ボタン / スマホ用ボタン)
   -------------------------------------------------- */
@media screen and (min-width: 900px) {
    .sp-global-search-btn {
        display: none !important; /* PCではスマホ用アイコンを非表示 */
    }
}

@media screen and (max-width: 899px) {
    .pc-global-search-btn {
        display: none !important; /* スマホではPC用ボタンを非表示 */
    }
}




/* ==========================================================================
   夜コム AI店舗検索 連携ボタン用スタイル
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. パソコン限定：ヘッダー右上のAI検索ボタン（常時表示）
      ※モバイル（768px以下）では非表示
   -------------------------------------------------------------------------- */
.HeaderAiSearchBtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #10b981, #059669); /* エメラルドグリーン */
    color: #ffffff !important;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    vertical-align: middle;
    margin-right: 8px;
    white-space: nowrap; /* 縮み・折り返し防止 */
    flex-shrink: 0;
}

    .HeaderAiSearchBtn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(16, 185, 129, 0.45);
        color: #ffffff !important;
    }

.HeaderAiIcon {
    font-size: 14px;
    animation: aiSparkle 2s infinite ease-in-out;
}

@keyframes aiSparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

/* ★スマホ・タブレット（768px以下）のヘッダーからは非表示 */
@media screen and (max-width: 768px) {
    .HeaderAiSearchBtn {
        display: none !important;
    }
}


/* ==========================================================================
   店舗AI検索 フローティングボタン（下部余白スッキリ版）
   ========================================================================== */

/* 1. 通常時（広告なし）：画面左下にピタッと着地（24px ➡ 12pxに低減） */
.FloatingAiContainer {
    position: fixed;
    left: 14px;
    right: auto !important;
    bottom: 12px; /* ★下の余計な隙間をなくしてスッキリ配置 */
    z-index: 999;
    display: block;
    transition: bottom 0.25s ease;
}

/* 2. 広告バナーが出ている時：バナーのすぐ上にピタッと乗る高さ */
body.has-pop-ad .FloatingAiContainer,
body:has(#FooterPopBnrWrap.is-active) .FloatingAiContainer {
    bottom: 78px !important;
}

/* ボタン本体スタイル */
.FloatingAiBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #242b35 0%, #111827 100%);
    border: 2px solid #10b981;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 10px rgba(16, 185, 129, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

    .FloatingAiBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 14px rgba(16, 185, 129, 0.6);
    }

    .FloatingAiBtn:active {
        transform: scale(0.92);
    }

.FloatingAiSparkle {
    font-size: 15px;
    line-height: 1;
    margin-bottom: 2px;
}

.FloatingAiText {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #e5e7eb;
}

.FloatingAiBadge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 8px;
    border: 1px solid #ffffff;
    line-height: 1.2;
}

/* スマホ表示時の微調整 */
@media screen and (max-width: 640px) {
    .FloatingAiContainer {
        left: 12px;
        bottom: 12px;
    }

    body.has-pop-ad .FloatingAiContainer,
    body:has(#FooterPopBnrWrap.is-active) .FloatingAiContainer {
        bottom: 78px !important;
    }

    .FloatingAiBtn {
        width: 50px;
        height: 50px;
    }
}


/* モーダル内のセクション見出し */
.genre-modal-sec-title {
    font-size: 13px !important;
    font-weight: bold !important;
    color: #1e293b !important;
    padding: 2px 0 6px 8px !important;
    margin-bottom: 8px !important;
    border-left: 3px solid #e11d48 !important;
    line-height: 1.2 !important;
}

/* モーダルヘッダータイトルの汎用化 */
.genre-modal-title {
    font-size: 15px !important;
    font-weight: bold !important;
    color: #1e293b !important;
}