/**
 * ニュースページ専用CSS
 * @description ニュースページ特有のレイアウトとフィルター機能
 */

@layer pages {

/* ==========================================================================
   ニュースページ基本レイアウト
   ========================================================================== */
.page-news {
  background: #f8fafc;
  min-height: 100vh;
}

.page-news .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ==========================================================================
   フィルター・検索エリア
   ========================================================================== */
.news-filters {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.filter-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #3b82f6;
  margin-right: 12px;
  border-radius: 2px;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.filter-btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #f1f5f9;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #e2e8f0;
  color: #374151;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #3b82f6;
  color: white;
  font-weight: 600;
}

/* ==========================================================================
   検索結果表示
   ========================================================================== */
.search-results {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  position: relative;
}

.search-results::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #3b82f6;
  margin-right: 12px;
  border-radius: 2px;
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.search-results.hidden-section {
  display: none;
}

.search-results-text {
  font-size: 16px;
  color: #374151;
  font-weight: 600;
  margin: 0;
  padding-left: 28px;
  display: flex;
  align-items: center;
}

#search-count {
  font-weight: 700;
  color: #1d4ed8;
}

/* ==========================================================================
   モバイル対応
   ========================================================================== */
@media (max-width: 768px) {
  .page-news .container {
    padding: 24px 16px;
  }
  
  .news-filters {
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
  }
  
  .filter-buttons {
    gap: 8px;
    justify-content: center;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 70px;
  }
  
  .search-results {
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
  }
  
  .search-results::before {
    left: 24px;
  }
  
  .search-results-text {
    font-size: 14px;
    padding-left: 24px;
  }
}

}
