@charset "UTF-8";
/* ============================================================
   コラム用カスタムブロック（Genesis Custom Blocks）スタイル
   ボタン2種 / 吹き出し / FAQ / 著者パネル / 表(th背景)
   ============================================================ */

/* --- ボタン: コアの「ボタン」ブロック + 追加CSSクラス(btn-rose / btn-beige) --- */
/* 幅やレイアウト(横並び/中央)はコア側に委譲し、色・形・矢印のみ付与 */
.wp-block-button.btn-rose .wp-block-button__link,
.wp-block-button.btn-beige .wp-block-button__link{
  display:inline-flex; align-items:center; gap:.6em;
  padding:14px 30px; border-radius:999px;
  font-weight:700; line-height:1.4; text-decoration:none;
  transition:background-color .25s, color .25s, border-color .25s;
}
.wp-block-button.btn-rose .wp-block-button__link::after,
.wp-block-button.btn-beige .wp-block-button__link::after{ content:"\2192"; font-weight:400; }
.wp-block-button.btn-rose .wp-block-button__link{ background:#C68B8B; color:#fff; border:2px solid #C68B8B; }
.wp-block-button.btn-rose .wp-block-button__link:hover{ background:#fff; color:#C68B8B; }
.wp-block-button.btn-beige .wp-block-button__link{ background:#D2B896; color:#fff; border:2px solid #D2B896; }
.wp-block-button.btn-beige .wp-block-button__link:hover{ background:#fff; color:#D2B896; }

/* コアのボタンレイアウトを明示(フロントでlayout CSS未ロードのため横並び/中央/間隔が効かない対策) */
.wp-block-buttons.is-layout-flex{ display:flex; flex-wrap:wrap; gap:12px; }
/* ボタンブロックの上下マージン(縦の余白) */
.wp-block-buttons{ margin-top:1.6em; margin-bottom:1.6em; }
.wp-block-buttons.is-layout-flex.is-vertical{ flex-direction:column; }
.wp-block-buttons.is-content-justification-left{ justify-content:flex-start; }
.wp-block-buttons.is-content-justification-center{ justify-content:center; }
.wp-block-buttons.is-content-justification-right{ justify-content:flex-end; }
.wp-block-buttons.is-content-justification-space-between{ justify-content:space-between; }

/* --- 吹き出し（左右・写真・肩書き＋名前2行・コメント） --- */
.balloon { display: flex; align-items: flex-start; gap: 14px; margin: 1.6em 0; }
.balloon--right { flex-direction: row-reverse; }
/* 人物列: アイコン幅(64px)を最小に、名前が長い時は内容に応じて広がる(SPで15文字程度まで折り返さない) */
.balloon__person { flex: 0 0 auto; width: auto; min-width: 64px; max-width: 50%; text-align: center; }
.balloon__icon img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.balloon__icon { display: inline-block; }
.balloon__meta { display: block; margin-top: 5px; }
/* 肩書き(1行目)・名前(2行目)は折り返さず1行で表示 */
.balloon__role { display: block; font-size: 11px; line-height: 1.35; color: #999; white-space: nowrap; }
.balloon__name { display: block; font-size: 12px; line-height: 1.35; color: #555; white-space: nowrap; }
/* 本文トラック: 残り幅を確定値で確保（basis:0+grow）。内部の吹き出しの折り返し基準になる */
.balloon__body { flex: 1 1 0; min-width: 0; }
.balloon--right .balloon__body { text-align: right; } /* 右はアイコン側(右)に寄せる */
/* 吹き出し本体: 短文は内容幅に縮み、長文は残り幅で折り返す（inline-block + max-width） */
.balloon__bubble {
  display: inline-block; vertical-align: top; text-align: left; max-width: 100%;
  position: relative;
  background: #f6f1ea; border-radius: 12px; padding: 14px 18px; font-size: 15px;
}
.balloon__bubble > :first-child { margin-top: 0; }
.balloon__bubble > :last-child { margin-bottom: 0; }
.balloon__bubble::before {
  content: ""; position: absolute; top: 18px; width: 0; height: 0;
  border: 8px solid transparent;
}
.balloon:not(.balloon--right) .balloon__bubble::before { left: -14px; border-right-color: #f6f1ea; }
.balloon--right .balloon__bubble::before { right: -14px; border-left-color: #f6f1ea; }
/* 右側の吹き出しはローズ色 */
.balloon--right .balloon__bubble { background: #f7e8ea; }
.balloon--right .balloon__bubble::before { border-left-color: #f7e8ea; }

/* SP: 左右の横並びを維持。フォント・名前幅を調整し、本文は左/右の吹き出しに合わせて寄せる */
@media screen and (max-width: 640px) {
  /* 名前側(写真+肩書き+名前)は最大140px。超える名前は改行 */
  .balloon__person { max-width: 140px; }
  .balloon__role { font-size: 8px; white-space: normal; }
  .balloon__name { font-size: 12px; white-space: normal; }
  /* 吹き出し本文 12px */
  .balloon__bubble { font-size: 12px; }
  /* 本文テキストも左/右の吹き出しに合わせて寄せる */
  .balloon:not(.balloon--right) .balloon__bubble { text-align: left; }
  .balloon--right .balloon__bubble { text-align: right; }
}

/* --- FAQ --- */
.faq { margin: 1.2em 0; }
.faq__item { margin: 0; border: 1px solid #e6ddd1; border-radius: 10px; overflow: hidden; }
.faq__q, .faq__a { display: flex; gap: 12px; margin: 0; padding: 16px 18px; }
.faq__q { background: #f6f1ea; font-weight: 700; }
.faq__a { background: #fff; }
.faq__mark {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}
.faq__q .faq__mark { background: #b08b5e; }
.faq__a .faq__mark { background: #c9b79c; }
.faq__a-body > :first-child { margin-top: 0; }
.faq__a-body > :last-child { margin-bottom: 0; }

/* --- 著者パネル（執筆者ブロック） --- */
.author-panel {
  border: 1px solid #e6ddd1; border-radius: 12px; padding: 18px 20px; margin: 1.6em 0; background: #fcfaf7;
}
.author-panel__head { display: flex; align-items: center; gap: 14px; }
.author-panel__img img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-panel__role { margin: 0; font-size: 12px; color: #777; }
.author-panel__name { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.author-panel__bio { margin-top: 12px; font-size: 14px; line-height: 1.8; }
.author-panel__bio > :first-child { margin-top: 0; }
.author-panel__link { margin: 12px 0 0; text-align: right; }
.author-panel__link a {
  display: inline-block; font-size: 13px; color: #b08b5e; text-decoration: none; font-weight: 700;
}
.author-panel__link a::after { content: " ›"; }

/* --- 表（th指定セルの背景色が変わる） --- */
.cmn_editor table th,
.wp-block-table th,
.cmn_editor table thead th { background: #f3ece2; font-weight: 700; }
.cmn_editor table td, .cmn_editor table th,
.wp-block-table td, .wp-block-table th { border: 1px solid #e2d8c8; padding: 10px 12px; }

/* --- この記事の著者(監修者)パネル: 自動差込 --- */
.post-author-panel{ border:1px solid #e6ddd1; border-radius:12px; padding:18px 20px; margin:1.6em 0; background:#fcfaf7; }
.post-author-panel__label{ text-align:center; font-size:14px; color:#777; margin:0 0 12px; text-decoration:underline; text-underline-offset:3px; }
.post-author-panel__head{ display:flex; align-items:center; gap:16px; }
.post-author-panel__img img{ width:104px; height:104px; border-radius:50%; object-fit:cover; }
.post-author-panel__clinic{ margin:0; font-size:13px; color:#555; }
.post-author-panel__name{ margin:4px 0 0; font-size:20px; font-weight:700; }
.post-author-panel__link{ margin:14px 0 0; }
.post-author-panel__link{ text-align:center; }
.post-author-panel__link a{ display:inline-block; width:auto; padding:8px 26px; border:1px solid #b08b5e; border-radius:999px; color:#b08b5e; text-decoration:none; font-weight:700; font-size:13px; transition:.25s; }
.post-author-panel__link a::after{ content:" \203A"; }
.post-author-panel__link a:hover{ background:#b08b5e; color:#fff; }

/* 投稿日・更新日（アイキャッチ前・固定表示） */
.blog_single_dates{ display:flex; flex-wrap:wrap; gap:6px 18px; justify-content:flex-end; align-items:center; margin:0 0 12px; font-size:13px; color:#8a7e72; letter-spacing:.03em; }
.blog_single_dates .is-mod{ font-weight:700; }
