/* =========================================================
   トップページ — 投稿リストタブ リデザイン
   コンパクトなセグメントコントロール、右寄せ
   ========================================================= */

/* 親要素のマージン調整 */
.p-homeContent.l-parent.u-mt-40 {
  margin-top: 1rem !important;
}

/* タブ全体 */
.p-postListTab.is-style-bb {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* 左ラベル（JSで挿入） */
.aind-tab-label {
  font-size: 11px;
  font-weight: 700;
  color: #1d3e91;
  letter-spacing: 0.12em;
  margin-right: auto;
  transition: opacity 0.15s;
}

.p-postListTab.is-style-bb .c-tabList {
  display: inline-flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 2px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  width: auto;
}

/* 各タブ */
.p-postListTab.is-style-bb .c-tabList__item {
  margin: 0;
  padding: 0;
  width: auto !important;
}

.p-postListTab.is-style-bb .c-tabList__button {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.02em;
}

.p-postListTab.is-style-bb .c-tabList__button:hover {
  color: #1a1a2e;
  background: rgba(255, 255, 255, 0.5);
}

/* アクティブ */
.p-postListTab.is-style-bb .c-tabList__button[aria-selected="true"] {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  border-bottom: none;
}

/* 隣接区切り線なし */
.p-postListTab.is-style-bb .c-tabList__item + .c-tabList__item {
  border-left: none;
}

/* 3番目以降を非表示（タグ用・カテゴリー用） */
.p-postListTab.is-style-bb .c-tabList__item:nth-child(n+3) {
  display: none;
}

/* SWELLデフォルトの下線装飾を全部消す */
.p-postListTab.is-style-bb .c-tabList__button::after,
.p-postListTab.is-style-bb .c-tabList__button::before {
  display: none !important;
}

/* 新着記事タブの下線も消す */
.p-postListTab.is-style-bb .c-tabList__button[aria-selected="true"]::before,
.p-postListTab.is-style-bb .c-tabList__button[aria-selected="true"]::after {
  display: none !important;
}

/* テキスト差し替えはSWELL設定で対応済みのため不要 */
