@media print {
  body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 10.5pt;
    line-height: 1.4;
    color: #000;
    margin: 0;
    padding: 0;
  }

  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  /* 不要部分を非表示 */
  header,
  footer,
  .share,
  .tag_category,
  .tag,
  .product,
  .recipe_list,
  .popular,
  .sp,
  .mb_4,
  .btn,
  .sidebar,
  nav,
  .breadcrumb {
    display: none !important;
  }

  /* タイトル・説明はフル幅で上に */
  .custom-title-class {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin: 0 0 8px;
  }

  .point_wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 10pt;
    margin-bottom: 8px;
  }

  .post-content {
    font-size: 10pt;
    margin: 0 0 12px;
    text-align: justify;
  }

  /* === ここから2カラム化 === */
  .about {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
  }

  /* 左：画像 */
  .about .child1 {
    flex: 0 0 35%;
    width: 50% !important;
    margin: 0 auto !important;
  }

  .about .child1 img {
    height: auto;
  }

  /* 右：テキスト・材料・手順 */
  .about .child2 {
    width: 80% !important;
    margin: 0 auto !important;
    flex: 1;
    font-size: 10pt;
  }

  /* 材料 */
  .zairyo {
    width: 80% !important;
    margin: 0 auto !important;
    margin-bottom: 12px;
  }

  .zairyo h2 {
    font-size: 12pt;
    margin-bottom: 6px;
  }

  .zairyo ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .zairyo li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #aaa;
    margin-bottom: 3px;
    font-size: 10pt;
  }

  /* 手順 */
  .tejun {
    width: 80% !important;
    margin: 0 auto !important;
  }
  .tejun h2 {
    font-size: 12pt;
    margin: 10px 0 6px;
  }

  .tejun ol {
    margin: 0;
    padding-left: 18px;
  }

  .tejun li {
    margin-bottom: 6px;
    font-size: 10pt;
    page-break-inside: avoid;
  }

  .tejun img {
    max-width: 60%;
    height: auto;
    display: block;
    margin-top: 4px;
  }

  /* 改ページを防ぐ */
  .about,
  .zairyo,
  .tejun {
    page-break-inside: avoid;
  }
}

@media print {
  body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 10.5pt;
    line-height: 1.4;
    color: #000;
    margin: 0;
    padding: 0;
  }

  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  /* 不要部分を非表示 */
  header,
  footer,
  .share,
  .tag_category,
  .tag,
  .product,
  .recipe_list,
  .popular,
  .sp,
  .mb_4,
  .btn,
  .sidebar,
  .footer_banner,
  .sns,
  h2,
  nav,
  .breadcrumb {
    display: none !important;
  }

  /* タイトル・説明はフル幅で上に */
  .custom-title-class {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin: 0 0 8px;
  }

  .point_wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 10pt;
    margin-bottom: 8px;
  }

  .post-content {
    font-size: 10pt;
    margin: 0 0 12px;
    text-align: justify;
  }

  /* === ここから2カラム化 === */
  .about {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
  }

  /* 左：画像 */
  .about .child1 {
    flex: 0 0 35%;
  }

  .about .child1 img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
  }

  /* 右：テキスト・材料・手順 */
  .about .child2 {
    flex: 1;
    font-size: 10pt;
  }

  /* 材料 */
  .zairyo {
    margin-bottom: 12px;
  }

  .zairyo h2 {
    font-size: 12pt;
    margin-bottom: 6px;
  }

  .zairyo ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .zairyo li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #aaa;
    margin-bottom: 3px;
    font-size: 10pt;
  }

  /* 手順 */
  .tejun h2 {
    font-size: 12pt;
    margin: 10px 0 6px;
  }

  .tejun ol {
    margin: 0;
    padding-left: 18px;
  }

  .tejun li {
    margin-bottom: 6px;
    font-size: 10pt;
    page-break-inside: avoid;
  }

  .tejun img {
    max-width: 60%;
    height: auto;
    display: block;
    margin-top: 4px;
  }

  /* 改ページを防ぐ */
  .about,
  .zairyo,
  .tejun {
    page-break-inside: avoid;
  }
}
