/* デスクトップ用の基本スタイル */
#js-header {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    background: #F8F8F8;
    height: 100px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 999;
}

/* スクロール時のスタイル */
.l-header-fix #js-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    padding: 0 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 管理バー対応 */
.admin-bar #js-header {
    top: 32px;
}

/* --- ヘッダーレイアウト --- */
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
}

/* メニューとロゴの幅設定 */
.header-left-menu,
.header-right-menu {
    flex: 2;
    max-width: 38%;
    display: flex;
}

.header-logo {
    flex: 1;
    max-width: 24%;
    text-align: center;
}

/* メニューリストの共通スタイル */
.menu-list,
.right-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

/* メニューリンクの共通スタイル */
.menu-list a,
.right-menu-list a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

/* メニューの配置 */
.header-left-menu {
    justify-content: flex-end;
}

.header-right-menu {
    justify-content: flex-start;
}

/* ホバーエフェクト */
.menu-list a:not(.shop-menu > a):hover,
.right-menu-list a:hover {
    color: #0073e6;
    opacity: 0.7;
}

/* ロゴスタイル */
.header-logo img {
    max-height: 60px;
    height: auto;
    width: auto;
    transition: max-height 0.3s ease-in-out;
}

.l-header-fix .header-logo img {
    max-height: 50px;
}

/* アイコンスタイル */
.right-menu-list a i {
    font-size: 16px;
    margin-right: 0px;
    color: #333;
}

.right-menu-list .insta-icon i {
    color: #e1306c;
}

/* SNSアイコンのテキスト非表示 */
.right-menu-list .x-icon a span,
.right-menu-list .insta-icon a span {
    display: none;
}

/* Shopメニューのスタイル */
.menu-list .shop-menu > a {
    background-color: #3399cc;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

.menu-list .shop-menu > a:hover {
    background-color: #287a9c;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.menu-list .shop-menu.current-menu-item > a {
    background-color: #287a9c;
}

.menu-list .shop-menu {
    margin: 0 8px;
}

/* モバイルメニューボタンの調整 */
.mobile-menu-button {
    display: none;
    width: 30px;
    height: 30px;
    padding: 0;
    position: fixed;
    right: 15px;  /* 右側に固定 */
    top: 15px;    /* 上部に固定 */
    transform: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9999;
}
/* モバイル用スタイル */
@media screen and (max-width: 991px) {
    .p-menu-button {
        position: absolute !important; /* fixedからabsoluteに変更 */
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
   /* ヘッダーの基本構造のみ上書き */
    #js-header {
        position: fixed !important;
        height: 60px !important;
    }


    /* メニューを非表示 */
    .header-left-menu,
    .header-right-menu {
        display: none !important;
    }

    /* モバイルロゴ調整 */
    .header-logo {
        flex: 0 1 auto !important;
        max-width: none !important;
        margin: 0 auto 0 0 !important;
    }

    /* ドロワー関連 */
    .p-drawer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9990;
        visibility: hidden;
        pointer-events: none;
    }

    .p-drawer-contents {
        position: fixed;
        top: 0;
        right: -420px;
        bottom: 0;
        width: calc(100vw - 50px);
        max-width: 420px;
        background: #fff;
        transition: right 0.3s ease;
        z-index: 9995;
        overflow-y: auto;
        padding-top: 60px;
    }

    .p-drawer-overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.3);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 9991;
    }

    /* ドロワー表示時 */
    body.show-drawer {
        overflow: hidden;
    }

    body.show-drawer .p-drawer {
        visibility: visible;
        pointer-events: auto;
    }

    body.show-drawer .p-drawer-contents {
        right: 0;
    }

    body.show-drawer .p-drawer-overlay {
        opacity: 1;
    }

    /* ハンバーガーメニュー */
    .p-menu-button {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    /* モバイルロゴ調整 */
    .header-logo {
        margin: 0 auto 0 0;
        padding-right: 40px;
    }
    
    /* モバイルロゴ表示制御 */
    .p-header-logo-desktop {
        display: none !important;
    }

    .p-header-logo-mobile {
        display: block !important;
    }

    .p-header-logo-mobile img {
        max-height: 40px !important;
        width: auto !important;
    }
    
        /* クローズボタンのスタイル */
    .p-drawer-contents-close {
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 9997;
    }

    .p-drawer-contents-close span {
        position: absolute;
        left: 15px;
        width: 30px;
        height: 2px;
        background-color: #000;
        transition: transform 0.3s ease;
    }

    .p-drawer-contents-close span:first-child {
        top: 29px;
        transform: rotate(45deg);
    }

    .p-drawer-contents-close span:last-child {
        top: 29px;
        transform: rotate(-45deg);
    }

    /* ドロワーメニューが開いているときのスタイル調整 */
    body.show-drawer .p-drawer {
        visibility: visible;
        pointer-events: auto;
    }

    body.show-drawer .p-drawer-contents {
        transform: translateX(0);
        right: 0;
    }

    body.show-drawer .p-drawer-overlay {
        opacity: 1;
        pointer-events: auto;
    }
        .p-drawer-contents-close {
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 9997;
        visibility: visible !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .p-drawer-contents-close span {
        position: absolute;
        width: 30px;
        height: 2px;
        background-color: #000;
        transition: transform 0.3s ease;
    }

    .p-drawer-contents-close span:first-child {
        transform: rotate(45deg);
    }

    .p-drawer-contents-close span:last-child {
        transform: rotate(-45deg);
    }

    /* オーバーレイのスタイル */
    .p-drawer-overlay {
        cursor: pointer;
    }

    /* メニューが開いているときのスタイル */
    body.show-drawer .p-drawer-contents {
        visibility: visible;
        right: 0;
    }
        .p-drawer-close {
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 9997;
    }

    .p-drawer-close span {
        position: absolute;
        left: 15px;
        width: 30px;
        height: 2px;
        background-color: #000;
    }

    .p-drawer-close span:first-child {
        top: 29px;
        transform: rotate(45deg);
    }

    .p-drawer-close span:last-child {
        top: 29px;
        transform: rotate(-45deg);
    }
    
        /* HOMEメニュー用のスタイル */
    .mobile-home-menu {
        border-bottom: 0px solid #ddd;
        margin-bottom: 0 !important;
    }

    .mobile-home-menu li a {
        display: block;
        padding: 15.6px 20px;
        line-height: 1.2;
    }
}

/* PCでは非表示 */
@media screen and (min-width: 992px) {
    .mobile-home-menu {
        display: none;
    }
    
    
}

/* ドロワーメニューの基本スタイル */
.p-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    visibility: hidden;
}

.p-drawer-contents {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    z-index: 9999;
    width: calc(100vw - 50px);
    max-width: 420px;
    background: #fff;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 60px;
}

.p-drawer-contents-inner {
    padding: 20px 0;
}

.p-drawer-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.show-drawer {
    overflow: hidden;
}

body.show-drawer .p-drawer {
    visibility: visible;
}

body.show-drawer .p-drawer-contents {
    right: 0;
}

body.show-drawer .p-drawer-overlay {
    opacity: 1;
}

/* (以下、既存のドロワーメニュースタイルは省略) */

@media (min-width: 992px) {
    .p-header-logo-desktop {
        display: block;
    }

    .p-header-logo-mobile {
        display: none;
    }
}

/* ドロワーメニュー内のメニュー項目とアイコンのスタイリング */
@media screen and (max-width: 991px) {
    /* Shop項目の特別なスタイル */
    .p-drawer-menu .shop-menu {
        background-color: #fff8f0;
    }

    .p-drawer-menu .shop-menu a {
        padding: 15.6px 20px;
        display: flex;
        align-items: center;
        color: #333;
    }

    /* Shopアイコンの追加 */
    .p-drawer-menu .menu-item.shop-menu a i {
        font-size: 16px;
        margin-right: 10px;
        color: #f97316;
    }
}