@charset "UTF-8";
/* ==========================================================================
   お知らせ一覧（home.php・category.php → template-parts/news-archive.php）・お知らせ詳細（single-post.php）
   - 1件ごとの見た目（日付・タイトル・もっと見る）はトップと共通で common.css の .newsItem
   - 詳細の本文（見出し・リスト・画像など）は entry.css
   ========================================================================== */

/* 一覧
   -------------------------------------------------------------------------- */
.newsPage {
  padding: 99.9px 0 193.6px;
}
/* 左にカテゴリー、右に一覧（一覧の幅はトップのお知らせと同じ） */
.newsArchive {
  display: grid;
  grid-template-columns: 1fr 543.25px;
  align-items: start;
  margin-top: 128.7px;
}
.newsCats ul {
  display: flex;
  flex-direction: column;
  gap: 16.13px;
}
.newsCat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 119.43px;
  height: 32.15px;
  padding: 0 4px;
  border: 1px solid var(--fontColor);
  border-radius: 16.08px;
  box-sizing: border-box;
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background .3s, color .3s;
}
.newsCat.is-active {
  background: var(--fontColor);
  color: var(--white);
}
@media (hover: hover) {
  .newsCat:not(.is-active):hover {
    background: var(--bgColor);
  }
}
.newsArchiveBody {
  min-width: 0;
  margin-top: -4.2px;
}
.newsEmpty {
  font-size: 15px;
  line-height: 32.2px;
}
@media (max-width: 1024px) {
  .newsPage {
    padding: 54.6px 0 95.5px;
  }
  .newsArchive {
    grid-template-columns: 100%;
    margin-top: 42.4px;
  }
  .newsCats ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10.13px 8.87px;
  }
  .newsArchiveBody {
    margin-top: 52.3px;
  }
}
/* スマホはボタンを3列に（幅いっぱいに均等） */
@media (max-width: 560px) {
  .newsCats ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .newsCat {
    width: 100%;
    height: 29.82px;
    border-radius: 14.91px;
    font-size: 11.13px;
  }  .newsPage .newsItem:not(:first-child) a {
    padding-top: 28.45px;
  }
}

/* ページ送り（丸い番号。前へ・次へは矢印） */
.pager {
  margin-top: 62.25px;
}
.pager ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14.36px;
}
.pager .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--fontColor);
  border-radius: 50%;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition: background .3s, color .3s;
}
.pager .current {
  background: var(--fontColor);
  color: var(--white);
}
.pager .dots {
  width: auto;
  border: 0;
}
.pager .prev,
.pager .next {
  width: 12px;
  border: 0;
  border-radius: 0;
}
.pager .prev {
  margin-right: 8.24px;
}
.pager .next {
  margin-left: 8.24px;
}
.pager .prev::before,
.pager .next::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.pager .prev::before {
  transform: rotate(-135deg);
}
.pager .is-disabled {
  opacity: .25;
}
@media (max-width: 1024px) {
  .pager {
    margin-top: 48.45px;
  }
}
@media (hover: hover) {
  .pager a.page-numbers:not(.prev, .next):hover {
    background: var(--bgColor);
  }
  .pager a.prev:hover,
  .pager a.next:hover {
    color: var(--primaryColor);
  }
}

/* 詳細
   -------------------------------------------------------------------------- */
.newsSingle {
  padding: 100.7px 0 167.4px;
}
.newsArticle {
  width: min(750px, 100% - var(--sidePadding) * 2);
  margin-inline: auto;
}
.newsArticleDate {
  display: block;
  font-size: 14px;
  line-height: 21px;
}
.newsArticleTitle {
  margin-top: 13px;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: .02em;
}
.newsArticle .entryBody {
  margin-top: 30.4px;
}
.newsBack {
  margin-top: 107.3px;
}
@media (max-width: 1024px) {
  .newsSingle {
    padding: 33.5px 0 94.4px;
  }
  .newsBack {
    margin-top: 71.6px;
  }
}
