/* ニュース一覧ページ専用スタイル */

/* フィルターボタン */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.75rem 2rem;
  border: 2px solid #e5e7eb;
  border-radius: 2rem;
  background: white;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.filter-btn:hover {
  border-color: #14b8a6;
  color: #14b8a6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* ニュースアイテムリスト */
.news-list {
  max-width: 1000px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 2px solid #f3f4f6;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #14b8a6 0%, #3b82f6 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.news-item:hover {
  border-color: #14b8a6;
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
  transform: translateX(0.5rem);
}

.news-item:hover::before {
  transform: scaleY(1);
}

.news-item-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-date {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.news-badge {
  padding: 0.375rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.news-badge.info {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.news-badge.certification {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.news-badge.establishment {
  background: #dbeafe;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.news-item:hover .news-title {
  color: #14b8a6;
}

.news-icon {
  width: 0.5rem;
  height: 0.5rem;
  background: #14b8a6;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.news-item:hover .news-icon {
  opacity: 1;
}

/* ページネーション */
.pagination-wrapper {
  margin-top: 4rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-list li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-list a,
.pagination-list span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  color: #6b7280;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-list a:hover {
  border-color: #14b8a6;
  color: #14b8a6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.pagination-list .current,
.pagination-list span.current {
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.pagination-list .dots {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: default;
}

.pagination-list .dots:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 旧スタイル（互換性のため残す） */
.pagination-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  border-color: #14b8a6;
  color: #14b8a6;
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  color: white;
  border-color: transparent;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn:disabled:hover {
  transform: none;
  border-color: #e5e7eb;
}

/* 検索ボックス */
.search-box {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 3rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* アニメーション */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-item {
  animation: slideIn 0.5s ease-out backwards;
}

.news-item:nth-child(1) { animation-delay: 0.05s; }
.news-item:nth-child(2) { animation-delay: 0.1s; }
.news-item:nth-child(3) { animation-delay: 0.15s; }
.news-item:nth-child(4) { animation-delay: 0.2s; }
.news-item:nth-child(5) { animation-delay: 0.25s; }
.news-item:nth-child(6) { animation-delay: 0.3s; }
.news-item:nth-child(7) { animation-delay: 0.35s; }
.news-item:nth-child(8) { animation-delay: 0.4s; }
.news-item:nth-child(9) { animation-delay: 0.45s; }
.news-item:nth-child(10) { animation-delay: 0.5s; }

/* レスポンシブ */
@media (max-width: 768px) {
  .news-item {
    padding: 1.5rem;
  }

  .news-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .news-title {
    font-size: 1rem;
  }
  .news-icon {
    display: none;
  }
}