  /* モバイル画像切れ完全修正 - Appendテンプレート専用 */
@media (max-width: 991px) {
    .features .features-item.row {
      align-items: start !important;  /* stretch完全解除 */
    }
    .features .features-item .features-img-bg {
      position: relative !important;
      min-height: auto !important;
      height: auto !important;
      margin-bottom: 20px;  /* 画像下余白 */
    }
    .features .features-item .features-img-bg img {
      position: relative !important;
      inset: auto !important;
      top: auto !important;
      left: auto !important;
      width: 100% !important;
      height: auto !important;
      max-height: 400px !important;  /* 調整 */
      object-fit: contain !important;  /* 全体表示 */
      object-position: center !important;
      display: block !important;
    }
  }

/* Stats YouTubeレスポンシブ */
#stats .row iframe {
  width: 100% !important;
  height: 56.25vw !important;
  max-height: 400px;
  aspect-ratio: 16 / 9;
}
@media (max-width: 768px) {
  #stats .row iframe {
    height: 50vw !important;
    max-height: 300px;
  }
}

/* stats背景画像高さ縮小 */
#stats {
  min-height: 57vh !important;  /* 100vh → 50vh（半分） */
  height: 70vh !important;      /* 固定高さ */
  padding: 40px 0 !important;   /* 前後余白縮小 */
}

/* スマホ */
@media (max-width: 768px) {
  #stats {
    min-height: 40vh !important;
    height: 50vh !important;
  }
}

/* Books YouTubeレスポンシブ */
#books .row iframe {
  width: 100% !important;
  height: 56.25vw !important;
  max-height: 400px;
  aspect-ratio: 16 / 9;
}
@media (max-width: 768px) {
  #books .row iframe {
    height: 50vw !important;
    max-height: 300px;
  }
}
  
