/*
 * News Page Styles
 * くるま買取ケイヴィレッジ
 * お知らせ一覧ページ専用スタイル
 */

/* ========================================
   Page Hero Section
   ======================================== */

.news-hero.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  overflow: hidden;
}

.news-hero.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  opacity: 0.6;
}

.news-hero .page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) var(--l-padding-side);
}

.news-hero .page-hero__content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.news-hero .page-hero__content p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .news-hero.page-hero {
    min-height: 70vh;
  }
}

/* ========================================
   Section Content Base
   ======================================== */

.section-content {
  padding: var(--l-section-margin-vertical) 0;
  position: relative;
}

.section-content.bg-white {
  background-color: var(--color-bg-white);
  color: var(--color-text-primary);
}

.section-content__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 6%;
}

@media (min-width: 768px) {
  .section-content__inner {
    flex-direction: row;
    gap: clamp(3rem, 8vw, 7.375rem);
  }
}

.section-label {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .section-label {
    width: clamp(200px, 25%, 330px);
  }
}

.l-content-full {
  width: 100%;
}

/* ========================================
   News List Section
   ======================================== */

/* カテゴリフィルター */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.category-filter-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  background: var(--color-bg-white);
  color: var(--color-text-primary);  
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body-ja);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

.category-filter-btn:hover {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.category-filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

@media (max-width: 767px) {
  .category-filter {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .category-filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* ニュースグリッド */
.news-list-section .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 767px) {
  .news-list-section .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
}

/* ニュースカード */
.news-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: none;  
  overflow: hidden;
  transition: var(--transition-smooth);  
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 0, 0, 0.15);
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
}

.news-card__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-family: var(--font-combined);
}

.news-card__date i {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.news-card .badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
}

.news-card .badge.badge-news {
  background: linear-gradient(135deg, #0071b9, #005a95);
  color: #ffffff;
}

.news-card .badge.badge-campaign {
  background: linear-gradient(135deg, #22b5b9, #0089d6);
  color: #ffffff;
}

.news-card .badge.badge-event {
  background: linear-gradient(135deg, #009cff, #0071b9);
  color: #ffffff;
}

.news-card .badge.badge-vehicle {
  background: linear-gradient(135deg, #005a95, #0071b9);
  color: #ffffff;
}

.news-card__title {
  padding: 0 1.5rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__excerpt {
  padding: 0 1.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  margin-top: auto;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.news-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: gap 0.3s ease;
}

.news-card:hover .news-card__read-more {
  gap: 0.75rem;
}

.news-card__read-more i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card__read-more i {
  transform: translateX(4px);
}

/* ニュース空表示 */
.news-list-section .news-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: none;  
}

.news-list-section .news-empty i {
  font-size: 4rem;
  color: #cccccc;
  margin-bottom: 1.5rem;
  display: block;
}

.news-list-section .news-empty p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: var(--color-bg-white);
  color: var(--color-text-primary);  
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination__item:hover:not(.pagination__item--disabled):not(.pagination__item--active) {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.pagination__item--active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  pointer-events: none;
}

.pagination__item--disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.pagination__item i {
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .pagination {
    gap: 0.375rem;
    margin-top: 3rem;
  }

  .pagination__item {
    min-width: 40px;
    height: 40px;
    font-size: 0.8125rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */

.leading-180 {
  line-height: 1.8;
}

/* ========================================
   Typography Overrides for News
   ======================================== */

.news-hero .t-headline-l-en,
.news-hero .t-combined-400_500-12-14 {
  color: #ffffff;
}

.section-content h2,
.section-content h3,
.section-content .t-headline-s-ja {
  color: var(--color-primary);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 767px) {
  .section-content {
    padding: clamp(3rem, 8vw, 4rem) 0;
  }

  .news-list-section .news-grid {
    margin-top: 2rem;
  }

  .news-list-section .news-empty {
    padding: 3rem 1.5rem;
  }

  .news-list-section .news-empty i {
    font-size: 3rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .news-hero.page-hero {
    min-height: auto;
    background: var(--color-bg-white);
    color: var(--color-text-primary);
  }

  .news-hero.page-hero::before {
    display: none;
  }

  .category-filter {
    display: none;
  }

  .pagination {
    display: none;
  }

  .section-content {
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  .news-card {
    box-shadow: none;
    border: 1px solid #cccccc;
    page-break-inside: avoid;
  }
}
