
.post-content a{
  color: #007acc;
  text-decoration: none;
}

/* ------ 出典・参照元（外部リンク） ------ */
.is-style-citation {
  font-size: 0.95rem;
  color: #333;
  background: #f1f1f1;
  margin-bottom: 30px;
  padding: 20px;
}
.is-style-citation .citation-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}
.post-content .is-style-citation ul {
  list-style: square outside;
  padding-left: 25px;
}
.post-content .is-style-citation li p {
  margin: 0;
  padding: 0;
}

/* ------ 関連記事（内部リンク） ------ */
.is-style-related-links {
  font-size: 0.95rem;
  color: #333;
  background: #f1f1f1;
  margin-bottom: 30px;
  padding: 20px;
}

.is-style-related-links .related-links-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

.post-content .is-style-related-links ul {
  list-style: square outside;
  padding-left: 25px;
}

.post-content .is-style-related-links li p {
  margin: 0;
  padding: 0;
}

/* ------ 目次 ------ */
.auto-toc {
  font-size: 0.95rem;
  color: #333;
  background: #f1f1f1;
  margin-bottom: 30px;
  padding: 20px;
}

.post-content p.auto-toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
  text-align: center;
}

.auto-toc ol {
  list-style: decimal outside;
  margin: 0;
  padding-left: 25px;
}

.auto-toc li + li {
  margin-top: 0.4rem;
}


/* ==============================
  公開ページ：テーブル共通
============================== */

.wp-block-table.is-style-info-table,
.wp-block-table.is-style-comparison-table {
  margin: 32px 0;
}

.wp-block-table.is-style-info-table table,
.wp-block-table.is-style-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.wp-block-table.is-style-info-table th,
.wp-block-table.is-style-info-table td,
.wp-block-table.is-style-comparison-table th,
.wp-block-table.is-style-comparison-table td {
  border: 1px solid #ddd;
  padding: 12px 14px;
  vertical-align: top;
}

.wp-block-table.is-style-info-table thead th,
.wp-block-table.is-style-comparison-table thead th {
  background: #f1f1f1;
  font-weight: 700;
}

/* 情報表：左列を項目名として見せる */
.wp-block-table.is-style-info-table tbody tr td:first-child,
.wp-block-table.is-style-info-table tbody tr th:first-child {
  width: 28%;
  background: #f8f8f8;
  font-weight: 700;
}

/* 比較表：スマホでは横スクロール */
.wp-block-table.is-style-comparison-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table.is-style-comparison-table table {
  min-width: 720px;
}

/* 比較表：先頭列を少し強調 */
.wp-block-table.is-style-comparison-table tbody tr td:first-child,
.wp-block-table.is-style-comparison-table tbody tr th:first-child {
  font-weight: 700;
  background: #fafafa;
}

.wp-block-table.is-style-info-table figcaption,
.wp-block-table.is-style-comparison-table figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
  text-align: left;
}

/* ==============================
  公開ページ：テーブル横スクロール案内
  実際に横スクロールがある時だけ表示
============================== */

.post-content figure.wp-block-table,
.post-content .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ==============================
  公開ページ：テーブル横スクロール案内
  レイアウトずれ防止版
============================== */

.post-content figure.wp-block-table,
.post-content .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 常に高さを確保する */
.post-content figure.wp-block-table::before,
.post-content .wp-block-table::before {
  content: "← 横にスクロールできます →";
  display: inline-block;
  min-height: 1.4em;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #666;
  background: #f6f6f6;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 8px;
  white-space: nowrap;

  /* 初期状態は透明。高さは残す */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* 横スクロール可能で、まだ右に続きがある時だけ見せる */
.post-content figure.wp-block-table.cbs-can-scroll-right::before,
.post-content .wp-block-table.cbs-can-scroll-right::before {
  visibility: visible;
  opacity: 1;
}

/* PCでは完全に非表示 */
@media (min-width: 768px) {
  .post-content figure.wp-block-table::before,
  .post-content .wp-block-table::before {
    display: none;
  }
}

/* PCでは案内を非表示 */
@media (min-width: 768px) {
  .post-content figure.wp-block-table.cbs-can-scroll-right::before,
  .post-content .wp-block-table.cbs-can-scroll-right::before {
    display: none;
  }
}

.post-content figure.wp-block-table table,
.post-content .wp-block-table table {
  width: max-content !important;
  min-width: 100%;
  table-layout: auto !important;
  border-collapse: collapse;
}

.post-content figure.wp-block-table.is-style-comparison-table table,
.post-content .wp-block-table.is-style-comparison-table table {
  min-width: 720px !important;
}

.post-content figure.wp-block-table.is-style-info-table table,
.post-content .wp-block-table.is-style-info-table table {
  min-width: 520px !important;
}
/* ==============================
  公開ページ：FAQ
============================== */

.post-content .cbs-faq-question {
  position: relative;
  display: block;
  max-width: 100%;
  background: #f1f7ff;
  border: 1px solid #cfe4ff;
  border-radius: 4px 4px 0 0;
  padding: 14px 16px 14px 48px;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
  color: #222;
  box-sizing: border-box;
}

.post-content .cbs-faq-question::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #007acc;
  color: #fff;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}

.post-content .cbs-faq-answer {
  position: relative;
  display: block;
  max-width: 100%;
  background: #fff;
  border: 1px solid #cfe4ff;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 14px 16px 14px 48px;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.9;
  color: #333;
  box-sizing: border-box;
}

.post-content .cbs-faq-answer::before {
  content: "A";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}

/* ==============================
  公開ページ：体験談・お客様の声
  - quote版
  - group版
  - 自動整形 paragraph版
============================== */

/* ------------------------------
  quote / group 共通
------------------------------ */

.post-content .wp-block-quote.is-style-experience,
.post-content .wp-block-quote.is-style-customer-voice,
.post-content .wp-block-group.is-style-experience,
.post-content .wp-block-group.is-style-customer-voice {
  position: relative;
  max-width: 100%;
  border-radius: 6px;
  padding: 48px 20px 20px;
  margin: 24px 0;
  box-sizing: border-box;
  font-style: normal;
  overflow-wrap: anywhere;
}

.post-content .wp-block-quote.is-style-experience p,
.post-content .wp-block-quote.is-style-customer-voice p,
.post-content .wp-block-group.is-style-experience p,
.post-content .wp-block-group.is-style-customer-voice p {
  margin-top: 0;
  margin-bottom: 0.85em;
  line-height: 1.9;
  font-style: normal;
}

.post-content .wp-block-quote.is-style-experience p:last-child,
.post-content .wp-block-quote.is-style-customer-voice p:last-child,
.post-content .wp-block-group.is-style-experience p:last-child,
.post-content .wp-block-group.is-style-customer-voice p:last-child {
  margin-bottom: 0;
}

.post-content .wp-block-quote.is-style-experience::before,
.post-content .wp-block-quote.is-style-customer-voice::before,
.post-content .wp-block-group.is-style-experience::before,
.post-content .wp-block-group.is-style-customer-voice::before {
  position: absolute;
  top: 14px;
  left: 20px;
  display: inline-block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}

/* quote / group：体験談 */
.post-content .wp-block-quote.is-style-experience,
.post-content .wp-block-group.is-style-experience {
  background: #fffaf0;
  border: 1px solid #f0d9a5;
  border-left: 5px solid #e0a530;
}

.post-content .wp-block-quote.is-style-experience::before,
.post-content .wp-block-group.is-style-experience::before {
  content: "体験談";
  background: #e0a530;
}

/* quote / group：お客様の声 */
.post-content .wp-block-quote.is-style-customer-voice,
.post-content .wp-block-group.is-style-customer-voice {
  background: #f4fbf7;
  border: 1px solid #bfe4cc;
  border-left: 5px solid #3ca267;
}

.post-content .wp-block-quote.is-style-customer-voice::before,
.post-content .wp-block-group.is-style-customer-voice::before {
  content: "お客様の声";
  background: #3ca267;
}

/* ------------------------------
  自動整形 paragraph版 共通
------------------------------ */

.post-content .cbs-experience-block,
.post-content .cbs-customer-voice-block {
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 20px;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.9;
  font-style: normal;
  overflow-wrap: anywhere;
}

/* paragraph版：体験談 */
.post-content .cbs-experience-block {
  background: #fffaf0;
  border-left: 5px solid #e0a530;
  border-right: 1px solid #f0d9a5;
}

/* paragraph版：お客様の声 */
.post-content .cbs-customer-voice-block {
  background: #f4fbf7;
  border-left: 5px solid #3ca267;
  border-right: 1px solid #bfe4cc;
}

/* paragraph版：最初の段落 */
.post-content .cbs-experience-first,
.post-content .cbs-customer-voice-first {
  padding-top: 48px;
  border-top: 1px solid;
  border-radius: 6px 6px 0 0;
  margin-top: 24px;
}

/* paragraph版：最後の段落 */
.post-content .cbs-experience-last,
.post-content .cbs-customer-voice-last {
  padding-bottom: 18px;
  border-bottom: 1px solid;
  border-radius: 0 0 6px 6px;
  margin-bottom: 24px;
}

/* paragraph版：1段落だけの場合 */
.post-content .cbs-experience-first.cbs-experience-last,
.post-content .cbs-customer-voice-first.cbs-customer-voice-last {
  border-radius: 6px;
}

/* paragraph版：体験談の上下罫線 */
.post-content .cbs-experience-first {
  border-top-color: #f0d9a5;
}

.post-content .cbs-experience-last {
  border-bottom-color: #f0d9a5;
}

/* paragraph版：お客様の声の上下罫線 */
.post-content .cbs-customer-voice-first {
  border-top-color: #bfe4cc;
}

.post-content .cbs-customer-voice-last {
  border-bottom-color: #bfe4cc;
}

/* paragraph版：ラベル */
.post-content .cbs-experience-first::before,
.post-content .cbs-customer-voice-first::before {
  position: absolute;
  top: 14px;
  left: 20px;
  display: inline-block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}

/* paragraph版：体験談ラベル */
.post-content .cbs-experience-first::before {
  content: "体験談";
  background: #e0a530;
}

/* paragraph版：お客様の声ラベル */
.post-content .cbs-customer-voice-first::before {
  content: "お客様の声";
  background: #3ca267;
}

/* 体験談・お客様の声：マーカー専用段落は非表示 */
.post-content .cbs-voice-marker-hidden {
  display: none !important;
}