﻿.news-box{
    width: 100%;
    display: block;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 100px 0;
}
.news-all-box{
    width: 1560px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding-top: 150px;
}
.news-title-box{
    width: 100%;
    display: block;
    text-align: center;
}
.news-title{
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-size: 60px;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #000;
    display: inline-block;
    vertical-align: bottom;
    transition: all .3s linear;
}
.news-category-box{
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 60px;
}
.news-category {
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-size: 20px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
    transition: all .3s linear;
}
.news-category::after{
    content: "|";
    width: 2px;
    margin-left: 25px;
    margin-right: 30px;
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-size: 20px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1.4;
    display: inline-block;
    color: #eee;
    pointer-events: none;
    transition: all .3s linear;
}
.news-category:last-child:after{
    display: none;
}
.news-right-box{
    width: 100%;
    display: block;
    margin-top: 130px;
}
.news-info{
    width: 360px;
    display: inline-block;
    vertical-align: top;
    margin-right: 60px;
}
.news-info:nth-child(3n){
    margin-right: 0;
}
.news-info:nth-child(n + 4){
    margin-top: 60px;
}
.news-info-img{
    width: 100%;
    height: 360px;
    display: block;
    overflow: hidden;
    position: relative;
    transition: all .3s linear;
}
.news-info-text{
    font-family: 'IBM Plex Sans','Noto Sans TC';
    font-weight: 700;
    font-size: 16px;
    color: #000;
    letter-spacing: 0.01em;
    line-height: 1.4;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 20px;
}
.news-page-box{
    margin-top: 100px;
}




.news-category-path-box{
    display: inline-block;
    vertical-align: middle;
}
.news-category-path{
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-weight: 300;
    font-size: 14px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 14px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    transition: all .3s linear;
}
a.news-category-path{
    color: #000;
    font-weight: 400;
}
a.news-category-path::after{
    content: "/";
    display: inline-block;
    vertical-align: top;
    font-family: "IBM Plex Sans";
    font-size: 14px;
    color: #333;
    line-height: 1;
    margin: 0 15px;
}
.news-pages-info-box{
    margin-top: 150px;
}
.news-pages-info-name {
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-weight: 700;
    font-size: 36px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1;
    display: block;
}
.news-pages-info-date{
    font-family: "IBM Plex Sans";
    font-weight: 700;
    font-size: 14px;
    line-height: 2;
    color: #888;
    letter-spacing: 0.01em;
    margin-top: 15px;
}
.news-pages-info-date span{
    font-weight: 700;
    color: #e60012;
}
.news-pages-info-date>span{
    margin-right: 10px;
}
.news-pages-info{
    margin: 60px 0;
}
.news-pages-info-edit{
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-size: 20px;
    color: #666;
    letter-spacing: 0.06em;
    line-height: 1.8;
    display: block;
    margin-top: 50px;
}
.news-pages-info-arrow-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 30px 0;
    text-align: right;
}
.news-pages-info-arrow{
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-size: 20px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    padding: 0 45px;
    transition: all .3s linear;
}
.news-pages-info-arrow-back{
    box-sizing: border-box;
    border-left: 2px solid #eee;
    border-right: 2px solid #eee;
}
.news-pages-info-arrow>span{
    display: inline-block;
    vertical-align: bottom;
    box-sizing: border-box;
    transform: translateY(-2px);
}




@media only screen and (max-width: 1560px){
    .news-all-box{
        width: 1200px;
    }
}
@media only screen and (max-width: 1200px){
    .news-all-box{
        width: 1000px;
    }
}
@media only screen and (max-width: 1000px){
    .news-all-box{
        width: 750px;
        padding-top: 100px;
    }
    .news-title{
        font-size: 40px;
    }
    .news-right-box{
        margin-top: 80px;
    }

    .news-pages-info-box{
        margin-top: 100px;
    }
}
@media only screen and (max-width: 768px){
    .news-box{
        padding: 70px 0;
    }
    .news-all-box{
        width: 550px;
        padding-top: 40px;
    }
    .news-title{
        font-size: 30px;
    }
    .news-right-box{
        margin-top: 30px;
    }
    .news-category-box{
        margin-top: 20px;
    }
    .rwd-news-category{
        width: 100%;
        font-family: "IBM Plex Sans",'Noto Sans TC';
        font-size: 18px;
        color: #333;
        letter-spacing: 0.06em;
        line-height: 36px;
        border: 1px solid #000;
        text-align: center;
        display: block;
        position: relative;
        box-sizing: border-box;
    }
    .rwd-news-category:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 6px solid transparent;
        border-top: 8px solid #000;
        border-left: 6px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 4px);
        right: 10px;
        box-sizing: border-box;
    }
    .news-category-all-box{
        width: 100%;
        border: 1px solid #000;
        border-top: none;
        box-sizing: border-box;
        position: absolute;
        z-index: 9;
        display: none;
        background-color: #fff;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.35);
    }
    .news-category{
        width: 100%;
        display: block;
        font-size: 18px;
        line-height: 2;
        border-bottom: 1px solid #eee;
    }
    .news-category:last-child{
        border-bottom: none;
    }
    .news-category::after{
        display: none;
    }

    .news-category:hover,
    .news-category.active{
        background-color: #e60012;
        color: #fff;
    }

    .news-category-path-box{
        display: none;
    }
    .news-pages-info-box{
        margin-top: 40px;
    }
    .news-pages-info{
        margin: 40px 0;
    }
    .news-pages-info-edit{
        font-size: 18px;
        margin-top: 30px;
    }
    .news-pages-info-name{
        font-size: 26px;
    }
    .news-pages-info-arrow-box{
        text-align: center;
    }
}
@media only screen and (max-width: 550px){
    .news-box{
        padding-top: 50px;
        padding-bottom: 20px;
    }
    .news-all-box{
        width: calc(100% - 40px);
        padding-top: 20px;
    }
    .news-title{
        font-size: 20px;
    }
    .news-right-box{
        margin-top: 20px;
    }
    .rwd-news-category{
        font-size: 16px;
    }
    .news-category{
        font-size: 16px;
    }
    .news-pages-info-box{
        margin-top: 0;
    }
    .news-pages-info{
        margin: 15px 0;
    }
    .news-pages-info-edit{
        font-size: 16px;
        margin-top: 10px;
        line-height: 1.4;
    }
    .news-pages-info-name{
        font-size: 20px;
    }
    .news-pages-info-date{
        font-size: 12px;
        line-height: 1.2;
        margin-top: 10px;
    }

    .news-pages-info-arrow{
        font-size: 16px;
        padding: 0 15px;
    }
}


@media only screen and (min-width: 769px){
    .news-category:hover,
    .news-category.active{
        color: #e60012;
    }
    a.news-category-path:hover,
    .news-pages-info-arrow:hover{
        color: #e60012;
    }

    .news-title-box,
    .news-category-box,
    .news-page-box,
    .news-pages-info-name,
    .news-pages-info-date,
    .news-pages-info-img,
    .news-pages-info-edit,
    .news-pages-info-arrow-box,
    .news-pages-info-arrow{
        opacity: 0;
    }
    .news-title-box.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .news-category-box.anima{
        animation: fade 1s ease .4s 1 both;
    }
    .news-page-box.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .news-pages-info-name.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .news-pages-info-date.anima{
        animation: fadeInDown 1s ease 0.3s 1 both;
    }
    .news-pages-info-img.anima,
    .news-pages-info-edit.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .news-pages-info-arrow-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .news-pages-info-arrow-box.anima .news-pages-info-arrow:nth-child(1){
        animation: fadeInRight 1s ease 0.3s 1 both;
    }
    .news-pages-info-arrow-box.anima .news-pages-info-arrow-back{
        animation: fade 1s ease 0s 1 both;
    }
    .news-pages-info-arrow-box.anima .news-pages-info-arrow:nth-child(3){
        animation: fadeInLeft 1s ease 0.3s 1 both;
    }
}