/* ===============================
   NEWS LIST（縦並び・5件超でスクロール）
================================ */

/* UL：5件分の高さを超えたらスクロール */
#news ul {
  margin: 0;
  padding: 0;
  max-height: 360px;        /* ← 1件 約72px × 5件 = 360px */
  overflow-y: auto;         /* ← 縦スクロール */
}

/* 行（1記事） */
#news .news-item {
  display: flex;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
  transition: background .25s ease;
}

#news .news-item:hover {
  background: #fafafa;
}

/* ===== 左メタ情報 ===== */
#news .news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 200px;
  flex-shrink: 0;
}

/* 日付 */
#news time {
  font-size: 13px;
  color: #777;
  letter-spacing: .05em;
  white-space: nowrap;
}

/* ===== カテゴリタグ（枠線） ===== */
#news .news-cat {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
}

/* お知らせ（水色） */
#news .cat-news {
  color: #4DB6E2;
  border-color: #4DB6E2;
}

/* 園児募集（黄緑）※スラッグが enji の場合 */
#news .cat-enji {
  color: #8BCF3F;
  border-color: #8BCF3F;
}

/* 求人（ピンク） */
#news .cat-recruit {
  color: #E85C9E;
  border-color: #E85C9E;
}

/* ===== タイトル ===== */
#news .news-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

#news .news-title a {
  color: #FF860D;          /* タイトルは常にオレンジ */
  text-decoration: none;
  transition: opacity .2s ease;
}

#news .news-item:hover .news-title a {
  opacity: .7;
}

/* ===== スクロールバー調整（Webkit系） ===== */
#news ul::-webkit-scrollbar {
  width: 6px;
}

#news ul::-webkit-scrollbar-track {
  background: #f0f0f0;
}

#news ul::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  #news ul {
    max-height: 420px;     /* スマホは少し余裕 */
  }

  #news .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #news .news-meta {
    width: auto;
  }

  #news .news-title {
    font-size: 15px;
  }
}
