/* /articles/ 固定ページ用 */
body.nengoro-articles-page {
  --nengoro-green: #3B5B4C;
  --nengoro-muted: #666;
  --nengoro-line: #E2E6E3;
}

body.nengoro-articles-page .article h1 {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

body.nengoro-articles-page .nengoro-articles-header {
  margin-bottom: 36px;
  color: var(--nengoro-muted);
  line-height: 1.8;
}

body.nengoro-articles-page .nengoro-articles-list {
  border-top: 1px solid var(--nengoro-line);
}

body.nengoro-articles-page .nengoro-articles-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--nengoro-line);
  background: transparent;
  position: relative;
  overflow: visible;
}

/* 1記事全体を1つのリンクにして、タイトルを含むどこからでも確実に遷移できるようにする */
body.nengoro-articles-page .nengoro-articles-item-link {
  display: grid !important;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 24px 0;
  color: inherit !important;
  text-decoration: none !important;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 3;
  outline: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
  -webkit-tap-highlight-color: rgba(59, 91, 76, .08);
}

body.nengoro-articles-page .nengoro-articles-item-link:hover .nengoro-articles-title,
body.nengoro-articles-page .nengoro-articles-item-link:focus-visible .nengoro-articles-title {
  color: var(--nengoro-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.nengoro-articles-page .nengoro-articles-item-link:focus-visible {
  outline: 1px solid rgba(59,91,76,.55) !important;
  outline-offset: 5px !important;
}

body.nengoro-articles-page .nengoro-articles-thumb {
  display: block;
  height: 112px;
  overflow: hidden;
  background: #ECEFED;
}

body.nengoro-articles-page .nengoro-articles-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(.98);
}

body.nengoro-articles-page .nengoro-articles-body {
  display: block;
  min-width: 0;
}

body.nengoro-articles-page .nengoro-articles-category {
  display: block;
  color: var(--nengoro-green);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.5;
}

body.nengoro-articles-page .nengoro-articles-title {
  display: block;
  margin: 7px 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #222;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.55;
  transition: color .18s ease;
}

body.nengoro-articles-page .nengoro-articles-excerpt {
  display: block;
  margin: 0;
  color: var(--nengoro-muted);
  font-size: .86rem;
  line-height: 1.7;
}

body.nengoro-articles-page .nengoro-articles-date {
  color: #888;
  font-size: .76rem;
  white-space: nowrap;
}

/* Cocoon/スキンのリンク疑似要素やクリック演出が一覧内に侵入しないよう限定解除 */
body.nengoro-articles-page .nengoro-articles-archive a::before,
body.nengoro-articles-page .nengoro-articles-archive a::after,
body.nengoro-articles-page .nengoro-articles-pagination a::before,
body.nengoro-articles-page .nengoro-articles-pagination a::after {
  content: none !important;
  display: none !important;
}

body.nengoro-articles-page .article:focus-within,
body.nengoro-articles-page .entry-content:focus-within,
body.nengoro-articles-page .nengoro-articles-archive:focus-within {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 一覧ページは固定ページ用のSNSボタン・投稿日・編集リンクなどを非表示 */
body.nengoro-articles-page .sns-share,
body.nengoro-articles-page .sns-follow,
body.nengoro-articles-page .date-tags,
body.nengoro-articles-page .post-date,
body.nengoro-articles-page .article-header .date-tags,
body.nengoro-articles-page .edit-link,
body.nengoro-articles-page .breadcrumb {
  display: none !important;
}

/* 独自ページネーション。Cocoon側のページャー装飾と切り離す */
body.nengoro-articles-page .nengoro-articles-pagination {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 40px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  overflow: visible !important;
  float: none !important;
  clear: both !important;
}

body.nengoro-articles-page .nengoro-articles-pagination-inner {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
  position: static !important;
}

body.nengoro-articles-page .nengoro-articles-pagination-inner .page-numbers {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 1px solid #D8DEDA !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #333 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  position: static !important;
  transform: none !important;
  outline: 0 !important;
  overflow: hidden !important;
}

body.nengoro-articles-page .nengoro-articles-pagination-inner .page-numbers.current {
  border-color: var(--nengoro-green) !important;
  background: var(--nengoro-green) !important;
  color: #fff !important;
}

body.nengoro-articles-page .nengoro-articles-pagination-inner a.page-numbers:hover {
  border-color: var(--nengoro-green) !important;
  color: var(--nengoro-green) !important;
}

body.nengoro-articles-page .nengoro-articles-pagination-inner a.page-numbers:focus-visible {
  border-color: var(--nengoro-green) !important;
  color: var(--nengoro-green) !important;
  outline: 1px solid rgba(59,91,76,.55) !important;
  outline-offset: 2px !important;
}

body.nengoro-articles-page .nengoro-articles-pagination-inner .dots {
  border-color: transparent !important;
  background: transparent !important;
}

@media screen and (max-width: 680px) {
  body.nengoro-articles-page .nengoro-articles-item-link {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
  }

  body.nengoro-articles-page .nengoro-articles-thumb {
    height: 82px;
  }

  body.nengoro-articles-page .nengoro-articles-excerpt,
  body.nengoro-articles-page .nengoro-articles-date {
    display: none;
  }

  body.nengoro-articles-page .nengoro-articles-title {
    font-size: .98rem;
  }

  body.nengoro-articles-page .nengoro-articles-pagination {
    margin-top: 28px !important;
  }

  body.nengoro-articles-page .nengoro-articles-pagination-inner {
    gap: 7px !important;
  }

  body.nengoro-articles-page .nengoro-articles-pagination-inner .page-numbers {
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 9px !important;
  }
}
