section#cover {
  background: #f5f5f5;

  h1 {
    margin-bottom: 2vh;
  }

  div.line {
    width: 5%;
    border: solid 2px #8C1E23;
    margin-bottom: 2vh;
  }

  h2 {
    padding-top: 10px;
    color: #999;
  }

  @media (width > 800px) {
    height: 25vh;
  }
}

section#news {
  div.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;

    @media (width < 700px) {
      grid-template-columns: 1fr;
      gap: 60px;
    }

    width: 90%;
    max-width: 1200px;
    margin:40px auto;

    article {
      figure {
        width: 100%;
        position: relative;
        overflow: hidden;
        aspect-ratio: 16 / 9;

        img {
          display: block;
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
        }
      }

      p.date {
        font-weight: bold;
        font-size: 14px;
      }

      h3 {
        font-size: 22px;
        margin-bottom: 1rem;
      }

      a.read-more {
        color: #8C1E23;
        font-weight: bold;
      }
    }
  }
}

nav.pagination {
  text-align: center;
  /* ページネーション全体 */
  ul.page-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 20px 0;
    margin: 0 auto;
  }

  /* 各ボタン */
  ul.page-numbers li .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #ccc;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: 0.2s ease;
  }

  /* ホバー時 */
  ul.page-numbers li .page-numbers:hover {
    background: #f0f0f0;
  }

  /* 現在のページ（アクティブ） */
  ul.page-numbers li .current {
    background: #333;
    color: #fff;
    border-color: #333;
    cursor: default;
  }

  /* ドット (…) のスタイル */
  ul.page-numbers li .dots {
    border: none;
    background: transparent;
    cursor: default;
  }

  /* 「次へ」ボタンなど */
  ul.page-numbers li .next {
    font-weight: bold;
  }

}