@charset "UTF-8";
.news {
  padding: 30px 0 60px;
  color: #3f8a43;
}

.news__inner {
  width: min(90%, 1000px);
  margin: 80px auto 0 auto;
}

/* ======================
   カテゴリボタン
====================== */
.news-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 25px;
  margin-bottom: 52px;
}

.news-filter__btn {
  height: 50px;
  border: 1px solid #c8d881;
  border-radius: 7px;
  background: #fff;
  color: #3f8a43;
  font-size: 20px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.3s;
}

.news-filter__btn.is-active,
.news-filter__btn:hover {
  background: #dfe8aa;
}

/* ======================
   記事一覧
====================== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list__item {
  display: grid;
  grid-template-columns: 90px 52px 1fr;
  align-items: center;
  -moz-column-gap: 22px;
  column-gap: 22px;
  padding: 0 0 24px;
  margin-bottom: 18px;
}

.news-list__date {
  font-size: 18px;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.news-list__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 14px;
  border-radius: 999px;
  background: #f2f5df;
  color: #3f8a43;
  font-size: 10px;
  padding: 3px;
  font-weight: 700;
}

.news-list__title {
  color: #3f8a43;
  font-size: 18px;
  line-height: 1.7;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 400;
}

.news-list__title:hover {
  opacity: 0.6;
}

/* ======================
   ページネーション
====================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.pagination__item {
  width: 30px;
  height: 30px;
  border: 1px solid #8cae3e;
  border-radius: 50%;
  color: #3f8a43;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__item.is-current,
.pagination__item:hover {
  background: #eef4cf;
}

/* ======================
   SP
====================== */
@media screen and (max-width: 768px) {
  .news {
    padding: 40px 0;
  }

  .news-filter {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 36px;
  }

  .news-filter__btn {
    height: 36px;
    font-size: 15px;
  }

  .news-list__item {
    width: 100%;
    -moz-column-gap: 14px;
    column-gap: 14px;
    row-gap: 8px;
    padding-bottom: 18px;
  }

  .news-list__title {
    grid-column: 1 / -1;
    font-size: 15px;
  }
}

/* ======================
   詳細ページ
====================== */
.news-single {
  padding: 30px 0 60px;
  color: #3f8a43;
}

.news-single__inner {
  width: min(90%, 1000px);
  margin: 80px auto 0 auto;
}

.news-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.news-single__date {
  font-size: 18px;
  letter-spacing: 0.03em;
}

.news-single__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  border-radius: 999px;
  background: #f2f5df;
  color: #3f8a43;
  font-size: 10px;
  padding: 3px 10px;
  font-weight: 700;
}

.news-single__title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #c8d881;
}

.news-single__body {
  font-size: 16px;
  line-height: 1.9;
}

.news-single__body p {
  margin: 0 0 1em;
}

.news-single__body img {
  max-width: 100%;
  height: auto;
}

.news-single__back {
  margin-top: 48px;
  text-align: center;
}

.news-single__back a {
  color: #3f8a43;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.news-single__back a:hover {
  opacity: 0.6;
}

.news-empty {
  text-align: center;
  padding: 40px 0;
  color: #3f8a43;
}

@media screen and (max-width: 768px) {
  .news-single__inner {
    margin-top: 40px;
  }

  .news-single__title {
    font-size: 20px;
  }

  .news-single__body {
    font-size: 15px;
  }
}
