@charset "UTF-8";

@media print {
    /* 固定・スティッキー要素をすべて非表示 */                           
    *[style*="position: fixed"],                                         
    *[style*="position:fixed"] {                                         
      display: none !important;                                          
    }                                                                    
                                                                       
    /* このサイトでよく使われるヘッダーID・クラスを追加 */
    #header,
    #masthead,
    #site-header,
    .header-wrapper,
    .fixed-header,
    .sticky-header,
    [class*="header"],
    [id*="header"] {
      display: none !important;
      position: static !important;
    }


    /* ===== ページ設定 ===== */                                         
    @page {                                                              
      size: A4 portrait;                                                 
      margin: 15mm 10mm;                                                 
    }                                                                    

    /* ===== 印刷時に非表示にする要素 ===== */
    header,
    .header,
    nav,
    .nav,
    .navigation,
    .site-header,
    footer,
    .footer,
    .site-footer,
    .wp-block-button,
    .btn,
    button,
    .scroll-top,
    .hamburger,
    .menu-toggle,
    #wpadminbar {
      display: none !important;
    }

    /* ===== 基本レイアウト ===== */
    body {
      font-size: 10pt;
      color: #000;
      background: #fff;
      width: 100%;
    }

    * {
      float: none !important;
      position: static !important;
    }

    /* ===== コンテンツが途中で切れないようにする ===== */
    section,
    .section,
    article,
    .block,
    .entry,
    .card,
    .wp-block,
    .elementor-section,
    .elementor-widget,
    figure,
    img {
      break-inside: avoid !important;
      page-break-inside: avoid !important;
    }

    /* ===== 画像 ===== */
    img {
      max-width: 100% !important;
      height: auto !important;
    }

    /* ===== リンクのURL非表示 ===== */
    a::after {
      content: none !important;
    }


 /* ===== カラムレイアウトを全幅に展開 ===== */                       
    [class*="col-"],                                                     
    [class*="column"],                                                   
    [class*="-col"],                                                     
    [class*="half"],                                                     
    [class*="grid"],                                                     
    [class*="flex"],                                                   
    [class*="wrap"],
    [class*="inner"],
    [class*="container"],
    [class*="content"] {
      width: 100% !important;
      max-width: 100% !important;
      flex: none !important;
      display: block !important;
    }

    /* ===== Flexbox・Grid解除 ===== */
    [class*="benefit"],
    [class*="section"],
    [class*="row"] {
      display: block !important;
      width: 100% !important;
    }

    /* ===== 画像がページ境目で切れないように ===== */
    img {
      break-before: auto !important;
      break-after: avoid !important;
      break-inside: avoid !important;
      page-break-inside: avoid !important;
      display: block !important;
      max-width: 100% !important;
      height: auto !important;
    }

  }