/* KUMA CardTest Manager - News (お知らせ) */
/* シンプル＆スタイリッシュ。罫線 #eee / 文字 #333 基調。 */

.kctm-news {
  max-width: 960px;
  margin: 48px auto;
  padding: 24px 20px;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
  /* 内側のラベル列が万が一はみ出ても、外側にあふれて画面横スクロール化させない */
  overflow-x: hidden;
}

.kctm-news__heading {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid #eee;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #333;
}

.kctm-news__empty {
  margin: 0;
  color: #888;
  font-size: 14px;
}

.kctm-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kctm-news__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid #eee;
  min-width: 0;
}
.kctm-news__item:last-child {
  border-bottom: 0;
}

.kctm-news__labels {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}

.kctm-news__date {
  color: #888;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-width: 88px;
  white-space: nowrap;
}

.kctm-news__sub {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  background: #f4f4f4;
  color: #666;
  white-space: nowrap;
}

.kctm-news__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  background: #fafafa;
  color: #555;
  white-space: nowrap;
}
.kctm-news__tag--list {
  background: #eef6fd;
  color: #2e6fa8;
}
.kctm-news__tag--test,
.kctm-news__tag--test_done {
  background: #effaef;
  color: #2f7a3a;
}
.kctm-news__tag--feature {
  background: #f4eefb;
  color: #6a3fb1;
}

.kctm-news__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
}
.kctm-news__badge--new {
  background: #fdecec;
  color: #c0392b;
}

.kctm-news__title {
  flex: 1 1 auto;
  color: #333;
  word-break: break-word;
}

@media (max-width: 600px) {
  .kctm-news {
    margin: 32px auto;
    padding: 16px 14px;
  }
  .kctm-news__heading {
    font-size: 18px;
  }
  /* スマホ：3行レイアウト（日付 / ラベル群 / タイトル） */
  .kctm-news__item {
    gap: 6px;
    padding: 10px 2px;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }
  .kctm-news__date {
    min-width: 0;
    font-size: 12px;
  }
  .kctm-news__labels {
    /* 親(.kctm-news__item)幅にぴったり収め、内部でのみ横スクロール */
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    /* スクロールバーを非表示にしつつ横スクロール可能にする */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* タッチ慣性スクロール */
    -webkit-overflow-scrolling: touch;
  }
  .kctm-news__labels::-webkit-scrollbar {
    display: none;
  }
  .kctm-news__title {
    word-break: break-word;
  }
}
