﻿.index-news-box{
    width: 1920px;
    max-width: 100%;
    position: relative;
    display: block;
    margin: 0 auto;
}
.index-news-all-box{
    width: 1280px;
    max-width: 100%;
    position: relative;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.index-news-title-box{
    margin-top: 25px;
}
.index-news-title-top-box span,
.index-news-title-bottom-box span{
    font-size: 28px;
    font-family: 'Noto Serif TC';
    font-weight: 900;
    letter-spacing: 0.4em;
    line-height: 40px;
}
.title-yellow{
    color: #f9c300;
}
.title-blue{
    color: #017cc2;
}
.title-green{
    color: #83c327;
}
.index-news-title-dots-box span{
    font-size: 40px;
    line-height: 22px;
}
.index-news-class-box{
    margin: 40px 0;
}
.index-news-class{
    font-size: 16px;
    color: #555;
    letter-spacing: 0.06em;
    width: 160px;
    line-height: 50px;
    display: inline-block;
    vertical-align: top;
    background-color: #eee;
    text-align: center;
    margin-left: 20px;
    transition: all .3s linear;
}
.index-news-class:nth-child(7n + 1){
    margin-left: 0;
}
.index-news-class:nth-child(n + 8){
    margin-top: 20px;
}
.index-news-info-lr-box{
    width: 310px;
    display: inline-block;
    vertical-align: top;
}
.index-news-info{
    display: inline-block;
}
.index-news-info span{
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.index-news-info-lr-top{
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}
.index-news-info-lr-bottom{
    width: 100%;
    height: 270px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}
.index-news-info-center-box{
    width: 633px;
    display: inline-block;
    vertical-align: top;
    margin: 0 13.5px;
}
.index-news-info-center-l{
    width: 310px;
    height: 280px;
    vertical-align: top;
}
.index-news-info-center-r{
    width: 310px;
    height: 280px;
    display: inline-block;
    vertical-align: top;
    margin-left: 13px;
}
.index-news-info-center-b{
    width: 100%;
    height: 305px;
    margin-top: 15px;
}
.index-news-more-box{
    text-align: right;
    margin: 20px 0;
}
.index-news-more{
    font-size: 16px;
    color: #017cc2;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-family: "roboto";
}
.index-news-more-arrow{
    font-size: 16px;
    color: #017cc2;
    margin-left: 5px;
}
.index-news-info-box a>span{
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.06em;
    display: flex;
    display: -webkit-flex;
    flex-direction: column-reverse;
    color: #fff;
    box-sizing: border-box;
    padding: 10px;
    position: relative;
}
.index-news-info-box a>span>p{
    opacity: 0;
    position: relative;
    z-index: 1;
    transition: all .3s linear;
}
.index-news-info-box a>span:after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0;
    transition: all .3s linear;
    background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0) 70%,rgba(0,0,0,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0) 70%,rgba(0,0,0,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
}
.index-news-info-box a:hover>span:after,
.index-news-info-box a:hover>span>p{
    opacity: 1;
}


@media only screen and (max-width: 1280px){
    .index-news-all-box{
        width: 1200px;
    }
    .index-news-info-lr-box{
        width: 290px;
    }
    .index-news-info-center-l,
    .index-news-info-center-r{
        width: 290px;
    }
    .index-news-info-center-box{
        width: 593px;
    }
}
@media only screen and (max-width: 1200px){
    .index-news-all-box{
        width: 1000px;
    }
    .index-news-info-lr-box{
        width: 240px;
    }
    .index-news-info-center-l,
    .index-news-info-center-r{
        width: 240px;
        height: 217px;
    }
    .index-news-info-center-box{
        width: 493px;
    }
    .index-news-info-lr-top{
        height: 248px;
    }
    .index-news-info-lr-bottom{
        height: 209px;
    }
    .index-news-info-center-b {
        height: 235px;
    }
}
@media only screen and (max-width: 1000px){
    .index-news-all-box{
        width: 750px;
    }
    .index-news-title-top-box span, 
    .index-news-title-bottom-box span{
        font-size: 24px;
        line-height: 32px;
    }
    .index-news-title-dots-box span{
        font-size: 34px;
        line-height: 14px;
    }
    .rwd-index-news-class-list{
        width: 100%;
        color: #555;
        height: 46px;
        font-size: 16px;
        letter-spacing: 0.06em;
        text-align: center;
        display: block;
        line-height: 46px;
        position: relative;
        box-sizing: border-box;
        background-color: #eee;
        transition: all .3s linear;
    }
    .rwd-index-news-class-list:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 10px solid transparent;
        border-top: 10px solid #017cc2;
        border-left: 10px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 5px);
        right: 5%;
        box-sizing: border-box;
    }
    .index-news-class-all-box{
        width: 100%;
        position: absolute;
        display: none;
        z-index: 5;
        border: 1px solid #ddd;
        box-sizing: border-box;
        box-shadow: 0px 6px 5px rgba(0,0,0,0.3);
    }
    .index-news-class{
        width: 100%;
        display: block;
        margin-left: 0;
    }
    .rwd-index-news-class-list.open{
        box-shadow: 0px 6px 5px rgba(0,0,0,0.3);
    }
    .index-news-info-lr-box{
        width: 100%;
    }
    .index-news-info-lr-top{
        width: 44.8%;
        display: inline-block;
        vertical-align: top;
        height: 348px;
    }
    .index-news-info-lr-bottom{
        width: 53.2%;
        margin-top: 0;
        margin-left: 2%;
        display: inline-block;
        vertical-align: top;
        height: 348px;
    }
    .index-news-info-center-box{
        width: 100%;
        margin: 10px 0;
    }
    .index-news-info-center-l{
        width: 49%;
        height: 332px;
    }
    .index-news-info-center-r{
        width: 49%;
        margin-left: 2%;
        height: 332px;
    }
    .index-news-info-center-b{
        height: 361px;
    }
    .index-news-info-lr-box:nth-child(3){
        display: flex;
        display: -webkit-flex;
        flex-direction: row-reverse;
    }
    .index-news-info-lr-box:nth-child(3) .index-news-info-lr-bottom{
        margin-left: 0;
        margin-right: 2%;
    }
    .index-news-info-box a>span:after,
    .index-news-info-box a>span>p{
        opacity: 1;
    }
}
@media only screen and (max-width: 750px){
    .index-news-all-box{
        width: 550px;
    }
    .index-news-info-lr-top,
    .index-news-info-lr-bottom{
        height: 255px;
    }
    .index-news-info-center-l,
    .index-news-info-center-r{        
        height: 244px;
    }
    .index-news-info-center-b{
        height: 265px;
    }
}
@media only screen and (max-width: 550px){
    .index-news-all-box{
        width: 400px;
    }
    .index-news-title-top-box span, 
    .index-news-title-bottom-box span{
        font-size: 20px;
        line-height: 24px;
        letter-spacing: 0.2em;
    }
    .index-news-title-dots-box span{
        font-size: 24px;
        line-height: 2px;
    }
    .index-news-class-box{
        margin: 20px 0;
    }
    .rwd-index-news-class-list{
        font-size: 14px;
        height: 36px;
        line-height: 36px;
    }
    .index-news-class{
        font-size: 14px;
        line-height: 40px;
    }
    .rwd-index-news-class-list:after{
        border-right: 6px solid transparent;
        border-top: 8px solid #017cc2;
        border-left: 6px solid transparent;
    }
    .index-news-info-lr-top,
    .index-news-info-lr-bottom{
        height: 185px;
    }
    .index-news-info-center-l,
    .index-news-info-center-r{        
        height: 176.4px;
    }
    .index-news-info-center-b{
        height: 193px;
        margin-top: 5px;
    }
    .index-news-info-box a>span{
        font-size: 14px;
        padding: 5px;
    }
    .index-news-more-box{
        margin: 10px 0;
    }
}
@media only screen and (max-width: 400px){
    .index-news-all-box{
        width: 300px;
    }
    .index-news-info-lr-top,
    .index-news-info-lr-bottom{
        height: 139px;
    }
    .index-news-info-center-l,
    .index-news-info-center-r{        
        height: 132.3px;
    }
    .index-news-info-center-b{
        height: 145px;
    }
    .index-news-info-box a>span{
        font-size: 12px;
    }
    .index-news-info-center-box{
        margin: 5px 0;
    }
    .index-news-more,
    .index-news-more-arrow{
        font-size: 14px;
    }
}


/*hover*/
.index-news-class:hover{
    background-color: #017cc2;
    color: #fff;
}





/*<-------------動畫------------->*/
@keyframes letter-spacing_btos {
    0%{
        letter-spacing: 10px;
    }
    to {
        
    }
}
@media only screen and (min-width: 1001px){
    .index-news-title-top-box,
    .index-news-title-bottom-box,
    .index-news-title-dots-box,
    .index-news-class,
    .index-news-info,
    .index-news-more-box{
        opacity: 0;
    }
    .index-news-title-box.anima .index-news-title-top-box{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .index-news-title-box.anima .index-news-title-bottom-box{
        animation: fadeInRight 1s ease .1s 1 both;
    }
    .index-news-title-box.anima .index-news-title-dots-box{
        animation: fadeInRight 1s ease .2s 1 both;
    }
    .index-news-title-box.anima .index-news-title-dots-box span{
        animation: letter-spacing_btos 1s ease .2s 1 both;
    }
    .index-news-class-box.anima .index-news-class{
        animation: fade 1s ease 0s 1 both;
    }
    .index-news-info-box.anima .index-news-info-lr-top{
        animation: fade 1s ease 0s 1 both;
    }
    .index-news-info-box.anima .index-news-info-lr-bottom{
        animation: fade 1s ease .2s 1 both;
    }
    .index-news-info-box.anima .index-news-info-center-l{
        animation: fade 1s ease .3s 1 both;
    }
    .index-news-info-box.anima .index-news-info-center-r{
        animation: fade 1s ease .4s 1 both;
    }
    .index-news-info-box.anima .index-news-info-center-b{
        animation: fade 1s ease .5s 1 both;
    }
    .index-news-info-box.anima .index-news-info-lr-box:nth-child(3) .index-news-info-lr-top{
        animation: fade 1s ease .6s 1 both;
    }
    .index-news-info-box.anima .index-news-info-lr-box:nth-child(3) .index-news-info-lr-bottom{
        animation: fade 1s ease .7s 1 both;
    }
    .index-news-more-box.anima{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
}