﻿.index-news-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 120px 0;
}
.index-news-all-box{
    width: 1360px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    text-align: center;
}
.index-news-title-box{
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    position: relative;
}
.index-news-title-box::before{
    content: '';
    width: 100%;
    height: 12px;
    display: block;
    position: absolute;
    bottom: -6px;
    left: 0;
    background-color: #fae1dc;
}
.index-news-title-box h2{
    font-family: 'Noto Sans TC';
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.1em;
    line-height: 40px;
    color: #5a241f;
    box-sizing: border-box;
    padding-left: 0.1em;
    position: relative;
    z-index: 1;
}
.index-news-info-box{
    margin-top: 120px;
    font-size: 18px;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans TC';
    color: #000;
    line-height: 1.8;
    text-align: left;
}
.index-news-info{
    width: 400px;
    display: inline-block;
    vertical-align: top;
    margin-right: 80px;
}
.index-news-info:nth-child(3n){
    margin-right: 0;
}
.index-news-info:nth-child(n + 4){
    margin-top: 50px;
}
.index-news-info-img{
    width: 100%;
    height: 280px;
    display: block;
    position: relative;
    overflow: hidden;
    transition: all .3s linear;
}
.index-news-info-text{
    font-size: 16px;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans TC';
    color: #000;
    line-height: 24px;
    margin: 15px 0;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.index-news-info-date{
    font-size: 16px;
    letter-spacing: 0.1em;
    font-family: 'Oswald';
    font-weight: 700;
    color: #000;
    line-height: 1;
}
.index-news-info-img-hover{
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    -webkit-filter: drop-shadow(0 0 5px rgba(0,0,0,0.2) );
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.2) );
    transform: translateY(50%);
    opacity: 0;
    transition: all .3s linear;
}
.index-news-info-img-mask{
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(251, 226, 221, 0.25);
    opacity: 0;
    transition: all .3s linear;
}

@media only screen and (max-width: 1360px){
    .index-news-all-box{
        width: 1200px;
    }
    .index-news-info{
        width: 360px;
        margin-right: 60px;
    }
    .index-news-info-img{
        height: calc((280 / 400) * 360px);
    }
}
@media only screen and (max-width: 1200px){
    .index-news-all-box{
        width: 1000px;
    }
    .index-news-info{
        width: 300px;
        margin-right: 50px;
    }
    .index-news-info-img{
        height: calc((280 / 400) * 300px);
    }
}
@media only screen and (max-width: 1000px){
    .index-news-box{
        padding: 60px 0;
    }
    .index-news-all-box{
        width: 750px;
    }
    .index-news-info-box{
        margin-top: 60px;
    }
    .index-news-info:nth-child(n){
        width: 350px;
        margin-right: 50px;
        margin-top: 0;
    }
    .index-news-info:nth-child(2n){
        margin-right: 0px;
    }
    .index-news-info:nth-child(n + 3){
        margin-top: 30px;
    }
    .index-news-info-img{
        height: calc((280 / 400) * 350px);
    }
}
@media only screen and (max-width: 768px){
    .index-news-box{
        padding: 40px 0;
        min-height: calc(100vh - ((1400 / 1920) * 100vw));
    }
    .index-news-all-box{
        width: 550px;
    }
    .index-news-info-box{
        margin-top: 40px;
    }
    .index-news-info:nth-child(n){
        width: 260px;
        margin-right: 30px;
        margin-top: 0;
    }
    .index-news-info:nth-child(2n){
        margin-right: 0px;
    }
    .index-news-info:nth-child(n + 3){
        margin-top: 20px;
    }
    .index-news-info-img{
        height: calc((280 / 400) * 250px);
    }
    .index-news-title-box h2{
        font-size: 30px;
        line-height: 34px;
    }
    .index-news-title-box::before{
        height: 8px;
        bottom: -4px;
    }
    .index-news-info-text{
        font-size: 14px;
        margin: 10px 0;
        line-height: 20px;
    }
    .index-news-info-date{
        font-size: 14px;
    }
}
@media only screen and (max-width: 550px){
    .index-news-box{
        padding: 20px 0;
    }
    .index-news-all-box{
        width: 95vw;
    }
    .index-news-info-box{
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.2;
    }
    .index-news-info:nth-child(n){
        width: calc(50% - 5px);
        margin-right: 10px;
        margin-top: 0;
    }
    .index-news-info:nth-child(2n){
        margin-right: 0px;
    }
    .index-news-info:nth-child(n + 3){
        margin-top: 10px;
    }
    .index-news-info-img{
        height: calc((280 / 400) * ((95vw / 2) - 5px));
    }
    .index-news-title-box h2{
        font-size: 20px;
        line-height: 24px;
    }
    .index-news-title-box::before{
        height: 4px;
        bottom: -2px;
    }
    .index-news-info-text{
        margin: 5px 0;
        line-height: 16px;
    }
}
@media only screen and (max-width: 350px){
    .index-news-info:nth-child(n){
        width: 100%;
        margin-right: 0;
        margin-top: 0;
    }
    .index-news-info:nth-child(n + 2){
        margin-top: 10px;
    }
    .index-news-info-img{
        height: calc((280 / 400) * 95vw);
    }
}



@media only screen and (min-width: 769px){
    .index-news-title-box h2,
    .index-news-info{
        opacity: 0;
    }
    .index-news-title-box::before{
        transform: scaleX(0);
    }
    .index-news-title-box.anima h2{
        animation: fade 1s ease 0s 1 both;
    }
    .index-news-title-box.anima::before{
        transform-origin: left;
        animation: line 1s ease .3s 1 both;
    }
    .index-news-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }

    .index-news-info:hover .index-news-info-img{
        box-shadow: 0 0 10px rgba(0,0,0,0.35);
    }
    .index-news-info:hover .index-news-info-img-hover{
        transform: translateY(0);
        opacity: 1;
    }
    .index-news-info:hover .index-news-info-img-mask{
        opacity: 1;
    }
}