/* ContentCard コンポーネント用スタイル */
.content-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: #87ceeb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.new-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #22c55e;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.brand-name {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.content-info {
  padding: 16px;
}

.content-title {
  font-size: 16px;
  font-weight: normal;
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.avatar-icon {
  width: 16px;
  height: 16px;
  background: #90caf9;
  border-radius: 50%;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.username {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.timestamp {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.interaction-stats {
  display: flex;
  gap: 8px;
}

.stat-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: background-color 0.2s;
}

.stat-button:hover {
  background: #f9fafb;
}

.stat-icon {
  font-size: 14px;
}

.stat-count {
  font-size: 12px;
}

/* CreatorRankingItem コンポーネント用スタイル */
.creator-ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.creator-ranking-item:last-child {
  border-bottom: none;
}

.creator-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.rank-icon {
  margin-right: 12px;
}

.crown {
  width: 24px;
  height: 24px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  background: #666;
  border-radius: 50%;
  margin-right: 12px;
}

.creator-details {
  flex: 1;
}

.creator-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.creator-stats {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.heart-icon {
  color: #4CAF50;
  margin-right: 4px;
  font-size: 10px;
}

.stats-numbers {
  color: #4CAF50;
  font-weight: 500;
}

.separator {
  margin: 0 4px;
  color: #ccc;
}

.followers-text {
  color: #333;
}

.follow-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #ddd;
  background: white;
  color: #333;
}

.follow-btn.following {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.follow-btn:hover {
  opacity: 0.8;
}

/* FilterBar コンポーネント用スタイル */
/* ===== FilterBar: look & feel をスクショに合わせる ===== */
:root{
  --fb-green: #24D19B;       /* ブランド寄せのミント */
  --fb-green-200: #CFEADE;   /* 枠線の淡いグリーン */
  --fb-height: 44px;         /* 高さ（SP基準） */
  --fb-font: 14px;
}

/* アクセシビリティ用 */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

.filterbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  justify-content:flex-start;       /* ← SPは左寄せ */

  width:100%;
}
.filterbar__left{ 
  display: flex;           /* ← これが必要！ */
  align-items: center;     /* ← これも必要！ */
  gap: 8px;               /* ← 内部の要素間隔 */
}
.filterbar__right{
  display:flex; gap:10px;
  flex:1 1 auto;                 /* ← 右側を広げる */
  min-width:0;                   /* ← 子のオーバーフロー抑止 */
}

/* ALLボタン（丸・アウトライン・太め枠） */
.filterbar__chip{
  height:var(--fb-height); width:var(--fb-height);
  border:2px solid var(--fb-green);
  color:var(--fb-green); background:#fff;
  border-radius:9999px; font-weight:700; font-size:var(--fb-font);
  display:flex; align-items:center; justify-content:center;
  letter-spacing:.02em;
}
.filterbar__chip.is-active{ /* 同じ見た目のまま（押下状態の強調は不要なら空でもOK） */ }

/* セレクト：ピル型、淡いグリーン枠、カスタム矢印 */
.filterbar__select-btn{
  flex:1 1 0;                    /* ← 等幅で分配 */
  width:auto;
  min-width:clamp(112px, 28vw, 168px);  /* ← 端末幅に応じて確保 */
  height:var(--fb-height);
  border-radius:9999px;
  border:2px solid var(--fb-green-200);
  padding:0 42px 0 18px;
  font-size:var(--fb-font); font-weight:600; color:#1f2937;
  background:#fff; box-sizing:border-box;
  display:inline-flex; align-items:center; justify-content:space-between;
}

/* プラン <select> をピル型に統一（Pure の既定を上書き） */
.filterbar__select{
  /* レイアウト：SortSelectボタンと等幅 */
  flex: 1 1 0;
  width: auto;
  min-width: clamp(112px, 28vw, 168px);

  /* 見た目：ピル型＋淡いグリーン枠 */
  height: var(--fb-height);
  border-radius: 9999px;
  border: 2px solid var(--fb-green-200);
  padding: 0 42px 0 18px;        /* 右の▼アイコン分 */
  font-size: var(--fb-font);
  font-weight: 600;
  color: #1f2937;
  background: #fff;
  box-sizing: border-box;
  line-height: normal;

  /* ネイティブ装飾を消してカスタム▼に */
  -webkit-appearance: none;
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2392cbb4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: right 14px center;
}

.filterbar__select:focus{
  outline: none;
  border-color: var(--fb-green);
  box-shadow: 0 0 0 3px rgba(36,209,155,.15);
}

@media (min-width:1024px){
  .filterbar{ justify-content:flex-end; }
  .filterbar__right{ gap:12px; flex:0 0 auto; }
  .filterbar__select-btn{ min-width:220px; }
  .filterbar__select{ min-width: 220px; }

}

/* --- 超狭幅フォールバック (iPhone SE等) --- */
@media (max-width:340px){
  .filterbar{ gap:8px; }
  .filterbar__select-btn{
    min-width:clamp(100px, 30vw, 140px);
    padding:0 36px 0 14px;
    font-size:13px;
  }
}

/* ===== SortSelect (popup) ===== */
.sortctl__label{
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.filterbar__select-btn{
  width: 100%;
  height: var(--fb-height);
  border-radius: 9999px;
  border: 2px solid var(--fb-green-200);
  padding: 0 42px 0 18px;
  font-size: var(--fb-font);
  font-weight: 600;
  color: #1f2937;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between; /* ラベル左・矢印右 */
  box-sizing: border-box;
}
.filterbar__select-btn:focus{
  outline: none;
  border-color: var(--fb-green);
  box-shadow: 0 0 0 3px rgba(36,209,155,.15);
}
.sortctl__caret{ color:#92cbb4; transition: transform .15s ease; }
.sortctl__caret.is-open{ transform: rotate(180deg); }

/* オーバーレイ（背景グレー） */
.sortctl__overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 998;
}

/* メニュー本体 */
.sortctl__menu{
  position: absolute;
  z-index: 999;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden;
}
.sortctl__item{
  width: 100%;
  border: 0; background: #fff; color:#111827;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sortctl__item + .sortctl__item{ border-top: 1px solid #f1f5f9; }
.sortctl__item:hover{ background: #f3f4f6; }
.sortctl__item.is-selected{ background:#eefcf7; color:#0f766e; }
.sortctl__check{ color: var(--fb-green); }

/* PCでは自然幅＋右寄せの振る舞いに */
@media (min-width:1024px){
  .filterbar__select-btn{ width: auto; min-width: 220px; }
}

/* ranking */
.chip-icon {
  height: var(--fb-height); 
  width: var(--fb-height);  /* 正方形にして丸く */
  border: 2px solid var(--fb-green-200);
  color: #6b7280;
  background: #fff;
  border-radius: 9999px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.chip-icon.is-active {
  background: var(--fb-green);
  color: white;
  border-color: var(--fb-green);
}

.chip-icon:hover {
  background: #f3f4f6;
}

.chip-icon.is-active:hover {
  background: #059669;
}

/* アイコンサイズ */
.chip-icon svg {
  width: 16px;
  height: 16px;
}