/* ==========================================================================
   文字合成済み図解（images/src/figures/treatment/）2026-09-16
   - 比率を崩さず幅いっぱいに置く。PC はコンテンツ幅（1300px）を上限
   - スマホは fig-zoom 付きの図解をタップで拡大表示（js/fig-zoom.js）
   ========================================================================== */
.fig-treatment {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1200px;
}
.fig-treatment img,
img.fig-zoom {
  display: block;
  width: 100%;
  height: auto;
}
/* 元画像より大きく拡大しない（ハイドラの縦長図解 570px） */
.column-two dt img.fig-zoom {
  max-width: 570px;
  margin-left: auto;
  margin-right: auto;
}
.p-compare__item--figure .p-compare__img img {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}
.p-compare__item--figure + .p-compare__item--figure {
  margin-top: 20px;
}

/* スマホ：タップで拡大 */
@media screen and (max-width: 767px) {
  .fig-zoom,
  .fig-zoom img {
    cursor: zoom-in;
  }
  .fig-zoom-hint {
    display: block;
    margin: 2vw 0 0;
    color: #875d05;
    font-size: 3vw;
    text-align: right;
  }
}
@media screen and (min-width: 768px) {
  .fig-zoom-hint {
    display: none;
  }
}
.fig-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(20, 15, 10, 0.92);
  touch-action: pan-x pan-y pinch-zoom;
}
.fig-zoom-overlay .fig-zoom-scroll {
  display: inline-block;
  min-width: 100%;
  padding: 60px 16px 48px;
  box-sizing: border-box;
}
/* 横長の図解は横幅を広げて読めるようにし、指でスクロール・ピンチできる */
.fig-zoom-overlay img {
  display: block;
  width: 220vw;
  max-width: 1200px;
  height: auto;
  background: #fff;
  border-radius: 4px;
}
.fig-zoom-overlay img.is-portrait {
  width: 96vw;
  max-width: 700px;
}
.fig-zoom-overlay .fig-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 28px;
  line-height: 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  border-radius: 20px;
}
.fig-zoom-overlay .fig-zoom-note {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  color: #fff;
  font-size: 12px;
  text-align: center;
  opacity: 0.8;
}

/* 2026-09-16 図解を「イラストのみ＋HTMLテキスト」に分離（文字合成版は不使用）
   - 画像は幅いっぱい・比率維持。切り抜かない
   - 縦長（ハイドラ）は 2カラムの左に置くため上限幅を設け、余白は付けない */
.column-two dt img[src*="figures/treatment/"] {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}
.p-compare__img img[src*="figures/treatment/"] {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}
