/* お知らせページ用CSS */

.news-hero-container {
  position: relative;
  margin-bottom: 40px;
}

.news-hero {
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-hero img {
  width: auto;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
}

.news-page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  padding: 20px 40px;
  background-color: #2a6480;
  border-radius: 20px;
  color: #fff;
}

.news-page-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 80px auto;
  text-align: center;
}

.news-lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  color: #000;
  margin: 40px auto 80px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 70%;
}

.news-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

.news-container {
  width: 100%;
}

.news-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.news-post-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.news-post-link:hover {
  text-decoration: none;
}

.news-post-thumbnail {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.news-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.news-post-item:hover .news-post-thumbnail img {
  transform: scale(1.05);
}

.news-post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2a6480;
  margin: 0;
  line-height: 1.4;
}

.news-post-date {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

.news-post-excerpt {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.no-posts {
  text-align: center;
  padding: 80px 20px;
}

.no-posts p {
  font-size: 1.2rem;
  color: #666;
}

/* ページネーション */
.navigation.pagination {
  margin-top: 60px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  background-color: #ffffff;
  color: #2a6480;
  border: 2px solid #2a6480;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links .page-numbers:hover {
  background-color: #2a6480;
  color: #ffffff;
  text-decoration: none;
}

.nav-links .page-numbers.current {
  background-color: #2a6480;
  color: #ffffff;
  border-color: #2a6480;
}

.nav-links .dots {
  padding: 10px 8px;
  color: #2a6480;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .news-hero img {
    height: 300px;
  }

  .news-page-title {
    font-size: 1.5rem;
    padding: 15px 30px;
  }

  .news-page-title-container {
    margin: 40px auto;
  }

  .news-lead {
    font-size: 1rem;
    padding: 0 30px;
    width: 100%;
    margin: 20px auto 40px auto;
    line-height: 1.6;
  }

  .news-main-content {
    padding: 0 16px 40px 16px;
  }

  .news-posts {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .news-post-thumbnail {
    height: 200px;
  }

  .news-post-content {
    padding: 16px;
  }

  .news-post-title {
    font-size: 1.2rem;
  }

  .news-post-date {
    font-size: 0.85rem;
  }

  .news-post-excerpt {
    font-size: 0.9rem;
  }

  .no-posts {
    padding: 40px 20px;
  }

  .no-posts p {
    font-size: 1rem;
  }

  .nav-links .page-numbers {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
