﻿.plans-box{
    width: 100%;
    display: block;
    position: relative;
    padding-top: 93px;
    min-height: calc(100vh - 93px);
    background-color: #fef3e7;
    box-sizing: border-box;
    padding-bottom: 80px;
}
.plans-all-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
}
.plans-title-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 85px 0;
}
.plans-title-img-box{
    width: 50px;
    display: inline-block;
    vertical-align: top;
}
.plans-title-text-box{
    width: calc(100% - 50px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding-left: 30px;
}
.plans-title-text-box h2{
    font-size: 30px;
    line-height: 50px;
    color: #000;
    letter-spacing: 0.3em;
    font-family: 'Noto Sans TC';
    font-weight: 700;
}
.plans-title-text-box h4{
    font-size: 18px;
    line-height: 2;
    color: #666;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
}
.plans-info{
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-bottom: 60px;
    box-sizing: border-box;
    position: relative;
    border: 2px solid #e98d87;
    border-radius: 5px;
    cursor: pointer;
    transition: all .3s linear;
}
.plans-info:last-child{
    margin-bottom: 0;
}
.plans-info-img-box{
    width: 360px;
    display: inline-block;
    vertical-align: top;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow: hidden;
}
.plans-info-right-box{
    width: calc(100% - 360px);
    display: inline-block;
    vertical-align: top;
    background-color: #fff;
    box-sizing: border-box;
    padding: 25px 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: 2px solid #e98d87;
}
.plans-info-number-box{
    width: 95px;
    display: inline-block;
    vertical-align: top;
}
.plans-info-number-box p{
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    border: 7px solid #e98d87;
    font-size: 24px;
    color: #e98d87;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto;
    font-family: "roboto";
    font-weight: 700;
}
.plans-info-text-box{
    width: calc(100% - 95px);
    display: inline-block;
    vertical-align: top;
}
.plans-info-name-box{
    font-size: 20px;
    line-height: 50px;
    color: #000;
    letter-spacing: 0.2em;
    font-family: 'Noto Sans TC';
    font-weight: 500;
}
.plans-info-text{
    font-size: 16px;
    line-height: 30px;
    color: #666;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    min-height: 90px;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.plans-info-menu-box{
    width: 100%;
    display: block;
    margin-top: 18px;
}
.plans-info-menu{
    width: 200px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 5px;
    background-color: #e98d87;
    font-size: 16px;
    line-height: 22px;
    padding: 5px 5px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    transition: all .3s linear;
}
.plans-info-menu:nth-child(2n){
    margin-left: 20px;
}
.plans-info-menu:nth-child(n + 3){
    margin-top: 20px;
}
.plans-info-menu.index-grey-area{
    background-color: rgba(137, 137, 137, 0.3);
}
.plans-info-more-box{
    position: absolute;
    top: 20px;
    right: -10px;
}
.plans-info-more-box p{
    width: 60px;
    height: 32px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    line-height: 32px;
    font-size: 14px;
    background-color: #e98d87;
    text-align: center;
    color: #fff;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    transition: all .3s linear;
}
.plans-info-more-box::after{
    content: "none";
    font-size: 0;
    position: absolute;
    bottom: -10px;
    right: 0;
    display: block;
    width: 0;
    height: 0;
    border-top: 0px solid transparent;
    border-left: 10px solid #be7772;
    border-bottom: 10px solid transparent;
}

.plans-info:hover{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}
.plans-info-menu:hover,
.plans-info-more-box p:hover{
    color: #fff;
    background-color: #d6807a;
}
.plans-info-menu.index-grey-area:hover{
    background-color: rgba(137, 137, 137, 0.8);
}



@media only screen and (max-width: 1000px){
    .plans-box{
        padding-bottom: 60px;
        padding-top: 66px;
        min-height: calc(100vh - 66px);
    }
    .plans-all-box{
        width: 750px;
    }
    .plans-info-img-box{
        width: 260px;
    }
    .plans-info-right-box{
        width: calc(100% - 260px);
        padding: 15px 0;
    }
    .plans-info-number-box{
        width: 65px;
    }
    .plans-info-number-box p{
        width: 40px;
        height: 40px;
        line-height: 30px;
        border-width: 5px;
    }
    .plans-info-name-box{
        line-height: 40px;
    }
    .plans-info-text {
        min-height: 60px;
        -webkit-line-clamp: 2;
    }
    .plans-info-menu-box {
        margin-top: 11px;
    }
    .plans-info-menu {
        width: 180px;
    }

    .fancybox-box{
        width: 750px;
    }
}
@media only screen and (max-width: 768px){
    .plans-box{
        padding-bottom: 40px;
    }
    .plans-all-box{
        width: 550px;
    }
    .plans-title-box{
        padding: 40px 0;
    }
    .plans-info{
        flex-direction: column;
    }
    .plans-info-img-box{
        width: 100%;
        height: calc((240 / 360) * 550px);
    }
    .plans-info-right-box{
        width: 100%;
        border-left: none;
    }
    .plans-info-text{
        min-height: inherit;
    }
    .plans-info-more-box{
        top: calc((240 / 360) * 550px + 20px);
    }
    .plans-info-menu{
        width: calc(50% - 10px);
    }
    .fancybox-box{
        width: 95vw;
    }
}
@media only screen and (max-width: 550px){
    .plans-box{
        padding-bottom: 20px;
        padding-top: 46px;
        min-height: calc(100vh - 46px);
    }
    .plans-all-box{
        width: 95%;
    }
    .plans-title-box{
        padding: 20px 0;
    }
    .plans-title-img-box{
        width: 30px;
    }
    .plans-title-text-box {
        width: calc(100% - 30px);
        padding-left: 10px;
    }
    .plans-title-text-box h2{
        font-size: 20px;
        letter-spacing: 0.1em;
        line-height: 30px;
    }
    .plans-title-text-box h4{
        font-size: 14px;
        line-height: 1.6;
    }
    .plans-info-img-box{
        height: calc((240 / 360) * 95vw);
    }
    .plans-info-right-box{
        padding: 10px 0;
    }
    .plans-info-more-box{
        top: calc((240 / 360) * 95vw + 10px);
        right: -6px;
    }
    .plans-info-number-box{
        width: 40px;
    }
    .plans-info-number-box p {
        width: 30px;
        height: 30px;
        line-height: 26px;
        border-width: 3px;
        font-size: 16px;
    }
    .plans-info-name-box {
        line-height: 30px;
        font-size: 18px;
        letter-spacing: 0.06em;
    }
    .plans-info-text{
        font-size: 14px;
        line-height: 1.6;
    }
    .plans-info-menu-box{
        margin-top: 0;
    }
    .plans-info-menu:nth-child(n){
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        font-size: 14px;
    }
    .plans-info-more-box p{
        width: 40px;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
    }
    .plans-info-more-box::after{
        border-left-width: 6px;
        border-bottom-width: 6px;
        bottom: -6px;
    }
    .plans-info-text-box {
        width: calc(100% - 80px);
    }

    .fancybox-box{
        padding: 10px 30px;
        padding-left: 20px;
    }
    .fancybox-close{
        width: 40px;
        top: 10px;
        line-height: 26px;
        height: 26px;
    }
}