/* アニメーション用 */
.rice_animation {
  width: 100%;
  height: 10rem;
  display: inline-flex;
  justify-content: right;
  margin-bottom: 2rem;
  overflow: hidden;
}

.plum_img,
.panda_img {
  width: 10%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.plum_img {
  animation: plum_rolling 20s linear forwards;
  flex-grow: 1;
}

.panda_img {
  transform: translateX(100vw);
  animation: panda_rolling 12s linear forwards;
  animation-delay: 0.5s;
  flex-grow: 1;
}

@keyframes plum_rolling {

  0% {
    transform: translateX(100vw) rotate(0deg);
  }

  100% {
    transform: translateX(-100vw) rotate(-2640deg);
  }

}

@keyframes panda_rolling {
  0% {
    transform: translateX(100vw) rotate(0deg);
  }

  100% {
    transform: translateX(-100vw) rotate(-3360deg);
  }
}

/* メインコンテンツ */
.main_container {
  place-items: center;
  padding-bottom: 1.6rem;
}

.news_wrapper {
  place-items: center;
  width: 90%;
}

.news_inner {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 120rem;
  gap: 2rem;
  margin-bottom: 4rem;
}

/* 記事カード */
.news_content {
  position: relative;
  overflow: hidden;
  width: 38.6rem;
  height: 27rem;
  border-radius: 1rem;

  /* 外枠の影 */
  box-shadow: 0 0.2rem 0.3rem #888888;

  /* ホバーの動き */
  transition: all 0.2s;
}

/* 記事カード：ホバー */
.news_content:hover {
  transform: scale(1.02);
  box-shadow: 0.1rem 0.5rem 1rem #999999;
}

.news_link {
  display: block;
  width: 100%;
  height: 100%;
}

.news_background {
  object-fit: cover;
  width: 100%;
  height: 64.5%;
}

/* 記事タイトル */
.news_detail {
  bottom: 0;
  left: 0;
  display: grid;
  position: absolute;
  background-color: #ffffff;
  width: 100%;
  height: 35.5%;
  /* border: 0.1rem solid #999999; */
}

.news_title {
  font-weight: bold;
  place-content: center;
  text-align: center;
  color: #000000;
  font-size: 1.6rem;
}

.news_date {
  color: #999999;
  width: 100%;
  font-size: 1.2rem;
  margin-left: 0.8rem;
}

/* ページネーション */
.navigation {
  margin-inline: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  padding-bottom: 4rem;
}

.prev,
.next {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  width: 12.8rem !important;
  height: 4.45rem !important;
  border-radius: 24rem !important;
  background: #6fa8dc !important;
  color: #ffffff !important;
  border: 0.1rem solid #6fa8dc;
}

.pagination_prevnext:last-child {
  background: #6fa8dc;
  color: #ffffff;
}

.pagination_prevnext:last-child {
  margin-left: 0.8rem;
}

.prev:hover,
.next:hover {
  color: #6fa8dc !important;
  background-color: #ffffff !important;
  border: 0.1rem solid #6fa8dc;
}

.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: solid 0.1rem #6fa8dc;
  color: #6fa8dc;
  font-weight: bold;
  transition: all 0.3s;
  width: 5.01rem;
  height: 5.01rem;
  font-size: 1.41rem;
  border-radius: 50%;
  margin-left: 0.8rem;
}

.current {
  background: #6fa8dc;
  color: #ffffff;
  pointer-events: none;
}

.page-numbers:hover {
  background: #6fa8dc;
  color: #ffffff;
}

/* aタグの範囲指定 */
.circle_design {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: inherit;
  /* 親の文字色を継承 */
  text-decoration: none;
}

/* 三点リーダー */
.dots {
  display: inline-block;
  text-align: center;
  color: #6fa8dc;
  background-color: transparent !important;
  border: none !important;
  font-weight: bold;
  font-size: 1.41rem;
  font-family: "Noto Sans JP", sans-serif;
  height: 5.01rem;
  margin-left: 0.8rem;
  align-content: end;
  /* pagination全体の下の位置に沿うように配置する*/
  pointer-events: none;
}

/* スマートフォン表示（SP版） */
@media screen and (max-width: 768px) {

  .rice_animation {
    height: 5rem;
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .news_inner {
    justify-content: center;
    width: 100%;
  }

  .pagination {
    justify-content: center;
    width: 100%;
  }

  .nav-links{
    padding-bottom: 0;
  }

  .prev {
    margin-left: 0 !important;
  }

  .prev,
  .next {
    width: 8rem !important;
  }

  .page-numbers {
    width: 4.8rem;
    height: 4.8rem;
    margin-left: 0.3rem;
  }

  .dots{
    width: 1.5rem !important;
  }
}