/* news.css */

/* News List Section */
.news-list-section {
  background-color: var(--bg-light);
}

.news-grid {
  /* トップページのnews-gridと共通のスタイル */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-item {
  /* トップページのnews-itemと共通のスタイル */
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.news-item:hover {
  /* トップページのnews-itemと共通のスタイル */
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-item .news-date {
  /* トップページのnews-itemと共通のスタイル */
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

.news-item .news-title {
  /* トップページのnews-itemと共通のスタイル */
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-item .news-excerpt {
  /* トップページのnews-itemと共通のスタイル */
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.news-item a {
  /* トップページのnews-itemと共通のスタイル */
  text-decoration: none;
  color: inherit;
}

.news-item a:hover .news-title {
  /* トップページのnews-itemと共通のスタイル */
  color: var(--primary-color);
}

.loading-message {
  /* トップページのloading-messageと共通のスタイル */
  text-align: center;
  font-size: 18px;
  color: #777;
  padding: 50px 0;
  grid-column: 1 / -1;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination-button {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination-button:hover:not(.disabled) {
  background-color: var(--secondary-color);
}

.pagination-button.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.pagination-page-info {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* Responsive Adjustments for news.html */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .pagination-container {
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .pagination-button {
    padding: 8px 12px;
    font-size: 14px;
  }
  .pagination-page-info {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .news-item {
    padding: 20px;
  }
  .news-item .news-date {
    font-size: 13px;
  }
  .news-item .news-title {
    font-size: 16px;
  }
  .news-item .news-excerpt {
    font-size: 14px;
  }
  .pagination-container {
    gap: 8px;
  }
}
