@charset "UTF-8";
/* =============================================================
   under-post.css — 投稿（コラム・症例）／一覧／お知らせ／404 専用
   共通は common.css（トークン・ヘッダー・フッター・c-btn・c-title・c-crumb）。
   クラス: post-*（詳細・一覧の骨格）/ card-*（カード）/ side-*（サイドバー）/ entry-content（本文）
   寸法は本番（Cure 製の記事ページ）の実測値：コンテナ1000px＝本文700px＋サイド250px、本文16px・行間2.2。
   ============================================================= */

:root {
  /* 本番の記事ページは見出し・メタ・サイドバーがゴシック、本文だけ明朝 */
  --f-ui:        Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --f-post:      'Times New Roman', 游明朝, 'Yu Mincho', 游明朝体, YuMincho, 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', HiraMinProN-W3, HGS明朝E, 'ＭＳ Ｐ明朝', 'MS PMincho', serif;   /* 本番(Cure)の本文フォント */
  --c-border:    #ddd;                                              /* カード・サイドバーの罫線 */
  --c-date:      #999;                                              /* 日付 */
  --c-primary-soft: color-mix(in srgb, var(--c-primary) 45%, #fff); /* 見出しの淡い緑線 */
}

/* ---------- 1. 骨格 ---------- */
.post-crumb { max-width: 1000px; margin: 40px auto 36px; padding: 0 var(--w-gutter); }
.post-crumb__list { display: flex; flex-wrap: wrap; align-items: center; font-family: var(--f-ui); font-size: 12px; line-height: 1.6; color: var(--c-primary); }
.post-crumb__list li + li::before { content: "\f054"; margin: 0 14px; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 8px; color: var(--c-text); }
.post-crumb__list a { color: var(--c-text); }
.post-crumb__list li:last-child span { color: var(--c-primary); }

.post-layout { display: flex; align-items: flex-start; justify-content: space-between; max-width: 1000px; margin: 0 auto; padding: 0 var(--w-gutter); }
.post-layout--single { justify-content: center; }
.post-main { flex: 0 1 700px; min-width: 0; }
.post-side { flex: 0 0 250px; }
.post-layout--single .post-main { flex-basis: 760px; }

/* ---------- 2. 記事ヘッダー ---------- */
.post-head { margin-bottom: 38px; }
.post-head__ttl { font-family: var(--f-ui); font-size: 26px; font-weight: 500; line-height: 1.3; color: var(--c-text); }
.post-head__meta { margin-top: 10px; font-family: var(--f-ui); font-size: 12px; line-height: 1.6; color: var(--c-date); }

/* ---------- 3. 本文（WordPress ブロックエディタの出力） ---------- */
.entry-content { font-family: var(--f-post); font-size: 16px; line-height: 2.2; color: var(--c-text); overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 32px; }
.entry-content a { color: var(--c-primary); text-decoration: underline; }
.entry-content strong { font-weight: 700; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 0 0 32px; }
.entry-content figcaption { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--c-muted); }

.entry-content h2 { margin: 40px 0 10px; padding: 12px; font-size: 24px; font-weight: 600; line-height: 1.4; background: var(--c-bg-soft); border-bottom: 3px solid var(--c-primary-soft); }
.entry-content h3 { margin: 10px 0; padding: 5.5px 11px; font-size: 22px; font-weight: 600; line-height: 1.4; color: #494949; border-left: 5px solid var(--c-primary-soft); }
.entry-content h4 { margin: 10px 0; font-size: 18px; font-weight: 600; line-height: 1.5; }

.entry-content ul, .entry-content ol { margin: 0 0 32px; padding-left: 1.6em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 4px; }

/* ブロック：カラム（症例写真の横並び）・グループ・画像 */
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 32px; }
.entry-content .wp-block-column { flex: 1 1 0; min-width: 0; }
.entry-content .wp-block-column figure { margin: 0; }
.entry-content .wp-block-image img { display: block; }
.entry-content .aligncenter { display: block; margin-inline: auto; }

/* 表（症例の「年齢・性別／主訴／治療期間／費用／治療内容」）：黒枠。見出し列の緑・白文字は本文側のインライン指定 */
.entry-content table { width: 100%; margin: 0 0 32px; border: 1px solid var(--c-text); border-collapse: collapse; font-size: 15px; line-height: 1.9; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--c-text); text-align: left; vertical-align: middle; }
.entry-content tr > :first-child { width: 50%; font-weight: 400; }
.entry-content .wp-block-table { overflow-x: auto; }

/* 目次プラグイン（Table of Contents Plus）が出力するマークアップ */
.entry-content #toc_container { display: table; width: auto; min-width: 321px; max-width: 100%; margin: 0 0 32px; padding: 10px; font-size: 15px; line-height: 1.6; background: #f9f9f9; border: 1px solid #aaa; }
.entry-content #toc_container .toc_title { margin: 0 0 4px; padding: 0; font-size: 15px; font-weight: 400; text-align: center; background: none; border: 0; }
.entry-content #toc_container ul { margin: 0; padding: 0; list-style: none; }
.entry-content #toc_container ul ul { padding-left: 1.2em; }
.entry-content #toc_container li { margin: 0; padding: 4px 0; }
.entry-content #toc_container a { color: var(--c-text); text-decoration: none; }
.entry-content #toc_container .toc_number { margin-right: 4px; }

.post-pages { margin-top: 24px; font-size: 14px; }

/* ---------- 4. 前後の記事 ---------- */
.post-nav { display: flex; margin-top: 50px; border: 1px solid var(--c-border); }
.post-nav__item { flex: 1 1 50%; display: flex; align-items: center; gap: 12px; min-height: 120px; padding: 0 24px; color: var(--c-text); }
.post-nav__item + .post-nav__item { border-left: 1px solid var(--c-border); }
.post-nav__item--next { flex-direction: row-reverse; text-align: right; }
.post-nav__item::before { content: "\f053"; flex: 0 0 auto; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; color: var(--c-muted); }
.post-nav__item--next::before { content: "\f054"; }
.post-nav__body { flex: 1; font-family: var(--f-ui); }
.post-nav__label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--c-date); }
.post-nav__ttl { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.post-nav__item:hover .post-nav__ttl { color: var(--c-primary); }

/* ---------- 5. 関連記事 ---------- */
.post-related { margin-top: 100px; }
.post-related__ttl { margin-bottom: 48px; text-align: center; font-family: var(--f-ui); font-size: 18px; font-weight: 500; line-height: 1.3; }
.post-related__ttl span { display: inline-block; padding-top: 25px; border-top: 3px solid var(--c-primary); }

/* ---------- 6. カード（一覧・関連記事） ---------- */
.card-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-border); border-left: 1px solid var(--c-border); }
.card-post { border-right: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-white); }
.card-post__link { display: flex; flex-direction: column; height: 100%; color: var(--c-text); }
.card-post__thumb { position: relative; display: block; aspect-ratio: 700 / 440; overflow: hidden; background: var(--c-bg-soft); }
.card-post__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-post__img.is-noimage { object-fit: contain; padding: 20%; }
.card-post__link:hover .card-post__img { transform: scale(1.04); }
.card-post__label { position: absolute; left: 20px; bottom: 0; max-width: calc(100% - 40px); padding: 6px 20px; font-family: var(--f-ui); font-size: 12px; line-height: 1.6; color: var(--c-white); background: var(--c-lime-btn); }
.card-post__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px 28px 28px; font-family: var(--f-ui); }
.card-post__ttl { font-size: 14px; line-height: 1.8; }
.card-post__link:hover .card-post__ttl { color: var(--c-primary); }
.card-post__date { font-size: 12px; line-height: 1.4; color: var(--c-date); }

.post-related .card-post__body { padding: 16px 20px 22px; gap: 14px; }
.post-related .card-post__label { left: 14px; padding: 4px 14px; font-size: 11px; }

.post-archive { max-width: 1000px; margin: 40px auto 0; padding: 0 var(--w-gutter); }
.post-archive__desc { margin-bottom: 30px; line-height: 2; }
.post-archive__empty { padding: 60px 0; text-align: center; color: var(--c-muted); }

/* お知らせ一覧：横長カード（画像左・本文右）で1列 */
.card-list--news { grid-template-columns: minmax(0, 700px); border: 0; margin: 0 auto; gap: 20px; }
.card-list--news .card-post { border: 1px solid var(--c-border); }
.card-list--news .card-post__link { flex-direction: row; }
.card-list--news .card-post__thumb { flex: 0 0 47.6%; }
.card-list--news .card-post__body { flex-direction: column-reverse; justify-content: center; gap: 12px; padding: 24px 28px; }

/* ページ送り */
.post-pager { margin: 50px 0 0; }
.post-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.post-pager a, .post-pager span { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; font-family: var(--f-ui); font-size: 14px; color: var(--c-text); border: 1px solid var(--c-border); }
.post-pager a:hover { color: var(--c-white); background: var(--c-primary); border-color: var(--c-primary); }
.post-pager .current { color: var(--c-white); background: var(--c-primary); border-color: var(--c-primary); }

.post-back { margin-top: 50px; text-align: center; }

/* ---------- 7. サイドバー ---------- */
.post-side { font-family: var(--f-ui); }
.side-block { margin-bottom: 40px; }
.side-block__ttl { margin-bottom: 20px; font-size: 16px; font-weight: 500; line-height: 1.3; }
.side-block__ttl span { display: block; padding-top: 20px; border-top: 3px solid var(--c-primary); }
.side-block__ttl span { width: 100%; border-top: 0; position: relative; }
.side-block__ttl span::before { content: ""; position: absolute; left: 0; top: 0; width: 50px; height: 3px; background: var(--c-primary); }

.side-recent__item { margin-bottom: -1px; }
.side-recent__item a { display: flex; min-height: 66px; border: 1px solid var(--c-border); color: var(--c-text); }
.side-recent__thumb { flex: 0 0 70px; overflow: hidden; }
.side-recent__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.side-recent__body { flex: 1; min-width: 0; padding: 8px 10px; }
.side-recent__ttl { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.side-recent__item a:hover .side-recent__ttl { color: var(--c-primary); }
.side-recent__date { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--c-date); }

.side-cat__item { position: relative; margin-bottom: -1px; }
.side-cat__link { display: block; padding: 0 24px; font-size: 14px; line-height: 50px; color: var(--c-text); background: var(--c-white); border: 1px solid var(--c-border); }
.side-cat__link:hover { color: var(--c-primary); }
.side-cat__more > summary { position: absolute; right: 0; top: 0; width: 50px; height: 50px; list-style: none; cursor: pointer; }
.side-cat__more > summary::-webkit-details-marker { display: none; }
.side-cat__more > summary::before { content: "\f078"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; }
.side-cat__more[open] > summary::before { content: "\f077"; }
.side-cat__children { margin-top: -1px; }
.side-cat__children .side-cat__link { padding-left: 40px; font-size: 13px; background: var(--c-bg-soft); }
.side-cat__children li + li { margin-top: -1px; }

.side-archive { border: 1px solid var(--c-border); }
.side-archive > summary { position: relative; padding: 0 18px; font-size: 14px; line-height: 50px; list-style: none; cursor: pointer; }
.side-archive > summary::-webkit-details-marker { display: none; }
.side-archive > summary::after { content: "\f078"; position: absolute; right: 18px; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; }
.side-archive[open] > summary::after { content: "\f077"; }
.side-archive__list { max-height: 260px; overflow-y: auto; border-top: 1px solid var(--c-border); }
.side-archive__list a { display: block; padding: 0 18px; font-size: 13px; line-height: 40px; color: var(--c-text); }
.side-archive__list a:hover { color: var(--c-primary); }

/* ---------- 8. 404 ---------- */
.post-404 { max-width: 760px; margin: 40px auto 0; padding: 0 var(--w-gutter); text-align: center; }
.post-404__lead { line-height: 2.2; }
.post-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0; }
.post-404__tel { line-height: 2; }
.post-404__tel a { font-size: 28px; color: var(--c-primary); }
.post-404__tel i { margin-right: 10px; font-size: 22px; }

/* ---------- 9. SP ---------- */
@media (max-width: 960px) {
  .post-crumb { margin: 24px auto 24px; }
  .post-layout { display: block; }
  .post-side { margin-top: 60px; }
  .post-head__ttl { font-size: 22px; }
  .entry-content h2 { font-size: 20px; }
  .entry-content h3 { font-size: 18px; }
  .entry-content .wp-block-columns { flex-direction: column; }
  .entry-content tr > :first-child { width: 40%; }
  .post-nav { flex-direction: column; }
  .post-nav__item + .post-nav__item { border-left: 0; border-top: 1px solid var(--c-border); }
  .post-related { margin-top: 70px; }
  .card-list { grid-template-columns: repeat(2, 1fr); }
  .post-archive { margin-top: 24px; }
}

@media (max-width: 560px) {
  .card-list { grid-template-columns: 1fr; }
  .post-related .card-list { grid-template-columns: repeat(2, 1fr); }
  .card-list--news .card-post__link { flex-direction: column; }
  .card-list--news .card-post__thumb { flex-basis: auto; }
  .card-post__body { padding: 18px 20px 22px; }
  .post-404__tel a { font-size: 24px; }
}

/* ---------- 9. 記事ページ専用ヘッダー／フッター（本番の記事ページ＝Cure 製の別デザイン） ---------- */
.l-header--post { position: relative; height: 90px; border-bottom: 1px solid var(--c-border); background: var(--c-white); box-shadow: none; }
.l-header--post .l-header__logo { position: absolute; left: 37px; top: 50%; width: 300px; margin: 0; transform: translateY(-50%); }
.l-header--post .l-header__logo img { width: 300px; height: auto; }
.l-header--post .l-gnav { position: absolute; right: 37px; top: 0; max-width: none; margin: 0; font-family: var(--f-ui); }
.l-header--post .l-gnav__list { justify-content: flex-end; }
.l-header--post .l-gnav__item > a { padding: 0 0 0 37px; font-size: 14px; font-weight: 400; line-height: 89px; }
.l-header--post .l-gnav__sub { background: #3d9254; }
.l-header--post .l-gnav__sub .l-gnav__item > a { padding: 14px 25px 12px; font-size: 14px; line-height: 22.4px; }
.l-header--post .l-header__burger { display: none; }

.l-footer--post { margin-top: 150px; padding: 0; background: none; font-family: var(--f-ui); }
.l-footer__photo { position: relative; height: 350px; margin-bottom: 143px; background: url("../img/footer/cure-bg.webp") center / cover no-repeat; }
.l-footer__photo::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.l-footer__photo-in { position: relative; display: flex; max-width: 1000px; margin: 0 auto; padding-top: 115px; }
.l-footer__call { position: relative; flex: 0 0 487.5px; height: 80px; margin-right: 25px; background: var(--c-white); }
.l-footer__call-ttl { position: absolute; left: 0; top: 50%; padding: 0 30px; font-size: 14px; font-weight: 600; line-height: 14px; transform: translateY(-50%); }
.l-footer__call-body { position: absolute; left: 200px; top: 0; width: 280px; padding-top: 13px; }
.l-footer__call-num { display: block; font-size: 28px; font-weight: 500; line-height: 28px; color: var(--c-text); }
.l-footer__call-num i { margin-right: 8px; font-size: 20px; color: #3d9254; }
.l-footer__call-note { margin-top: 10px; font-size: 14px; line-height: 21px; }
.l-footer__sch { flex: 0 0 487.5px; width: 487.5px; height: 175px; border: 3px solid var(--c-primary); border-collapse: collapse; background: var(--c-white); }
.l-footer__sch td { padding: 0 6px; border: 1px solid var(--c-primary); font-size: 14px; text-align: center; color: var(--c-primary); }
.l-footer__sch td:first-child { width: 24%; }
.l-footer__menu { background: #f5f5f5; text-align: center; }
.l-footer__menu li { display: inline-block; margin: 0 17px; }
.l-footer__menu a { font-size: 14px; line-height: 60px; }
.l-footer--post .l-footer__copy { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: normal; line-height: 60px; color: var(--c-white); background: var(--c-primary); }
.is-post-layout .c-pagetop { bottom: 0; width: 60px; height: 60px; font-size: 14px; }
.is-post-layout .c-fixcta { display: none; }

@media (max-width: 960px) {
  .is-post-layout { padding-bottom: 0; }
  .l-header--post { height: 60px; }
  .l-header--post .l-header__logo { left: 20px; width: 150px; }
  .l-header--post .l-header__logo img { width: 150px; }
  .l-header--post .l-header__burger { display: block; position: absolute; right: 0; top: 0; width: 60px; height: 60px; }
  .l-header--post .l-header__burger span { left: 17px; }
  .l-header--post .l-header__burger span:nth-child(1) { top: 21px; }
  .l-header--post .l-header__burger span:nth-child(2) { top: 29px; }
  .l-header--post .l-header__burger span:nth-child(3) { top: 37px; }
  .l-header--post .l-header__burger.is-open span:nth-child(1), .l-header--post .l-header__burger.is-open span:nth-child(3) { top: 29px; }
  .l-header--post .l-gnav { position: fixed; right: auto; }
  .l-header--post .l-gnav__list { justify-content: flex-start; }
  .l-header--post .l-gnav__item > a { padding: 0 56px 0 20px; font-size: 14px; font-weight: 700; line-height: 43px; }
  .l-header--post .l-gnav__sub .l-gnav__item > a { padding: 11px 56px 11px 32px; font-size: 13px; font-weight: 400; line-height: 1.6; }
  .l-header--post .l-gnav__sub--2 .l-gnav__item > a { padding-left: 46px; }
  .l-header--post .l-gnav__sub--3 .l-gnav__item > a { padding-left: 60px; }
  .l-header--post .l-gnav__sub { background: rgba(0, 0, 0, .12); }
  .l-footer--post { margin-top: 100px; }
  .l-footer__photo { height: 394px; margin-bottom: 100px; }
  .l-footer__photo-in { display: block; padding: 75px 20px 0; }
  .l-footer__call { height: 128px; margin: 0 0 11px; padding: 20px; text-align: center; }
  .l-footer__call-ttl { position: static; padding: 0; margin-bottom: 15px; transform: none; }
  .l-footer__call-body { position: static; width: auto; padding: 0; }
  .l-footer__sch { width: 100%; height: 140px; }
  .l-footer__sch td { font-size: 12px; }
  .l-footer__menu { padding: 33px 0 30px; }
  .l-footer__menu li { display: block; margin: 0 0 5px; }
  .l-footer__menu a { display: block; line-height: 28px; }
  .l-footer--post .l-footer__copy { line-height: 50px; }
  .is-post-layout .c-pagetop { width: 50px; height: 50px; }
}

/* 本番の記事ページのスマホ（余白20px・本文14px/行間1.8・見出し18px） */
@media (max-width: 767px) {
  .post-crumb { margin: 0 auto; padding: 0 20px; border-bottom: 1px solid var(--c-border); }
  .post-crumb__list { flex-wrap: nowrap; height: 45px; overflow: hidden; font-size: 14px; white-space: nowrap; }
  .post-crumb__list li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .post-crumb__list li + li::before { margin: 0 10px; }
  .post-layout { padding: 0 20px; }
  .post-head { margin-bottom: 20px; }
  .post-head__ttl { font-size: 18px; line-height: 1.3; }
  .post-head__meta { margin-top: 0; font-size: 14px; line-height: 19px; }
  .entry-content { font-size: 14px; line-height: 1.8; }
  .entry-content p { margin-bottom: 28px; }
  .entry-content h2 { padding: 10px; }
  .entry-content h3 { padding: 4.5px 9px; }
  .entry-content #toc_container { margin-bottom: 13px; font-size: 13.3px; }
  .entry-content #toc_container .toc_title { font-size: 13.3px; font-weight: 700; line-height: 24px; }
  .entry-content #toc_container li { padding: 0; line-height: 24px; }
}
@media (max-width: 767px) {
  .post-nav { flex-direction: row; margin-top: 30px; }
  .post-nav__item { min-height: 50px; padding: 0 12px; }
  .post-nav__item + .post-nav__item { border-top: 0; border-left: 1px solid var(--c-border); }
  .post-nav__label { margin-bottom: 0; font-size: 14px; color: var(--c-text); text-align: center; }
  .post-nav__ttl { display: none; }
  .post-nav__item--next { flex-direction: row-reverse; }
  .post-related { margin-top: 50px; }
  .post-related__ttl { margin-bottom: 30px; }
  .post-related .card-post__body { padding: 12px 12px 14px; gap: 8px; }
}