.news-tab-bar {
  display: flex;
  gap: 4px;
  margin: 12px 0 16px;
  border-bottom: 2px solid #ddd;
  width: 100%;
  box-sizing: border-box;
}

.news-tab {
  font-family: "copo2";
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: #f2f2f2;
  color: #666;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 8px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.news-tab:hover {
  background: #e6e6e6;
}

/* クリック（マウス操作）ではブラウザ標準の点線フォーカスリングを非表示にする。
   Tabキー等のキーボード操作時は:focus-visibleが効き、代わりに
   分かりやすい枠線で「今どこにフォーカスがあるか」を示す
   （outline:noneだけにするとキーボード利用者が操作しづらくなるため）。 */
.news-tab:focus {
  outline: none;
}
.news-tab:focus-visible {
  outline: 2px solid #ff6699;
  outline-offset: -2px;
}

.news-tab.active {
  background: #ff6699;
  color: #fff;
}

.news-empty {
  text-align: center;
  color: #888;
  padding: 32px 0;
}

.news-icon {
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-icon .news-type-badge {
  margin-bottom: 0;
}

.news-type-badge {
  display: inline-block;
  width: 5.5em;
  box-sizing: content-box;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  padding: 5px 0;
  border-radius: 4px;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.news-type-badge-info {
  background: #4a90d9;
}

.news-type-badge-event {
  background: #ff6699;
}

.news-type-badge-bugfix {
  background: #e05252;
}

.news-type-badge-campaign {
  background: #f0a030;
}

.news-type-badge-other {
  background: #888;
}

@media screen and (max-width: 480px) {
  .news-tab {
    font-size: 12px;
    padding: 8px 4px;
  }

  .news-type-badge {
    font-size: 11px;
    padding: 4px 0;
  }
}