@charset "UTF-8";

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

    body id="event"

    読み込み
    contentsエリア
    aaaaaaa

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

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

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

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

#event{

    .contents{

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

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

            .boxArea{
                width: min(100%, var(--width-Base));
                margin: 0 auto var(--contents-paddingTop-Pc);

                /* イベントステータス */
                .eventStatus{
                    display: grid;
                    gap: 0 10px;
                    grid-template-columns: 1fr auto;
                    justify-content: space-between;
                    align-items: center;
                    width: fit-content;
                    margin-bottom: 10px;

                    /* 状態アイコン */
                    .statusIcon{
                        width: fit-content;
                        font-size: clamp(16px, 0.6689vw + 9.20401px, 18px);   /* 横：MIN 1016px ～ MAX 1315px */
                        font-weight: 500;
                        line-height: 1.2;
                        letter-spacing: var(--letter-spacing-01);
                        color: #FFF;
                        padding: 4px 20px 4px;
                        background-color: #8F8F8F;
                        border-radius: 999px;

                        /* 申込受付中 */
                        &.accepting{
                            background-color: #E56A6A;
                        }

                        /* 受付終了 */
                        &.closed{
                            background-color: #6A92E2;
                        }

                    }

                    /* 受付期間 */
                    .period{
                        font-size: 16px;
                        line-height: 1.2;
                        margin-top: 0;
                    }

                }

                img{
                    width: 100%;
                }

                /* 申し込みフォームへのスライドボタン */
                .goForm{
                    display: none;
                }

            }

            &.mainBottom{

                .boxArea{
                    margin-top: 120px;
                }

            }

        }

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

        @container ctnHtml (width <= 1000px){

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

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

                    /* イベントステータス */
                    .eventStatus{
                        display: grid;
                        gap: 0 10px;
                        grid-template-columns: 1fr auto;
                        justify-content: space-between;
                        align-items: center;
                        width: fit-content;
                        margin-bottom: 10px;

                        /* 状態アイコン */
                        .statusIcon{
                            font-size: 16px;
                            padding: 4px 20px 4px;
                        }

                        /* 受付期間 */
                        .period{
                            font-size: 16px;
                        }

                    }

                    /* 申し込みフォームへのスライドボタン */
                    .goForm{
                        display: block;
                    }

                }

                &.mainBottom{

                    .boxArea{
                        margin-top: 100px;
                    }

                }

            }

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

        }

        @container ctnHtml (width <= 600px){

            /* サムネエリア */
            .eventMain{
                padding-left: 0;
                padding-right: 0;

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

                    /* イベントステータス */
                    .eventStatus{
                        display: grid;
                        gap: 0 10px;
                        grid-template-columns: 1fr auto;
                        justify-content: space-between;
                        align-items: center;
                        width: fit-content;
                        margin-bottom: 10px;
                        margin-left: var(--header-Sidemargin-Sp);

                        /* 状態アイコン */
                        .statusIcon{
                            font-size: 16px;
                            padding: 4px 20px 4px;
                        }

                        /* 受付期間 */
                        .period{
                            font-size: 14px;
                            line-height: 1;

                            .fXS{
                                line-height: 1 !important;
                            }

                        }

                    }

                    /* 申し込みフォームへのスライドボタン */
                    .goForm{
                        display: block;
                    }

                }

                &.mainBottom{
                    padding: 0 var(--contents-Sidemargin-Sp);

                    .boxArea{
                        margin-top: 12vh;
                    }

                }

            }

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

        }

        /* 2カラムの場合（フォームが右サイドにある）------------ */
        /* position: sticky; を適用した要素の親要素に overflow: hidden; が適用されていた場合は、sticky要素は追従しません。 */
        .columnEntry{
            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) - clamp(30px, 6.68896vw - 37.95987px, 50px));   /* MIN：1016px ～ MAX：1315px */
                /* フォーム側は左サイドは余白0なので右サイド分の余白のみ引く */

                /* サムネエリア */
                /* .eventMainは、上記の「1カラムの場合」の設定を用いる */

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

            }

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

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

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

            }

            @container ctnHtml (width <= 1000px){
                display: block;

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

                    /* サムネエリア */
                    /* .eventMainは、上記の「1カラムの場合」の設定を用いる */

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

                }

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

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

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

                }

            }

            @container ctnHtml (width <= 600px){
                display: block;

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

                    /* サムネエリア */
                    /* .eventMainは、上記の「1カラムの場合」の設定を用いる */

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

                }

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

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

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

                }

            }

        }

    }

}

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