/* =============================================================================
   ブリス動物病院グループ｜ブログ記事 装飾 共通テンプレート v2
   -----------------------------------------------------------------------------
   ● 4院（川崎/橋本/寒川/国立）で完全に同一。色は各院 style.css の :root を継承。
   ● すべて .post-body スコープ。本文（投稿・固定ページの記事本文）にのみ適用。
   ● クラス手入力でもブロックエディタの「スタイル」一覧（is-style-*）でも使える。
   ● 目次(.toc)とFAQ(JSON-LD)は inc/blog-unified.php が自動生成。
   ============================================================================= */

/* ---------- 本文ベース ---------- */
.post-body{ font-size:1.06rem; line-height:2.05; color:var(--ink-soft); }
.post-body > * + *{ margin-top:1.4em; }
.post-body a{ color:var(--blue); text-decoration:underline; text-underline-offset:2px; }
.post-body a:hover{ color:var(--blue-deep); }
.post-body strong{ color:var(--ink); font-weight:700; }
.post-body ul, .post-body ol{ padding-left:1.4em; }
.post-body li{ margin-top:.5em; }
.post-body img{ border-radius:6px; height:auto; }
.post-body figure{ margin:1.4em 0; text-align:center; }
.post-body figure img{ width:100%; }
.post-body figcaption{ font-size:.88rem; color:var(--ink-mute); margin-top:8px; }
.post-body iframe{ max-width:100%; aspect-ratio:16/9; width:100%; height:auto; border:0; border-radius:6px; }
.post-body hr{ border:none; border-top:1px solid var(--line); margin:1.6em 0; }

/* ---------- 見出し ---------- */
.post-body h2{ font-family:'Shippori Mincho',serif; font-weight:600; font-size:1.6rem; color:var(--ink); margin-top:2em; padding-bottom:10px; border-bottom:2px solid var(--teal); }
/* h2 塗り帯オプション（段落側で is-style-band / クラス band） */
.post-body h2.band, .post-body h2.is-style-band{ border-bottom:none; background:var(--teal-soft); border-left:5px solid var(--teal); border-radius:6px; padding:.6em .8em; }
.post-body h3{ font-family:'Shippori Mincho',serif; font-weight:600; font-size:1.3rem; color:var(--ink); margin-top:1.6em; }
.post-body h4{ font-family:'Shippori Mincho',serif; font-weight:600; font-size:1.12rem; color:var(--ink); margin-top:1.7em; padding-left:14px; position:relative; line-height:1.6; }
.post-body h4::before{ content:""; position:absolute; left:0; top:.25em; bottom:.25em; width:4px; border-radius:2px; background:var(--teal); }

/* ---------- リード文 ---------- */
.post-body .lead, .post-body p.is-style-lead{ font-family:'Shippori Mincho',serif; font-size:1.18rem; line-height:1.95; color:var(--ink); border-left:4px solid var(--teal); padding:2px 0 2px 20px; }

/* ---------- マーカー ---------- */
.post-body mark, .post-body .marker{ background:linear-gradient(transparent 62%, #ffe9a6 62%); color:inherit; padding:0 .08em; font-weight:700; }
.post-body .marker-blue{ background:linear-gradient(transparent 62%, #c3e6f1 62%); }
.post-body .marker-green{ background:linear-gradient(transparent 62%, #cdecd9 62%); }
.post-body .marker-pink{ background:linear-gradient(transparent 62%, #f7d6cd 62%); }

/* ---------- 強調色 ---------- */
.post-body .accent{ color:var(--teal); font-weight:700; }
.post-body .accent-blue{ color:var(--blue-deep); font-weight:700; }
.post-body .accent-red{ color:var(--terracotta); font-weight:700; }
.post-body .accent-green{ color:var(--green); font-weight:700; }

/* ---------- 囲みボックス 4種（アイコン付きラベル） ----------
   手入力: box-point / caution / memo / check-box
   ブロックスタイル: is-style-point / is-style-caution / is-style-memo / is-style-check */
.post-body .box-point, .post-body .caution, .post-body .memo, .post-body .check-box,
.post-body .is-style-point, .post-body .is-style-caution, .post-body .is-style-memo, .post-body .is-style-check{
    border-radius:8px; padding:20px 24px; margin:1.7em 0; line-height:1.95; }
.post-body .box-point>*:first-child,.post-body .caution>*:first-child,.post-body .memo>*:first-child,.post-body .check-box>*:first-child,
.post-body .is-style-point>*:first-child,.post-body .is-style-caution>*:first-child,.post-body .is-style-memo>*:first-child,.post-body .is-style-check>*:first-child{ margin-top:0; }
.post-body .box-point>*:last-child,.post-body .caution>*:last-child,.post-body .memo>*:last-child,.post-body .check-box>*:last-child,
.post-body .is-style-point>*:last-child,.post-body .is-style-caution>*:last-child,.post-body .is-style-memo>*:last-child,.post-body .is-style-check>*:last-child{ margin-bottom:0; }
.post-body .box-point::before,.post-body .caution::before,.post-body .memo::before,.post-body .check-box::before,
.post-body .is-style-point::before,.post-body .is-style-caution::before,.post-body .is-style-memo::before,.post-body .is-style-check::before{
    display:inline-flex; align-items:center; gap:5px; font-size:.74rem; font-weight:700; letter-spacing:.08em; color:#fff; padding:3px 13px; border-radius:4px; margin-bottom:12px; }
.post-body .box-point, .post-body .is-style-point{ background:var(--teal-soft); border:1px solid var(--teal); border-left:5px solid var(--teal); }
.post-body .box-point::before, .post-body .is-style-point::before{ content:"🐾 POINT"; background:var(--teal); }
.post-body .box-point strong, .post-body .is-style-point strong{ color:var(--teal); }
.post-body .caution, .post-body .is-style-caution{ background:var(--terracotta-soft); border:1px solid var(--terracotta); border-left:5px solid var(--terracotta); }
.post-body .caution::before, .post-body .is-style-caution::before{ content:"⚠ 注意"; background:var(--terracotta); }
.post-body .caution strong, .post-body .is-style-caution strong{ color:var(--terracotta); }
.post-body .memo, .post-body .is-style-memo{ background:var(--paper-deep); border:1px solid var(--line); border-left:5px solid var(--blue); }
.post-body .memo::before, .post-body .is-style-memo::before{ content:"💡 MEMO"; background:var(--blue); }
.post-body .memo strong, .post-body .is-style-memo strong{ color:var(--blue-deep); }
.post-body .check-box, .post-body .is-style-check{ background:var(--green-soft); border:1px solid var(--green); border-left:5px solid var(--green); }
.post-body .check-box::before, .post-body .is-style-check::before{ content:"✓ CHECK"; background:var(--green); }
.post-body .check-box strong, .post-body .is-style-check strong{ color:var(--green); }

/* ---------- チェックリスト / 番号バッジ ---------- */
.post-body .check-list, .post-body ul.is-style-checklist{ list-style:none; padding-left:0; }
.post-body .check-list li, .post-body ul.is-style-checklist li{ position:relative; padding-left:32px; margin-top:.7em; }
.post-body .check-list li::before, .post-body ul.is-style-checklist li::before{ content:""; position:absolute; left:6px; top:.45em; width:8px; height:14px; border:solid var(--teal); border-width:0 2.5px 2.5px 0; transform:rotate(45deg); }
.post-body .num-list, .post-body ol.is-style-numlist{ list-style:none; counter-reset:numlist; padding-left:0; }
.post-body .num-list li, .post-body ol.is-style-numlist li{ position:relative; padding-left:44px; margin-top:.9em; min-height:30px; }
.post-body .num-list li::before, .post-body ol.is-style-numlist li::before{ counter-increment:numlist; content:counter(numlist); position:absolute; left:0; top:0; width:30px; height:30px; border-radius:50%; background:var(--teal); color:#fff; font-weight:700; font-size:.95rem; display:flex; align-items:center; justify-content:center; }

/* ---------- ステップ（手順・縦ライン連結） class: steps（ol に付与） ---------- */
.post-body .steps{ list-style:none; counter-reset:st; padding:0; margin:1.6em 0; }
.post-body .steps li{ counter-increment:st; position:relative; padding:0 0 1.4em 50px; }
.post-body .steps li:not(:last-child)::after{ content:""; position:absolute; left:15px; top:34px; bottom:0; width:2px; background:var(--line); }
.post-body .steps li::before{ content:counter(st); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; background:var(--teal); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; z-index:1; }
.post-body .steps li .st-ttl{ font-weight:700; color:var(--ink); display:block; }

/* ---------- Q&A（FAQ構造化データの元データにもなる） class: faq > .q / .a ---------- */
.post-body .q, .post-body .a{ position:relative; padding:16px 20px 16px 56px; border-radius:8px; margin:0; }
.post-body .q{ background:var(--paper-deep); font-family:'Shippori Mincho',serif; font-weight:600; color:var(--ink); margin-top:1.4em; }
.post-body .a{ background:var(--paper); border:1px solid var(--line); margin-top:8px; color:var(--ink-soft); }
.post-body .q::before, .post-body .a::before{ position:absolute; left:16px; top:14px; width:28px; height:28px; border-radius:50%; font-family:'Cormorant Garamond',serif; font-style:italic; font-weight:700; font-size:1.1rem; display:flex; align-items:center; justify-content:center; }
.post-body .q::before{ content:"Q"; background:var(--teal); color:#fff; }
.post-body .a::before{ content:"A"; background:var(--paper); color:var(--teal); border:1.5px solid var(--teal); }

/* ---------- 吹き出し class: voice / voice-r ---------- */
.post-body .voice, .post-body .voice-r{ display:flex; gap:16px; align-items:flex-start; margin:1.7em 0; }
.post-body .voice-r{ flex-direction:row-reverse; }
.post-body .voice .icon, .post-body .voice-r .icon{ flex:0 0 64px; width:64px; height:64px; border-radius:50%; overflow:hidden; background:var(--paper-deep); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:1.8rem; }
.post-body .voice .icon img, .post-body .voice-r .icon img{ width:100%; height:100%; object-fit:cover; }
.post-body .voice .bubble, .post-body .voice-r .bubble{ position:relative; background:var(--paper-deep); border:1px solid var(--line); border-radius:12px; padding:14px 18px; font-size:.98rem; color:var(--ink-soft); line-height:1.85; max-width:80%; }
.post-body .voice .bubble::before{ content:""; position:absolute; left:-9px; top:20px; border-width:8px 9px 8px 0; border-style:solid; border-color:transparent var(--line) transparent transparent; }
.post-body .voice-r .bubble::before{ left:auto; right:-9px; border-width:8px 0 8px 9px; border-color:transparent transparent transparent var(--line); }

/* ---------- 症例 Before / After class: ba > figure.before / figure.after ---------- */
.post-body .ba{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:1.6em 0; }
.post-body .ba figure{ margin:0; }
.post-body .ba img{ width:100%; height:auto; border-radius:8px; border:1px solid var(--line); }
.post-body .ba .ba-tag{ display:inline-block; font-size:.72rem; font-weight:700; color:#fff; padding:2px 11px; border-radius:4px; margin:8px 0 0; }
.post-body .ba .before .ba-tag{ background:var(--ink-mute); }
.post-body .ba .after .ba-tag{ background:var(--teal); }
.post-body .ba figcaption{ font-size:.84rem; color:var(--ink-mute); margin-top:4px; }

/* ---------- 引用 ---------- */
.post-body blockquote, .post-body .wp-block-quote{ position:relative; background:var(--paper-deep); border-left:4px solid var(--teal); border-radius:0 6px 6px 0; padding:18px 22px 18px 48px; color:var(--ink-soft); font-style:normal; margin:1.4em 0; }
.post-body blockquote::before, .post-body .wp-block-quote::before{ content:"\201C"; position:absolute; left:14px; top:2px; font-family:'Cormorant Garamond',serif; font-size:2.6rem; color:var(--teal); opacity:.5; }

/* ---------- テーブル ---------- */
.post-body .table-scroll{ overflow-x:auto; margin:1.6em 0; -webkit-overflow-scrolling:touch; }
.post-body table{ width:100%; border-collapse:collapse; margin:1.4em 0; font-size:.98rem; }
.post-body table th, .post-body table td{ border:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top; }
.post-body table th{ background:var(--paper-deep); color:var(--ink); font-weight:600; }
.post-body table tr:first-child th{ background:var(--ink); color:#fff; }
.post-body table tbody tr:nth-child(even){ background:var(--paper-deep); }

/* ---------- ボタン class: btn / btn-line / btn-tel ＋ coreボタン is-style ---------- */
.post-body .btn-wrap, .post-body .wp-block-buttons{ text-align:center; margin:1.6em 0; }
.post-body .btn, .post-body .btn-line, .post-body .btn-tel,
.post-body .wp-block-button__link{
    display:inline-flex; align-items:center; gap:10px; justify-content:center; font-weight:700; font-size:1rem; padding:14px 30px; border-radius:6px; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease, opacity .2s; }
.post-body .btn:hover, .post-body .btn-line:hover, .post-body .btn-tel:hover, .post-body .wp-block-button__link:hover{ transform:translateY(-2px); }
.post-body .btn, .post-body .wp-block-button__link{ background:var(--teal); color:#fff; }
.post-body .btn:hover, .post-body .wp-block-button__link:hover{ background:var(--blue-deep); }
.post-body .btn-line, .post-body .wp-block-button.is-style-line .wp-block-button__link{ background:#22B94E; color:#fff; }
.post-body .btn-tel, .post-body .wp-block-button.is-style-tel .wp-block-button__link{ background:var(--paper); color:var(--ink); border:1.5px solid var(--ink); }
.post-body .btn-tel:hover, .post-body .wp-block-button.is-style-tel .wp-block-button__link:hover{ background:var(--ink); color:#fff; }

/* ---------- 区切り（肉球） class: hr-paw（区切りブロック or <hr>） ---------- */
.post-body .hr-paw{ border:none; text-align:center; margin:2em 0; overflow:visible; }
.post-body .hr-paw::before{ content:"🐾"; display:inline-block; font-size:1.2rem; color:var(--teal); background:var(--paper); padding:0 16px; position:relative; }
.post-body .hr-paw::after{ content:""; display:block; height:1px; background:var(--line); margin-top:-0.7em; }

/* ---------- まとめ box class: summary-box ---------- */
.post-body .summary-box{ background:var(--teal-soft); border:1.5px solid var(--teal); border-radius:12px; padding:22px 24px; margin:2em 0; }
.post-body .summary-box .summary-ttl{ font-family:'Shippori Mincho',serif; font-weight:700; color:var(--teal); font-size:1.12rem; display:flex; gap:8px; align-items:center; margin:0 0 12px; }
.post-body .summary-box .summary-ttl::before{ content:"🐾"; }
.post-body .summary-box ul{ list-style:none; padding:0; margin:0; }
.post-body .summary-box li{ position:relative; padding-left:28px; margin:.55em 0; }
.post-body .summary-box li::before{ content:"✓"; position:absolute; left:2px; top:0; color:var(--teal); font-weight:700; }

/* ---------- CTAボックス（予約・LINE誘導） class: cta-box ---------- */
.post-body .cta-box{ background:var(--paper-deep); border:1px solid var(--line); border-top:4px solid var(--teal); border-radius:12px; padding:26px 24px; margin:2em 0; text-align:center; }
.post-body .cta-box .cta-ttl{ font-family:'Shippori Mincho',serif; font-size:1.18rem; font-weight:700; color:var(--ink); margin:0 0 6px; }
.post-body .cta-box p{ color:var(--ink-mute); font-size:.92rem; margin:0 0 16px; }
.post-body .cta-box .btns{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.post-body .cta-box a{ display:inline-flex; align-items:center; gap:7px; justify-content:center; font-weight:700; font-size:.96rem; padding:13px 26px; border-radius:8px; text-decoration:none; }
.post-body .cta-box .b-line{ background:#22B94E; color:#fff; }
.post-body .cta-box .b-tel{ background:var(--paper); color:var(--ink); border:1.5px solid var(--ink); }

/* ---------- あわせて読みたい（内部リンクカード） class: read-more > .link-card ---------- */
.post-body .read-more{ margin:1.8em 0; }
.post-body .read-more .rm-label{ font-size:.78rem; color:var(--teal); font-weight:700; letter-spacing:.08em; margin-bottom:9px; }
.post-body .link-card{ display:flex; gap:14px; align-items:center; border:1px solid var(--line); border-radius:10px; padding:11px 13px; text-decoration:none; background:var(--paper); transition:box-shadow .2s, transform .2s; }
.post-body .link-card:hover{ box-shadow:0 6px 18px rgba(0,0,0,.08); transform:translateY(-2px); }
.post-body .link-card .thumb{ flex:0 0 60px; height:60px; border-radius:8px; overflow:hidden; background:var(--teal-soft); display:flex; align-items:center; justify-content:center; font-size:1.7rem; }
.post-body .link-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.post-body .link-card .lc-ttl{ color:var(--ink); font-weight:700; font-size:.96rem; line-height:1.5; }
.post-body .link-card .lc-meta{ color:var(--ink-mute); font-size:.8rem; margin-top:3px; }

/* ---------- 目次 TOC（inc/blog-unified.php が自動生成） class: toc ---------- */
.post-body .toc{ background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:20px 24px; margin:1.8em 0; }
.post-body .toc .toc-ttl{ font-family:'Shippori Mincho',serif; font-weight:700; color:var(--ink); font-size:1.05rem; display:flex; align-items:center; gap:8px; margin:0 0 12px; }
.post-body .toc .toc-ttl::before{ content:"🐾"; font-size:1rem; }
.post-body .toc ol{ counter-reset:toc; list-style:none; padding:0; margin:0; }
.post-body .toc li{ counter-increment:toc; margin:.45em 0; padding-left:34px; position:relative; }
.post-body .toc li::before{ content:counter(toc); position:absolute; left:0; top:.05em; width:23px; height:23px; border-radius:50%; background:var(--teal-soft); color:var(--teal); font-size:.78rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
.post-body .toc a{ color:var(--ink-soft); text-decoration:none; }
.post-body .toc a:hover{ color:var(--teal); text-decoration:underline; }

/* ---------- 監修・著者ボックス class: author-box ---------- */
.post-body .author-box{ display:flex; gap:18px; align-items:center; margin:2.4em 0 0; border:1px solid var(--line); border-top:3px solid var(--teal); border-radius:8px; padding:22px 24px; background:var(--paper); }
.post-body .author-box .icon{ flex:0 0 76px; width:76px; height:76px; border-radius:50%; overflow:hidden; background:var(--paper-deep); display:flex; align-items:center; justify-content:center; font-size:2rem; }
.post-body .author-box .icon img{ width:100%; height:100%; object-fit:cover; }
.post-body .author-box .meta .role{ font-family:'Cormorant Garamond',serif; font-style:italic; color:var(--blue); font-size:.95rem; }
.post-body .author-box .meta .nm{ font-family:'Shippori Mincho',serif; font-weight:700; color:var(--ink); font-size:1.2rem; margin:2px 0 4px; }
.post-body .author-box .meta p{ margin:0; font-size:.92rem; color:var(--ink-mute); line-height:1.7; }

/* ---------- レスポンシブ ---------- */
@media (max-width:600px){
    .post-body{ font-size:1.0rem; }
    .post-body h2{ font-size:1.4rem; }
    .post-body .box-point, .post-body .caution, .post-body .memo, .post-body .check-box,
    .post-body .is-style-point, .post-body .is-style-caution, .post-body .is-style-memo, .post-body .is-style-check{ padding:18px 18px; }
    .post-body .voice .bubble, .post-body .voice-r .bubble{ max-width:100%; }
    .post-body .author-box{ flex-direction:column; text-align:center; }
    .post-body .ba{ grid-template-columns:1fr; }
}
