/* =========================
   news.css — ニュース一覧（白カードデザイン用）
========================= */

/* 固定ヘッダー（140px）の下に収まるよう上端に余白を追加 */
#newsall {
  padding-top: 160px;
}

/* --- リスト --- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid rgba(192, 80, 112, 0.1);
}

/* --- 全体リンク --- */
.news-link {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: all 0.25s ease-out;
  border-radius: 12px;
}

.news-link:hover {
  background: rgba(192, 80, 112, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 40, 80, 0.1);
}

/* --- サムネイル --- */
.news-thumb {
  width: 280px;
  height: 186px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  margin: 4px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-link:hover .news-thumb img {
  transform: scale(1.05);
}

/* --- メタ情報 --- */
.news-meta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.news-meta-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 10px;
  color: #888;
  font-size: 14px;
}

.news-category-text {
  margin-right: 12px;
}

/* --- NEWバッジ --- */
.badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.badge.new {
  background: #ff4fa1;
  color: #fff;
}

.news-tags-label {
  margin-right: 0;
  padding-right: 0;
}

.news-tags {
  display: inline-flex;
  gap: 6px;
}

/* --- タグバッジ --- */
.tag-badge {
  display: inline-block;
  background: rgba(192, 80, 112, 0.1);
  color: #c05070;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

/* --- タイトル --- */
.news-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
}

.news-link:hover .news-title {
  color: #c05070;
}

/* --- サブタイトル --- */
.news-subtitle {
  font-size: 14px;
  color: #777;
}

/* --- 空状態 --- */
.news-empty {
  padding: 40px 0;
  text-align: center;
  color: #aaa;
  font-size: 15px;
}

/* =========================
   サイドバー（白カード上書き）
========================= */
#newsall .sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(192, 80, 112, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(160, 40, 80, 0.08);
  align-self: start;
}

#newsall .sidebar-section {
  margin-bottom: 28px;
}

#newsall .sidebar-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(192, 80, 112, 0.2);
  color: #c05070;
}

#newsall .sidebar-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#newsall .sidebar-section ul li {
  margin: 6px 0;
}

#newsall .sidebar-section ul li a {
  color: #555;
  font-size: 14px;
  padding: 4px 0;
  display: inline-block;
  transition: color 0.2s;
  text-decoration: none;
}

#newsall .sidebar-section ul li a:hover {
  color: #c05070;
}

/* 検索ボックス */
#newsall .news-search-box {
  width: calc(100% - 24px);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(192, 80, 112, 0.3);
  background: #fff;
  color: #333;
  font-size: 14px;
  margin-top: 8px;
  outline: none;
  transition: border-color 0.2s;
}

#newsall .news-search-box:focus {
  border-color: #c05070;
}

#newsall .news-search-box::placeholder {
  color: #bbb;
}

/* タグクラウド */
#newsall .tag-cloud .tag-link {
  display: inline-block;
  background: rgba(192, 80, 112, 0.1);
  color: #c05070;
  padding: 5px 10px;
  margin: 3px;
  font-size: 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

#newsall .tag-cloud .tag-link:hover {
  background: #c05070;
  color: #fff;
}

/* =========================
   レイアウト（2カラム）
========================= */
#newsall .layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  #newsall .layout-wrapper {
    grid-template-columns: 1fr;
  }

  #newsall .sidebar {
    width: 100%;
    box-sizing: border-box;
  }

  .news-thumb {
    width: 180px;
    height: 120px;
  }
}

@media (max-width: 600px) {
  .news-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-thumb {
    width: 100%;
    height: 180px;
  }
}

/* =========================
   ページネーション（白カード上書き）
========================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(192, 80, 112, 0.3);
  background: #fff;
  color: #c05070;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background: #c05070;
  color: #fff;
  border-color: #c05070;
}

/* =========================
   フィルター情報 / 件数表示
========================= */
.filter-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #777;
}

.filter-reset-btn {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(192, 80, 112, 0.4);
  background: transparent;
  color: #c05070;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-reset-btn:hover {
  background: #c05070;
  color: #fff;
}

.range-info {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}
