﻿.index-health-box{
    width: 1920px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
}
.index-health-all-box{
    width: 100%;
    display: block;
    font-size: 0;
    position: relative;
    z-index: 1;
}
.index-health-info-box{
    position: relative;
    box-sizing: border-box;
    padding: 30px 0;
    margin-top: 100px;
    margin-bottom: 250px;
}
.index-health-info{
    width: 1600px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    z-index: 1;
}
.index-health-l-box{
    width: 520px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.index-health-img{
    width: 100%;
    height: 520px;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}
.index-health-r-box{
    width: calc(100% - 520px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding-left: 45px;
}
.index-health-text-box{
    height: calc(520px - 52px);
    position: relative;
    z-index: 1;
}
.index-health-title{
    font-size: 36px;
    font-weight: bold;
    color: #ff6800;
    display: block;
    letter-spacing: 2px;
}
.index-health-text{
    font-size: 18px;
    color: #555;
    letter-spacing: 2px;
    line-height: 2;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    min-height: 216px;
}
.index-health-more-box{
    background-color: #000;
    border-radius: 5px;
    display: inline-block;
    box-sizing: border-box;
    padding: 5px 18px;
    margin-top: 10px;
    transition: all .3s linear;
}
.index-health-more{
    font-size: 20px;
    font-family: "Roboto";
    color: #fff;
    letter-spacing: 2px;
    display: inline-block;
    vertical-align: bottom;
    margin-right: 9px;
}
.index-health-more-line{
    width: 50px;
    height: 1px;
    display: inline-block;
    vertical-align: bottom;
    background-color: #fff;
    margin-bottom: 9px;
    position: relative;
}
.index-health-more-line:after {
    content: '';
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
    border-left: 5px solid transparent;
    display: block;
    position: absolute;
    bottom: 0;
    right: -1px;
    box-sizing: border-box;
    transition: all .3s linear;
}
.index-health-bc-box{
    width: 100%;
    height: 100%;
    display: block;
    display: none;
    position: absolute;
    bottom: -130px;
    left: 0;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.index-health-bc-purple-box{
    position: absolute;
    top: 170px;
    right: 100px;
    width: 45px;
    height: 40px;
    pointer-events: none;
    z-index: 0;
    display: none;
}
.index-health-bc-purple{
    width: 100%;
    height: 100%;
    background-image: url(../img/front/index-health-bc-cube-2.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}
.index-health-bc-green-box{
    position: absolute;
    top: 40px;
    right: 300px;
    width: 90px;
    height: 80px;
    pointer-events: none;
    z-index: 0;
    display: none;
}
.index-health-bc-green{
    width: 100%;
    height: 100%;
    background-image: url(../img/front/index-health-bc-cube-3.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}
.index-health-bc-yellow-box{
    position: absolute;
    bottom: -130px;
    right: 300px;
    width: 180px;
    height: 160px;
    pointer-events: none;
    z-index: 0;
    display: none;
}
.index-health-bc-yellow{
    width: 100%;
    height: 100%;
    background-image: url(../img/front/index-health-bc-cube.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}
.index-health-info-box:nth-child(even) .index-health-info{
    display: flex;
    display: -webkit-flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    -webkit-align-items: flex-end;
}
.index-health-info-box:nth-child(even) .index-health-info .index-health-r-box{
    padding-left: 0;
    padding-right: 45px;
}
.index-health-info-box:nth-child(2) .index-health-bc-purple-box{
    top: inherit;
    bottom: -200px;
    right: 30%;
    width: 180px;
    height: 160px;
}
.index-health-info-box:nth-child(2) .index-health-bc-green-box{
    top: inherit;
    right: inherit;
    bottom: -100px;
    left: 23%;
    width: 45px;
    height: 40px;
}
.index-health-info-box:nth-child(2) .index-health-bc-yellow-box{
    bottom: 20px;
    left: 25%;
    width: 90px;
    height: 80px;
}
.index-health-info-box:nth-child(3) .index-health-bc-purple-box{
    top: inherit;
    bottom: 80px;
    right: 10%;
    width: 90px;
    height: 80px;
}
.index-health-info-box:nth-child(3) .index-health-bc-green-box{
    right: 0;
    top: -40px;
    width: 180px;
    height: 160px;
}
.index-health-info-box:nth-child(3) .index-health-bc-yellow-box{
    width: 45px;
    height: 40px;
    bottom: inherit;
    top: 35%;
}
.index-health-info-box:nth-child(4) .index-health-bc-purple-box{
    right: inherit;
    left: 100px;
}
.index-health-info-box:nth-child(4) .index-health-bc-green-box{
    right: inherit;
    left: 300px;
}
.index-health-info-box:nth-child(4) .index-health-bc-yellow-box{
    right: inherit;
    left: 300px;
}
.index-health-info-box:nth-child(5) .index-health-bc-purple-box{
    top: inherit;
    bottom: -200px;
    right: inherit;
    left: 30%;
    width: 180px;
    height: 160px;
}
.index-health-info-box:nth-child(5) .index-health-bc-green-box{
    top: inherit;
    left: inherit;
    bottom: -100px;
    right: 23%;
    width: 45px;
    height: 40px;
}
.index-health-info-box:nth-child(5) .index-health-bc-yellow-box{
    bottom: 20px;
    left: inherit;
    right: 25%;
    width: 90px;
    height: 80px;
}
.index-health-info-box:nth-child(6) .index-health-bc-purple-box{
    top: inherit;
    bottom: 80px;
    left: 10%;
    width: 90px;
    height: 80px;
}
.index-health-info-box:nth-child(6) .index-health-bc-green-box{
    left: 0;
    top: -40px;
    width: 180px;
    height: 160px;
}
.index-health-info-box:nth-child(6) .index-health-bc-yellow-box{
    width: 45px;
    height: 40px;
    bottom: inherit;
    top: 35%;
    right: inherit;
    left: 300px;
}


/*-----hover-----*/
.index-health-r-box:hover .index-health-more-box{
    background-color: #ff6800;
    color: #fff;
}


@media only screen and (max-width: 1600px){
    .index-health-info{
        width: 1400px;
    }
}
@media only screen and (max-width: 1400px){
    .index-health-info{
        width: 1200px;
    }
    .index-health-l-box{
        width: 396px;
    }
    .index-health-img{
        height: 396px;
    }
    .index-health-r-box{
        width: calc(100% - 396px);
    }
    .index-health-text-box{
        height: calc(396px - 52px);
        position: relative;
        z-index: 1;
    }
}
@media only screen and (max-width: 1200px){
    .index-health-info{
        width: 1000px;
    }
    .index-health-r-box{
        padding-left: 25px;
    }
    .index-health-info-box:nth-child(even) .index-health-info .index-health-r-box {
        padding-left: 0;
        padding-right: 25px;
    }
}
@media only screen and (max-width: 1000px){
    .index-health-info{
        width: 750px;
    }
    .index-health-r-box{
        width: 100%;
        display: block;
        padding-left: 0;
        position: relative;
        margin-top: 10px;
    }
    .index-health-info-box:nth-child(even) .index-health-info .index-health-r-box {
        padding-right: 0;
    }
    .index-health-l-box{
        width: 100%;
    }
    .index-health-img{
        height: 750px;
    }
    
    .index-health-text-box{
        height: initial;
    }
    .index-health-bc-box{
        display: none;
    }
    .index-health-info-box:nth-child(even) .index-health-info{
        display:block;
    }
    .index-health-info-box{
        margin-bottom: 100px;
        margin-top: inherit;
    }
    .index-health-bc-yellow-box{
        bottom: 0;
    }
    .index-health-info-box:nth-child(2) .index-health-bc-purple-box{
        bottom: -100px;
    }
    .index-health-info-box:nth-child(5) .index-health-bc-purple-box{
        bottom: -100px;
    }
}

@media only screen and (max-width: 750px){
    .index-health-info{
        width: 550px;
    }
    .index-health-img{
        height: 550px;
    }
    .index-health-title{
        font-size: 28px;
    }
}
@media only screen and (max-width: 550px){
    .index-health-info{
        width: 400px;
    }
    .index-health-img{
        height: 400px;
    }
    .index-health-title{
        font-size: 20px;
    }
    .index-health-text{
        font-size: 14px;
        min-height: 168px;
    }
    .index-health-info-box{
        margin-bottom: 0;
    }
    .index-health-info-box:nth-child(2) .index-health-bc-purple-box{
        bottom: 0;
        right: 0;
    }
    .index-health-info-box:nth-child(2) .index-health-bc-green-box{
        bottom: 50px;
        left: 0;
    }
    .index-health-info-box:nth-child(2) .index-health-bc-yellow-box{
        bottom: inherit;
        top: 20px;
    }
    .index-health-info-box:nth-child(5) .index-health-bc-purple-box{
        bottom: 0;
        left: 0;
    }
    .index-health-info-box:nth-child(5) .index-health-bc-green-box{
        bottom: 50px;
        right: 0;
    }
    .index-health-info-box:nth-child(5) .index-health-bc-yellow-box{
        bottom: inherit;
        top: 20px;
    }
    .index-health-more{
        font-size: 14px;
    }
    .index-health-more-box{
        padding: 3px 10px;
    }
    .index-health-more-line{
        width: 35px;
        margin-bottom: 7px;
    }
}
@media only screen and (max-width: 400px){
    .index-health-info{
        width: 300px;
    }
    .index-health-img{
        height: 300px;
    }
    .index-health-bc-green-box{
        right: 0;
    }
    .index-health-bc-yellow-box{
        right: inherit;
        left: 0;
    }
    .index-health-info-box:nth-child(4) .index-health-bc-green-box{
        left: 0;
    }
    .index-health-info-box:nth-child(4) .index-health-bc-yellow-box{
        left: inherit;
        right: 0;
    }
    .index-health-text{
        font-size: 12px;
        min-height: 144px;
    }
    .index-health-info-box:nth-child(3) .index-health-bc-purple-box {
        bottom: 36px;
        right: 0%;
    }
    .index-health-info-box:nth-child(6) .index-health-bc-purple-box {
        bottom: 36px;
        left: 0%;
    }
}



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

@keyframes move_line {
    0%{
        transform: translateX(0) ;
    }
    50%{
        transform: translateX(5px);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes move_bc_p{
    0%{
        transform: translateX(0) translateY(0);
    }
    16%{
        transform: translateX(-5px) translateY(0);
    }
    33%{
        transform: translateX(-10px) translateY(5px);
    }
    50%{
        transform: translateX(-10px) translateY(10px);
    }
    67%{
        transform: translateX(-5px) translateY(10px);
    }
    83% {
        transform: translateX(0) translateY(5px);
    }
    to {
        transform: translateX(0) translateY(0);
    }
}
@keyframes move_bc_g{
    0%{
        transform: translateX(0) translateY(0);
    }
    16%{
        transform: translateX(5px) translateY(0);
    }
    33%{
        transform: translateX(10px) translateY(5px);
    }
    50%{
        transform: translateX(10px) translateY(10px);
    }
    67%{
        transform: translateX(5px) translateY(10px);
    }
    83% {
        transform: translateX(0) translateY(5px);
    }
    to {
        transform: translateX(0) translateY(0);
    }
}
@keyframes move_bc_y{
    0%{
        transform: translateX(0) translateY(0);
    }
    16%{
        transform: translateX(5px) translateY(0);
    }
    33%{
        transform: translateX(10px) translateY(-5px);
    }
    50%{
        transform: translateX(10px) translateY(-10px);
    }
    67%{
        transform: translateX(5px) translateY(-10px);
    }
    83% {
        transform: translateX(0) translateY(-5px);
    }
    to {
        transform: translateX(0) translateY(0);
    }
}
@media only screen and (min-width: 1001px){
    .index-health-r-box:hover .index-health-more-line{
        transform-origin: 0% 50%;
        animation: move_line 1s linear 0s infinite;
    }
    .index-health-l-box,
    .index-health-title,
    .index-health-text,
    .index-health-more-box{
        opacity: 0;
    }
    .index-health-info-box.anima .index-health-l-box{
        animation: fade 1s ease 0s 1 both;
    }
    .index-health-info-box.anima .index-health-title{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .index-health-info-box.anima:nth-child(even) .index-health-title{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .index-health-info-box.anima .index-health-text{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .index-health-info-box.anima:nth-child(even) .index-health-text{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .index-health-info-box.anima .index-health-more-box{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .index-health-bc-purple-box{
        animation: move_bc_p 4s linear 0s infinite ;
    }
    .index-health-bc-green-box{
        animation: move_bc_g 4s linear 0s infinite ;
    }
    .index-health-bc-yellow-box{
        animation: move_bc_y 4s linear 0s infinite ;
    }
}