@charset "UTF-8";
/* =========================================================
   コラム（一覧・記事）専用スタイル
   ../common/site.css と ../common/page.css の後に読み込む
   （紺の単色ヒーローは page.css の .page-hero--navy）
   ========================================================= */

/* ---------- カテゴリバー（常に表示） ---------- */
.cat-bar {
  position: relative; z-index: 5;
  margin: -48px 33px 0;
  background: var(--gray-bg);
  border-radius: 6px;
  padding: 26px 55px;
  display: flex; align-items: center; gap: 36px;
}
.cat-bar-label { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: var(--navy); white-space: nowrap; }
.cat-bar ul { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-bar a {
  display: inline-block; padding: 10px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.cat-bar a:hover { border-color: var(--navy); color: var(--navy); }
.cat-bar a.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 一覧 ---------- */
.col-list { padding: 110px 0 40px; }
.col-list-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }
.col-list-head .sec-title { margin-bottom: 0; }
.col-list-count { font-size: 15px; color: var(--text-sub); }

.col-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 44px; }
.col-card { display: flex; flex-direction: column; color: var(--text); }
.col-card-thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--ph); }
.col-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.col-card:hover .col-card-thumb img { transform: scale(1.04); }
.col-card-cat {
  position: absolute; left: 14px; top: 14px;
  background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 3px;
}
.col-card-date { display: block; margin-top: 22px; font-size: 14px; letter-spacing: .08em; color: var(--text-sub); }
.col-card-title { margin-top: 10px; font-size: 21px; font-weight: 500; line-height: 1.65; letter-spacing: .03em; }
.col-card:hover .col-card-title { color: var(--navy); }
.col-card-rule { border: 0; border-top: 1px solid var(--line); margin: 20px 0 16px; }
.col-card-excerpt { font-size: 15px; line-height: 1.9; color: var(--text-sub); margin: 0; }
.col-card-by { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--text); }
.col-card-by img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-chips a, .tag-chips span {
  display: inline-block; font-size: 13px; color: var(--navy);
  background: var(--teal-pale); padding: 4px 12px; border-radius: 3px;
}

.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 90px; font-size: 15px; }
.pager span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 500; }
.pager small { color: var(--text-sub); font-size: 14px; letter-spacing: .1em; }

/* カテゴリから探す（一覧・記事の下部） */
.cat-find { background: var(--gray-bg); border-radius: 6px; padding: 50px 55px; margin-top: 110px; }
.cat-find h2 { font-size: 22px; font-weight: 500; letter-spacing: .06em; margin-bottom: 26px; }
.cat-find h2 small { margin-left: 14px; font-size: 13px; letter-spacing: .2em; color: var(--teal); }
.cat-find ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-find li a {
  position: relative; display: block; height: 100%;
  padding: 22px 48px 22px 24px; background: #fff; border-radius: 6px;
  color: var(--text); transition: box-shadow .2s;
}
.cat-find li a::after { content: "→"; position: absolute; right: 22px; top: 24px; color: var(--navy); font-size: 14px; }
.cat-find li a:hover { box-shadow: 0 0 0 1px var(--navy) inset; }
.cat-find-nm { display: block; font-size: 17px; font-weight: 500; color: var(--navy); }
.cat-find li small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--text-sub); }

/* ---------- 記事 ---------- */
.article { padding: 100px 0 40px; }
.article-inner { max-width: none; margin: 0 auto; } /* ほかのページと同じ本文幅（1300px） */
.article-cats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.article-cat { display: inline-block; background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; padding: 6px 16px; border-radius: 3px; }
.article-title { margin-top: 24px; font-size: 40px; font-weight: 400; line-height: 1.6; letter-spacing: .04em; color: #222; }
.article-dates { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; font-size: 14px; color: var(--text-sub); letter-spacing: .05em; }
.article .tag-chips { margin-top: 20px; }

.byline {
  display: flex; align-items: center; gap: 20px;
  margin-top: 36px; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.byline-who { font-size: 15px; line-height: 1.7; }
.byline-who small { display: block; color: var(--text-sub); font-size: 13px; }
.byline-who b { font-size: 17px; font-weight: 500; }

.article-eyecatch { margin-top: 44px; aspect-ratio: 16 / 7; border-radius: 6px; overflow: hidden; }
.article-eyecatch img { width: 100%; height: 100%; object-fit: cover; }

/* この記事でわかること（参考サイトの「基本情報」枠にあたる部分） */
.info-box { margin-top: 56px; background: var(--gray-bg); border-radius: 6px; padding: 40px 48px; }
.info-box h2 { font-size: 20px; font-weight: 500; letter-spacing: .06em; color: var(--navy); padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--navy); }
.info-box ul li { position: relative; padding-left: 26px; font-size: 17px; line-height: 2; }
.info-box ul li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

.toc { margin-top: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 36px 48px; }
.toc-title { font-size: 18px; font-weight: 700; letter-spacing: .2em; color: var(--navy); margin-bottom: 14px; }
.toc ol { counter-reset: toc; }
.toc > ol > li { counter-increment: toc; font-size: 16px; line-height: 2.1; }
.toc > ol > li > a::before { content: counter(toc) ". "; color: var(--teal); font-weight: 700; }
.toc ol ol { padding-left: 26px; }
.toc ol ol li { font-size: 15px; line-height: 2; color: var(--text-sub); }
.toc ol ol li::before { content: "– "; color: var(--teal); }
.toc a:hover { color: var(--navy); text-decoration: underline; }

.article-body { margin-top: 20px; }
.article-body h2 {
  margin-top: 90px; margin-bottom: 32px; padding-bottom: 18px;
  font-size: 30px; font-weight: 400; letter-spacing: .05em; line-height: 1.6; color: #222;
  border-bottom: 1px solid var(--line); position: relative;
}
.article-body h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 80px; height: 3px; background: var(--navy); }
.article-body h3 {
  margin-top: 54px; margin-bottom: 20px;
  font-size: 22px; font-weight: 500; line-height: 1.6; color: var(--navy);
}
.article-body p { font-size: 17px; line-height: 2.1; margin-bottom: 1.4em; }

.tbl-scroll { overflow-x: auto; margin: 28px 0 32px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 16px 20px; line-height: 1.8; text-align: left; vertical-align: top; }
.article-body thead th { background: var(--navy); color: #fff; font-weight: 500; border-color: var(--navy); }
.article-body tbody th { background: var(--gray-bg); font-weight: 500; white-space: nowrap; }
.article-body td small { color: var(--text-sub); font-size: 14px; }

.point {
  margin: 30px 0 36px; padding: 28px 34px;
  background: var(--teal-pale); border-radius: 6px;
  font-size: 17px; line-height: 2;
}
.point b { display: inline-block; margin-bottom: 6px; margin-right: 12px; color: var(--teal); font-size: 15px; letter-spacing: .15em; }

.summary { margin: 26px 0 0; background: var(--gray-bg); border-radius: 6px; padding: 36px 48px; }
.summary li { position: relative; padding-left: 30px; font-size: 17px; line-height: 2.1; }
.summary li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.summary b { color: var(--navy); font-weight: 700; }

.article-body p.note { margin-top: -12px; font-size: 14px; line-height: 1.9; color: var(--text-sub); }
.summary p { font-size: 17px; line-height: 2.1; margin-bottom: .6em; }
.summary p:last-child { margin-bottom: 0; }

.disclaimer { margin-top: 44px; font-size: 14px; line-height: 1.9; color: var(--text-sub); }

/* =========================================================
   WordPress 本文（the_content の出力）用
   標準ブロック（見出し・段落・表・引用・リスト・画像）だけで見た目が整う
   ========================================================= */
.entry-content { margin-top: 40px; counter-reset: h2; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content p { font-size: 17px; line-height: 2.1; }
.entry-content h2 {
  counter-increment: h2;
  margin-top: 90px; padding-bottom: 18px; position: relative;
  font-size: 30px; font-weight: 400; letter-spacing: .05em; line-height: 1.6; color: #222;
  border-bottom: 1px solid var(--line);
}
.entry-content h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 80px; height: 3px; background: var(--navy); }
.entry-content h2 + * { margin-top: 32px; }
.entry-content h3 {
  margin-top: 54px;
  font-size: 22px; font-weight: 500; line-height: 1.6; color: var(--navy);
}
.entry-content h3 + * { margin-top: 20px; }
.entry-content ul, .entry-content ol { padding-left: 1.6em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { font-size: 17px; line-height: 2; }
.entry-content li::marker { color: var(--teal); }
.entry-content a { color: var(--navy); text-decoration: underline; }
.entry-content strong { color: var(--navy); font-weight: 700; }

/* 表ブロック */
.entry-content .wp-block-table { margin: 32px 0 0; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 16px 20px; line-height: 1.8; text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--navy); color: #fff; font-weight: 500; border-color: var(--navy); }
.entry-content tbody td:first-child { background: var(--gray-bg); font-weight: 500; white-space: nowrap; }
.entry-content .wp-block-table + p { font-size: 14px; color: var(--text-sub); margin-top: 14px; }

/* 引用ブロック＝囲み（計算式・ポイントなど） */
.entry-content .wp-block-quote, .entry-content blockquote {
  margin: 30px 0 0; padding: 28px 34px; border: 0;
  background: var(--teal-pale); border-radius: 6px;
}
.entry-content blockquote p { font-size: 18px; font-weight: 500; color: var(--navy); }
.entry-content blockquote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--text-sub); }

/* 画像ブロック */
.entry-content .wp-block-image img { width: 100%; height: auto; border-radius: 6px; }
.entry-content .wp-block-image figcaption { margin-top: 10px; font-size: 14px; color: var(--text-sub); text-align: center; }

/* 監修者プロフィール */
.profile {
  display: grid; grid-template-columns: 120px 1fr; gap: 36px; align-items: start;
  margin-top: 70px; padding: 44px 48px; border: 1px solid var(--line); border-radius: 6px;
}
.profile img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.profile-lbl { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--teal); }
.profile-nm { margin-top: 6px; font-size: 24px; font-weight: 400; letter-spacing: .1em; }
.profile-nm small { margin-left: 12px; font-size: 13px; letter-spacing: .2em; color: var(--text-sub); }
.profile-rl { margin-top: 4px; font-size: 14px; color: var(--text-sub); }
.profile-txt { margin-top: 16px; font-size: 15px; line-height: 1.9; }
.profile-link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--navy); }
.profile-link::after { content: " →"; }

/* 一覧へ戻る・カテゴリへ */
.article-nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 80px; }

/* 記事下に並ぶボタン（site.css の primary_button を横並びで使う） */
.article-nav .primary_button, .case-nav .primary_button { margin: 0; }

/* 関連記事 */
.related { margin-top: 110px; }
.related .col-cards { grid-template-columns: repeat(2, 1fr); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1200px) {
  .col-cards { grid-template-columns: repeat(2, 1fr); }
  .cat-find ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cat-bar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 26px; margin: -40px 16px 0; }
  .article-title { font-size: 30px; }
  .article-body h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  .page-hero--navy { height: 420px; }
  .cat-bar a { padding: 8px 16px; font-size: 14px; }
  .col-list { padding-top: 70px; }
  .col-cards, .related .col-cards { grid-template-columns: 1fr; gap: 48px; }
  .col-list-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cat-find { padding: 34px 22px; }
  .cat-find ul { grid-template-columns: 1fr; }
  .article { padding-top: 60px; }
  .article-title { font-size: 24px; }
  .entry-content h2 { font-size: 22px; margin-top: 64px; }
  .entry-content h3 { font-size: 18px; }
  .entry-content blockquote { padding: 22px; }
  .info-box, .toc, .summary { padding: 26px 22px; }
  .point { padding: 22px; }
  .profile { grid-template-columns: 1fr; padding: 30px 22px; gap: 18px; }
  .profile img { width: 96px; height: 96px; }
}
