/* =========================================================
   お知らせ：iOS風 ガラススライドカテゴリ + ニュース一覧UI
========================================================= */

/* ===============================
   ※ ページ全体に影響させないためスコープ限定
================================ */

#news {
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: transparent;
  font-size: 16px;
}

/* ===============================
   カテゴリバー（iOS風ガラス）
================================ */

.news-category-wrap {
  position: relative;
  margin: 16px 0 26px;
  padding: 6px;

  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);

  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.85),
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 12px 30px rgba(0,0,0,0.16);

  overflow: hidden;
}

/* ガラス */
.news-category-glass {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  width: 0;

  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.98),
    rgba(255,255,255,0.6)
  );

  box-shadow:
    0 10px 22px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.95);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  transition:
    transform 0.42s cubic-bezier(.25,.8,.25,1),
    width 0.42s cubic-bezier(.25,.8,.25,1);

  will-change: transform;
}

/* ===============================
   カテゴリ文字（★修正点）
================================ */

.news-category-labels {
  display: flex;
  position: relative;
  z-index: 1;
}

.news-category-labels .news-cat {
  flex: 1;
  text-align: center;
  padding: 12px 0;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: rgba(0,0,0,0.55);
  cursor: pointer;
  user-select: none;

  transition: color 0.25s ease, transform 0.25s ease;
}

.news-category-labels .news-cat.active {
  color: #8b0000;
}

.news-category-labels .news-cat:active {
  transform: scale(0.96);
}

/* ===============================
   ニュースカード
================================ */

.news-card {
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 16px;

  border-left: 5px solid #8b0000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);

  transition: background 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
  background: #fafafa;
  transform: translateY(-1px);
}

/* 日付 */
.news-date {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: #8b0000;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* タイトル */
.news-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0;
  color: #222;
  text-decoration: none;
}

.news-title:hover {
  text-decoration: underline;
}

/* メタ */
.news-meta {
  font-size: 14px;
  color: #555;
}

/* ===============================
   スマホ
================================ */

@media (max-width: 700px) {

  .news-category-labels .news-cat {
    font-size: 16px;
  }

  .news-card {
    padding: 18px;
  }

  .news-title {
    font-size: 19px;
  }

  .news-date {
    font-size: 14px;
  }

  .news-meta {
    font-size: 15px;
  }
}

