/* -----------------------------------
  Archive Page Styles
----------------------------------- */
.archive-page {
  padding: 60px 0;
}

.archive-header {
  margin-bottom: 40px;
  text-align: center;
}

.archive-title {
  font-size: 2.8rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.archive-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #333;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.blog-item {
  width: calc(33.33% - 20px);
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #999;
  font-size: 1.6rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-item:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #666;
}

.blog-date {
  margin-right: 15px;
}

.blog-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 15px;
  background-color: #f0f0f0;
}

/* Category specific colors */
.category-イベント .blog-category,
.category-event .blog-category {
  background-color: #4caf50;
  color: white;
}

.category-お知らせ .blog-category,
.category-news .blog-category {
  background-color: #2196f3;
  color: white;
}

.category-成績推移-合格実績 .blog-category,
.category-results .blog-category {
  background-color: #ff9800;
  color: white;
}

.blog-excerpt {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 3px;
  border-radius: 4px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}

.pagination .page-numbers.current {
  background-color: #333;
  color: #fff;
}

.pagination a.page-numbers:hover {
  background-color: #ddd;
}

.no-posts {
  text-align: center;
  font-size: 1.8rem;
  padding: 50px 0;
  color: #666;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .blog-item {
    width: calc(50% - 15px);
  }
}

@media screen and (max-width: 767px) {
  .archive-page {
    padding: 40px 0;
  }

  .archive-title {
    font-size: 2.2rem;
  }

  .blog-list {
    gap: 20px;
  }

  .blog-item {
    width: 100%;
  }

  .blog-image {
    height: 180px;
  }

  .blog-title {
    font-size: 1.6rem;
  }
}
