:root {
  --color-text-main: #111;
  --color-text-sub: #585858;
  --color-text-muted: #7f7f7f;
  --color-link-main: #0b57d0;
  --color-link-hover: #083d9c;
  --color-ui-border: rgba(0,0,0,0.08);
  --color-ui-line: rgba(0,0,0,0.12);
  --color-gold: #b8860b;
}

/* ============================
   Category Top
============================ */


.category-keywords {
  margin-top: 30px;
}

.category-keywords__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid #888;
  border-radius: 30px;
  background: #fff;
  color: var(--color-text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.category-keywords__trigger:hover {
  border-color: #1a1a2e;
  background: #1a1a2e;
  color: #fff;
}

.category-top .cat-card-title,
.category-top .cat-card-body h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.category-top .cat-card-meta {
  font-size: 12px;
}

/* ============================
   Pagination
============================ */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.pagination__list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0 24px;
  margin: 0;
}

.pagination__list li a,
.pagination__list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 13px;
  color: var(--color-text-main);
  text-decoration: none;
}

.pagination__list li a:hover {
  border-color: #1a1a2e;
  background: #1a1a2e;
  color: #fff;
}

.pagination__list .is-current span {
  border-color: #1a1a2e;
  background: #1a1a2e;
  color: #fff;
  font-weight: 600;
}

.pagination__list .is-ellipsis span {
  border: none;
}

/* ============================
   Single Article Base
============================ */
.single-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.single-article-header {
  margin-bottom: 28px;
}

.single-article-title {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-main);
  margin: 0 0 2rem;
}

/* meta */
.single-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--color-text-sub);
}

.single-article-meta__author a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-article-meta__author a:hover {
  color: var(--color-text-main);
}

/* thumbnail */
/*.single-article-thumbnail {
  margin: 18px 0 24px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}*/

.single-article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================
   Article Content
============================ */
.single-article-content {
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  color: var(--color-text-main);
}

.single-article-content p {
  margin: 0 0 1.1em;
  color: var(--color-text-main);
}

.single-article-content strong {
  font-weight: 600;
}

.single-article-content a {
  color: var(--color-link-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-article-content a:hover {
  color: var(--color-link-hover);
}

/* h2 */
.single-article-content h2 {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px; 
    margin-top: 40px;
margin-bottom: 32px;
}

.single-article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text-main);
  opacity: .8;
}

.single-article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom:0px;
  width: 50px;
  height: 1px; 
  background: var(--color-gold);
  z-index: 1;
  border-radius: 999px;
}


/* h3 */
.single-article-content h3 {
  font-size: 19px;               
  line-height: 1.6;
  font-weight: 600;
  margin: 2em 0 0.8em;
  padding-left: 12px;
  position: relative;
  color: var(--color-text-main);
}

.single-article-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 3px;
  height: 1em;
  background: var(--color-gold);
  border-radius: 2px;
}


/* images */
.single-article-content figure {
  margin: 32px 0;
}

.single-article-content .wp-block-image img {
  max-width: 90%;
  margin: 32px auto 12px;
  display: block;
}

.single-article-content figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-sub);
}

/* ============================
   Tags / Recommend
============================ */
.single-tag,
.single-recommend {
  max-width: 960px;
  margin: 26px auto 0;
  padding: 0 20px;
}

.single-tag__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.single-tag__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-main);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.single-tag__list a:hover {
  border-color: #1a1a2e;
  background: #1a1a2e;
  color: #fff;
}



/* ============================
   TOC / 目次
============================ */
.page_menu {
  margin: 0 0 32px;
  padding: 24px 40px;
  background: #f9fafb;
}

.page_menu::before {
  content: "─ 目次";
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.page_menu > ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page_menu > ol > li {
  padding: 3px 0;
  border-top: 1px solid var(--color-ui-border);
}

.page_menu > ol > li:first-child {
  border-top: none;
}

.page_menu a {
  color: var(--color-text-sub);
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
}

.page_menu li:hover::before {
  color: var(--color-text-main);
}

.page_menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-text-main);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page_menu a:hover {
  color: var(--color-text-main);
}

.page_menu a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}


.page_menu ol ol {
  margin: 6px 0 0;
  padding: 0 0 0 1.2em;
  list-style: none;
}

.page_menu ol ol li {
  padding: 2px 0;
  border-top: none;
}

.page_menu ol ol li:hover::before {
  color: var(--color-text-main);
}/* ============================
   Recommend List
============================ */

.single-recommend__list {
  max-width: 960px;
  margin: 48px auto 0;
  padding: 32px 20px 0;
  border-top: 1px solid var(--color-ui-border);
  list-style: none;
}

.single-recommend__list::before {
  content: "おすすめ記事";
  display: block;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-sub);
}

.single-recommend__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-ui-border);
}

.single-recommend__list li:last-child {
  border-bottom: none;
}

.single-recommend__list a {
  display: block;
  color: var(--color-text-main);
  text-decoration: none;
  line-height: 1.6;
  font-weight: 600;
}

.single-recommend__list a:hover {
  color: var(--color-text-sub);
}

/* category-top W1408px H792px でページ下部ボタンまで視認できるよう調整 */
.cat-card-body{
  padding:10px 14px
}
.category-top .cat-card-title, .category-top .cat-card-body h3 {
    font-size: 16px;
}

@media (min-width: 1408px) and (max-height: 792px) {

  .cat-card-title {
    -webkit-line-clamp: 2;
  }

  .category-top .cat-block {
      padding-top: 30px;
  }

  .pagination {
      margin-top: 5px;
  }

}



/* =========================================
   記事ページ 可読性調整（2026-02-02）
========================================= */

.single-recommend__list {
  margin-bottom: 48px;
}

.single-article-thumbnail {
  max-width: 820px;
  margin: 18px auto 24px;
}

.single-article-content {
  font-size: 17px;
  line-height: 1.95;
}

.page_menu::before {
  content: "─ 目次";
  font-size: 14px;
}

.page_menu a {
  font-size: 16px;
  font-weight: 500;
}

.single-article-content h2 {
  font-size: 27px;
  line-height: 1.45;
}
