﻿.index-news-box{
    width: 100%;
    display: block;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
}
.index-news-all-box {
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 100px 0;
}
.index-news-title-box{
    text-align: center;
}
.index-news-title-box h2{
    font-size: 28px;
    display: inline-block;
    letter-spacing: 0.06em;
    font-family: 'Noto Serif TC';
    font-weight: 600;
    position: relative;
    color: #601986;
}
.index-news-title-box span{
    position: absolute;
    top: -50px;
    left: -60px;
    display: block;
    width: 77px;
}
.index-news-info-box{
    margin-top: 80px;
}
.index-news-info{
    width: 320px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    margin-right: 120px;
}
.index-news-info:nth-child(3n){
    margin-right: 0;
}
.index-news-info:nth-child(n + 4){
    margin-top: 120px;
}
.index-news-info-img-box{
    width: 100%;
    height: 320px;
    display: block;
    position: relative;
}
.index-news-info-img-box>span{
    border-radius: 50%;
}
.index-news-info-img-mask {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .5s ease;
    opacity: 0;
}
.index-list-mask-circular-box {
    width: 100%;
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(96,25,134,0.6);
    overflow: hidden;
    border-radius: 50%;
}
.index-list-mask--circular-svg {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    top: -1px;
    left: -1px;
    display: block;
    position: absolute;
    transform: rotate(180deg);
}
.index-list-mask--circular-svg:nth-child(2) {
    transform: rotate(68deg);
}
.index-list-mask--circular-svg:nth-child(3) {
    transform: rotate(50deg);
}
.index-list-mask--circular-svg:nth-child(4) {
    transform: rotate(-70deg);
}
.index-list-mask-icon-box {
    width: 100%;
    height: 100%;
    display: block;
    transition: all .8s ease;
    transform: scale(1.2);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../img/front/index-news-icon.png);
}
.index-list-mask--circular-svg circle {
    width: 100%;
    height: 100%;
    stroke-width: 6px;
}
.index-list-mask--circular-svg:nth-child(1) circle {
    stroke-dasharray: 751;
    stroke-dashoffset: 564;
}   
.index-list-mask--circular-svg:nth-child(2) circle {
    stroke-dasharray: 950;
    stroke-dashoffset: 900;
}
.index-list-mask--circular-svg:nth-child(3) circle {
    stroke-dasharray: 1300;
    stroke-dashoffset: 1760;
}
.index-list-mask--circular-svg:nth-child(4) circle {
    stroke-dasharray: 1350;
    stroke-dashoffset: 1760;
}
.index-list-mask-flower-box span{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
}
.index-list-mask-flower-box span:nth-child(2){
    bottom: initial;
    left: initial;
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 2;
    transform: rotateZ(180deg);
}
.index-news-info-date{
    text-align: center;
    font-size: 14px;
    font-family: 'roboto';
    font-weight: 300;
    color: #555;
    margin-top: 30px;
    letter-spacing: 0.06em;
}
.index-news-info-text{
    font-size: 16px;
    display: block;
    letter-spacing: 0.06em;
    color: #601986;
    margin-top: 5px;
    text-align: center;
    transition: all .3s linear;
}


.index-news-info:hover .index-news-info-img-box>span{
    opacity: 1;
}
.index-news-info:hover .index-news-info-text{
    color: #c42272;
}






@media only screen and (max-width: 1200px){
    .index-news-all-box{
        width: 1000px;
    }
    .index-news-info{
        width: 310px;
        margin-right: 35px;
    }
    .index-news-info-img-box{
        height: 310px;
    }
}
@media only screen and (max-width: 1000px){
    .index-news-all-box{
        width: 750px;
    }
    .index-news-info:nth-child(n){
        width: 360px;
        margin-right: 30px;
    }
    .index-news-info:nth-child(2n){
        margin-right: 0;
    }
    .index-news-info:nth-child(n + 3){
        margin-top: 40px;
    }
    .index-news-info-img-box{
        height: 360px;
        overflow: hidden;
        border-radius: 50%;
    }
    .index-news-info-img-mask{
        display: none;
    }
    .index-news-info:hover .index-news-info-img-box>span{
        transform: scale(1.2);
    }
}
@media only screen and (max-width: 750px){
    .index-news-all-box{
        width: 550px;
        padding: 50px 0;
    }
    .index-news-info:nth-child(n){
        width: 260px;
    }
    .index-news-info-img-box{
        height: 260px;
    }
    .index-news-title-box h2{
        font-size: 22px;
    }
    .index-news-info-box{
        margin-top: 40px;
    }
}

@media only screen and (max-width: 550px){
    .index-news-all-box{
        width: 250px;
        padding: 30px 0;
    }
    .index-news-info:nth-child(n){
        width: 250px;
        margin-right: 0;
        margin-top: 25px;
    }
    .index-news-info:first-child{
        margin-top: 0;
    }
    .index-news-info-img-box{
        height: 250px;
    }
    .index-news-title-box h2{
        font-size: 18px;
    }
    .index-news-title-box span{
        width: 50px;
        top: -30px;
        left: -45px;
    }
    .index-news-info-box{
        margin-top: 20px;
    }
    .index-news-info-date{
        margin-top: 10px;
        font-size: 12px;
    }
    .index-news-info-text{
        font-size: 14px;
        margin-top: 0;
    }
}








/*animation*/
/*<-------------動畫------------->*/

@keyframes fadeInLeftDown {
    0%{
        opacity: 0;
        -webkit-transform: translate3d(-20%, -20%, 0);
        transform: translate3d(-20%, -20%, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}
@keyframes roundRotate {
    0%{
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes roundRotate_2 {
    0%{
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    to {
        -webkit-transform: rotate(80deg);
        transform: rotate(80deg);
    }
}
@keyframes floatUpDown {
    0%{
        -webkit-transform: translate3d(0%, 0%, 0);
        transform: translate3d(0%, 0%, 0);
    }
    25%{
        -webkit-transform: translate3d(-1%, 1%, 0);
        transform: translate3d(-1%, 1%, 0);
    }
    50%{
        -webkit-transform: translate3d(0%, 0%, 0);
        transform: translate3d(0%, 0%, 0);
    }
    75%{
        -webkit-transform: translate3d(1%, -1%, 0);
        transform: translate3d(1%, -1%, 0);
    }
    to {
        -webkit-transform: none;
        transform: none;
    }
}
@keyframes floatUpDown_r{
    0%{
        -webkit-transform: translate3d(0%, 0%, 0) rotateZ(180deg);
        transform: translate3d(0%, 0%, 0) rotateZ(180deg);
    }
    25%{
        -webkit-transform: translate3d(1%, -1%, 0) rotateZ(180deg);
        transform: translate3d(1%, -1%, 0) rotateZ(180deg);
    }
    50%{
        -webkit-transform: translate3d(0%, 0%, 0) rotateZ(180deg);
        transform: translate3d(0%, 0%, 0) rotateZ(180deg);
    }
    75%{
        -webkit-transform: translate3d(-1%, 1%, 0) rotateZ(180deg);
        transform: translate3d(-1%, 1%, 0) rotateZ(180deg);
    }
    to {
        -webkit-transform: rotateZ(180deg);
        transform: rotateZ(180deg);
    }
}
@media only screen and (min-width: 1001px){
    .index-news-title-box h2,
    .index-news-title-box span,
    .index-news-info{
        opacity: 0;
    }
	.index-news-title-box.anima h2{
        animation: fadeInUp 1s ease 0s 1 both;
    }
	.index-news-title-box.anima span{
        animation: fadeInLeftDown 1s ease .5s 1 both;
    }
    .index-news-info:hover .index-news-info-img-mask{
        opacity: 1;
    }
    .index-list-mask-icon-box{
        animation: roundRotate 5s linear 0s infinite;
    }
    .index-list-mask-circular-box{
        animation: roundRotate 8s linear 0s infinite;
    }
    .index-list-mask-flower-box span{
        animation: floatUpDown 3s linear 0s infinite;
    }
    .index-list-mask-flower-box span:nth-child(2){
        animation: floatUpDown_r 3s linear 0s infinite;
    }
    .index-list-mask-flower-box{
        position: absolute;
        width: 100%;
        height: 100%;
    
    }
    .index-list-mask-flower-box{
        animation: roundRotate 24s linear 0s infinite;
    }
    .index-news-info.anima{
        animation: fade 1s ease 0s 1 both;
    }
}

