/* =================================================
   ニュース一覧ページ専用スタイル
   ================================================= */

#news-list-page {
  min-height: 70vh;
}

/* タブナビゲーション */
#news-list-page .nav-tabs {
  border-bottom: none;
  justify-content: center;
  margin-bottom: 3rem;
}

#news-list-page .nav-item {
  margin: 0 1rem;
}

#news-list-page .nav-link {
  align-items: center;
  border: none;
  border-bottom: 3px solid transparent;
  display: flex;
  padding: 1.5rem 2rem;
  color: var(--text-light);
  transition: var(--transition-default);
  background: transparent;
  font-weight: 600;
  font-size: 1.1rem;
}

#news-list-page .nav-link:hover {
  color: var(--primary-color);
  background: transparent;
}

#news-list-page .nav-link.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  background: transparent;
}

/* タブサークル */
#news-list-page .tab-circle {
  display: inline-block;
  height: 1.6rem;
  position: relative;
  width: 1.6rem;
}

#news-list-page .tab-circle::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 200%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(.5);
  width: 200%;
  transition: var(--transition-default);
}

#news-list-page .tab-circle::after {
  background-color: currentColor;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 1.2rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(.5);
  width: 1.2rem;
  transition: var(--transition-default);
}

#news-list-page .tab-cat {
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  margin-left: 1.6rem;
  transition: var(--transition-default);
}

/* ニュースリストカード */
.news-list-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-list-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* カード画像 */
.news-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-list-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.no-image-placeholder {
  color: var(--text-lighter);
  font-size: 2rem;
}

/* カードコンテンツ */
.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* メタ情報 */
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-date {
  font-size: 0.875rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-date i {
  font-size: 0.875rem;
}

.news-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e9ecef;
  color: var(--text-color);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-category.blog-category {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

/* タイトル */
.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 抜粋 */
.news-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* カードリンク */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: var(--transition-default);
}

.card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* ページネーション */
.pagination-wrapper {
  display: flex;
  justify-content: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  color: var(--text-color);
  text-decoration: none;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  transition: var(--transition-default);
  min-width: 44px;
  height: 44px;
}

.pagination-wrapper .page-numbers:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-wrapper .page-numbers.current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-wrapper .page-numbers.dots {
  border: none;
  background: none;
}

.pagination-wrapper .page-numbers.dots:hover {
  background: none;
  color: var(--text-color);
}

/* レスポンシブ対応 */
@media screen and (max-width: 991.98px) {
  #news-list-page .nav-item {
    margin: 0 0.5rem;
  }
  
  #news-list-page .nav-link {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 767.98px) {
  #news-list-page .nav-tabs {
    margin-bottom: 2rem;
  }
  
  #news-list-page .nav-item {
    margin: 0 0.25rem;
  }
  
  #news-list-page .nav-link {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
  
  #news-list-page .tab-cat {
    font-size: 1rem;
    margin-left: 1.2rem;
  }
  
  .news-card-image {
    height: 180px;
  }
  
  .news-card-content {
    padding: 1.25rem;
  }
}

@media screen and (max-width: 575.98px) {
  #news-list-page .nav-link {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }
  
  #news-list-page .tab-cat {
    font-size: 0.9rem;
    margin-left: 1rem;
  }
  
  .news-card-image {
    height: 160px;
  }
  
  .news-card-content {
    padding: 1rem;
  }
  
  .news-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .news-title {
    font-size: 1rem;
  }
  
  .news-excerpt {
    font-size: 0.8rem;
  }
  
  .pagination-wrapper .page-numbers {
    padding: 0.5rem 0.75rem;
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}

.news-list-card {
  animation: gp-fade-in-up var(--animation-duration) var(--animation-easing);
}

.news-list-card:nth-child(1) { animation-delay: calc(var(--animation-delay-step) * 1); }
.news-list-card:nth-child(2) { animation-delay: calc(var(--animation-delay-step) * 2); }
.news-list-card:nth-child(3) { animation-delay: calc(var(--animation-delay-step) * 3); }
.news-list-card:nth-child(4) { animation-delay: calc(var(--animation-delay-step) * 4); }
.news-list-card:nth-child(5) { animation-delay: calc(var(--animation-delay-step) * 5); }
.news-list-card:nth-child(6) { animation-delay: calc(var(--animation-delay-step) * 6); }
