#pricing {
    width: 100%;
    padding-top: 80px;
    padding-bottom: 144px;

    background-color: white;
}

.courses_pricing_table {
    width: 100%;
    margin-bottom: 1.5rem;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    box-sizing: border-box;
}

.courses_pricing_column {
    width: calc( (100% - 24px * 3)/4 );

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
} 

.famous_tag {
    width: 100%;
    height: 24px;
    margin-bottom: 15px;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    background-color: white;
}

.famous_tag .ja {
    margin: 0;
    padding-bottom: 0.1rem;
    height: 1.5rem;

    font-size: 1.3rem;
    font-weight: 600;

    box-sizing: border-box
}

.famous_tag .en {
    margin: 0;
    height: 1.5rem;

    font-size: 1.5rem;
    font-weight: 600;

    box-sizing: border-box;
}

.pricing_course_titles {
    width: 100%;
    padding: 20px 10px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-sizing: border-box;
    border-radius: 1rem 1rem 0 0;
    background-color: #515B65;
}

.pricing_course_titles .en,.pricing_course_titles .ja {
    margin: 0;
    
    text-align: center;

    color: white;
    box-sizing: border-box;
}

.course_en {
    margin-bottom: 0.25rem;
    
    font-size: 28px;
    font-weight: 600;
}

.course_jp {
    height: 19px;

    font-size: 12px;
    font-weight: 600;

}

.course_detail {
    width: 100%;
    padding: 2rem 2rem;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    border: 1px solid #C9CFD4;
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    background-color: #F7F9FA;
}

.price_column {
    margin: 0 auto;
    margin-bottom: 1rem;

    display: flex;
    justify-content: center;
    align-items: baseline;

    box-sizing: border-box;
}

.price {
    margin: 0;

    font-size: 2rem;
    font-weight: 700;

    box-sizing: border-box;
}

.per_month {
    margin: 0;

    font-size: 20px;
    font-weight: 600;

    box-sizing: border-box;
    color: #515B65;
}

.reserve_data {
    width: 100%;
    height: 85px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.reserve_title {
    margin: 0;

    font-size: 21px;

    color: #515B65;
}

.reserve_num {
    margin: 0;

    font-size: 2rem;
    font-weight: 600;
}

/* Most popular tag case */
#popular_pricing_course_titles {
    background-color: #121518;
}
#popular_course_detail {
    border: 1px solid #121518;   
}

/* --------------------------Pricing - Options-------------------------- */
.option_table {
    width: 100%;
    padding: 2rem 2.5rem;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    border-radius: 1rem;
    border: 1px solid #C9CFD4;
    background-color: #F7F9FA;
}

.option_titles {
    width: 100%;
    margin-bottom: 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
}

.option_titles .ja,.option_titles .en {
    margin: 0;
}

.option_main_title {
    margin-bottom: 0.25rem;

    font-size: 1.5rem;
    font-weight: 800;
}

.option_discription {
    font-size: 1rem;
    font-weight: 400;
}


.options {
    width: 100%;

    display: flex;
    justify-content: space-between;

    box-sizing: border-box;
}

.option_column {
    width: 100%;
    height: 87px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;
}

.options .option_column_separator {
    border-right: 1px solid #C9CFD4;
}

.option_column .en, .option_column .ja {
    margin: 0;
}

.option_column_name {
    margin-bottom: 4px;

    font-size: 20px;
    font-weight: 600;
}

.add_fee {
    font-size: 2rem;
    font-weight: 700;
}

@media screen and (max-width: 1189px) {
    #pricing {
        padding-top: 80px;
        padding-bottom: 64px;
    }

    .courses_pricing_table {
        flex-wrap: wrap;
    }

    .courses_pricing_column {
        width: calc( (100% - 24px)/2 );
    } 

    .pricing_bottom_margin {
        margin-bottom: 24px;
    }

    .price {
        font-size: 3rem;
    }

    .option_table {
        padding-bottom: 1rem;
    }

    .options{
        flex-direction: column;
    }

    .option_column{
        flex-direction: row;
        justify-content: space-between;
    }

    .course_detail{
        padding: 2rem 12px;
    }

    .options .option_column_separator {
        border-right: 0 solid ;
        border-bottom: 1px solid #C9CFD4;
    }
}

@media screen and (max-width: 620px) {
    .price {
        font-size: 2rem;
    }

    .course_detail{
        padding: 1.5rem 1rem;
    }
}

@media screen and (max-width: 585px) {
    .courses_pricing_table {
        flex-direction: column;

        margin-bottom: 0;
    }

    .famous_tag {
        width: 100%;
        height: auto;
        margin-bottom: 8px;
        justify-content: flex-start;
        align-items: baseline;
        
    }
    
    .famous_tag .ja {
        height: auto;
    
        font-size: 20px;
    }
    
    .famous_tag .en {
        height: auto;
    
        font-size: 22px;
    }

    .courses_pricing_column {
        width: 100%;
        margin-bottom: 1rem;
    }

    .pricing_course_titles {
        width: 100%;
        padding: 1rem 1.5rem;

        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .course_en {
        font-size: 24px;
    }

    .course_detail {
        padding: 1rem;
        justify-content: flex-start;
    }

    .price_column {
        margin: 0;
        justify-content: flex-start;
    }

    .reserve_data {
        height: auto;

        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
    }

    .reserve_title {
        margin-right: 0.5rem;
        
        font-size: 18px;
    }

    .reserve_num {
        margin-top: 3px;

        font-size: 1.5rem;
    }
}
