h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h2,
h3 {
  letter-spacing: 0.1em;
}

/* アニメーション */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 
--------
ニュースセクション
--------
 */
#news.section {
  background: rgb(255, 255, 255);
    margin: 3rem auto 4rem;
  padding: 0 2rem 0;
}

.news-list {
  max-width: 1000px;
  list-style: none;
  padding: 4px;
  margin: 0 auto;
  margin-top: 3rem;
}

.news-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 1.2rem;
  transition: background 0.2s;
  border-top: 1px solid #e0e6ef;
  border-bottom: 1px solid transparent;
  flex-direction: column;
  align-items: flex-start;
}

.news-list a {
  color: #333;
  text-decoration: underline;
}

/* 最後の要素だけ下線も追加 */
.news-list li:last-child {
  border-bottom: 1px solid #e0e6ef;
}

.news-list li:hover {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

/* 1つ後ろの要素の上線を消す（透明にする） */
.news-list li:hover+li {
  border-top: 1px solid transparent;
}

.news-list li:has(+ li:hover) {
  border-bottom: 1px solid transparent;
}

.news-list time {
  color: #333;
  min-width: 100px;
  font-size: 1rem;
  white-space: nowrap;
}

.news-list span {
  color: #222;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .news-list span {
    font-size: 13px;
  }
}