/* =========================================
   全体・背景の設定
========================================= */
body, html {
  font-family: sans-serif; margin: 0; padding: 0; height: 100%; width: 100%;
}
html { background-color: #F8F8F8; }
body { background-color: #F8F8F8; padding-top: max(110px, calc(env(safe-area-inset-top) + 95px)); padding-bottom: 120px; }

/* =========================================
   新・ヘッダー関連
========================================= */
.header {
  position: fixed; top: 0; left: 0; width: 100%; background-color: #fff;
  padding: max(15px, env(safe-area-inset-top)) 15px 15px; box-sizing: border-box; z-index: 100; box-shadow: none;
}
.header-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; position: relative;
}

/* 🌟 HalalCheckロゴ（下揃えの魔法＆サイズ調整） 🌟 */
.header-top .logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex;
  align-items: baseline; /* 💡 ここが魔法！大きさが違っても「文字の下の線」でピッタリ揃えます */
  margin: 0; color: #2F2F2F;
  font-size: 26px; /* 💡 Halal の大きさ（ここで自由に変更可能） */
  font-weight: 900;
}
.header-top .logo span {
  font-size: 16px; /* 💡 Check の大きさ（ここで自由に変更可能） */
  font-weight: 300;
  margin-left: 2px;
  color: #3DC522;
}

.icon-btn { background: none; border: none; padding: 0; display: flex; text-decoration: none; }
.search-bar { display: flex; align-items: center; background-color: #f5f5f5; border-radius: 20px; padding: 8px 15px; }
.search-bar .search-icon { width: 18px; height: 18px; margin-right: 10px; }
.search-bar input { border: none; background: transparent; outline: none; font-size: 16px; width: 100%; color: #333; }

/* =========================================
   🌟 広告バナー（ドットのデザイン追加）🌟
========================================= */
.banner-container {
  width: calc(100% - 30px); /* 左右に15pxずつの余白 */
  margin: 20px auto 30px auto;
  overflow: hidden; position: relative; border-radius: 12px;
}
.banner-wrapper { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.banner-slide { min-width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; }
.banner-slide a { display: block; width: 100%; height: 100%; } /* リンクをクリックしやすく */
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }

/* 💡 ドット（インジケーター）のデザイン */
.banner-indicators {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.dot.active {
  background: rgba(255, 255, 255, 1);
  width: 16px; border-radius: 4px; /* 現在の場所だけ横長にして強調するプロのテクニック */
}

/* =========================================
   🌟 セクション見出しとカードリスト（左端をピタッと揃える）🌟
========================================= */
.section { padding-left: 15px; } /* 💡 23pxから15pxに変更し、バナーの左端と一直線に揃えました！ */
.section-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 15px 10px 0; }
.section-header h2 { font-size: 20px; color: #2F2F2F; margin: 0; }
.section-header a { text-decoration: none; color: #0D92F4; font-size: 14px; }
.card-list { display: flex !important; overflow-x: auto !important; gap: 12px !important; padding: 10px 15px 20px 0 !important; margin: 0 !important; -ms-overflow-style: none; scrollbar-width: none; }
.card-list::-webkit-scrollbar { display: none; }

/* 💡 カード1枚の設定 */
.card { flex: 0 0 auto; width: 130px; background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: none; text-decoration: none; color: inherit; display: block; }
.card > img { width: 130px !important; height: 130px !important; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px 8px 0 0; }

/* 💡 商品名の表示設定 */
.card .name-en { font-size: 10px; color: #999; margin: 4px 0 0 0; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .name-ja { margin: 2px 0 4px 0; font-size: 12px; padding: 0 10px; color: #2F2F2F; font-weight: bold; height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }

/* 💡 カードのフッター（タグとハート） */
.card-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 12px 10px; }
.tag { font-size: 10px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.halal { color: #3DC522; }
.muslim_friendly, .muslim-friendly { color: #36B9B6; }
.cleaned_line, .cleaned-line { color: #5BA4CF; }
.haram { color: #EE4E4E; }
.doubtful { color: #FFAD60; }
.tag img { width: 12px !important; height: 12px !important; vertical-align: middle; margin-right: 4px; border-radius: 0 !important; }
.heart-button { background: none; border: none; padding: 0; cursor: pointer; }
.heart-icon, .heart-button img { width: 16px !important; height: 16px !important; border-radius: 0 !important; }

/* =========================================
   お知らせポップアップ ＆ 通知の赤い点
========================================= */
.notif-badge {
  position: absolute; top: -2px; right: 0px; width: 8px; height: 8px;
  background: #EE4E4E; border-radius: 50%; border: 2px solid #fff;
  display: none;
}

/* 背後をうっすら透けさせる */
.notif-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.45); z-index: 1000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.notif-modal.show { opacity: 1; pointer-events: auto; }

/* 横幅を狭くして縦長にし、角の丸みを優しく（12px）する */
.notif-modal-content {
  background: #fff;
  width: 72%;
  max-width: 280px;
  border-radius: 12px;
  padding: 24px 18px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  transform: translateY(20px); transition: transform 0.3s; text-align: center;
}
.notif-modal.show .notif-modal-content { transform: translateY(0); }

/* バツボタン */
.notif-close {
  position: absolute;
  top: 10px; right: 10px;
  background: #fff; border: 1px solid #eee;
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; display: flex; justify-content: center; align-items: center;
  z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 💡 青に近い緑（通常用） */
.notif-detail-btn {
  display: block; width: 100%; padding: 12px 0;
  background: #36B9B6; /* 青みの強い緑（ティファニーブルーに近い） */
  color: #fff;
  border-radius: 8px;
  text-decoration: none; font-weight: bold; margin-top: 15px; font-size: 14px;
  box-shadow: 0 4px 10px rgba(54, 185, 182, 0.2);
}


/* =========================================
   🌟 NEW: ランク・ポイントダッシュボード 🌟
========================================= */
.rank-dashboard {
  border-radius: 16px; padding: 20px; margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative; overflow: hidden;
}

/* 💡 アプリに馴染む上品なグラデーション（ランク別） */
.rank-bronze { background: linear-gradient(135deg, #FDF6EE 0%, #E6C2A5 100%); color: #5A3D2B; }
.rank-silver { background: linear-gradient(135deg, #F8F9FA 0%, #D1D5DB 100%); color: #374151; }
.rank-gold   { background: linear-gradient(135deg, #FFFBED 0%, #F5D15F 100%); color: #594911; }
.rank-platinum { background: linear-gradient(135deg, #F0F4FF 0%, #B0C4DE 100%); color: #2C3E6B; }

.rank-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.rank-badge-area { display: flex; align-items: center; gap: 12px; }
.rank-label { font-size: 11px; opacity: 0.8; font-weight: bold; letter-spacing: 0.5px; }
.rank-name { font-size: 22px; font-weight: 900; letter-spacing: 1px; margin-top: 2px; }
.rank-xp { font-size: 24px; font-weight: bold; }

.xp-gauge-container { width: 100%; height: 8px; background: rgba(0,0,0,0.1); border-radius: 10px; margin: 8px 0 15px 0; overflow: hidden; }
.xp-gauge-fill { height: 100%; background: currentColor; border-radius: 10px; opacity: 0.8; transition: width 0.5s ease; }

.scan-chance-box {
  background: rgba(255,255,255,0.6); border-radius: 12px; padding: 12px 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.chance-count { font-size: 20px; font-weight: bold; margin-top: 2px; }

/* 💡 動画追加ボタン（HalalCheckグリーンで清潔感のあるデザイン） */
.ad-btn {
  background: #fff; color: #3DC522; border: 1px solid #3DC522; padding: 8px 16px;
  border-radius: 20px; font-size: 12px; font-weight: bold; cursor: pointer;
  display: flex; align-items: center; gap: 6px; box-shadow: none;
}

/* =========================================
   🌙 ダークモード用のスタイル（全画面共通）
========================================= */
body.dark-mode { background-color: #121212; color: #ffffff; }

/* 右上から緑のグラデーション背景エフェクト（ダークモード専用） */
body::before {
  content: '';
  position: fixed;
  top: 0; right: 0;
  width: 100%; height: 100%;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}
body.dark-mode::before {
  background: radial-gradient(ellipse 70% 60% at top right,
    rgba(61, 197, 34, 0.22) 0%,
    rgba(61, 197, 34, 0.11) 25%,
    rgba(61, 197, 34, 0.04) 50%,
    transparent 75%
  );
}
html.dark-mode {
  background: #121212;
}
html.dark-mode body::before {
  background: radial-gradient(ellipse 70% 60% at top right,
    rgba(61, 197, 34, 0.22) 0%,
    rgba(61, 197, 34, 0.11) 25%,
    rgba(61, 197, 34, 0.04) 50%,
    transparent 75%
  ) !important;
}
body.dark-mode .header,
body.dark-mode .header-top { background-color: #1E1E1E !important; border-bottom: none !important; box-shadow: none !important; }
body.dark-mode .header-top .logo { color: #ffffff; }
body.dark-mode .header-top .logo span { color: #3DC522; }
body.dark-mode .user-container, body.dark-mode .scroll { background: #121212; }
body.dark-mode .member-card,
body.dark-mode .menu-item-wrapper,
body.dark-mode .list-item,
body.dark-mode .submenu,
body.dark-mode .card,
body.dark-mode .shop-item,
body.dark-mode .category-item .circle-image { background: #1E1E1E; box-shadow: none; border: 1px solid #333; }
body.dark-mode .menu-label,
body.dark-mode .user-id-value,
body.dark-mode .inline-setting-label,
body.dark-mode .name-ja,
body.dark-mode .category-name { color: #eeeeee; }
body.dark-mode .group-label { color: #888; }
body.dark-mode .inline-select { background-color: #333; color: #3DC522; }

/* メニューアイコン画像を白に反転 */
body.dark-mode .menu-icon { filter: invert(1); }

/* ヘッダー・サブページ内の全SVGパスを白に（filterは使わない） */
body.dark-mode .icon-btn svg path,
body.dark-mode .header-top svg path {
  stroke: #ffffff !important;
  fill: none !important;
}

/* =========================================
   🌙 ダークモード追加ルール（カテゴリー・設定画面用）
========================================= */
/* カテゴリー画面のヘッダーとタブ */
body.dark-mode .sticky-top,
body.dark-mode .category-header { background-color: #1E1E1E; border-bottom: 1px solid #333; }
body.dark-mode .category-header h1 { color: #fff; }
body.dark-mode .tabs-container { border-bottom: 1px solid #333; }

/* ショップの「あいうえお順」見出し */
body.dark-mode .brand-initial { background-color: #121212; color: #A2A2A2; border-top: 1px solid #333; border-bottom: 1px solid #333; }
body.dark-mode .shop-item { background-color: #1E1E1E; border-bottom: 1px solid #333; color: #eee; }
body.dark-mode .shop-item:active { background-color: #333; }
body.dark-mode .shop-name { color: #eee; }

/* 設定・アカウント・ABOUT画面の下地とカード */
body.dark-mode .sub-page-container { background: #121212; }
body.dark-mode .form-card,
body.dark-mode .about-card { background: #1E1E1E; border: 1px solid #333; box-shadow: none; color: #eee; }
body.dark-mode .form-item { border-bottom: 1px solid #333; }
body.dark-mode .form-label { color: #A2A2A2; }
body.dark-mode .form-input { color: #fff; }
body.dark-mode .form-input::placeholder { color: #666; }
body.dark-mode .group-title { color: #A2A2A2; }
body.dark-mode .section-title { color: #fff; }
body.dark-mode .status-box { background: #121212; border: 1px solid #333; }

/* プルダウンメニュー（愛知県など）の黒背景化 */
body.dark-mode select.form-input { color: #fff !important; }
body.dark-mode select.form-input option { background: #1E1E1E; color: #fff; }

/* =========================================
   🌙 ダークモード追加修正（文字色とヘッダー）
========================================= */
/* ホーム画面の「NEW」「UPDATE」を白くする */
body.dark-mode .section-header h2 { color: #ffffff !important; }

/* サブページ（登録情報・お支払いなど）のタイトルと戻る矢印を白くする */
body.dark-mode .header-top h1 { color: #ffffff !important; }
body.dark-mode .icon-btn svg path { stroke: #ffffff !important; }

/* FAVORITE画面用の背景設定 */
body.dark-mode .favorite-container,
body.dark-mode #view-favorite { background-color: #121212; color: #ffffff; }

/* =========================================
   🌙 ダークモード追加修正（ホームのアイコン・FAVORITE画面）
========================================= */
/* ベルアイコンはJSで色を切り替えるためCSSフィルター不要 */

/* FAVORITE（お気に入り）画面の背景を強制的に黒くする */
body.dark-mode,
body.dark-mode .favorite-container,
body.dark-mode #favorite-list-container {
  background-color: #121212 !important;
  color: #ffffff !important;
  min-height: 100vh;
}


/* =========================================
   🌙 ダークモード：カードタグの色を維持
========================================= */
body.dark-mode .halal,
body.dark-mode .tag.halal { color: #3DC522 !important; }
body.dark-mode .muslim_friendly,
body.dark-mode .muslim-friendly,
body.dark-mode .tag.muslim_friendly { color: #36B9B6 !important; }
body.dark-mode .cleaned_line,
body.dark-mode .cleaned-line,
body.dark-mode .tag.cleaned_line { color: #5BA4CF !important; }
body.dark-mode .doubtful,
body.dark-mode .tag.doubtful { color: #FFAD60 !important; }
body.dark-mode .haram,
body.dark-mode .tag.haram { color: #EE4E4E !important; }

/* =========================================
   タグのアイコンと文字色を統一
========================================= */
.tag { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 900; }
.tag img { width: 12px !important; height: 12px !important; }

/* 各ステータスの色統一 */
.tag.halal, .halal { color: #3DC522 !important; }
.tag.muslim_friendly, .tag.muslim-friendly,
.muslim_friendly, .muslim-friendly { color: #36B9B6 !important; }
.tag.cleaned_line, .tag.cleaned-line,
.cleaned_line, .cleaned-line { color: #5BA4CF !important; }
.tag.doubtful, .doubtful { color: #FFAD60 !important; }
.tag.haram, .haram { color: #EE4E4E !important; }

/* ダークモードでも同じ色を維持 */
body.dark-mode .tag.halal, body.dark-mode .halal { color: #3DC522 !important; }
body.dark-mode .tag.muslim_friendly, body.dark-mode .tag.muslim-friendly,
body.dark-mode .muslim_friendly, body.dark-mode .muslim-friendly { color: #36B9B6 !important; }
body.dark-mode .tag.cleaned_line, body.dark-mode .tag.cleaned-line,
body.dark-mode .cleaned_line, body.dark-mode .cleaned-line { color: #5BA4CF !important; }
body.dark-mode .tag.doubtful, body.dark-mode .doubtful { color: #FFAD60 !important; }
body.dark-mode .tag.haram, body.dark-mode .haram { color: #EE4E4E !important; }

/* ベルアイコンはJSがsrc URLの色を切り替えるため、CSSフィルター不要 */
body.dark-mode .notif-badge { filter: none !important; }

/* =========================================
   📱 レスポンシブ対応（iPad・大画面）
========================================= */

/* iPad縦（768px以上） */
@media (min-width: 768px) {
  .header { max-width: 768px; margin: 0 auto; left: 50%; transform: translateX(-50%); }
  body { max-width: 768px; margin: 0 auto; }

  /* カードを3列に */
  .card-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    overflow-x: visible !important;
    padding: 10px 20px 20px !important;
  }

  /* バナーを大きく */
  .banner-slider { height: 200px !important; }

  /* フッターも中央に */
  .footer-nav { max-width: 500px !important; }
  .scan-button-wrapper,
  .scan-ring-shadow,
  .scan-ring-shadow2 { left: 50% !important; }
}

/* iPad横・PC（1024px以上） */
@media (min-width: 1024px) {
  .card-list {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .banner-slider { height: 240px !important; }
}

/* 検索結果もレスポンシブ */
@media (min-width: 768px) {
  #search-card-list {
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 20px 24px !important;
  }
}
@media (min-width: 1024px) {
  #search-card-list {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ダークモード ヘッダーアイコン強制白 */
body.dark-mode .header-top svg path {
  stroke: #ffffff !important;
}
body.dark-mode .header-top img {
  filter: brightness(0) invert(1) !important;
}
body.dark-mode .icon-btn svg path {
  stroke: #ffffff !important;
}

/* 戻るボタン・ヘッダーアイコンのダークモード対応（永続） */
body.dark-mode .back-btn svg path,
body.dark-mode .header-top svg path,
body.dark-mode .icon-btn svg path {
  stroke: #ffffff !important;
}
body.dark-mode .back-btn,
body.dark-mode .header-back-btn {
  color: #ffffff !important;
}

/* ===== ダークモード アイコン・ボタン 確実対応 ===== */
body.dark-mode svg path[stroke="#2F2F2F"],
body.dark-mode svg path[stroke="#2f2f2f"],
body.dark-mode svg path[stroke="black"],
body.dark-mode svg path[stroke="#000"],
body.dark-mode svg path[stroke="#000000"] {
  stroke: #ffffff !important;
}

body.dark-mode .back-btn svg path,
body.dark-mode .back-btn svg line,
body.dark-mode .icon-btn svg path,
body.dark-mode header svg path,
body.dark-mode .header svg path {
  stroke: #ffffff !important;
  fill: none !important;
}

body.dark-mode .back-btn,
body.dark-mode .back-btn * {
  color: #ffffff !important;
}

/* プライバシーポリシーのタブ背景修正 */
body.dark-mode .tab-btn {
  background: #2a2a2a !important;
  color: #888 !important;
  border-color: #444 !important;
}
body.dark-mode .tab-btn.active {
  background: #3DC522 !important;
  color: #ffffff !important;
  border-color: #3DC522 !important;
}


/* ==========================================
   ホーム画面専用：ECカード・NEWカード統一
   ※ 他ページのカードは変更しない
========================================== */

/* ホームECカード（3列・小さめ） */
#ec-card-list .card {
  width: 140px !important;
  min-height: 220px !important;
}
#ec-card-list .card .product-img,
#ec-card-list .card > img {
  width: 140px !important;
  height: 120px !important;
}
#ec-card-list .card .name-en { font-size: 9px !important; }
#ec-card-list .card .name-ja { font-size: 10px !important; height: 28px !important; }

/* ECカードのステータスタグ（ホームのみ小さく） */
#ec-card-list .card-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 5px 8px 8px !important;
}
#ec-card-list .card-footer .status-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 3px !important;
}
#ec-card-list .ec-status-tag {
  font-size: 8px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  min-width: 0 !important;
  line-height: 1 !important;
}
#ec-card-list .ec-status-tag img {
  width: 10px !important;
  height: 10px !important;
  flex-shrink: 0 !important;
}
#ec-card-list .home-ec-heart-btn {
  flex-shrink: 0 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#ec-card-list .home-ec-heart-btn img {
  width: 14px !important;
  height: 14px !important;
  display: block !important;
}
#ec-card-list .ec-buy-btn {
  font-size: 9px !important;
  padding: 5px 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  border-radius: 6px !important;
  border: 1px solid !important;
  display: block !important;
}

/* NEWカード（ホームのみ小さめ・ECと高さ統一） */
#new-card-list .card {
  width: 130px !important;
  min-height: 200px !important;
}
#new-card-list .card > img,
#new-card-list .card .product-img {
  width: 130px !important;
  height: 110px !important;
}
#new-card-list .card .name-en { font-size: 9px !important; }
#new-card-list .card .name-ja { font-size: 10px !important; height: 28px !important; }
#new-card-list .card-footer .tag {
  font-size: 8px !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#new-card-list .card-footer .tag img {
  width: 10px !important;
  height: 10px !important;
}
#new-card-list .card-footer .heart-button img,
#new-card-list .card-footer .heart-icon {
  width: 14px !important;
  height: 14px !important;
}

#history-card-list .card {
  width: 130px !important;
  min-height: 200px !important;
}
#history-card-list .card > img,
#history-card-list .card .product-img {
  width: 130px !important;
  height: 110px !important;
}
#history-card-list .card .name-en { font-size: 9px !important; }
#history-card-list .card .name-ja { font-size: 10px !important; height: 28px !important; }
#history-card-list .card-footer .tag {
  font-size: 8px !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#history-card-list .card-footer .tag img {
  width: 10px !important;
  height: 10px !important;
}
#history-card-list .card-footer .heart-button img,
#history-card-list .card-footer .hist-heart-icon {
  width: 14px !important;
  height: 14px !important;
}

/* Amazonタブボタンのスタイル修正 */
.ec-tabs-bar {
  display: flex !important;
  gap: 8px !important;
  padding: 0 16px 12px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.ec-tabs-bar::-webkit-scrollbar { display: none; }
.ec-tab {
  flex: 0 0 auto !important;
  padding: 6px 18px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: 1.5px solid #EAEAEA !important;
  background: #fff !important;
  color: #A2A2A2 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  white-space: nowrap !important;
}
.ec-tab.active[data-shop="amazon"]  { border-color: #FF9900 !important; color: #fff !important; background: #FF9900 !important; }
.ec-tab.active[data-shop="rakuten"] { border-color: #BF0000 !important; color: #fff !important; background: #BF0000 !important; }
.ec-tab.active[data-shop="yahoo"]   { border-color: #FF0033 !important; color: #fff !important; background: #FF0033 !important; }
body.dark-mode .ec-tab { background: #1E1E1E !important; color: #555 !important; border-color: #333 !important; }
body.dark-mode .ec-tab.active[data-shop="amazon"]  { background: #FF9900 !important; color: #fff !important; border-color: #FF9900 !important; }
body.dark-mode .ec-tab.active[data-shop="rakuten"] { background: #BF0000 !important; color: #fff !important; border-color: #BF0000 !important; }
body.dark-mode .ec-tab.active[data-shop="yahoo"]   { background: #FF0033 !important; color: #fff !important; border-color: #FF0033 !important; }

/* ==========================================
   バナー（ダークグラデーション・元デザイン）
========================================== */
.banner-dark { background: #111 !important; }
.banner-inner {
  display: flex; align-items: center;
  width: 100%; height: 100%;
  padding: 20px;
  position: relative; overflow: hidden;
  text-decoration: none;
}
.banner-content { position: relative; z-index: 2; }
.banner-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  color: #3DC522; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 6px;
}
.banner-title {
  font-size: 20px; font-weight: 900;
  color: #fff; line-height: 1.25; margin-bottom: 12px;
}
.banner-btn {
  display: inline-block;
  background: #3DC522; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 6px 16px; border-radius: 20px;
}
.banner-glow {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 80% 30%, rgba(61,197,34,0.45) 0%, transparent 65%);
}
.banner-indicators {
  display: flex; justify-content: center;
  gap: 6px; padding: 8px 0 4px;
}
.banner-indicators .dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.banner-indicators .dot.active {
  background: #3DC522; width: 18px; border-radius: 3px;
}

/* もっと見るカード（ダークモード対応） */
.more-card {
  flex: 0 0 80px !important;
  background: #F8F8F8 !important;
  border: 1.5px dashed #DCDCDC !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  color: #A2A2A2 !important;
  min-height: 155px !important;
  border-radius: 8px !important;
}
.more-card span {
  font-size: 10px; font-weight: 700;
  text-align: center; line-height: 1.4;
}
body.dark-mode .more-card {
  background: #1E1E1E !important;
  border-color: #333 !important;
  color: #555 !important;
}
