@charset "utf-8";

/* body {
    overflow: hidden;
} */
.sub_title,
.title {
    text-align: center;
}

.works_detail {
    margin: 100px auto;
    padding: 0 10px;
    position: relative;
}

.works_detail_main {
    margin-top: 100px;
    display: flex;
    border-top: 1px solid #83ccd4;
}

.works_detail_left {
    max-width: 400px;
    height: 85vh;
    overflow-y: scroll;
    scrollbar-width: none;
}

.works_title {
    margin: 50px auto;
    font-weight: bold;
    font-size: 16px;
}

.works_type_wrap {
    border-top: 1px solid #83ccd4;
    border-bottom: 1px solid #83ccd4;
}

.works_type {
    display: flex;
    gap: 20px;
    margin: 30px auto;
}

.works_sentence {
    line-height: 2;
    max-width: 370px;
    padding-right: 10px;
    margin: 30px auto;
}

.works_detail_right {
    max-width: 600px;
    padding-left: 10%;
    border-left: 1px solid #83ccd4;
    height: 85vh;
    overflow-y: scroll;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    align-items: center
}

.works_mock {
    max-width: 560px;
    height: auto;
    margin-top: 30px;
}

.works_mock_PC_SP {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 80px auto;
}

.works_mock_PC {
    max-width: 420px;
    height: auto;
}

.works_mock_SP {
    max-width: 146px;
    height: auto;
}

.button_works {
    margin: 80px auto;
}

.design_cage_PC {
    max-width: 350px;
    height: auto;
}

.deluxeBurger_banner {
    width: 549px;
}

@media screen and (min-width: 767px) {
    .modal {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .works_detail {
        max-width: 375px;
    }

    .works_detail_main {
        display: flex;
        flex-direction: column;
    }

    .works_title {
        text-align: center;
        order: -1;
        border-bottom: 1px solid #83ccd4;
        margin: 0;
        padding:40px 0;
    }

    .works_detail_left {
        display: contents;
    }

    .works_detail_right {
        display: contents;
    }

    .works_mock {
        order: -1;
        margin: 0px;
        padding: 30px 10px;
        /* border-top: 1px solid #83ccd4; */
    }

    .works_mock_PC_SP {
        display: block;
        text-align: center;
    }

    .works_mock_PC {
        max-width: 100%;
        height: auto;
        margin-top: 10px;
    }

    .works_sentence {
        line-height: 2;
        max-width: 370px;
        /* border-top: 1px solid #83ccd4; */
        border-bottom: 1px solid #83ccd4;
        padding: 30px 0px;
        margin: 0px;
    }

    /* モーダル */
    .works_mock_SP {
        display: none;
    }

    /*モーダルを開くボタン*/
    .modal-open {
        display: flex;
        justify-content: end;
        font-weight: bold;
        color: #545454;
        cursor: pointer;
        transition: color 0.2s ease-in-out;
    }

    .modal-open:hover {
        color: #83ccd4;
    }

    /*モーダル本体の指定 + モーダル外側の背景の指定*/
    .modal-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        background: rgba(0, 0, 0, 50%);
        padding: 40px 20px;
        overflow: auto;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        box-sizing: border-box;
    }

    /*モーダル本体の擬似要素の指定*/
    .modal-container:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        height: 100%;
    }

    /*モーダル本体に「active」クラス付与した時のスタイル*/
    .modal-container.active {
        opacity: 1;
        visibility: visible;
        z-index: 20;
    }

    /*モーダル枠の指定*/
    .modal-body {
        position: relative;
        display: inline-block;
        vertical-align: middle;
        width: 60%;
    }

    /*モーダルを閉じるボタンの指定*/
    .modal-close {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        top: -10px;
        right: -42px;
        width: 40px;
        height: 40px;
        font-size: 40px;
        color: #fcf2e5;
        cursor: pointer;
    }

    /*モーダル内のコンテンツの指定*/
    .modal-content {
        background: #fcf2e5;
        text-align: left;
        padding: 10px;
    }

    /* バナーのmockのサイズ調整 */
    .deluxeBurger_right .works_mock {
        max-width: 150px;
        margin: 0 auto;
    }

}

body.night {
    .works_detail_right {
        border-left: 1px solid #fcf2e5;
    }

    .works_detail_main {
        border-top: 1px solid #fcf2e5;
    }

    .works_type_wrap {
        border-top: 1px solid #fcf2e5;
        border-bottom: 1px solid #fcf2e5;
    }

    @media screen and (max-width: 767px) {
        .works_sentence {
            border-bottom: 1px solid #fcf2e5;
        }

        .works_title {
            border-bottom: 1px solid #fcf2e5;
            margin: 0;
            padding:40px 0;
        }
        .modal-open {
            color:#fcf2e5;
        }
        .modal-open:hover {
            color: #F9F5AC;
        }
    
    }
}