/* UNRYUTO ブログ共通：スマホ（〜700px）の読みやすさ（TORA 2026-11-07 E550、KIRYU 決定）
   1. 右端が切れる表は、js/blog-mobile.js が .bm-cards を付けて 1 行ずつのカードにする（切れない表は変えない）
   2. 申込み箱などのボタンは、js が 1 行に収める（.bm-fit）
   3. 申込み箱の文字の欄が高さ固定で空白になる作りをなくす
   4. 本文の縦長の写真・画面画像は、js が .bm-tall を付けて高さ 520px までに縮める（切らない）
   記事ごとの CSS より後に読み、効くのは js が印を付けた要素と 3 だけ。 */
@media (max-width: 700px) {
  .pd-cta.hr-dual-cta .hr-dual-cta__copy { flex: 0 0 auto; }

  .bm-card-wrap { overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
  table.bm-cards { display: block; width: 100% !important; min-width: 0 !important; max-width: 100% !important; border: 0 !important; border-collapse: separate !important; background: transparent !important; table-layout: auto !important; }
  table.bm-cards caption { display: block; text-align: left; margin: 0 0 10px; }
  table.bm-cards thead { display: none !important; }
  table.bm-cards tbody { display: block; width: 100%; }
  table.bm-cards tbody tr { display: block; width: 100%; margin: 0 0 12px; border: 1px solid #e3ddd2; border-radius: 12px; background: #fff; overflow: hidden; }
  table.bm-cards tbody th, table.bm-cards tbody td { display: block; width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box; padding: 10px 14px !important; border: 0 !important; border-bottom: 1px solid #eee9df !important; text-align: left !important; white-space: normal !important; word-break: normal; overflow-wrap: anywhere; position: static !important; background: transparent; }
  table.bm-cards tbody tr > :last-child { border-bottom: 0 !important; }
  table.bm-cards tbody tr > :first-child { background: #f5f1e8 !important; font-weight: 700; }
  table.bm-cards [data-label]::before { content: attr(data-label); display: block; margin: 0 0 2px; color: #6b6358; font-size: 12px; font-weight: 700; line-height: 1.5; }

  img.bm-tall { max-height: 520px !important; width: auto !important; height: auto !important; max-width: 100% !important; display: block; margin-left: auto !important; margin-right: auto !important; }

  .bm-fit { white-space: nowrap !important; }
  .hr-dual-cta__actions.bm-stack { display: grid !important; grid-template-columns: 1fr !important; }
  .hr-dual-cta__actions.bm-stack .pd-button { width: 100%; }
}

/* TORA 2026-11-07 E551：記事の見出し部分の大きな絵（section.hero img.art）も 390 幅で高さ 520px まで（KIRYU 決定）。切らずに縮める。 */
@media (max-width: 700px) {
  section.hero img.art { max-height: 520px !important; width: auto !important; height: auto !important; max-width: 100% !important; display: block; margin-left: auto !important; margin-right: auto !important; }
}
