/* ===== 共通 ===== */
.section {
  margin: 40px 0;
}
.section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #d63384;
}
input[type="text"] {
  padding: 6px 12px;
  font-size: 14px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===== 横スクロール用コンテナ ===== */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
}
.scroll-container::-webkit-scrollbar {
  display: none;
}
.scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== セレブカード ===== */
#celebList .card {
  min-width: 240px;
  flex: 0 0 auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#celebList .card.has-sns {
  background-color: #fff0f5; /* 薄いピンク */
}
#celebList .card:hover {
  transform: translateY(-2px);
}
.card-header {
  padding: 10px;
  font-weight: bold;
  color: #fff;
  background-color: #f08080;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.avatar {
  width: 40px;
  height: 40px;
  background-color: #f8b6d2;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin: 10px 0 6px;
}
.card-content {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-content p {
  margin: 6px 0;
  line-height: 1.4;
}
.card-content a {
  text-decoration: underline;
  color: #333;
}

/* SNSエリア：中央揃え・固定配置・種類別色 */
.card-content .sns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.card-content .sns a {
  font-size: 16px;
  transition: color 0.2s ease;
}

/* SNSごとの色 */
.card-content .sns a[href*="twitter.com"] i {
  color: #1da1f2;
}
.card-content .sns a[href*="twitter.com"]:hover i {
  color: #0d8ddb;
}
.card-content .sns a[href*="instagram.com"] i {
  color: #e1306c;
}
.card-content .sns a[href*="instagram.com"]:hover i {
  color: #c2265c;
}
.card-content .sns a[href*="youtube.com"] i,
.card-content .sns a[href*="youtu.be"] i {
  color: #ff0000;
}
.card-content .sns a[href*="youtube.com"]:hover i,
.card-content .sns a[href*="youtu.be"]:hover i {
  color: #cc0000;
}
.card-content .sns a[href*="tiktok.com"] i {
  color: #000000;
}
.card-content .sns a[href*="tiktok.com"]:hover i {
  color: #111111;
}

/* ブランド別色 */
.brand-snidel .card-header     { background-color: #e88ea1; }
.brand-rienda .card-header     { background-color: #b89cc9; }
.brand-jennilove .card-header  { background-color: #f5a9b8; }
.brand-ziddy .card-header      { background-color: #8fc0a9; }
.brand-wego .card-header       { background-color: #ffb6b9; }
.brand-mayree .card-header     { background-color: #9dc1e3; }
.brand-anuans .card-header     { background-color: #c7a2c2; }
.brand-prankproject .card-header { background-color: #444; }

/* ===== 汎用カード（ブランド・カテゴリ・特集） ===== */
.card {
  width: 180px;
  flex: 0 0 auto;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
}
.card img {
  width: 100%;
  height: auto;
  display: block;
}
.card p,
.card .card-text {
  margin: 8px;
  font-size: 14px;
  color: #333;
}

/* ===== ランキングカードの調整 ===== */

#rankingList .card {
  width: 300px;
  max-width: 300px;
  padding: 0;
  flex: 0 0 auto;
}
#rankingList blockquote.instagram-media {
  max-width: 100% !important;
  min-height: 400px; /* ← 高さを必ず指定 */
}
#rankingList iframe {
  max-width: 100%;
  height: 300px;
  display: block;
}

#rankingList .item-links {
  font-size: 13px;
  color: #666;
  margin: 8px;
}

/* ===== タブ切り替え（ランキング） ===== */
.tab-btn {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #ffe0ec;
  cursor: pointer;
}
.tab-btn.active {
  background: #fff;
  border-color: #d63384;
  color: #d63384;
  font-weight: bold;
}

/* セクション下のリスト間隔 */
#rankingList,
#specialList,
#brandList,
#categoryList {
  margin-top: 12px;
}

/* ===== 横スクロールボタン付きラッパー ===== */
.scroll-wrapper {
  position: relative;
}
.scroll-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.scroll-btn:hover {
  background: #ffe0ec;
}
.scroll-btn.left {
  left: -16px;
}
.scroll-btn.right {
  right: -16px;
}
@media screen and (min-width: 768px) {
  .scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* スクロールバー表示調整 */
.show-scrollbar {
  scrollbar-width: auto;
}
.show-scrollbar::-webkit-scrollbar {
  height: 6px;
}
.show-scrollbar::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.show-scrollbar::-webkit-scrollbar-thumb {
  background: #d63384;
  border-radius: 3px;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #d63384 #fff0f5;
}

.scroll-container::-webkit