/* 
 * news.css
* ニュースページ専用のスタイル
 */

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  margin: 60px auto 0;
  position: relative;
  gap: 10px;
}
.s .news-pagination {
  margin-top: 40px;
}

.news-pagination-item._prev + .news-pagination-item::before,
.news-pagination-item:first-child::before,
.news-pagination-item._next::before {
  display: none;
}
.news-pagination-item._prev {
  position: absolute;
  right: 100%;
}
.news-pagination-item._next {
  position: absolute;
  left: 100%;
}

#news {
  padding: 80px 80px 160px;
}
.s #news {
  scroll-margin-top: 24vw;
  padding: 50px 20px 100px;
}

.news-secTitle {
  font-family: ta-fuga-fude, sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 58px;
}
.s .news-secTitle {
  font-size: calc(48 / var(--root-font-size) * 1rem);
}

.s .news-title {
  font-size: calc(18 / var(--root-font-size) * 1rem);
}

.news-header {
  text-align: center;
  padding-top: 80px;
}

.news-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list {
  list-style: none;
  padding: 0 40px;
  max-width: 980px;
  margin: 60px auto 0;
  background: #fff;
}

.news-item {
  transition: opacity 0.2s ease;
  border-bottom: #8b1d24 1px solid;
}
.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  opacity: 0.8;
}

.news-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  text-decoration: none;
  color: #000;
}
.s .news-item a {
  padding: 24px 0px;
}

.news-item .news-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.news-item a::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../img/text-arrow.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: 24px;
  vertical-align: middle;
}

.news-pagination-item .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #8b1d24;
  color: #8b1d24;
  background-color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.news-pagination-item._current span {
  background-color: #8b1d24;
  color: #fff;
}

.news-pagination-item .dots {
  border: none;
  color: #8b1d24;
  font-size: 25px;
  background-color: transparent;
}

.news-pagination-item._prev a,
.news-pagination-item._next a {
  border: none;
  background-color: transparent;
}

.news-pagination-item._prev {
  padding-right: 40px;
}

.news-pagination-item._next {
  padding-left: 40px;
}

.news-date {
  color: #828282;
  font-size: 14px;
  font-weight: bold;
}
