﻿
.index-about-block{
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: #dddddd;
    padding: 55px 0;
    overflow: hidden;
}
.index-about-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    position: relative;
    margin: 0 auto;
    font-size: 0;
    margin-top: 40px;
}
.index-about-box:first-child{
    margin-top: 0;
}
.index-about-box:nth-child(even){
    display: flex;
    flex-direction: row-reverse;
}
.index-about-info-box{
    width: calc(100% - 375px);
    display: inline-block;
    vertical-align: top;
}
.index-about-img-box{
    width: 375px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    position: relative;
    padding-top: 70px;
}

.index-about-title{
    font-size: 36px;
    font-family: "cwTeXFangSong";
    color: #555555;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.index-about-box:nth-child(even) .index-about-title{
    text-align: right;
}
.index-about-article-p{
    font-size: 14px;
    color: #555555;
    letter-spacing: 1px;
    line-height: 2.4;
}

.index-about-article-box .index-about-article{
    margin-bottom: 30px;
}
.index-about-article-box .index-about-article:last-child{
    margin-bottom: 0;
}
.index-about-box:nth-child(even) .index-about-linke-box{
    text-align: right;
}
.index-about-linke-box{
    margin-top: 35px;
}
.index-about-linke{
    width: 126px;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    background-color: #4a5856;
    font-size: 14px;
    color: #FFF;
    height: 60px;
    line-height: 60px;
    text-align: center;
    margin-right: 20px;
    position: relative;
    transition: all .3s linear;
}
.index-about-linke:last-child{
    margin-right: 0;
}
.index-about-box:nth-child(even) .index-about-linke{
    margin-left: 20px;
    margin-right: 0;
}
.index-about-box:nth-child(even) .index-about-linke:first-child{
    margin-left: 0;
}
.index-about-linke:after{
    content: 'none';
    font-size: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #78cbbf;
    transform: scale(0,1);
    transform-origin: center;
    transition: all .5s ease;
}
.index-about-linke span{
    position: relative;
    z-index: 1;
    transition: all .5s ease;
}
.index-about-img{
    position: relative;
    height: 400px;
}
.index-about-img-border{
    position: absolute;
    top:0px;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.index-about-img-border-top{
    width: 100%;
    height: 2px;
    display: block;
    background-color: #FFF;
    position: absolute;
    top: 0;
    right: 0;
    transform: scale(0,1);
    transform-origin: left;
}
.index-about-img-border-right{
    width: 2px;
    height: 100%;
    display: block;
    background-color: #FFF;
    position: absolute;
    right: 0;
    top: 0;
    transform: scale(1,0);
    transform-origin: top;
}
.index-about-img-border-bottom{
    width: calc(100% - 250px);
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #FFF;
    height: 2px;
    transform: scale(0,1);
    transform-origin: right;
}

.index-about-box:nth-child(even) .index-about-img-border-top{
    transform-origin: right;
}
.index-about-box:nth-child(even) .index-about-img-border-right{
    right: initial;
    left: 0;
}
.index-about-box:nth-child(even) .index-about-img-border-bottom{
    right: initial;
    left: 0;
    transform-origin: left;
}

.index-about-box:nth-child(even) .index-about-img-title{
    right: initial;
    left: 30px;
}
.index-about-img-title{
    font-size: 34px;
    font-family: "Anton";
    letter-spacing: 2px;
    display: block;
    position: absolute;
    top: 25px;
    right: 30px;
    color: #888;
}



.index-about-linke:hover{
    color: #fff;
    /* background-color: #78cbbf; */
}
.index-about-linke:hover:after{
    transform: scale(1);
}




@media only screen and (max-width: 1200px){
    .index-about-box{
        width: 950px;
    }
    .index-about-article-p{
        line-height: 1.6;
    }
    .index-about-img-box{
        padding-left: 30px;
        box-sizing: border-box;
    }
    .index-about-info-box{
        padding-right: 20px;
        box-sizing: border-box;
    }
}
@media only screen and (max-width: 1000px){
    .index-about-img-border-top,
    .index-about-img-border-right,
    .index-about-img-border-bottom{
        transform: scale(1);
    }
    .index-about-box{
        width: 95%;
    }
    .index-about-img{
        display: none;
    }
    .index-about-info-box{
        width: 100%;
        padding-right: 0;
    }
    .index-about-img-box{
        width: 100%;
        height: 100%;
        display: block;
        top: 0px;
        left: 0;
        position: absolute;
    }
    .index-about-img-title{
        top: 0;
    }
    .index-about-linke{
        margin-bottom: 10px;
    }
    .index-about-article-box{
        box-sizing: border-box;
        padding: 0 5px;
    }
}
@media only screen and (max-width: 750px){
    .index-about-img-title {
        top: 18px;
    }
    .index-about-info-box{
        width: 95%;
        padding-top: 20px;
    }
}
@media only screen and (max-width: 550px){
    .index-about-img-title {
        top: 20px;
        font-size: 20px;
        right: 20px;
    }
    .index-about-box:nth-child(even) .index-about-img-title {
        left: 20px;
    }
    .index-about-title{
        font-size: 20px;
    }
    .index-about-article-box .index-about-article{
        margin-bottom: 15px;
    }
    .index-about-article-p{
        font-size: 12px;
    }
    .index-about-linke-box{
        text-align: center;
    }
    .index-about-linke{
        width: 85px;
        height: 40px;
        line-height: 40px;
        margin-right: 10px;
    }
    .index-about-box:nth-child(even) .index-about-linke {
        margin-left: 10px;
    }
    .index-about-box:nth-child(even) .index-about-linke-box {
        text-align: center;
    }
}



/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .index-about-title,
    .index-about-article-p,
    .index-about-linke-box,
    .index-about-img,
    .index-about-img-title{
        opacity: 0;
    }
    .index-about-img-border-top, 
    .index-about-img-border-bottom {
        transform: scale(0,1);
    }
	.index-about-box.anima .index-about-title{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .index-about-box.anima .index-about-article-p,
    .index-about-box.anima .index-about-img{
        animation: fade 1s ease 0s 1 both;
    }
    .index-about-box.anima .index-about-linke-box{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .index-about-box.anima .index-about-img-title{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .index-about-box.anima .index-about-img-border-top {
        animation: line .8s linear .3s 1 forwards;
    }
    .index-about-box.anima .index-about-img-border-right {
        animation: line2 .8s linear 1.1s 1 forwards;
    }
    .index-about-box.anima .index-about-img-border-bottom {
        animation: line .8s linear 1.9s 1 forwards;
    
    }
}
