
/* BeautyStudiocolor メニューフィルター用CSS */
.post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
  content: "";
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color_htag) 0%,
    var(--color_htag) 35%,
    rgba(76, 175, 80, 0.2) 100%
  );
  box-shadow: 0 1px 2px rgba(76, 175, 80, 0.3);
  border-radius: 1px;
}

/* トップページ用カードスタイル */
.top-page-card {
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.top-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* カード画像のエフェクト強化 */
.top-page-card .bs-card-image img {
  transition: transform 0.6s ease;
}

.top-page-card:hover .bs-card-image img {
  transform: scale(1.05);
}

/* フィルターセクション全体のスタイル */
.bs-menu-filter {
  margin-bottom: 40px;
  font-family: 'Noto Sans JP', sans-serif;
}

.bs-filter-section {
  margin-bottom: 30px;
}

.bs-filter-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 5px;
  color: #333;
  position: relative;
}

/* ボタングループのスタイル */
.bs-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  height: 100%!important;
}

/* フィルターボタンのスタイル */
.bs-filter-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bs-filter-btn:hover {
  background-color: #edf6ed;
  border-color: #5ebe61;
}

.bs-filter-btn.active {
  background-color: #5ebe61;
  color: #fff;
  border-color: #5ebe61;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* フィルター結果エリア */
.bs-filter-result-area {
  margin-top: 30px;
}

.bs-filter-result-info {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
  background-color: #edf6ed;
  padding: 10px 15px;
  border-left: 3px solid #5ebe61;
}

/* メニューカードグリッド */
.bs-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* メニューカード */
.bs-menu-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  position: relative;
  height: 100%;
}

.bs-menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* オプションカード用スタイル */
.option-card {
  border-color: #edf6ed;
  background-color: #fafafa;
}

/* オプションバッジ */
.option-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #5ebe61;;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

/* カード画像 */
.bs-card-image {
  height: 240px;
  overflow: hidden;
}

.bs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bs-menu-card:hover .bs-card-image img {
  transform: scale(1.05);
}

/* カードコンテンツ */
.bs-card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bs-card-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
  min-height: 2.5rem;
}

.bs-card-description {
  color: #666;
  font-size: 1rem;
  margin-bottom: 15px;
}

@media (min-width: 768px) {

  .bs-card-description {
    min-height: 150px;
  }
}

/* カード情報の強調表示 */
.bs-card-info {
  background-color: #f9f9f9;
  padding: 8px;
  border-radius: 5px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bs-time {
  font-weight: bold;
  color: #666;
  background-color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid #eee;
}

.bs-price {
  font-size: 18px;
  font-weight: bold;
  color: #5ebe61;
}

/* ボタン */
.bs-card-button {
  display: block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 詳細を見るボタン */
.details-button {
  background-color: #edf6ed;
  color: #5ebe61;
  border: 1px solid #5ebe61;
  transition: all 0.3s ease;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.details-button:hover {
  background-color: #5ebe61;
  color: #fff;
}

/* オプションの詳細を見るボタン */
.option-details-button {
  background-color: #f0f0f0;
  color: #666;
  border: 1px solid #ccc;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.option-details-button:hover {
  background-color: #e0e0e0;
  color: #444;
}

/* オプション追加ボタン */
.bs-add-option-btn {
  background-color: #f9f8ff;
  color: #5ebe61;
  border: 1px solid #5ebe61;
}

.bs-add-option-btn:hover {
  background-color: #edf6ed;
}

.bs-add-option-btn.option-added {
  background-color: #d3edd3;
  color: #3c8c3c;
  border-color: #a3d9a3;
}

/* オプション選択肢エリア */
.bs-visible-options {
  margin: 10px 0;
  padding: 8px 0;
}

.bs-options-heading {
  font-size: 13px;
  color: #5ebe61;
  margin: 0 0 5px 0;
  font-weight: bold;
  position: relative;
  padding-left: 18px;
}

.bs-options-heading::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 15px;
  color: #5ebe61;
}

/* オプションチップスタイル */
.bs-options-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.bs-option-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 6px 10px;
  background-color: #edf6ed;
  border-radius: 4px;
  font-size: 12px;
  max-width: calc(50% - 6px);
  min-width: calc(50% - 6px);
  box-sizing: border-box;
}
.menu-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff9a8b;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bs-option-chip:hover {
  background-color: #d2efd2;
}

.bs-option-chip .option-name {
  font-weight: bold;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-option-chip .option-time-price {
  color: #5ebe61;
  font-size: 11px;
  margin-top: 2px;
}

/* 組み合わせ可能なメニュー表示 */
.bs-combinable-with {
  margin: 10px 0;
  padding: 8px;
  background-color: #f9f9f9;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.combinable-label {
  color: #888;
  margin-right: 5px;
}

.combinable-menu {
  color: #444;
  font-weight: bold;
}

/* メニュー一覧へのリンクエリア */
.bs-more-details {
  text-align: center;
  margin: 40px 0 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.bs-more-details p {
  color: #666;
  margin-bottom: 15px;
}

.bs-all-menu-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #5ebe61;;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(211, 129, 155, 0.2);
}

.bs-all-menu-button:hover {
  background-color: #c56e8a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(211, 129, 155, 0.3);
}

/* 検索結果なしメッセージ */
.bs-no-results {
  background-color: #fff7f7;
  border-left: 3px solid #d23669;
  padding: 15px;
  color: #555;
  margin-top: 20px;
}

/* 非表示クラス */
.hidden {
  display: none;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .bs-card-image {
    height: 200px;
  }
  .bs-menu-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .bs-filter-btn {
      font-size: 0.8rem;
      padding: 6px 12px;
  }

  .bs-option-chip {
      min-width: 100%;
      max-width: 100%;
  }

  .bs-time {
      font-size: 12px;
  }

  .bs-price {
      font-size: 16px;
  }
}

@media (max-width: 480px) {
  .bs-menu-grid {
      grid-template-columns: 1fr;
  }

  .bs-filter-buttons {
      gap: 5px;
  }

  .bs-filter-btn {
      font-size: 0.75rem;
      padding: 5px 10px;
      flex: 1 0 calc(33% - 5px);
      text-align: center;
  }

  .bs-options-heading {
      font-size: 12px;
  }

  .bs-option-chip {
      padding: 5px 8px;
      font-size: 11px;
  }

  .bs-option-chip .option-time-price {
      font-size: 10px;
  }
}
/* コンパクトフィルターのベーススタイル */
.bs-compact-filter {
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 30px;
}

/* 押しやすいタブナビゲーション */
.bs-tab-navigation {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 15px;
  position: relative;
}

/* スクロール時の意図しない動作を防止 */
.bs-compact-filter {
  touch-action: pan-y; /* 垂直スクロールのみ許可 */
  overscroll-behavior-y: contain; /* バウンドスクロールを防止 */
}

.bs-tab-content {
  overscroll-behavior-y: contain; /* バウンドスクロールを防止 */
}

.bs-filter-buttons {
  overflow-x: auto; /* 横スクロール可能 */
  overflow-y: hidden; /* 縦スクロール防止 */
  -webkit-overflow-scrolling: touch; /* モバイルでのスムーズなスクロール */
  overscroll-behavior-x: contain; /* 水平方向のバウンドスクロールを防止 */
}

/* フィルターボタンのタッチ領域を調整 */
.bs-filter-btn {
  touch-action: manipulation; /* タップ操作を最適化 */
  -webkit-tap-highlight-color: transparent; /* タップ時の色付けを無効 */
}

/* タブの位置に応じてインジケーターを移動 */
.bs-tab-nav.course-active::after {
  left: 33.333%; /* コースタブが選択されている場合 */
}

.bs-tab-nav.time-active::after {
  left: 66.666%; /* 時間タブが選択されている場合 */
}

.bs-tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 5px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-tab-item.active {
  color: #4caf50;
  font-weight: bold;
  background-color: #e8f5e9;
  border-bottom: 2px solid #4caf50;
}

/* タブのタッチエリア拡大 */
.bs-tab-item::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  bottom: -10px;
  z-index: 1;
}

/* ピル型フィルターボタン（よりタップしやすく） */
.bs-filter-btn {
  background-color: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
  min-height: 44px; /* タップしやすいサイズ */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: normal;
}

.bs-filter-btn:hover, .bs-filter-btn:focus {
  background-color: #e8f5e9;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.bs-filter-btn.active {
  background-color: #4caf50;
  color: white;
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
  font-weight: bold;
}
.bs-nav-controls{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 矢印ボタンを大きく、押しやすく */
.bs-nav-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
  color: #4caf50;
  font-size: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bs-nav-button:hover, .bs-nav-button:focus {
  background-color: #f5f5f5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* 結果エリアスタイル */
.bs-filter-result {
  background-color: #f1f8e9;
  padding: 12px 15px;
  border-radius: 5px;
  margin-top: 15px;
  border-left: 3px solid #4caf50;
  font-size: 15px;
  line-height: 1.4;
}

/* モバイル対応 */
@media (max-width: 480px) {
  .bs-tab-item {
    font-size: 14px;
    padding: 10px 0;
  }

  .bs-filter-btn {
    padding: 10px;
    font-size: 14px;
    margin: 4px;
  }

  .bs-filter-buttons {
    margin: 0 -4px;
  }
}
