:root {
  --gap: 1rem;
  --card-radius: 14px;
  --card-shadow: 0 6px 18px rgba(0,0,0,.08);
  --muted: #666;
  --ring: #e9eef5;
}

/* レイアウト */
.news-wrapper { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.news-header { display:flex; align-items:center; justify-content:space-between; flex-wrap: wrap; gap: var(--gap); margin-bottom: 1.25rem; }
.news-title { margin: 0; }

/* コントロール */
.news-controls { display:flex; gap: var(--gap); align-items:center; }
.news-controls .control { display:flex; gap:.5rem; align-items:center; font-size: .95rem; }
.news-controls select,
.news-controls input[type="search"] { padding: .55rem .7rem; border: 1px solid var(--ring); border-radius: 10px; outline: none; background: #fff; }

/* グリッド */
.news-grid { display:grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
@media (max-width: 1024px){ .news-grid { grid-template-columns: repeat(8, 1fr);} }
@media (max-width: 640px){ .news-grid { grid-template-columns: repeat(4, 1fr);} }

/* カード */
.news-card { grid-column: span 4; border-radius: var(--card-radius); overflow: hidden; background: #fff; box-shadow: var(--card-shadow); transition: transform .15s ease, box-shadow .15s ease; display:flex; flex-direction: column; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.news-card a { color: inherit; text-decoration: none; }

/* サムネイル */
.news-thumb { position: relative; aspect-ratio: 16 / 9; background: #f2f5f8; }
.news-thumb img { width:100%; height:100%; object-fit: cover; display:block; }

/* 本文 */
.news-body { padding: .9rem 1rem 1rem; display:flex; flex-direction:column; gap:.5rem; }
.news-meta { font-size: .9rem; color: var(--muted); display:flex; gap:.6rem; flex-wrap: wrap; }
.news-meta .badge { font-size: .78rem; padding: .12rem .5rem; border-radius: 999px; background: #f1f5f9; border: 1px solid var(--ring); }
.news-title { font-size: 1.05rem; line-height: 1.35; margin: 0; }

/* 空表示 */
.empty { display:none; text-align:center; color: var(--muted); padding: 3rem 1rem; }

/* スモールスクリーン調整 */
@media (max-width: 480px){
  .news-controls { width: 100%; }
  .news-controls .control { width:100%; }
  .news-controls input[type="search"] { flex: 1; width: 100%; }
}
