@charset "utf-8";

.title{
  margin-top: 50px;
  margin-bottom: 120px;
}
.title h1 {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.main {
  margin-bottom: 200px;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 45px;
  margin: 60px 8% 120px;
}
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .title{
    margin-top: 150px;
    margin-bottom: 120px;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .title{
    margin-top: 150px;
    margin-bottom: 120px;
  }
}


.news-item {
  cursor: pointer;
  margin-bottom: 20px;
}
.news-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #f5f5f5;
  margin-bottom: 1rem;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-item:hover .news-image img {
  transform: scale(1.05);
}
.news-date {
  display: block;
  font-size:16px;
  letter-spacing: 0.05em;
  margin-top: 16px;
}
.news-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 10px;
}
.news-description {
  font-size: 0.875rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/*-- ページャー --*/
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.pager-button {
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  color: #000;
}
.pager-button:hover:not(:disabled) {
  opacity: 0.7;
}
.pager-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pager-button svg {
  display: block;
  width: 25px;
  height: 25px;
}
.pager-numbers {
  display: flex;
  gap: 30px;
  align-items: center;
}
.pager-number {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 0 0 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s ease;
  color: #000;
}
.pager-number:hover {
  opacity: 0.7;
}
.pager-number.active {
  border-bottom-color: #000;
}