.archive-news-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.archive-news-card-wrapper a {
  width: 100%;
}

.archive-news-card {
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  display: flex;
  height: 140px;
}

.archive-news-image {
  width: 30%;
  height: auto !important;
}

.archive-news-image img {
  width: 100%;
  object-fit: cover;
  height: 100% !important;
}

.archive-news-text-wrapper {
  padding: 4px 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 70%;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "游ゴシック Medium", YuGothic, YuGothicM, "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", Arial,
    sans-serif;
}

.archive-news-card-header {
  display: flex;
  gap: 0.5rem;
}

.archive-news-news-text {
  background: #00023e;
  color: #ffffff;
  display: inline-block;
  padding: 3px 0.5rem 0 0.5rem;
  font-size: 0.7rem;
  white-space: nowrap; /* テキストが折り返されないようにする */
  width: fit-content; /* コンテンツの幅に合わせる */
}

.archive-news-date {
  text-align: right;
  font-size: 0.8rem;
  color: #363636;
}

.archive-news-title {
  font-size: 1.2rem;
  color: #363636;
  margin-top: 0.5rem;
}

.archive-news-divider {
  height: 2px;
  background-color: #00023e;
  width: 20%;
}

.archive-news-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.5rem;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #a5a5a5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.archive-news-card-divider {
  height: 1px;
  background-color: #e7e7e7;
  width: 100%;
  margin: 1rem 0;
}

@media screen and (max-width: 1024px), (orientaion: portrait) {
  .archive-news-image img {
    aspect-ratio: 4/3;
    height: auto !important;
  }
}

/* ページネーション全体のスタイル */
.pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 20px 0;
}

/* 各ページリンク（リストアイテム）の間隔 */
.pagination ul li {
  margin: 0 5px;
}

/* ページリンク（aタグ と 現在のページの span）の基本スタイル */
.pagination ul li a,
.pagination ul li span {
  display: block;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: background-color 0.3s, border-color 0.3s;
}

/* aタグにホバー効果を追加 */
.pagination ul li a:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

/* 現在のページのスタイル */
.pagination ul li span.current {
  background-color: #333;
  color: #fff;
  border-color: #333;
}
