/* ==============================================================
 * bee-images.css (= WARM 由来レイアウト borrow · 段階拡張)
 *   Cool 版 (案B) に WARM 版から選択的にセクション構成 + アセットを移植
 *   (2026-08-27 · クライアント FB #3 対応)
 *
 * 実装方針:
 *   - variant-warm.css からセクション別 layout + アセットブロックのみを抽出
 *   - 色関連 (border-color / --warm-orange 等) は含めない → cool 側の色が維持される
 *
 * 含まれるセクション (追加順):
 *   [A] bee section (PC + SP): photorealistic 画像 + edge-to-edge レイアウト (2026-08-27)
 *   [B] point-card SP: 2 列縦書き崩壊 → 1 列縦積み修正 (2026-08-27)
 *
 * ロード位置: index.html 内 brushup.css の直後
 * 前提: <main class="pattern-b delivery-polish">
 * ============================================================== */

/* ==============================================================
 * [A] bee section (PC + SP)
 * ============================================================== */

/* --- (1) PC + SP 共通: bee-illustration に photorealistic 画像を設定 --- */
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-1,
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-2,
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-3,
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-4 {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-color: transparent !important;
}
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-1 > span,
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-2 > span,
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-3 > span,
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-4 > span {
  display: none !important;
}
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-1 {
  background-image: url("../output_bees/bee-suzumebachi-trim.png") !important;
}
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-2 {
  background-image: url("../output_bees/bee-ashinagabachi-trim.png") !important;
}
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-3 {
  background-image: url("../output_bees/bee-mitsubachi-trim.png") !important;
}
main.delivery-polish.pattern-b .bee-illustration.bee-illustration-4 {
  background-image: url("../output_bees/bee-kumabachi-trim.png") !important;
}

/* --- (2) PC (>640px): bee-card 縦積み + illustration edge-to-edge 260px --- */
main.delivery-polish.pattern-b .bee-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  grid-template-columns: initial !important;
  grid-template-rows: initial !important;
  gap: 10px !important;
  padding: 16px !important;
  overflow: hidden !important;
}
main.delivery-polish.pattern-b .bee-illustration {
  width: calc(100% + 32px) !important;
  height: 260px !important;
  margin: -16px -16px 0 -16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
main.delivery-polish.pattern-b .bee-illustration:has(img) > span,
main.delivery-polish.pattern-b .bee-illustration > span {
  display: none !important;
}
main.delivery-polish.pattern-b .bee-illustration img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
main.delivery-polish.pattern-b .bee-card h3 {
  width: 100% !important;
  text-align: center !important;
  font-size: 20px !important;
  margin: 4px 0 !important;
}
main.delivery-polish.pattern-b .bee-card p.risk {
  width: 100% !important;
  text-align: center !important;
  margin: 4px 0 !important;
}
main.delivery-polish.pattern-b .bee-card p:not(.risk) {
  width: 100% !important;
  text-align: left !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
  max-width: none !important;
}

/* --- (3) SP (<=640px): 1 列縦積み + illustration 300px --- */
@media (max-width: 640px) {
  main.delivery-polish.pattern-b .bee-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  main.delivery-polish.pattern-b .bee-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-template-columns: initial !important;
    grid-template-rows: initial !important;
    gap: 10px !important;
    padding: 16px !important;
    overflow: hidden !important;
  }
  main.delivery-polish.pattern-b .bee-illustration {
    width: calc(100% + 32px) !important;
    height: 300px !important;
    margin: -16px -16px 0 -16px !important;
  }
}

/* ==============================================================
 * [B] point-card SP (相談しやすさを大切にしています セクション)
 *   現状 (cool): SP でも 2 列 grid = 各カード幅 160px、内部 grid 68px icon + 44px text
 *   → text 領域 44px = 1 文字/行の縦書き崩壊
 *   対策: SP のみ 1 列縦積み + icon 中央 + POINT XX / h3 / 説明文 を縦配置
 *   出典: variant-warm.css line 378-415 (2026-08-26 warm SP fix) から抽出
 *   注: PC (>640px) は brushup.css の 3 列 layout のまま (触らない)
 * ============================================================== */
@media (max-width: 640px) {
  main.delivery-polish.pattern-b .point-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  main.delivery-polish.pattern-b .point-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: initial !important;
    grid-template-rows: initial !important;
    gap: 10px !important;
    padding: 20px 18px !important;
    text-align: center !important;
  }
  main.delivery-polish.pattern-b .point-card .point-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }
  main.delivery-polish.pattern-b .point-card > span:first-child,
  main.delivery-polish.pattern-b .point-card span {
    text-align: center !important;
    display: block !important;
    width: auto !important;
    font-size: 13px !important;
    letter-spacing: 0.04em !important;
  }
  main.delivery-polish.pattern-b .point-card h3 {
    text-align: center !important;
    width: 100% !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 4px 0 6px !important;
  }
  main.delivery-polish.pattern-b .point-card p {
    text-align: left !important;
    width: 100% !important;
    max-width: none !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
}
