/* 施術詳細：旧・新コンテンツ共通の見出しと余白 */
.p-treatment .treatment-builder-section{margin-bottom:32px}
.p-treatment .treatment-builder-section>.c-title3{margin-top:0}
.p-treatment .treatment-builder-section .p-treatment__detail{margin-bottom:0}
.p-treatment .treatment-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.p-treatment .treatment-data-table{border-collapse:collapse;width:100%;min-width:360px}
.p-treatment .treatment-data-table th,.p-treatment .treatment-data-table td{border:1px solid #ddd;padding:12px 14px;text-align:left;vertical-align:top}
.p-treatment .treatment-data-table th{background:#f6f4f1;font-weight:700}
.p-treatment .treatment-builder-section img{max-width:100%;height:auto}
/* 新コンテンツ：症例写真とおすすめを共通レイアウトで表示 */
.p-treatment .treatment-builder-section .classy-treatment-cases__item{max-width:100%}
.p-treatment .treatment-builder-section .classy-treatment-cases__image{max-width:100%;height:auto}
.p-treatment .treatment-builder-section .classy-osusume{width:100%}

/* 追加表は通常の本文と同じ文字サイズ・行間。見出しは他の施術詳細と共通。 */
.p-treatment .treatment-builder-section .treatment-data-table {font-size:16px;line-height:1.75}
.p-treatment .treatment-builder-section .treatment-data-table th,
.p-treatment .treatment-builder-section .treatment-data-table td {font-size:inherit;line-height:inherit;padding:10px 12px}
.p-treatment .treatment-builder-section .treatment-data-table p {margin:0 0 6px}
.p-treatment .treatment-builder-section .treatment-data-table p:last-child {margin-bottom:0}
@media(max-width:767px){
 .p-treatment .treatment-builder-section .treatment-data-table th,
 .p-treatment .treatment-builder-section .treatment-data-table td {padding:8px 10px}
}

/* 旧施術詳細：見出しと本文のセクション間隔（新ビルダーには適用しない） */
.p-treatment > section > .heading:not(:first-child){margin-top:44px}
.p-treatment > section > .p-treatment__detail + .heading{margin-top:48px}
.p-treatment > section > .p-treatment__detail{margin-bottom:24px}
.p-treatment > section > .p-treatment__detail > :last-child{margin-bottom:0}

/* 旧施術詳細：症例ブログ一覧。旧テーマのJSが付ける画像由来の固定高さを解除 */
.p-treatment > section > .p-treatment__detail .blog li.p-article{
  height:auto !important;
  min-height:0;
  margin:0 0 18px;
  padding:0 0 18px;
}
.p-treatment > section > .p-treatment__detail .blog li.p-article:last-child{margin-bottom:0}
.p-treatment > section > .p-treatment__detail .blog .p-article__thumbnail img{
  display:block;
  width:100px;
  height:auto !important;
  max-height:none;
  object-fit:contain;
}
.p-treatment > section > .p-treatment__detail .blog .p-article__thumbnail{
  width:120px;
}
@media(max-width:767px){
  .p-treatment > section > .heading:not(:first-child),
  .p-treatment > section > .p-treatment__detail + .heading{margin-top:32px}
  .p-treatment > section > .p-treatment__detail{margin-bottom:20px}
}

/* 旧施術詳細の症例ブログ：旧table-cell配置を解除し上揃えに統一 */
.p-treatment > section > .p-treatment__detail .blog article{
  display:block;
  height:auto !important;
  min-height:0;
}
.p-treatment > section > .p-treatment__detail .blog li.p-article{
  display:flex;
  align-items:flex-start;
  gap:16px;
  height:auto !important;
  min-height:0;
}
.p-treatment > section > .p-treatment__detail .blog .p-article__thumbnail{
  display:block;
  flex:0 0 120px;
  width:120px;
  height:auto !important;
  vertical-align:top;
}
.p-treatment > section > .p-treatment__detail .blog .p-article__thumbnail a{display:block}
.p-treatment > section > .p-treatment__detail .blog .p-article__thumbnail img{
  display:block;
  width:100px;
  height:50px !important;
  max-height:50px;
  object-fit:cover;
}
.p-treatment > section > .p-treatment__detail .blog .p-article__body{
  display:block;
  flex:1 1 auto;
  min-width:0;
  height:auto !important;
  vertical-align:top;
}

/* 症例ブログ：サムネイルリンクの装飾線だけを非表示（タイトルリンクは維持） */
.p-treatment > section > .p-treatment__detail .blog .p-article__thumbnail a::after{content:none}

/* 新規挿入表のみ：col のパーセント幅を優先し、未指定列に残り幅を配分 */
.p-treatment .treatment-data-table.tb-column-widths{table-layout:fixed}

/* Scoped override for manually sized columns */
.p-treatment .treatment-data-table.tb-column-widths tbody th,
.p-treatment .treatment-data-table.tb-column-widths tbody td{width:auto}
