@charset "utf-8";





/*.detail_row開始-------------------*/

.products .detail_row {
    max-width: 1240px;
    margin: auto;
    display: flex;
    /*margin-bottom: 80px;*/
    padding: 0 20px;
    align-items: center;
}

.products .detail_row:nth-child(2) {
    padding-top: 35px;
}

.products .detail_row:last-child {
    margin-bottom: 135px;
}

.products .detail_row:nth-child(odd) {
    flex-direction: row-reverse;
}

.products .detail_row_img,
.products .detail_row_text {
    width: 50%;
    overflow: hidden;
}







/*圖片設定*/

.products .detail_row:nth-child(even) .detail_row_img {
    /*padding-right: 50px;*/
    display: flex;
    justify-content: flex-end;
}

.products .detail_row:nth-child(odd) .detail_row_img {
    /*padding-left: 50px;*/
}

.products .detail_row_img {
    font-size: 0;
}

.products .detail_row_img img {
    max-width: 600px;
    max-height: 300px;
}

.products.load .detail_row_img img,
.products.on .detail_row_img img {
    transform: translateY(101%);
}






/*文字設定*/

/* .products .detail_row:nth-child(even) .detail_row_text {
    padding-left: 120px;
} */

/* .products .detail_row:nth-child(odd) .detail_row_text {
    padding-left: 110px;
    padding-right: 50px;
} */

.products .detail_row_text {
    padding: 0 50px
}


.products.load .detail_row_text div,
.products.on .detail_row_text div {
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.products .detail_row_text h5 {
    font-size: 1.3125rem;
    letter-spacing: 1px;
}

.products .detail_row_text div>p {
    /* max-width: 460px; */
    font-size: .875rem;
    font-family: MyriadPro-Regular, 微軟正黑體;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-top: 30px;
}

.products .detail_row_text span {
    margin-top: 30px;
    display: flex;
}

.products .detail_row_text span p {
    cursor: pointer;
}

.products .detail_row_text span p:before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background-color: #000;
    margin-bottom: 30px;
}






/*.detail_row結束-------------------*/


/*waypoint專區-------------*/

.products.on .show .detail_row_img img {
    animation: allin0 1.2s both;
}

.products.on .show .detail_row_text div {
    animation: allin0 1.2s both;
}



/*退場動畫*/

.products.off .detail_row_img img {
    animation: zoomOut 1s both .4s;
}

.products.off .detail_row_text div {
    animation: zoomOut 1s both .6s;
}


/*---------max-width: 1024px--------------------------------------------------------*/

@media only screen and (max-width: 900px) {

    .products .detail_row,
    .products .detail_row:nth-child(odd),
    .products .detail_row:last-child {
        flex-direction: column;
        padding: 0;
        margin-bottom: 8vh;
    }


    .products .detail_row_img,
    .products .detail_row_text {
        width: 100%;
    }


    /*圖片設定*/
    .products .detail_row:nth-child(even) .detail_row_img,
    .products .detail_row:nth-child(odd) .detail_row_img {
        padding-right: 0px;
        padding-left: 0px;
    }

    .products .detail_row_img img {
        max-width: 100%;
        max-height: 100%;
    }


    /*文字設定*/
    .products .detail_row:nth-child(even) .detail_row_text,
    .products .detail_row:nth-child(odd) .detail_row_text {
        /* padding: 0 10px; */
        padding: 0 5vw;
        padding-top: 4vh;
    }

    .products .detail_row_text div>p {
        max-width: 100%;
    }
}








/*dermalogica內頁---------------------------------------------*/

.dermalogica {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    overflow: hidden;
    background-color: #fff;
    text-align: center;
    z-index: 6;
    /*須注意與其他頁面的關西*/
}



/*.close_icom--------------*/

.close_icom {
    position: absolute;
    top: 3vw;
    left: calc(97vw - 1rem);
    width: 30px;
    height: 30px;
    transform: rotate(45deg);
    cursor: pointer;
}

.close_icom span:nth-child(1) {
    display: block;
    width: 0px;
    height: 1px;
    background-color: #000;
    position: absolute;
    left: 0px;
    top: calc(50% - 1px);
    transition: all 1s ease;
}

.open .close_icom span:nth-child(1) {
    width: 30px;
    transition: all .8s ease .8s;
}

.close_icom span:nth-child(2) {
    display: block;
    width: 1px;
    height: 0px;
    background-color: #000;
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
    transition: all .6s ease .8s;
}

.open .close_icom span:nth-child(2) {
    height: 30px;
    transition: all .6s ease 1.4s;
}



/*.detail_top---------------*/

.detail_top {
    width: 110px;
    position: absolute;
    left: calc(50vw - 55px);
    transform: translateY(-100%);
}

.detail_top p {
    font-size: .9375rem;
}

.detail_top p:before {
    content: "";
    display: block;
    width: 1px;
    height: 60px;
    background-color: #000;
    margin-left: 50%;
    margin-bottom: 15px;
}


/*.detail 標題---------------------*/

.dermalogica .detail_title {
    width: 100vw;
    margin-top: 160px;
    overflow: hidden;
    /*將之前的頁面所設定的translateY歸零*/
    transform: translateY(0);
}

.dermalogica .detail_title div {
    transform: translateY(-100%);
}

.dermalogica .detail_title p {
    font-size: 1.5rem;
    margin-top: 0;
}


/*detail slick------------------*/

.detail_slick_bg {
    width: 100vw;
    margin-top: 30px;
    overflow: hidden;
}

.detail_slick {
    width: calc(100% - 20px);
    max-width: 1024px;
    margin: auto;
    position: relative;
    transform: translateY(-100%);
}

.detail_slick ul li {
    margin: 0 5px;
}


/*箭頭設定*/

.slick_prev,
.slick_next {
    position: absolute;
    top: 50%;
    color: #fff;
    cursor: pointer;
}

.slick_prev {
    left: 25px;
}

.slick_next {
    right: 25px;
}


/*訂閱按鈕*/

.revervation {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 210px;
    height: 50px;
    background-color: #fff;
}

.revervation p {
    padding-top: 22px;
    font-size: .75rem;
    letter-spacing: 1px;
    color: #000;
}

.detail_text {
    max-width: 690px;
    margin: auto;
    margin-top: 75px;
    overflow: hidden;
}

.detail_text p {
    font-size: .875rem;
    font-family: MyriadPro-Regular, 微軟正黑體;
    letter-spacing: 1px;
    line-height: 1.5;
    opacity: 0;
}


/*detail footer-------------------*/

.detail_ft>span {
    display: block;
    width: 70%;
    max-width: 300px;
    height: 10px;
    background-color: #E9E9E9;
    margin: 0 auto;
    margin-top: 60px;
}

.social_media_icom {
    margin: 50px;
    font-size: .875rem;
}

.social_media_icom a {
    padding: 0 15px;
}

.detail_ft p {
    font-size: .875rem;
    position: relative;
    margin-bottom: 115px;
    margin-top: 120px;
}

.detail_ft p:before {
    content: "";
    display: block;
    width: 80px;
    height: 1px;
    background-color: #000;
    margin-left: calc(50% - 40px);
    margin-bottom: 30px;
}


/*進場動畫*/

.dermalogica.load {
    position: fixed;
    height: 100%;
    transition: all 1s ease;
}


.dermalogica.open {
    position: fixed;
    height: 100%;
    overflow: scroll;
}

.open .detail_top {
    animation: allin0 .8s forwards;
}

.dermalogica.open .detail_title div {
    animation: allin0 .8s forwards .4s;
}

.open .detail_slick {
    animation: allin0 .8s forwards .8s
}

.open .detail_text p {
    animation: fadeInDown 1s forwards 1.2s;
}


/*退場動畫*/

.dermalogica.close {
    width: 100%;
    height: 0%;
    transition: all .4s ease-out 1.2s;
}

.close .detail_top {
    animation: allout0 .4s both .9s;
}

.dermalogica.close .detail_title div {
    animation: allout0 .4s both .6s;
}

.close .detail_slick {
    animation: allout0 .5s both .3s;
}

.close .detail_text p {
    animation: fadeOutUp .6s both;
}




/*---------max-width: 1024px--------------------------------------------------------*/

@media only screen and (max-width: 1024px) {
    .close_icom {
        top: 20px;
        right: 20px;
        left: auto;
    }

    .dermalogica .detail_title {
        margin-top: 130px;
    }

    .detail_text {
        padding: 0 20px;
    }

    .detail_row_text{
        padding: 0 5vw;
    }

    .slick_prev,
    .slick_next {
        display: none;
    }

    .revervation {
        display: none;
    }

    .detail_text {
        margin-top: 40px;
    }

    .detail_ft p {
        margin-top: 90px;
        margin-bottom: 80px;
    }

    /*社群軟體icom 間距*/
    .social_media_icom a {
        padding: 0 2vw;
    }
}