/* 全体のスタイル */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 80px; /* ヘッダーの高さ分の余白を確保 */
}

/* 共通ヘッダー */
.header {
    height: 80px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* 左右に要素を分ける */
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: inherit; /* 背景色を継承 */
}

/* 店舗用ヘッダー */
.store-header {
    background-color: white;
    color: #666;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 顧客用ヘッダー */
.customer-header {
    background-color: white;
    color: #666;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ロゴ部分 */
.header .store-logo, .header .customer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    text-decoration: none;
}

/* ナビゲーションメニュー */
.header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end; /* 右端に寄せる */
    margin-right: 30px; /* 右端の余白を調整 */
}

.header nav ul li a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* ハンバーガーメニュー（デフォルトは非表示） */
.store-menu-toggle, .customer-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 15px; /* ヘッダー内で中央寄せ */
    right: 50px;
    z-index: 1100;
    width: 50px;
    height: 50px;
}

.store-menu-toggle div, .customer-menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: #F5F5F5;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* モバイルメニュー（デフォルトは非表示） */
.store-mobile-menu, .customer-mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 1000;
}

.store-mobile-menu ul, .customer-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-mobile-menu ul li, .customer-mobile-menu ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.store-mobile-menu ul li:last-child, .customer-mobile-menu ul li:last-child {
    border-bottom: none;
}

.store-mobile-menu ul li a, .customer-mobile-menu ul li a {
    display: block;
    color: #666;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 20px;
}

/* レスポンシブ対応 */
@media (max-width: 560px) {

    .header {
        justify-content: flex-start; /* 子要素を右寄せに */
    }
    .store-logo {
        margin-right: auto; /* ロゴを左端に固定 */
    }

    /* 通常ナビゲーションメニューを非表示 */
    .header nav ul {
        display: none;
    }

    /* ハンバーガーメニューを表示 */
    .store-menu-toggle, .customer-menu-toggle {
        display: flex;
    }

    .store-menu-toggle div, .customer-menu-toggle div {
        width: 25px;
        height: 3px;
        background-color: #666; /* デバッグ用の色 */
        margin: 4px 0;
    }

    /* モバイルメニューの表示制御 */
    .store-mobile-menu.active, .customer-mobile-menu.active {
        display: flex;
    }
}