/* ==========================================================
   Trineed Kaigo — blog.css（コラム記事・一覧・カテゴリー）
   記事本文は旧サイト・週1ブログで書いたもの（インラインstyle・旧クラス box / onayamai / act）をそのまま出す
   ========================================================== */

/* ---------- 記事の見出し帯 ---------- */
.page-hero--post .post-title { font-size: clamp(22px, 5.2vw, 34px); line-height: 1.55; letter-spacing: .02em; margin-bottom: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 24px 0 12px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.post-meta__upd { color: rgba(255, 255, 255, .65); }
.post-meta__cat { padding: 3px 12px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-light); font-weight: 700; font-size: 12px; text-decoration: none; }
.post-meta__cat:hover { background: rgba(201, 161, 74, .15); }

/* ---------- 記事本文 ---------- */
.post-body { font-size: 16px; line-height: 1.95; color: var(--text); overflow-wrap: anywhere; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.2em; }
.post-body h2 { margin: 2.4em 0 1em; padding: 12px 16px; border-left: 5px solid var(--gold); background: var(--navy-50); color: var(--navy-800); font-size: clamp(19px, 4.6vw, 23px); line-height: 1.55; }
.post-body h3 { margin: 2em 0 .8em; padding-bottom: 8px; border-bottom: 2px dotted var(--navy-700); color: var(--navy-800); font-size: clamp(17px, 4.2vw, 20px); line-height: 1.6; }
.post-body h4 { margin: 1.6em 0 .6em; color: var(--navy-800); font-size: 17px; }
.post-body a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--cta-dark); }
.post-body strong, .post-body b { color: var(--navy-900); }
.post-body ul, .post-body ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.post-body li { margin-bottom: .4em; }
.post-body img { max-width: 100%; height: auto; }
.post-body blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--line); background: #fafbfd; color: var(--muted); }

/* 表：スマホでは横にスクロール（列を隠さない） */
.post-body table { width: 100%; margin: 0 0 1.6em; border-collapse: collapse; font-size: 15px; line-height: 1.75; }
.post-body th, .post-body td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.post-body th { background: var(--navy-50); color: var(--navy-800); }
@media (max-width: 767px) {
	.post-body table:not(.onayamai) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 旧クラス：.box（記事冒頭の画像） */
.post-body .box { margin: 0 0 1.6em; text-align: center; }
.post-body .box img { width: 100%; border-radius: 10px; vertical-align: bottom; }

/* 旧クラス：table.onayamai（左に写真・右に本文）。スマホは縦に並べる */
.post-body table.onayamai { border: 0; }
.post-body table.onayamai th, .post-body table.onayamai td { border: 0; background: none; padding: 0; }
.post-body table.onayamai th { width: 34%; padding-right: 20px; }
.post-body table.onayamai th img { width: 100% !important; border-radius: 10px; }
.post-body table.onayamai ul { list-style: none; padding: 0; margin: 0; }
.post-body table.onayamai li > h3:first-child { margin-top: 0 !important; }
@media (max-width: 767px) {
	.post-body table.onayamai, .post-body table.onayamai tbody, .post-body table.onayamai tr,
	.post-body table.onayamai th, .post-body table.onayamai td { display: block; width: 100%; }
	.post-body table.onayamai th { padding: 0 0 12px; }
}

/* 旧クラス：ol.act（丸数字の悩みリスト） */
.post-body ol.act { counter-reset: act; list-style: none; margin: 1.2em 0 1.6em; padding: 0; }
.post-body ol.act li { position: relative; margin: 0 0 8px; padding: 10px 14px 10px 52px; border-radius: 10px; background: var(--navy-50); color: var(--navy-800); font-weight: 700; }
.post-body ol.act li::before { counter-increment: act; content: counter(act); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--navy-800); color: #fff; font-size: 14px; line-height: 28px; text-align: center; }

/* ---------- 目次 ---------- */
.post-toc { margin: 1.8em 0 2.4em; padding: 18px 22px 16px; border: 1px solid var(--line); border-top: 4px solid var(--navy-800); border-radius: 12px; background: #fafbfd; }
.post-toc__title { margin: 0 0 8px !important; color: var(--navy-800); font-weight: 700; font-size: 15px; letter-spacing: .1em; }
.post-body .post-toc ol { margin: 0; padding-left: 1.6em; }
.post-body .post-toc li { margin: 0; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; line-height: 1.7; }
.post-body .post-toc li:last-child { border-bottom: 0; }
.post-body .post-toc a { color: var(--navy-700); text-decoration: none; }
.post-body .post-toc a:hover { color: var(--cta-dark); text-decoration: underline; }

/* ---------- 前後の記事 ---------- */
.post-nav { display: grid; gap: 12px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy-800); font-weight: 700; font-size: 14.5px; line-height: 1.7; text-decoration: none; }
.post-nav a span { display: block; margin-bottom: 4px; font-size: 12px; color: var(--cta-dark); }
.post-nav a:hover { border-color: var(--navy-600); }
.post-nav__next { text-align: right; }
@media (min-width: 768px) {
	.post-nav { grid-template-columns: 1fr 1fr; }
	.post-nav__next { grid-column: 2; }
}

/* ---------- 一覧 ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.blog-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-800); font-size: 14px; font-weight: 700; text-decoration: none; }
.blog-cats a span { font-size: 12px; color: var(--muted); }
.blog-cats a[aria-current] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.blog-cats a[aria-current] span { color: rgba(255, 255, 255, .75); }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.post-card a:hover { border-color: var(--navy-600); box-shadow: var(--shadow); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.post-card__cat { font-weight: 700; color: var(--gold); }
.post-card__title { font-weight: 700; font-size: 16.5px; line-height: 1.65; color: var(--navy-800); }
.post-card__ex { font-size: 14px; line-height: 1.8; color: var(--muted); }
.post-card__more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--cta-dark); }
@media (min-width: 768px) {
	.post-list { grid-template-columns: 1fr 1fr; }
}
.post-list__all { margin: 28px 0 0; text-align: center; }
.blog-empty { color: var(--muted); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy-800); font-weight: 700; text-decoration: none; }
.pagination .page-numbers.current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pagination .page-numbers.dots { border: 0; }
.page-hero__title small { font-size: .55em; margin-left: .4em; }
