/* 全体のスタイル */
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;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  font-family: 'Noto Sans JP', sans-serif;
}

.modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 2.5em 2em;
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.2s ease-in-out;
  color: #333;
  line-height: 1.6;
}

.modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 1em;
  color: #333;
}

.modal-content p {
  margin-bottom: 0.8em;
  font-size: 0.95rem;
}

.modal-content a {
  color: #007bff;
  font-weight: bold;
  text-decoration: underline;
}

.modal-content a:hover {
  text-decoration: none;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

    .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;
    }

    .modal-content {
        width: 90%;
        padding: 1.5em 1em;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .close {
        top: 10px;
        right: 12px;
        font-size: 20px;
    }
}