@charset "UTF-8";
/* =============================================================
   fs-case.css — 症例（通常投稿 post）の一覧・詳細
   single.php / category.php 用。本番（旧テーマ Cure）のブログレイアウトに合わせる。
   マークアップは inc/blog-parts.php。
   ============================================================= */

/* ---------- 2カラム（本文＋サイドバー） ---------- */
.fs-blog {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 46px;
  max-width: 1120px; margin: 30px auto 70px; padding: 0 var(--fs-gutter);
}
.fs-blog--full { grid-template-columns: minmax(0, 1fr); }

/* ---------- 記事（症例の詳細） ---------- */
.fs-entry__title {
  background: var(--fs-accent); color: var(--fs-white);
  font-family: var(--fs-font-serif); font-size: 21px; font-weight: 400; line-height: 1.5;
  letter-spacing: .04em; padding: 16px 24px; margin-bottom: 26px;
}
.fs-entry__content { font-size: 15px; line-height: 1.9; }
.fs-entry__content > * { margin-bottom: 20px; }
.fs-entry__content > :last-child { margin-bottom: 0; }
/* 投稿本文はブロックエディタの標準マークアップ（wp-block-*）。治療前後の写真が2列で並ぶ */
.fs-entry__content .wp-block-columns { display: flex; gap: 16px; flex-wrap: wrap; }
.fs-entry__content .wp-block-column { flex: 1 1 0; min-width: 0; }
.fs-entry__content figure { margin: 0; }
.fs-entry__content img { display: block; width: 100%; height: auto; }
/* 治療方法／主訴／治療期間／リスクの表 */
.fs-entry__content table { width: 100%; border-collapse: collapse; }
.fs-entry__content th,
.fs-entry__content td { border-bottom: 1px solid var(--fs-line); padding: 14px 16px; text-align: left; font-weight: 400; vertical-align: top; }
.fs-entry__content th { width: 28%; white-space: nowrap; color: #4a4a4a; }
.fs-entry__content tr:first-child th,
.fs-entry__content tr:first-child td { border-top: 1px solid var(--fs-line); }

/* ---------- 関連記事 ---------- */
.fs-relposts { margin-top: 56px; }
.fs-relposts__head {
  text-align: center; font-family: var(--fs-font-serif); font-size: 19px; font-weight: 400;
  letter-spacing: .08em; color: #4a4a4a; margin-bottom: 24px;
}
.fs-relposts__head::before {
  content: ""; display: block; width: 56px; margin: 0 auto 14px; border-top: 2px solid var(--fs-accent);
}

/* ---------- 投稿カード ---------- */
.fs-pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.fs-blog--full .fs-pcards { gap: 2px; }
.fs-pcard { background: var(--fs-white); border: 1px solid var(--fs-line-2); }
.fs-pcard > a { display: block; height: 100%; }
.fs-pcard__thumb { position: relative; overflow: hidden; }
.fs-pcard__thumb img { display: block; width: 100%; height: 160px; object-fit: cover; transition: transform .4s; }
.fs-pcard > a:hover .fs-pcard__thumb img { transform: scale(1.05); }
/* バッジの色は本番の実測値 */
.fs-pcard__cat {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  background: #02a8c6; color: var(--fs-white); font-size: 11px; line-height: 1.6; padding: 2px 10px;
}
.fs-pcard__body { padding: 16px 14px 18px; }
.fs-pcard__title { font-family: var(--fs-font-base); font-size: 13.5px; font-weight: 400; line-height: 1.7; color: #3a3a3a; }
.fs-pcard__date { font-size: 12px; color: #9a9a9a; margin-top: 14px; }

/* ---------- サイドバー ---------- */
.fs-side { display: flex; flex-direction: column; gap: 30px; }
.fs-side__head {
  font-family: var(--fs-font-base); font-size: 14px; font-weight: 400; color: #4a4a4a;
  letter-spacing: .04em; margin-bottom: 14px;
}
.fs-side__head::before {
  content: ""; display: block; width: 40px; margin-bottom: 12px; border-top: 2px solid var(--fs-accent);
}
.fs-side__recent > li { border-bottom: 1px solid var(--fs-line-2); }
.fs-side__recent > li > a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; align-items: start; }
.fs-side__thumb img { display: block; width: 72px; height: 54px; object-fit: cover; }
.fs-side__title { display: block; font-size: 12.5px; line-height: 1.6; color: #3a3a3a; }
.fs-side__date { display: block; font-size: 11px; color: #9a9a9a; margin-top: 6px; }
.fs-side__list { border: 1px solid var(--fs-line); }
.fs-side__list > li { border-bottom: 1px solid var(--fs-line-2); }
.fs-side__list > li:last-child { border-bottom: 0; }
.fs-side__list > li > a { display: block; padding: 13px 16px; font-size: 13px; color: #4a4a4a; }
.fs-side__list > li.is-child > a { padding-left: 30px; }
.fs-side__list > li > a:hover { background: var(--fs-primary-soft); color: var(--fs-primary); }

.fs-noposts { text-align: center; padding: 40px 0; color: var(--fs-muted); }

/* ---------- レスポンシブ ---------- */
@media screen and (max-width: 1024px) {
  .fs-blog { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fs-pcards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media screen and (max-width: 767px) {
  .fs-blog { margin: 20px auto 50px; }
  .fs-entry__title { font-size: 18px; padding: 13px 16px; }
  .fs-pcards { grid-template-columns: 1fr; gap: 16px; }
  .fs-pcard__thumb img { height: 200px; }
  .fs-entry__content .wp-block-columns { gap: 10px; }
}

/* カテゴリー一覧のヒーローは本番だけ箱型（実測 1200x400）。固定ページは全幅のまま */
.kpage-hero--boxed { max-width: 1200px; margin: 0 auto; min-height: 400px; }
@media screen and (max-width: 1240px) { .kpage-hero--boxed { max-width: none; margin: 0 20px; } }
@media screen and (max-width: 767px) { .kpage-hero--boxed { margin: 0; min-height: 240px; } }
