body.page-template-page-news section.news {
  margin: 0;
  padding: 0;
}

/* ===== カテゴリフィルタ ===== */
body.page-template-page-news section.news .newsgrid-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 32px auto 40px;
  padding: 0 16px;
}
body.page-template-page-news section.news .newsgrid-filter__item {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #5D7C95;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  color: #5D7C95;
  background: #fff;
  transition: all .15s ease;
}
body.page-template-page-news section.news .newsgrid-filter__item:hover {
  transform: translateY(-1px);
  border-color: #bbb;
}
body.page-template-page-news section.news .newsgrid-filter__item.is-active {
  background: #5D7C95;
  color: #fff;
  border-color: #5D7C95;
}

/* ===== カードのグリッド ===== */
body.page-template-page-news section.news .newsgrid {
  --gap: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 1024px) {
  body.page-template-page-news section.news .newsgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  body.page-template-page-news section.news .newsgrid {
    grid-template-columns: 1fr;
  }
}

/* ===== カード本体 ===== */
body.page-template-page-news section.news .newsgrid-card {
  margin: 8px;
  padding-bottom: 16px;
  list-style: none;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
body.page-template-page-news section.news .newsgrid-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
body.page-template-page-news section.news .newsgrid-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #f7f7f7;
  overflow: hidden;
}
body.page-template-page-news section.news .newsgrid-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.page-template-page-news section.news .newsgrid-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding: 16px 20px 0;
}
body.page-template-page-news section.news .newsgrid-card__date {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}
body.page-template-page-news section.news .newsgrid-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
body.page-template-page-news section.news .newsgrid-card__cat {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #555;
  font-size: 12px;
  line-height: 1;
}
body.page-template-page-news section.news .newsgrid-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  padding: 20px;
  color: #111;
}
body.page-template-page-news section.news .newsgrid-card__excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  padding: 0 20px 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== ページネーション ===== */
body.page-template-page-news section.news .newsgrid-pagination {
  margin: 40px auto 0;
  max-width: 1200px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}
body.page-template-page-news section.news .newsgrid-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding-left: 0;
  width: 100%;
}
body.page-template-page-news section.news .newsgrid-pagination .page-numbers li {
  list-style: none;
}
body.page-template-page-news section.news .newsgrid-pagination a,
body.page-template-page-news section.news .newsgrid-pagination span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #5D7C95;
  border-radius: 8px;
  color: #5D7C95;
  background: #fff;
  text-decoration: none;
}
body.page-template-page-news section.news .newsgrid-pagination .current {
  background: #5D7C95;
  color: #fff;
}

/* ===== 空メッセージ ===== */
body.page-template-page-news section.news .newsgrid-empty {
  text-align: center;
  color: #666;
  padding: 32px 16px 0;
}

body.page-template-page-news section.news .newsgrid {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

body.page-template-page-news section.news .newsgrid article.newsgrid-card {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0;
  display: block;
  box-sizing: border-box;
}

a.c-btn.-primary {
    background: #FFFFFF;
    border: 1px;
    border-color: rgb(0, 0, 0);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    border-radius: 7px;
    margin: 30px 15px;
    padding: 6px 30px;
    color: #5A7993;
}