/* ============================================================

オフめし場×オフけん場ページ用css
URL:/business/offmeshiba-offkenba/
============================================================ */

/* ============================================================
共通
============================================================ */
.section_lead{
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    font-weight: bold;
    /* PC */
    @media screen and (min-width: 768px){
        font-size: 24px;
    }
}
.section_end_text{
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    margin-top: 32px;
    text-align: center;
    /* PC */
    @media screen and (min-width: 768px){
        
        font-size: 20px;
        margin-top: 40px;
    }
}

/* ============================================================
main_visual
============================================================ */
.main_visual{
    padding-bottom: 48px;
    .main_visual__inner{
        display: flex;
        flex-direction: column-reverse;
        gap: 24px;
        .main_visual__desc{
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 16px;
            .main_visual__heading__sub{
                font-size: 18px;
                font-weight: bold;
                line-height: 1.6;
                text-align: center;
                font-feature-settings: "palt";
                margin-top: 20px;
            }
            .main_visual__text{
                text-align: center;
                margin-top: 8px;
                font-size: 14px;
                line-height: 1.6;
                letter-spacing: -0.03em;
            }
            .main_visual__heading{
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;

            }
            .main_visual__heading__logo{
                max-width: 290px;
                &.offken-ba{
                    span{
                        font-size: 18px;
                        display: block;
                        text-align: center;
                        line-height: 1;
                        sup{
                            font-size: 8px;
                        }
                    }
                }
            }
            .main_visual__heading__cross{
                width: 40px;
                height: 40px;
                position: relative;
                transform: rotate(45deg);
                &:before,
                &:after{
                    position: absolute;
                    content: "";
                    background-color: #2b2b2b;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                }
                &:before{
                    height: 100%;
                    width: 2px;
                }
                &:after{
                    height: 2px;
                    width: 100%;
                }
            }
        }
        .main_visual__img{
            position: relative;
            .main_visual__img__price__wrapper{
                display: flex;
                gap: 12px;
                justify-content: center;
                margin-top: -30px;
            }
            .main_visual__img__price{
                background-color: #fff;
                box-shadow: 0 5px 15px 5px rgba(0, 0, 0, 0.05);
                border-radius: 8px;
                padding: 12px 12px 8px;
                width: 165px;
                .main_visual__img__price__logo{
                    width: 110px;
                    margin: auto;
                    img{
                        width: 100%;
                    }
                }
                .main_visual__img__price__desc{
                    border-top: 2px solid #d9d9d9;
                    padding-top: 6px;
                    margin-top: 6px;
                    text-align: center;
                    .small_text{
                        font-size: 10px;
                        font-weight: bold;
                        line-height: 1;
                    }
                    .price_text{
                        font-size: 26px;
                        font-weight: bold;
                        line-height: 1;
                        letter-spacing: -0.05em;
                    }
                }
                &.offmeshi{
                    .price_text{
                        color: #ED6D00;
                    }
                }
                &.offken{
                    .price_text{
                        color: #44AE35;
                    }
                }
            }
        }
    }
    
    /* PC */
    @media screen and (min-width: 768px){
        height: auto;
        padding: 16px 24px 80px;

        .main_visual__inner{
            container-type: inline-size;
            display: grid;
            grid-template-columns: minmax(0, 429fr) minmax(0, 810fr);
            align-items: start;
            gap: 3.125%;
            max-width: 1280px;
            margin: 0 auto;

            .main_visual__desc{
                align-items: flex-start;
                min-width: 0;
                padding: 2.890625cqw 0 0;

                .main_visual__heading__sub{
                    font-size: clamp(16px, 1.875cqw, 24px);
                    text-align: left;
                    line-height: 1.583333;
                    margin-top: 1.875cqw;
                }
                .main_visual__heading{
                    width: 29.375cqw;
                    gap: 1.5625cqw;
                }
                .main_visual__heading__logo{
                    width: 100%;
                    max-width: none;
                    img{
                        display: block;
                        height: auto;
                    }
                    &.offken-ba span{
                        font-size: 1.875cqw;
                        font-weight: bold;
                        sup{
                            font-size: 0.8cqw;
                        }
                    }
                }
                .main_visual__heading__cross{
                    width: 6.25cqw;
                    height: 6.25cqw;
                    margin: -0.859375cqw 0;
                    flex-shrink: 0;
                }
                .main_visual__text{
                    font-size: clamp(12px, 1.25cqw, 16px);
                    line-height: 1.75;
                    letter-spacing: normal;
                    text-align: left;
                    margin-top: 0.9375cqw;
                }
            }
            .main_visual__img{
                min-width: 0;
                > img{
                    display: block;
                    width: 100%;
                    height: auto;
                    border-radius: 1.25cqw;
                }
                .main_visual__img__price__wrapper{
                    position: relative;
                    gap: 1.5625cqw;
                    margin-top: -5.15625cqw;
                }
                .main_visual__img__price{
                    width: 26.5625cqw;
                    padding: 1.71875cqw;
                    border-radius: 1.25cqw;
                    box-shadow: 0 5px 15px 5px rgba(0, 0, 0, 0.03);
                    .main_visual__img__price__logo{
                        width: 17.75cqw;
                        height: 3.125cqw;
                        display: flex;
                        align-items: center;
                        img{
                            display: block;
                            height: auto;
                        }
                    }
                    &.offken .main_visual__img__price__logo{
                        width: 16.796875cqw;
                    }
                    .main_visual__img__price__desc{
                        display: flex;
                        align-items: baseline;
                        justify-content: center;
                        gap: 0.3125cqw;
                        white-space: nowrap;
                        border-top-width: 1px;
                        margin-top: 1.25cqw;
                        padding-top: 1.171875cqw;
                        .small_text{
                            font-size: 2.1875cqw;
                            font-weight: 900;
                            span{
                                font-size: 1.5625cqw;
                            }
                        }
                        .price_text{
                            font-size: 4.375cqw;
                        }
                    }
                }
            }
        }
    }
}

/* ============================================================
こんなお悩みありませんか？
============================================================ */
.ploblem_section{
    &.--bg{
        background-color: #EBF7EB;
    }
    .problem_solution_content{
        margin-top: 48px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        .problem_solution_content__item{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background-color: #fff;
            border-radius: 8px;
            border: 2px solid #C4C4C4;
            padding: 16px;
            
            
        }
        .problem_solution_content__item__image{
            margin: auto;
            width: 64px;
            img{
                width: 100%;
            }
        }
        .problem_solution_content__item__text{
            font-size: 14px;
            line-height: 1.5;
            text-align: center;
            font-weight: bold;
            color: #2b2b2b;
        }
    }

    /* PC */
    @media screen and (min-width: 768px){
        .problem_solution_content{
            margin-top: 64px;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            .problem_solution_content__item{
                gap: 8px;
                padding: 32px 24px;
                &:before{
                    width: 20px;
                    height: 20px;
                    right: 18px;
                    bottom: 18px;
                }
            }
            .problem_solution_content__item__image{
                width: 120px;
            }
            .problem_solution_content__item__text{
                font-size: 18px;
            }
        }
    }
}




/* ============================================================
オフめし場×オフけん場とは
============================================================ */
.what_section{
    .what_services{
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 320px;
        margin: 24px auto 0;
        padding: 0;
        list-style: none;
    }
    .what_services__item{
        grid-column: span 2;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid currentColor;
        border-radius: 50%;
        background-color: #fff;
        &.--food{
            --service-logo-height: 18px;
            grid-column: 2 / 4;
            color: #ED6D00;
        }
        &.--health{
            --service-logo-height: 23px;
            color: #44AE35;
            margin-top: -22px;
        }
        &.--convenience{
            --service-logo-height: 20px;
            color: #95BF40;
            margin-top: -22px;
            .what_services__icon{
                width: 40px;
            }
        }
    }
    .what_services__content{
        display: grid;
        grid-template-rows: 40px 20px 36px;
        justify-items: center;
        align-items: center;
        gap: 4px;
        margin-top: -8px;
    }
    .what_services__icon{
        display: block;
        width: 30px;
        height: auto;
    }
    .what_services__label{
        font-size: 20px;
        font-weight: bold;
        line-height: 1;
    }
    .what_services__logo{
        display: block;
        width: auto;
        /* 字形と線の太さに合わせ、ロゴごとに見た目の大きさを補正する。 */
        height: var(--service-logo-height);
        margin-top: 8px;
    }
    .what_content__img{

    }
    .section_lead{
        margin-top: 32px;
    }
    .what_desc_text{
        margin-top: 16px;
        line-height: 1.8;
        span{
            font-weight: bold;
        }
        .color_orange{
            color: #ED6D00;
        }
        .color_green{
            color: #44AE35;
        }
        &:not(:last-child){
            margin-bottom: 16px;
        }
    }
    /* PC */
    @media screen and (min-width: 768px){
        .what_services{
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 32px;
            max-width: 780px;
            margin-top: 40px;
        }
        .what_services__item{
            grid-column: auto;
            &.--food{
                --service-logo-height: 29px;
                grid-column: auto;
            }
            &.--health{
                --service-logo-height: 36px;
            }
            &.--convenience{
                --service-logo-height: 35px;
            }
            &.--health,
            &.--convenience{
                margin-top: 0;
                .what_services__icon{
                    width: 65px;
                }
            }
        }
        .what_services__content{
            grid-template-rows: 65px 24px 52px;
            gap: 8px;
            margin-top: -12px;
        }
        .what_services__icon{
            width: 60px;
        }
        .what_services__label{
            font-size: 24px;
        }
        .what_services__logo{
            margin-top: 8px;
        }
        .what_content__img{
            max-width: 840px;
            margin: 0 auto;
        }
        .section_lead{
            margin-top: 40px;
        }
        .what_desc_text{
            text-align: center;
            font-size: 16px;
            margin-top: 24px;
            line-height: 2;
        }
    }
}

/* ============================================================
オフめし場×オフけん場が解決できること
============================================================ */
.solution_section{
    &.--bg{
        background-color: #EBF7EB;
    }
}

/* ============================================================
利用シーン・1日の流れ
============================================================ */

.oneday_flow_section {
    .oneday_flow_content{
        margin: 40px auto 0;
    }
    /* PC */
    @media screen and (min-width: 768px){
        .oneday_flow_content{
            max-width: 840px;
            margin: 64px auto 0;
        }
    }
}

/* ============================================================
サービス紹介セクション
============================================================ */
.service_info_section{
    .service_info_heading{
        max-width: 240px;
        margin: 0 auto 24px;
        text-align: center;
        .offkenba{
            font-size: 18px;
            line-height: 1;
            sup{
                font-size: 8px;
            }
        }
    }
    .two_column_content__wrapper{
        &:not(:last-child){
            margin-bottom: 64px;
        }
        
        .two_column_content{
            .btn{
                margin: 32px auto 0;
                font-size: 16px;
            }
            .check_text__wrapper{
                display: flex;
                flex-direction: column;
                gap: 6px;
                .check_text{
                    --check-text-size:14px;
                }
            }
        }
    }
    
    /* PC */
    @media screen and (min-width: 768px){
        .service_info_heading{
            max-width: 320px;
            margin-bottom: 32px;
        }
        .two_column_content__wrapper{
            &:not(:last-child){
                margin-bottom: 80px;
            }
            .two_column_content{
                .btn{
                    margin: 0 0 0 0;
                    font-size: 15px;
                }
                .check_text__wrapper{
                    .check_text{
                        --check-text-size:16px;
                    }
                }
            }
        }

    }
}

/* ============================================================
導入の流れ
============================================================ */
.flow_section{
    &.--bg{
        background-color: #EBF7EB;
    }
    .heading_lv1{
        margin-bottom: 64px;
    }
    /* PC */
    @media screen and (min-width: 768px){
        .heading_lv1{
            margin-bottom: 100px;
        }
    }
}

/* ============================================================
導入プラン
============================================================ */
.plan_section{
    .plan_content{
        width: calc(100% + 16px);
    }
    .plan_table_scroll{
        max-width: 1040px;
        margin: 0 auto;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        &:focus-visible{
            outline: 2px solid #44AE35;
            outline-offset: 4px;
        }
    }
    .comparison_table{
        width: 800px;
        min-width: 800px;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
        background-color: #fff;
        color: #000;
        .plan_column{
            width: 180px;
        }
        .combination_column{
            width: 280px;
        }
        .initial_cost_column{
            width: 160px;
        }
        .monthly_cost_column{
            width: 180px;
        }
        th,
        td{
            padding: 0 8px;
            font-size: 16px;
            font-weight: bold;
            line-height: 28px;
            text-align: center;
            vertical-align: middle;
            white-space: nowrap;
            border: 0;
        }
        thead th{
            height: 56px;
            background-color: #44AE35;
            color: #fff;
            font-size: 18px;
            white-space: normal;
            &:not(:first-child){
                border-left: 2px solid #fff;
            }
        }
        tbody td{
            height: 72px;
            border-bottom: 2px solid #D9D9D9;
            &:not(:first-child){
                border-left: 2px solid #D9D9D9;
            }
        }
        tbody td:first-child{
            white-space: normal;
        }
        .monthly_cost_td{
            background-color: rgba(68, 174, 53, 0.1);
            color: #41A732;
            span{
                font-size: 26px;
            }
        }
    }
    /* PC */
    @media screen and (min-width: 768px){
        .plan_content{
            width: 100%;
        }
        .comparison_table{
            width: 1040px;
            min-width: 1040px;
            .plan_column{
                width: 210px;
            }
            .combination_column{
                width: 350px;
            }
            .initial_cost_column{
                width: 220px;
            }
            .monthly_cost_column{
                width: 260px;
            }
            th,
            td{
                padding: 0 12px;
                font-size: 18px;
                line-height: 36px;
            }
            tbody td:first-child{
                white-space: nowrap;
            }
            thead th{
                height: 68px;
                font-size: 20px;
            }
            tbody td{
                height: 84px;
            }
            .monthly_cost_td span{
                font-size: 32px;
            }
        }
    }
}
