﻿#scrollTop{
    position: absolute;
    top: -100px;
}
.index-news-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 200px 0;
}
.index-news-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
}
.index-news-info{
    width: 380px;
    display: inline-block;
    vertical-align: top;
    margin-top: 40px;
    margin-right: 70px;
}
.index-news-info:nth-child(3n){
    margin-right: 0;
}
.index-news-info-img{
    width: 100%;
    height: 300px;
    display: block;
    overflow: hidden;
    position: relative;
    transition: all 0.3s linear;
}
.index-news-info-text-box{
    box-sizing: border-box;
    padding: 20px 0;
}
.index-news-info-date{
    font-family: "Lato";
    font-size: 14px;
    color: #666;
    letter-spacing: 0.06em;
}
.index-news-info-text{
    font-family: "Noto Sans TC";
    font-size: 16px;
    color: #000;
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.index-news-info-more{
    font-family: "Lato";
    font-size: 14px;
    color: #ae2f2f;
    letter-spacing: 0.06em;
    text-align: right;
    margin-top: 10px;
}



@media only screen and (max-width: 1280px){
    .index-news-box{
        padding: 150px 0;
    }
    .index-news-all-box{
        width: 1000px;
    }
    .index-news-info{
        width: 300px;
        margin-right: 50px;
    }
    .index-news-info-img{
        height: calc((300 / 380) * 300px);
    }
    .index-news-info-text-box{
        padding: 15px 0;
    }
}
@media only screen and (max-width: 1000px){
    .index-news-box{
        padding: 100px 0;
    }
    .index-news-all-box{
        width: 750px;
    }
    .index-news-info{
        width: 230px;
        margin-right: 30px;
        margin-top: 20px;
    }
    .index-news-info-img{
        height: calc((300 / 380) * 230px);
    }
}
@media only screen and (max-width: 768px){
    .index-news-box{
        padding: 60px 0;
    }
    .index-news-all-box{
        width: 550px;
    }
    .index-news-info{
        width: 265px;
        margin-top: 15px;
    }
    .index-news-info:nth-child(n){
        margin-right: 20px;
    }
    .index-news-info:nth-child(2n){
        margin-right: 0px;
    }
    .index-news-info-img{
        height: calc((300 / 380) * 265px);
    }
    .index-news-info-text-box{
        padding: 10px 0;
    }
    .index-news-info-date{
        font-size: 12px;
        line-height: 1;
    }
    .index-news-info-more{
        font-size: 12px;
        margin-top: 5px;
    }
}
@media only screen and (max-width: 550px){
    .index-news-box{
        padding: 40px 0;
    }
    .index-news-all-box{
        width: calc(100vw - 40px);
    }
    .index-news-info{
        width: calc((100% - 10px) / 2);
        margin-top: 10px;
    }
    .index-news-info:nth-child(n){
        margin-right: 10px;
    }
    .index-news-info:nth-child(2n){
        margin-right: 0px;
    }
    .index-news-info-img{
        height: calc((300 / 380) * (((100vw - 40px) - 10px) / 2));
    }
    .index-news-info-text-box{
        padding-bottom: 0;
    }
}
@media only screen and (max-width: 350px){
    .index-news-info{
        width: calc(100% - 10px);
        margin-top: 10px;
    }
    .index-news-info:nth-child(n){
        margin-right: 0;
    }
    .index-news-info-img{
        height: calc((300 / 380) * ((100vw - 40px) - 10px));
    }
}



@media only screen and (min-width: 769px){
    .index-news-info:hover .index-news-info-img{
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    }
    .index-news-info:hover .main-bg{
        transform: scale(1.1);
    }


    
    .index-news-info{
        opacity: 0;
    }
    .index-news-info.anima{
        animation: fadeInUp 1.2s ease 0s 1 both;
    }
}