@charset "UTF-8";

/* スマートフォン用モーダルメニューのスタイル */

/* デフォルトでは非表示 */
.sp-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 999999; /* 既存のヘッダーより上に表示 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* アクティブな時に表示 */
.sp-modal-overlay.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sp-modal-container {
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

/* ヘッダーエリア（MENUタイトルと閉じるボタン） */
.sp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.sp-modal-title {
  font-size: 1.5rem;
  color: #a7d1e9;
  letter-spacing: 0.1em;
}

.sp-close-btn {
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: #9E9E9E;
  cursor: pointer;
  padding: 0 10px;
}

/* メニュー本体 */
.sp-modal-body {
  padding-bottom: 50px;
}

.sp-menu-section {
  margin-bottom: 30px;
}

/* 商品カテゴリの見出し */
.sp-menu-heading {
  font-size: 1.3rem;
  color: #333;
  margin: 0 0 15px 0;
  padding-left: 10px;
  border-left: 4px solid #a7d1e9; /* サイトのテーマカラーに合わせ調整 */
}

/* リストスタイル */
.sp-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-menu-list li {
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f0;
}

.sp-menu-list li a {
  display: block;
  padding: 15px 10px;
  color: #333;
  text-decoration: none;
  font-size: 1.3rem;
  transition: background-color 0.2s;
  position: relative;
}

.sp-menu-list li a:hover {
  background-color: #f9f9f9;
}

/* 矢印アイコン（擬似要素） */
.sp-menu-list li a::after {
  content: "›";
  position: absolute;
  right: 10px;
  color: #ccc;
  font-size: 1.2rem;
  font-family: Arial, sans-serif;
}

/* 商品カテゴリ（サブリスト）のデザイン調整 */
.sp-menu-list.sub-list li a {
  font-size: 1.3rem;
  padding-left: 15px; /* インデント */
  color: #a7d1e9;
  font-weight: bold;
}

/* PC画面では強制的に非表示（念のため） */
@media screen and (min-width: 769px) {
  .sp-modal-overlay {
    display: none !important;
  }
}