﻿.news-box{
    width: 100%;
    display:         flex;
    display: -webkit-flex;
    flex-direction: row;
    position: relative;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    overflow: hidden;
}
.news-box .accesskey{
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
}
.news-all-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 55px 0;
}
.news-info-class-box{
    width: 100%;
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    flex-direction: row;
    margin-top: 80px;
}
.news-info-class-date-box{
    display:         flex;
    display: -webkit-flex;
    flex-direction: row;
}
.news-info-class-date{
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    flex-direction: row;
}
.news-info-class-name{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 1em;
    letter-spacing: 0.06em;
    color: #000;
    line-height: 26px;
}
.news-info-class-date input{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 1em;
    letter-spacing: 0.06em;
    color: #000;
    line-height: 23px;
    width: 130px;
    border: none;
    border-bottom: 1px solid #000;
}
.news-info-class-date span{
    width: 10px;
    height: 1px;
    background-color: #666666;
    margin: 0 10px;
}
.news-info-class-tag-box,
.news-info-class-font-box{
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    flex-direction: row;
}
.news-info-class-tag-select-box{
    width: 160px;
    position: relative;
}
.news-info-class-tag-select-box:after,
.news-info-class-font-select-box:after{
    content: 'none';
    font-size: 0;
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-top: 8px solid #000;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    display: block;
    position: absolute;
    right: 5px;
    top: 15px;
    pointer-events: none;
    z-index: 2;
}
.news-info-class-select{
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #000;
    display: block;
    letter-spacing: 0.06em;
    position: relative;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 1em;
    color: #000;
}
.news-info-class-font-select-box{
    width: 360px;
    position: relative;
}
.news-info-class-font-select-box input{
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #000;
    display: block;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 1em;
    color: #666;
    z-index: 1;
}
.news-info-class-font-select-box input::-webkit-input-placeholder{
    font-family: 'Noto Sans TC';
    color: #666;
}
.news-info-class-font-select-box input:-moz-placeholder{
    font-family: 'Noto Sans TC';
    color: #666;
}
.news-info-class-font-select-box input::-moz-placeholder{
    font-family: 'Noto Sans TC';
    color: #666;
}

.news-info-box{
    width: 100%;
    display: block;
    margin-top: 80px;
}
.news-info{
    width: 100%;
    display:         flex;
    display: -webkit-flex;
    flex-direction: row;
    position: relative;
    box-sizing: border-box;
    padding: 22px 35px;
}
.news-info-date{
    font-family: 'roboto';
    font-weight: 500;
    font-size: 1em;
    letter-spacing: 0.06em;
    color: #000;
    line-height: 36px;
}
.news-info-tag-box{
    width: 130px;
    text-align: center;
}
.news-info-tag-box span{
    width: 90px;
    line-height: 32px;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    font-size: 1em;
    color: #000;
    display: inline-block;
    background-color: #ffea00;
}
.news-info-text{
    line-height: 36px;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 1em;
    color: #000;
}
.news-info-border{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    overflow: hidden;
    display: block;
}
.news-info-border:after{
    content: '';
    width: 100%;
    display: block;
    border-bottom: 4px dashed #000;
}
input[type="date" i]::-webkit-calendar-picker-indicator{
    margin-left: 0;
}


.news-pages-info-box{
    width: 100%;
    display: block;
    margin-top: 40px;
}
.news-pages-info-top-box{
    width: 100%;
    display:         flex;
    display: -webkit-flex;
    flex-direction: row;
}
.news-pages-info-top-box span{
    width: 90px;
    line-height: 32px;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    font-size: 1em;
    color: #000;
    display: inline-block;
    background-color: #ffea00;
    text-align: center;
    -webkit-print-color-adjust: exact;
}
.news-pages-info-date{
    font-family: 'roboto';
    font-weight: 500;
    font-size: 1em;
    letter-spacing: 0.06em;
    color: #000;
    line-height: 36px;
    margin-left: 15px;
}
.news-pages-info-title{
    line-height: 36px;
    letter-spacing: 0.06em;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 1.375em;
    color: #000;
    margin-top: 20px;
}
.news-pages-info-edit{
    line-height: 36px;
    letter-spacing: 0.06em;
    font-size: 1em;
    color: #666;
    box-sizing: border-box;
    padding: 10px 0;
    font-weight: 300;
}

.news-pages-list-box{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 80px;
}
.news-pages-list{
    width: 270px;
    display: inline-block;
    vertical-align: top;
    margin-right: 40px;
}
.news-pages-list:nth-child(4n){
    margin-right: 0;
}
.news-pages-list:nth-child(n + 5){
    margin-top: 40px;
}
.news-pages-list-img{
    width: 100%;
    height: calc((3024 / 4032) * 270px);
    display: block;
    overflow: hidden;
    position: relative;
}
.news-pages-list-text{
    line-height: 1.6;
    letter-spacing: 0.06em;
    font-size: 1em;
    color: #000;
    box-sizing: border-box;
    padding: 10px 0;
    font-weight: 300;
    font-family: 'Noto Sans TC';
}




@media only screen and (max-width: 1320px){
    #news-pages .news-all-box{
        width: 1000px;
    }
}
@media only screen and (max-width: 1200px){
    .news-all-box{
        width: 1000px;
    }
    #news-pages .news-all-box{
        width: 880px;
    }
    .news-box{
        margin-top: 90px;
        min-height: calc(100vh - 90px);
    }
    .news-pages-list{
        width: 235px;
        margin-right: 20px;
    }
    .news-pages-list:nth-child(n + 5){
        margin-top: 20px;
    }
    .news-pages-list-img{
        height: calc((3024 / 4032) * 235px);
    }
}
@media only screen and (max-width: 1000px){
    .news-box{
        margin-top: 79px;
        min-height: calc(100vh - 79px);
    }
    .news-all-box{
        width: 750px;
    }
    #news-pages .news-all-box{
        width: 95%;
    }
    .news-info-class-box{
        flex-wrap: wrap;
    }
    .news-info-class-date-box{
        width: 50%;
    }
    .news-info-class-tag-box{
        width: 50%;
    }
    .news-info-class-font-box{
        width: 100%;
        margin-top: 20px;
    }
    .news-info-class-tag-select-box{
        width: calc(100% - 51px);
    }
    .news-info-class-font-select-box{
        width: calc(100% - 68px);
    }
    .news-pages-list:nth-child(n){
        width: 240px;
        margin-right: 15px;
        margin-top: 0;
    }
    .news-pages-list:nth-child(3n){
        margin-right: 0px;
    }
    .news-pages-list:nth-child(n + 4){
        margin-top: 15px;
    }
    .news-pages-list-img{
        height: calc((3024 / 4032) * 240px);
    }
}
@media only screen and (max-width: 768px){
    .news-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .news-info{
        padding: 17px 25px;
    }
    .news-info-class-box{
        margin-top: 40px;
    }
    .news-info-box{
        margin-top: 40px;
    }
    .news-info-class-date-box{
        width: 100%;
    }
    .news-info-class-tag-box{
        width: 100%;
        margin-top: 10px;
    }
    .news-info-class-date-before,
    .news-info-class-date-after{
        width: 234px;
    }
    .news-info-class-date input{
        width: 100%;
    }
    
    .news-pages-list:nth-child(n){
        width: 265px;
        margin-right: 20px;
        margin-top: 0;
    }
    .news-pages-list:nth-child(2n){
        margin-right: 0px;
    }
    .news-pages-list:nth-child(n + 3){
        margin-top: 20px;
    }
    .news-pages-list-img{
        height: calc((3024 / 4032) * 265px);
    }
}
@media only screen and (max-width: 550px){
    .news-box{
        margin-top: 56px;
        min-height: calc(100vh - 56px);
    }
    .news-all-box{
        width: 400px;
        padding: 20px 0;
    }
    .news-info-class-box{
        flex-direction: column;
        margin-top: 20px;
    }
    .news-info-class-font-box{
        margin-top: 10px;
    }
    .news-info-box{
        margin-top: 20px;
    }
    .news-info {
        padding: 10px 5px;
        flex-wrap: wrap;
    }
    .news-info-text{
        width: 100%;
        line-height: 1.4;
        font-size: 0.875em;
        margin-top: 5px;
    }
    .news-info-date{
        font-size: 0.75em;
        line-height: 28px;
    }
    .news-info-tag-box{
        width: 80px;
    }
    .news-info-tag-box span{
        width: 70px;
        line-height: 20px;
        font-size: 0.75em;
    }
    .news-info-class-date-before,
    .news-info-class-date-after{
        width: 162px;
    }

    .news-info-class-name{
        font-size: 0.875em;
    }
    .news-info-class-date p{
        font-size: 0.875em;
        line-height: 26px;
    }
    .news-info-class-tag-select-box {
        width: calc(100% - 45px);
    }
    .news-info-class-select,
    .news-info-class-font-select-box input{
        font-size: 0.875em;
        height: 30px;
    }
    .news-info-class-font-select-box {
        width: calc(100% - 60px);
    }
    .news-pages-info-box{
        margin-top: 20px;
    }
    .news-pages-info-top-box span{
        width: 70px;
        line-height: 28px;
        font-size: 0.875em;
    }
    .news-pages-info-date{
        line-height: 28px;
        font-size: 0.875em;
    }
    .news-pages-info-title{
        margin-top: 10px;
        font-size: 1.25em;
        line-height: 30px;
    }
    .news-pages-info-edit{
        font-size: 0.875em;
        line-height: 2;
    }

    .news-pages-list-box{
        margin-top: 20px;
    }
    .news-pages-list:nth-child(n){
        width: calc((95vw - 10px) / 2);
        margin-right: 10px;
        margin-top: 0;
    }
    .news-pages-list:nth-child(2n){
        margin-right: 0px;
    }
    .news-pages-list:nth-child(n + 3){
        margin-top: 10px;
    }
    .news-pages-list-img{
        height: calc((3024 / 4032) * ((95vw - 10px) / 2));
    }
    .news-pages-list-text {
        line-height: 1.4;
        font-size: 0.875em;
        padding: 5px 0;
    }
}
@media only screen and (max-width: 400px){
    .news-all-box{
        width: 300px;
    }
    .news-info-class-date-before,
    .news-info-class-date-after{
        width: 117px;
    }
    .news-info-class-date input{
        font-size: 0.7em;
    }
    .news-info-class-date span{
        margin: 0 5px;
    }
    .news-pages-list:nth-child(n){
        width: 100%;
        margin-right: 0;
        margin-top: 0;
    }
    .news-pages-list:nth-child(n + 2){
        margin-top: 10px;
    }
    .news-pages-list-img{
        height: calc((3024 / 4032) * 95vw);
    }

}




@media only screen and (min-width: 1001px) and (prefers-reduced-motion: no-preference){
    .news-info,
    .news-pages-list{
        opacity: 0;
    }
    .present-title-box{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .news-info.anima,
    .news-info-class-box,
    .news-pages-info-box,
    .news-pages-list.anima{
        animation: fadeInUp 1s ease .0s 1 both;
    }
}
@media only screen and (min-width: 1001px){
    /* hover */
    .news-info:hover{
        background-color: #f5f5f5;
    }
    .news-pages-list:hover .main-bg{
        transform: scale(1.1);
    }
}