@charset "UTF-8";

/* イベント ================================================== */
/* ==========================================================

    body id="event"

    読み込み
    contentsエリア
    aaaaaaa

============================================================ */
/* 読み込み ================================================= */

/* 共通 */
@import url("./common.css");
@import url("./editor-style.css");

/* 読み込み ================================================= */
/* ========================================================= */
/* contentsエリア =========================================== */

/* 各sectionの設定は下記 */

#whitepaper{

    .contents{

        /* 1カラムの場合（共通）------------------------------ */

        /* 資料請求の詳細ページでは、1カラムの場合は発生しない */

        /* 2カラムの場合（フォームが右サイドにある）------------ */
        /* position: sticky; を適用した要素の親要素に overflow: hidden; が適用されていた場合は、sticky要素は追従しません。 */
        .columnRequest{
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            width: min(100%, var(--width-L));   /* 1,300px */
            margin: 0 auto;

            /* 左カラム（内容）*/
            .leftContent{
                width: calc(100% - var(--width-form-Pc) - var(--contents-Sidemargin-Pc));   /* フォーム側は左サイドは余白0なので右サイド分の余白（var(--contents-Sidemargin-Pc)）のみ引く */

                /* サムネエリア */
                .whitepaperMain{

                    .boxArea{
                        overflow: hidden;
                        display: grid;
                        align-items: center;
                        width: min(100%, var(--width-Base));
                        aspect-ratio: 300/157;
                        margin: 0 auto var(--contents-paddingTop-Pc);
                        padding: 30px 50px;
                        background-color: var(--color-Design-Gray02);

                        img{
                            width: 100%;
                            /* height: 100%; */
                            /* max-width: 100%;
                            height: auto;     */
                            aspect-ratio: 300/157;
                            object-fit: contain;
                            /* object-position: center; */
                            margin: auto;
                            transition: var(--transition-BtLink);
                        }

                    }

                }

                /* 投稿の本文 */
                /* .editorStyle内は、editor-style.cssの「.editorStyle」の設定を用いる */

            }

            /* 右カラム（フォーム）*/
            .rightContent{
                position: sticky;
                left: 0;
                top: calc(var(--header-height-Pc) + 20px);
                width: var(--width-form-Pc);
                margin: 0 var(--contents-Sidemargin-Pc) 0 0;   /* 左サイドは余白0 */

                /* 吹き出し */
                &::before{
                    position: absolute;
                    top: -45px;
                    right: 20px;
                    content: "資料をすぐに受け取れます！";
                    display: grid;
                    justify-content: center;
                    align-items: center;
                    font-size: 14px;
                    font-weight: 500;
                    line-height: 1.4;
                    color: #FFF;
                    width: 100px;
                    aspect-ratio: 1/1;
                    text-align: center;
                    padding: 0 3px;
                    background-color: var(--color-Design-Yellow);
                    border-radius: 50%;
                }

                /* 2カラムの時のみ高さ指定＆スクロールさせる */
                .formArea{
                    /* フォームの基本設定は、common.cssの「.formArea」の設定を用いる */

                    /* 上書き設定 */
                    overflow-y: auto;
                    height: 75vh;
                    padding-top: 50px;
                }

            }

            @container ctnHtml (width <= 1000px){
                display: block;   /* 1カラムになる */

                /* 左カラム（内容）*/
                .leftContent{
                    width: 100%;

                    /* サムネエリア */
                    .whitepaperMain{

                        .boxArea{
                            margin-bottom: var(--contents-paddingTop-Tab);
                        }

                    }

                    /* 投稿の本文 */
                    /* .editorStyle内は、editor-style.cssの「.editorStyle」の設定を用いる */

                }

                /* 右カラム（フォーム）*/
                .rightContent{
                    width: var(--width-form-Tab);
                    margin: 50px auto 0;

                    /* 1カラムになった時は、高さ指定＆スクロールをキャンセル */
                    .formArea{
                        /* フォームの基本設定は、common.cssの「.formArea」の設定を用いる */

                        /* 上書き設定 */
                        overflow-y: unset;
                        height: unset;
                    }

                }

            }

            @container ctnHtml (width <= 600px){
                display: block;   /* 1カラムになる */

                /* 左カラム（内容）*/
                .leftContent{
                    width: 100%;

                    /* サムネエリア */
                    .whitepaperMain{

                        .boxArea{
                            width: 100%;
                            margin-bottom: var(--contents-paddingTop-Sp);
                            padding: 10px 20px;

                            img{
                                width: 100%;
                            }

                        }

                    }

                    /* 投稿の本文 */
                    /* .editorStyle内は、editor-style.cssの「.editorStyle」の設定を用いる */

                }

                /* 右カラム（フォーム）*/
                .rightContent{
                    width: var(--width-form-Sp);
                    margin: 10vh auto 0;

                    /* 1カラムになった時は、高さ指定＆スクロールをキャンセル */
                    .formArea{
                        /* フォームの基本設定は、common.cssの「.formArea」の設定を用いる */

                        /* 上書き設定 */
                        overflow-y: unset;
                        height: unset;
                    }

                }

            }

        }

    }

}

/* contentsエリア =========================================== */
/* ========================================================= */