.main-news {
  width: 100%;
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding-top: 25px;
  padding-bottom: 25px;
  display: block;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.news-box {
  width: 100%;
  max-width: 1024px;
  height: 100%;
  margin: 25px auto;
  display: flex;
}

.news_img {
  width: 300px;
  /* height: auto; */
  margin: 25px;
}

@media (hover: hover) {
  .news_img:hover {
    transform: scale(1.05);
  }

  .news_textBox .readmore a:hover {
    color: #f3f3f3;
  }
}

.news_textBox {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 25px;
  padding: 5px 0px;
  display: grid;
  line-break: anywhere;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.news_textBox h2 {
  font-size: 20px;
  margin: 10px 0px;
}

.news_textBox time p {
  margin: 5px 0px;
}

.news_textBox .readmore {
  margin-top: 20px;
  margin-left: auto;
  margin-right: 10px;
}

.news_textBox .readmore a {
  color: #9e9e9e;
}



@media screen and (max-width: 768px) {
  .news-box {
    max-width: 640px;
    width: 100%;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
  }

  .news_img {
    width: 100%;
    height: auto;
    margin: auto;
  }

  .news_textBox {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 25px;
    line-break: anywhere;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
  }

  .main-news {
    padding-left: 25px;
    padding-right: 25px;
  }
}


/* ページングで表示するコンテンツのスタイル
初期表示は非表示 */
.page_list li {
  display: none;
}

/* onクラス添付で画面に表示 */
.page_list li.on {
  display: block;
}

/* ページネーションの現在のページに「.active」クラスを付与して色を変える */
.pagination .number>a.active {
  color: #ffb787;
}

.pagination {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pagination .number {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 0;
}