@charset "UTF-8";

@media print {
    /* =================================================================
       1. 基本設定（インク節約・リセット）
    ================================================================= */
    body {
        font-size: 10pt !important;
        line-height: 1.3;
        color: #000 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        width: 100% !important;
        margin: 0 !important;
    }

    /* 背景や影をリセット */
    *, *::before, *::after {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
        animation: none !important;
        color: #000 !important;
    }

    /* アニメーション要素（fuwa）を強制的に表示 */
    .fuwa, .ttl_anim span, .ttl_anim i {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* =================================================================
       2. 不要なパーツを消す
    ================================================================= */
    header, #kv_slide, nav, .bnr_inq, #totop, .loading, .btn_wrap, 
    .swiper-button-prev, .swiper-button-next, #thumb_slide, 
    .circle_top, .bubble, .swiper-pagination,
    .swiper-slide-duplicate {
        display: none !important;
    }

    /* =================================================================
       3. レイアウトの1カラム化・余白リセット
    ================================================================= */
    .wrapper, .main_container, main {
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    
    .wrapper > h1 {
        position: static !important;
        text-align: center;
        margin-bottom: 20px;
    }

    /* セクションの余白調整 */
    section, 
    .section_plan, .section_flow, .section_scene, 
    .section_work, .section_faq, .section_inquiry {
        padding: 5px 0 !important;
        margin: 5px 0 !important;
        page-break-inside: avoid;
    }

    /* 見出しの設定 */
    h2 {
        font-size: 14pt !important;
        border-bottom: none !important;
        margin-bottom: 10px !important; /* 少し詰めました */
        page-break-after: avoid;
    }
    h3 {
        font-size: 12pt !important;
        margin: 5px 0 !important;
        page-break-after: avoid;
    }

    /* 【追加】PC用の大きな余白（margin-top: 100px等）を強制キャンセル */
    .section_plan .mobile_box,
    .section_flow ul,
    .section_scene ul {
        margin-top: 10px !important; 
    }

    /* =================================================================
       4. コンテンツの2列化（中央揃え・inline-block方式）
    ================================================================= */
    .swiper, .swiper-wrapper {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        overflow: visible !important;
        font-size: 0;
        text-align: center !important;
    }

    /* スライド（事例・テンプレート）を2列にする */
    #work_slide .swiper-slide:not(.swiper-slide-duplicate),
    #temp_slide .swiper-slide:not(.swiper-slide-duplicate) {
        display: inline-block !important;
        width: 48% !important;
        vertical-align: top;
        margin: 0 1% 15px 1% !important; /* 左右均等マージン */
        border: 1px solid #ddd;
        padding: 8px;
        box-sizing: border-box;
        page-break-inside: avoid;
        font-size: 10pt;
        text-align: left !important;
    }
    
    /* 制作の流れ・利用シーンのリストも2列・中央揃えに */
    .section_flow ul,
    .section_scene ul {
        display: block !important;
        font-size: 0;
        text-align: center !important;
    }
    .section_flow li,
    .section_scene li {
        display: inline-block !important;
        width: 48% !important;
        vertical-align: top;
        font-size: 10pt;
        margin: 0 1% 15px 1% !important;
        text-align: left !important;
    }

    /* =================================================================
       5. FAQ（アコーディオン）の圧縮
    ================================================================= */
    .accordion_wrap, .accordion_wrap > section {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    details {
        display: block !important;
        margin-bottom: 5px !important;
        page-break-inside: avoid;
    }
    details .accordion_contents {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        padding: 5px 0 !important;
    }
    /* 枠線を消す */
    .accordion_contents > section {
        border: none;
    }
    /* 仕切り線をdetailsにつける */
    details {
        border-bottom: 1px solid #ccc;
    }

    summary { pointer-events: none; list-style: none; }
    summary::after { display: none !important; }
    summary h3 { margin: 0 !important; font-size: 11pt !important; font-weight: bold; }

    /* =================================================================
       6. 画像サイズ制御
    ================================================================= */
    img {
        max-width: 80% !important;
        max-height: 150px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        display: block;
        margin: 5px auto;
    }
    .template img {
        max-height: 120px !important;
    }

    /* =================================================================
       7. フッター（社名・ロゴ）の縮小
    ================================================================= */
    footer {
        padding-top: 10px !important;
        margin-top: 10px !important;
    }
    footer figure img {
        max-width: 240px !important; /* ご希望サイズ */
        max-height: 40px !important;
        margin-bottom: 5px !important;
    }
    footer p, footer .tel-wrap, footer small {
        font-size: 8pt !important;
        margin: 2px 0 !important;
        line-height: 1.2;
    }
    footer .tel-wrap { margin-top: 5px !important; }
    footer .tel-wrap span { font-size: 10pt !important; }
    footer small { margin-top: 10px !important; padding-bottom: 0 !important; }
}