﻿/*--------------header-style1-----------------*/
.header-style1 {
    position: relative;
    z-index: 999;
    display: block;
    width: 100%;
    background-color: #f5f5f5;
}
.header-style1 .header-box {
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    top: -40px;
    box-sizing: border-box;
    border: 1px solid #601986;
}
#menu{
    position: relative;
    top: -40px;
}
.header-line-box {
    width: 100%;
    height: 6px;
    display: block;
    background: #c42272;
    position: relative;
    z-index: 3;
}
.rwd-menu {
    display: none;
    width: 100%;
    height: 50px;
    line-height: 50px;
    margin: 0 auto;
    color: #cf000d;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    box-shadow: 0 5px 10px rgba(0,0,0,0.35);
    background-color: #FFF;
    box-sizing: border-box;
}
.header-style1 .header-menu-bg {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
.header-style1 .header-menu-bg span {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    background-image: url(../img/front/body-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    opacity: 0.2;
}
.header-style1 .header-menu-box {
    width: 100%;
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    text-align: center;
    font-size: 0;
    background-color: #FFF;
    box-shadow: rgba(0,0,0,0.75)0px 0px 4px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.header-style1 .header-menu {
    position: relative;
}
.header-style1 .header-menu> li {
    min-width: 140px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    padding: 0 10px;
    box-sizing: border-box;
    transition: all .5s ease;
}
.header-style1 .header-menu> li:nth-child(2){
    margin-left: 0;
}
.header-style1 .header-menu> li.header-industry {
    min-width: 218px;
    margin-right: 0;
}
/* -------------------------------------------------------------- */

.header-menu-title {
    font-size: 18px;
    position: relative;
    color: #601986;
    display: block;
    line-height: 72px;
    z-index: 2;
    letter-spacing: 0.06em;
    transition: all .5s ease;
}
div.header-menu-title{
    cursor: context-menu;
}


.rwd-menu {
    display: none;
    width: 100%;
    height: 50px;
    line-height: 50px;
    margin: 0 auto;
    color: #601986;
    text-align: center;
    font-size: 18px;
    position: relative;
    box-shadow: rgba(0,0,0,0.75)0px 0px 4px;
    background-color: #FFF;
    box-sizing: border-box;
}

.rwd-menu:after {
    content: '';
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 8px solid transparent;
    border-top: 8px solid #601986;
    border-left: 8px solid transparent;
    display: block;
    position: absolute;
    bottom: calc(50% - 4px);
    right: 2%;
}




/*漢堡樣式1*/
.rwd-menu-style1> span:nth-child(even){
    margin: 4px auto;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(1){
    transform: scale(1);
    transform-origin: left;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(3){
    transform: scale(1);
    transform-origin: right;
    transition: all .4s linear;
}
.rwd-menu-style1> span:nth-child(4){
    top: -19px;
    transform:  scale(0,1) rotate(-45deg);
}
.rwd-menu-style1> span:nth-child(4){
    display: none;
}
.rwd-menu-style1 .rwd-menu-bth-line{
    transform: rotate(-45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line2{
    transform: rotate(45deg);
}
.rwd-menu-style1 .rwd-menu-bth-line,
.rwd-menu-style1 .rwd-menu-bth-line2{
    position: absolute;
    top: 6px;
    left:0;
    width: 100%;
}
.rwd-menu-style1 .rwd-menu-bth-line span,
.rwd-menu-style1 .rwd-menu-bth-line2 span{
    transform:  scale(0,1);
    transition: all .5s ease;
    position: relative;
}
.rwd-menu-style1.active .rwd-menu-bth-line span,
.rwd-menu-style1.active .rwd-menu-bth-line2 span{
    transform:  scale(1,1) ;
    transition-delay: .1s;
}
.rwd-menu-style1.active> span:nth-child(1),
.rwd-menu-style1.active> span:nth-child(2),
.rwd-menu-style1.active> span:nth-child(3){
    transform: scale(0,1);
}
.rwd-menu-style1.active> span:nth-child(odd){
    transform: scale(0);
    transition: all .4s linear;
    transition-delay: 0s;
}

.header-menu> li:hover, .header-menu> li.active {
    background-color: #601986;
}
.header-menu> li:hover a, .header-menu> li.active a {
    color: #FFF;
    font-weight: bold;
}

@media only screen and (max-width: 1200px){
    .header-style1 .header-box{
        width: 1000px;
        margin: 0 auto;
    }
    .header-style1 .header-menu> li{
        min-width: 114px;
    }
    .header-style1 .header-menu> li.header-industry {
        min-width: 200px;
    }
}

@media only screen and (max-width: 1000px){
    .main-title-icon,
    .main-title{
        opacity: 1;
    }
    .rwd-menu {
        display: block;
        position: relative;
    }
    .header-style1 .header-box{
        width:750px;
        position: relative;
        top: -29px;
    }
    .header-style1 .header-menu> li{
        min-width: initial;
        width: 100%;
        display: block;
        padding: 0;
        box-shadow: rgba(0,0,0,0.5)0px 0px 1px;
    }
    .header-style1 .header-menu> li:last-child{
        border-bottom: 0;
    }
    .header-menu-title{
        font-size: 16px;
    }
    .header-style1 .rwd-menu{
        display: block;
    }
    .header-style1 .header-menu-box{
        display: none;
        position: absolute;
        box-shadow: none;
        border: 1px solid #601986;

    }
    .header-menu-title{
        height: inherit;
        line-height: inherit;
        display: block;
        padding: 10px;
        box-sizing: border-box;
    }
    .rwd-header-menu-sytle1 .header-menu{
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 3;
        display:         flex;
        display: -webkit-flex;
        align-items: center;
        -webkit-align-items: center;
        justify-content: center;
        -webkit-justify-content: center;
        flex-direction:column;
        background-color: #f5f5f5;
        transition: none;
    }
   
    .rwd-header-menu-sytle1.header2 .header-menu{
        width: 100%;
    }
    
    .rwd-header-menu-sytle1 .header-menu> li{
        display: block;
        margin: 0;
        margin-bottom: 20px;
    }
    .rwd-header-menu-sytle1 .header-menu> li:last-child{
        margin-bottom: 0;
     }
     #menu{
         position: relative;
         top: -29px;
     }

}

@media only screen and (max-width: 750px){
    .header-style1 .header-box{
        width: 550px;
    }
}

@media only screen and (max-width: 550px){
    .header-style1 .header-box{
        width: 95%;
    }
}




/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
	.header-box{
        animation: fadeInUp 1s ease 0s 1  both;
    }
}

