.news-page section.mainvisual-sec,
.newsdetail-page section.mainvisual-sec {
  height: 400px;
}

.news-list-section {
  padding: 160px 20px;
  max-width: 1100px;
  margin: 0 auto;
}



.news-container:has(.news-card:only-child) {
  justify-content: center;
  grid-template-columns: 1fr;
}


.news-card:hover {
  transform: translateY(-5px);
}


.news-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 8px;
  font-family: 'Sawarabi Gothic', sans-serif;
}

.news-title {
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.4;
  color: black;
}


.news-detail-container {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
  font-family: 'Noto Serif JP', serif;
}

.news-thumbnails {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.news-thumbnails img {
  max-height: 350px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}


.newsdetail-page .news-title {
  font-size: 1.8rem;
}

.news-body p {
  font-size: 1.1rem;
  line-height: 2;
  white-space: pre-line;
  padding: 10px 0;
}

.news-detail-container .btn {
  text-align: center;
}


@media screen and (max-width: 768px) {

  .news-page section.mainvisual-sec,
  .newsdetail-page section.mainvisual-sec {
    height: 100px;
  }

  .news-title {
    font-size: .9rem;
    font-weight: bold;
  }
}

/* カード全体のラップ */
.news-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  /* カード間の余白 */
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 各カード：PCは3列、タブレットは2列、スマホは1列 */
.news-card {
  width: calc(33.333% - 1.5rem);
  /* 3列レイアウト */
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  max-width: 300px;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* カード内テキスト */
.news-content {
  padding: 1rem;
}

.news-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  border-left: 5px solid #1b8e5f;
  padding-left: 15px;
  line-height: 1.4;
}

/* タブレット対応（2列） */
@media (max-width: 1024px) {
  .news-card {
    width: calc(50% - 1rem);
  }
}

/* スマホ対応（1列） */
@media (max-width: 600px) {
  .news-card {
    width: 100%;
  }
}