/*-----------------------------------------------
    reset
-----------------------------------------------*/
*,
*::before,
*::after,
h1,
h2,
h3,
h4,
h5,
h6,
p,
button a,
li a,
.df-form {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Noto Sans JP', 'Noto Sans TC', 'PingFang TC', 'Heiti TC', 'Microsoft JhengHei', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    box-sizing: border-box;
    outline: none;
}


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

    *,
    *::before,
    *::after,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    button a,
    li a,
    .df-form {
        font-size: 15px;
    }
}

html,
body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button,
select,
textarea,
option,
input {
    line-height: inherit;
    border: 0;
    border-style: none;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    background: transparent;
}

html,
body,
header,
section,
article,
footer,
button,
li,
.df-width {
    position: relative;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
p,
button a,
li a,
.df-form {
    margin: 1% auto;
    line-height: 1.75;
    letter-spacing: 0;
    word-wrap: break-word;
    word-break: break-all;
}


/*-----------------------------------------------
    wrapper
-----------------------------------------------*/

.wrapper,
#wrapper {
    max-width: 1920px;
    overflow: hidden;
    margin: auto;
}

/*-----------------------------------------------
    link
-----------------------------------------------*/

a,
a:active,
a:hover,
a:focus {
    color: #000;
    -webkit-user-select: none;
    transition: all .3s;
    text-decoration: none;
    pointer-events: auto;
    outline: 0;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
}


/*-----------------------------------------------
    df-img
-----------------------------------------------*/

img {
    border: 0;
    border-style: none;
    vertical-align: middle;
}


img,
.img-rwd,
.img-rwd>img,
.img-rwd>a>img,
ul.img-rwd>li>img,
li>img,
li>a>img {
    max-width: 100%;
}

.img-auto {
    max-width: initial;
}

/*-----------------------------------------------
    df-button
-----------------------------------------------*/
button {
    cursor: pointer;
    font-size: .9rem;
    text-align: center;
    text-decoration: none;
    letter-spacing: .1rem;
}

button a {
    display: block;
    padding: 0 10px;
    width: 100%;
}

/*-----------------------------------------------
    df-list
    clear-both
-----------------------------------------------*/

ul {
    height: 100%;
}

ol {
    padding: 0 0 0 4%;
}

ul li {
    list-style: none;
}

li a {
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

ol>li>a {
    color: #007bff;
    text-decoration: none;
}


.clearfix:after {
    display: table;
    clear: both;
    content: '';
}

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

    ol>li,
    .ol>li>a {
        font-family: 'Microsoft JhengHei', serif;
    }
}


/*-----------------------------------------------
    df-video
-----------------------------------------------*/

.df-video {
    display: block;
    position: relative;
    padding: 0;
    padding-bottom: 56.25%;
    /*16by9*/
    height: 0;
    overflow: hidden;


    background: #000;
}

.df-video-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;

    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

/*-----------------------------------------------
    df-hr
-----------------------------------------------*/

hr {
    display: block;
    margin: 20px auto;
    width: 100%;
    height: 5px;
    border: 0;
    border-top: 1px solid #eee;
    /*border-bottom:5px dotted #fff;*/
}



/*  df-box
-------------------------------------------------
    - df-close
    - df-cover
    - box-content
    - box-open & close
------------------------------------------------*/

/*-----------------------------------------------
    df-close
-----------------------------------------------*/
.df-close:hover {
    transform: rotateZ(180deg);
}

.df-close {
    display: inline-block;
    position: absolute;
    top: -7%;
    right: 0;
    z-index: 999;
    z-index: 10;
    opacity: 1;
    width: 35px;
    height: 35px;
    cursor: pointer;
    overflow: hidden;
    transition: all .5s;
    transform-origin: 50% 50%;
}

.df-close::before,
.df-close::after {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -1px;
    width: 100%;
    height: 2px;
    border-radius: 5px;
    content: '';
    background: #fff;
}

.df-close::before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.df-close::after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/*-----------------------------------------------
    df-cover
-----------------------------------------------*/
.df-cover {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, .8);
}

/*-----------------------------------------------
    df-box
-----------------------------------------------*/
.df-box {
    /*display: none;*/
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    z-index: 100;
}

/*-----------------------------------------------
    box-content
-----------------------------------------------*/
.box-content {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    padding: 30px 20px;
    z-index: 2;
    width: 95%;
    height: 600px;
    max-width: 700px;
    border-radius: 5px;
    /*animation: box-open 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000) ;*/
    transition: all .3s;
    text-align: left;
    text-align: justify;
    background: #fff;
}

.box-text {
    margin: 0 0 0 10px;
    padding: 0 10px;
    width: 100%;
    max-height: 550px;
}

/*-----------------------------------------------
    box-open & close
-----------------------------------------------*/
.box-open {
    opacity: 1;
    transition: all .3s cubic-bezier(.390, .575, .565, 1.000);
    transform: scale(1);
}

.box-close {
    opacity: 0;
    transition: all .2s cubic-bezier(.390, .575, .565, 1.000);
    transform: scale(0);
}

@media screen and (max-width:768px) {
    .df-close {
        top: 8px;
        right: 6px;
        z-index: 11;
        width: 30px;
        height: 30px;
    }

    .df-close::before,
    .df-close::after {
        background: #000;
    }

    .df-box {
        padding: 0;
        /*! max-height: 90vh; */
        overflow: auto;
    }

    .box-content {
        padding: 50px 15px 5% 15px;
        height: auto;
        height: 95vh;
        overflow: hidden;
        background: #fff;
    }
}

/*-----------------------------------------------
    df-width
-----------------------------------------------*/

.df-width {
    position: relative;
    margin: auto;
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
    max-width: 768px;
}

/*-----------------------------------------------
    df-form
-----------------------------------------------*/
input.df-form,
select.df-form {
    display: block;
    margin: 20px auto;
    opacity: 1;
    width: 100%;
    height: 40px;
    min-width: 200px;
    max-width: 300px;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    text-align: center;
    letter-spacing: .05rem;
    background-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    /*隱藏預設的下拉圖示*/

    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

select.df-form {
    color: #979797;
}

input.df-form:focus,
select.df-form:focus {
    color: #000;
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.down_bg {
    cursor: pointer;
    color: #555;
    background: url(../images/down_bg.png) 98% center no-repeat;
}


/*-----------------------------------------------
    df-gotop
-----------------------------------------------*/
.gotop {
    /*! display: block; */
    display: none;
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 99;
    opacity: .5;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    color: #fff;
    border-radius: 100px;
    box-sizing: border-box;
    transition: all .3s;
    background: #000;
}

.gotop::after {
    display: block;
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    margin: auto;
    width: .8rem;
    height: .8rem;
    color: #fff;
    border-top: 1px solid;
    border-right: 1px solid;
    box-sizing: border-box;
    content: '';
    transform: rotate(-45deg);
}


.gotop:focus {
    outline: none;
}

.gotop:hover {
    opacity: .9;
    transition: all .3s ease;
    transform: scale(1.2);
}



@media screen and (max-width:767px) {
    .gotop {
        right: 5px;
        transform: scale(.7);
    }

    .gotop:hover {
        transform: scale(1);
    }
}

/*  hide
-------------------------------------------------
    - hidden-sm  : show 0-768px
    - hidden-xs  : show 0-480px
-------------------------------------------------*/

/* show 768px ↑ */
.pc {
    display: block;
    opacity: 1;
}

@media screen and (max-width:768px) {
    .pc {
        display: none;
        opacity: 0;
    }
}

/* show 0-768px */
.tablet {
    display: none;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
}

@media screen and (max-width:768px) {
    .tablet {
        display: block;
        width: auto;
        height: auto;
        pointer-events: auto;
        opacity: 1;
    }
}

/* show 0-480px */
.mobile {
    display: none;
    width: 0;
    height: 0;
}

@media screen and (max-width:480px) {
    .mobile {
        display: block;
        width: auto;
        height: auto;
    }
}

/* show 480px ↑ */
.no-mobile {
    display: block;
    opacity: 1;
}

@media screen and (max-width:480px) {
    .no-mobile {
        display: none;
        opacity: 0;
    }
}


/* pc-only 768px ↑ */
.pc-only {
    display: block;
    opacity: 1;
}

@media screen and (min-width:768px) {
    .pc-only {
        display: none;
        opacity: 0;
    }
}



/*-----------------------------------------------
    body
-----------------------------------------------*/

html,
body {
    background: #fff;
}


.section {
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

@media screen and (min-width:1921px) {

    html,
    body {
        background: #def6ff;
    }
}

/*-----------------------------------------------
    page-frame
-----------------------------------------------*/
.pages {
    position: relative;
    /*! right: 0; */
    /*! bottom: 0; */
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
}


.wrap-box {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: auto;
    padding: 0;
    z-index: 6;
    width: 100%;
    height: 95%;
    max-width: 1400px;
    transform: translate(calc(-50%), calc(-50%));

    /*! background: #000; */
}


.frame {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2;
}

@media screen and (min-width:1921px) {
    .frame {
        bottom: 15%;
    }
}

@media screen and (max-width:768px) {
    .frame {
        bottom: initial;
        top: 5%;
    }
}


/*-----------------------------------------------
    section-hover
-----------------------------------------------*/

.section.active {
    -webkit-animation: scaleA 0.5s ease 0s both;
}

.no-effect.active {
    -webkit-animation: scaleA 0s ease both;
}


.section.active .frame_img {
    -webkit-animation: scaleB .8s cubic-bezier(.250, .460, .450, .940) 0s both;
    pointer-events: none;
}


.fixing {
    -webkit-animation: fixing 0.2s ease 0s both;
}



@-webkit-keyframes scaleA {
    0%,30% {
        opacity: 0;
        -webkit-transform: scale(1.3);

        filter: blur(10px);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);

        filter: blur(0px);
    }
}

@-webkit-keyframes fixing {

    0%,
    80% {
        opacity: 0;

    }

    100% {
        opacity: 1;

    }
}

@-webkit-keyframes scaleB {
    0% {
        opacity: 1;
        -webkit-transform: scale(1.2);

        filter: blur(3px);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);

        filter: blur(0px);
    }
}




/*-----------------------------------------------
    fraction
-----------------------------------------------*/




.fraction-group {

    position: absolute;
    bottom: 0;

    height: 35%;
    /*! background: red; */
    width: 100%;
}


.fraction01 {
    position: absolute;
    top: 0px;
    left: 23%;
    z-index: 5;
    animation: fraction2 7s linear 0s 100 both;
}

.fraction02 {

    position: absolute;
    top: -31px;
    right: 4%;
    z-index: 1;
    animation: fraction 5s linear 1.5s 100 both;
}

.fraction03 {
    position: absolute;
    top: -73px;
    right: 10%;
    z-index: 1;
    animation: fraction2 4s linear 3s 100 both;
}

.fraction04 {
    position: absolute;
    top: -20px;
    left: 5%;
    z-index: 1;
    animation: fraction 5s linear 4.5s 100 both;
}

.fraction05 {
    position: absolute;
    top: -24px;
    left: 0%;
    z-index: 1;
    animation: fraction 6s linear 6s 100 both;
}



@media screen and (max-width:768px) {
    .fraction-group {

        bottom: initial;
        top: 50%;
        left: -20%;
    }
}


@keyframes fraction {
    0% {
        opacity: 0.8;
        transform: translate3d(10%, 85%, 0) scale(0.9);
    }


    25%,
    70% {
        opacity: 1;
    }

    90% {
        opacity: 0;
        transform: translate3d(30%, 50%, 0) scale(0.6);
    }

    100% {
        opacity: 0;
        transform: translate3d(30%, 50%, 0) scale(0.6);
    }
}

@keyframes fraction2 {
    0% {
        opacity: 0.8;
        transform: translate3d(30%, 80%, 0) scale(0.9);
    }

    30%,
    70% {
        opacity: 1;
    }

    95% {
        opacity: 0;
        transform: translate3d(50%, 20%, 0) scale(0.7);
    }

    100% {
        opacity: 0;
        transform: translate3d(50%, 20%, 0) scale(0.7);
    }
}

/*-----------------------------------------------
   title
-----------------------------------------------*/

.h2 {
    position: absolute;
    top: 90%;
    color: #000;
    font-size: 1.3rem;
    font-weight: 400;
    margin: auto;
    border-bottom: 0.04rem solid #000;
    width: 50%;
    position: relative;
    transition: all .3s ease;
    line-height: 2.2;
    z-index: 1;
    max-width: 750px;
}

.h2:after {
    content: '';
    width: 45px;
    height: 2px;
    background: #000;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .3s ease;

}


.h2:hover:after,
.h2:hover h2:after {
    content: '';
    width: 80px;
    transition: all .3s ease;
}


.h2 span {
    margin: 0% 0 0% 8px;
    color: #444;
}


@media screen and (min-width:1921px) {
.h2 {
    top: 70%;

}
}


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


    .h2 {
        margin: auto;
        padding: 0%;
        width: 80%;

        top: initial;
        font-size: 1.1rem;
    }



}