﻿form {
    margin: 0px;
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    max-width: 1400px;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
    margin: 0 auto;
}

header {
    background-color: #fff;
    height: 85px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
}

.logo {
    margin: 0;
    max-height: 50px;
}

.gs_header_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

#burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    height: 44px;
    border: 0;
    cursor: pointer;
    position: relative;
    width: 44px;
    padding: 10px 0;
    box-sizing: border-box;
}

.icon-bar {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 1px;
    background: #454545;
    transition: .3s;
    position: absolute;
}

#burger .icon-bar:nth-of-type(1) {
    top: 10px;
}

#burger .icon-bar:nth-of-type(3) {
    bottom: 10px;
}

#burger.open .icon-bar:nth-of-type(1) {
    transform: rotate(45deg);
    top: 22px;
}

#burger.open .icon-bar:nth-of-type(2) {
    transform: scale(0);
}

#burger.open .icon-bar:nth-of-type(3) {
    transform: rotate(-45deg);
    bottom: 20px;
}

.top_menu {
    display: flex;
    list-style: none;
    padding-left: 0;
}

.top_menu li a {
    text-decoration: none;
    color: #454545;
    font-size: 1rem;
}

.top_menu li:after {
    content: "｜";
    margin: 15px;
    color: #acacac;
}

.top_menu li:last-of-type:after {
    display: none;
}

@media screen and (max-width:1000px) {
    header {
        height: 75px;
    }
    .logo {
        max-width: 200px;
    }
    .top_menu {
        display: none;
    }
    #burger {
        display: flex;
    }
}

/* nav */

nav {
    position: fixed;
    top: 85px;
    height: 50px;
    width: 100%;
    background: rgba(116, 116, 116, 0.8);
    z-index: 100;
}

.nav_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding-left: 0;
    margin: 0;
    height: 50px;
}

.nav_box {
    position: relative;
}

.nav_box a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 5px;
    box-sizing: border-box;
    position: relative;
}

.nav_box:hover>a {}

.nav_box:hover>.under_line {
    background: #e7318c;
    width: 100%;
    height: 3px;
    transform: scale(1);
}

.sub_menu {
    position: fixed;
    height: 0;
    width: 100%;
    max-height: 270px;
    transition: .7s;
    left: 0;
    background: rgba(255, 255, 255, .8);
    overflow: hidden;
    top: 135px;
    display: block;
}

.nav_box:hover>.sub_menu {
    height: 100%;
}

.sub_menu_wrap {
    display: flex;
    justify-content: center;
}

.sub_menu_box {
    margin: 20px 0;
    padding: 0 20px;
}

.sub_menu_box_p {
    padding: 15px 0 30px 15px;
    box-sizing: border-box;
}

.sub_menu_box:hover .sub_menu_title a {
    border-bottom: 2px solid #e7318c;
    color: #e7318c;
}

.sub_menu_title a {
    display: block;
    color: #000;
    width: 100%;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #e7318c;
    transition: .3s;
    padding: 10px 5px;
}

.sub_menu_list {
    list-style: none;
    padding-left: 0;
    width: 150px;
}

/* 判斷子選項若超過6個時加入此class */

.two_column {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 200px;
    width: 300px;
}

.three_column {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 200px;
    width: 450px;
}

.sub_menu_list li {
    padding: .25rem;
    box-sizing: border-box;
    position: relative;
}

.sub_menu_list li:hover::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent #e7318c;
    left: -10px;
    top: 12px;
}

.sub_menu_list li a {
    display: block;
    font-size: 15px;
    color: #313131;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 200px;
}

.two_column li a, .three_column li a {
    max-width: 150px;
}

.sub_menu_list li:hover a {
    color: #fff;
    background: #949494;
}

.sub_menu_pic {
    position: relative;
    margin-top: 25px;
}

.sub_menu_pic::before {
    position: absolute;
    content: '';
    width: 260px;
    height: 170px;
    border: 1px solid #ff4ca5;
    left: 10px;
    top: 10px;
    transition: .3s;
}

.sub_menu_pic a {
    display: block;
}

.pic_box {
    width: 250px;
    height: 135px;
    overflow: hidden;
}

.sub_menu_pic a img {
    width: 100%;
    transform: scale(1);
    transition: .3s;
}

.sub_menu_pic a p {
    margin: .5rem;
    color: #313131;
    text-align: center;
    transition: .3s;
    max-width: 250px;
    line-height: 20px;
}

.sub_menu_pic:hover a img {
    transform: scale(1.05);
}

.sub_menu_pic:hover a p {
    color: #fff;
}

.sub_menu_pic:hover::before {
    background: rgba(63, 63, 63, 0.8);
    border: none;
    height: 175px;
    left: 0;
    top: 0;
}

.scroll-up{
    display: none;
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 42px;
    height: 42px;
    background: #ffffffa6;
    border-radius: 4px;
    transition: all .3s;
}

.scroll-up:hover {
    box-shadow: 0px 0px 6px 0px rgb(0, 156, 255);
}
.scroll-up img {
    position: relative;
    left: 3px;
    bottom: 0px;
}

/* 手機設定 */

.nav_m_bar {
    display: none;
}

@media screen and (max-width:1000px) {
    nav {
        background-color: #fff;
        height: 0%;
        overflow: hidden;
        transition: .5s;
        top: 75px;
    }
    nav>.container {
        padding: 0;
    }
    nav.open {
        height: calc(100% - 70px);
        overflow-y: auto;
    }
    .nav_wrap {
        flex-direction: column;
    }
    .nav_m_bar {
        display: block;
        width: 100%;
        background: rgb(0, 92, 173);
    }
    .nav_mt {
        margin-top: 20px;
    }
    .nav_mb {
        margin-bottom: 20px;
    }
    .nav_m_bar a {
        display: block;
        text-align: center;
        padding: 12px;
        box-sizing: border-box;
        font-size: 22px;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid #6e6e6e;
    }
    .nav_box {
        width: 70%;
    }
    .under_line {
        display: none;
    }
    .nav_box a {
        color: #414141;
        padding: 10px;
        font-size: 20px;
    }
    .nav_box>a::after {
        content: '';
        position: absolute;
        background: url(../images/nav_add.png) center center /cover;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        transition: .3s;
    }
    .nav_box>a.open::after {
        transform: translateY(-50%) rotate(45deg);
    }
    .sub_menu {
        display: none;
        position: inherit;
        top: 0;
        max-height: 100%;
        transition: unset;
        height: auto;
    }
    .sub_menu_wrap {
        flex-direction: column;
    }
    .sub_menu_box {
        padding: 5px;
        margin: 5px 0;
    }
    .sub_menu_title {
        display: none;
    }
    .sub_menu_title.sub_menu_title_open {
        display: block;
    }
    .sub_menu_title a {
        font-size: 18px;
        border-bottom: none;
    }
    .sub_menu_list {
        border-top: 1px solid #6e6e6e;
        border-bottom: 1px solid #6e6e6e;
        width: 100%;
    }
    .two_column, .three_column {
        max-height: 100%;
        width: 100%;
        flex-wrap: nowrap;
    }
    .sub_menu_list li {
        font-size: 15px;
    }
    .sub_menu_list li a {
        margin-left: 5px;
        font-size: 16px;
    }
    .sub_menu_box_p {
        display: none;
    }
}

/* footer */

footer {
    background: #2e3641;
    width: 100%;
    box-sizing: border-box;
}

.footer_bar {
    background: #303030;
    width: 100%;
}

.footer_bar_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
    padding-left: 0;
    margin: 0;
}

.footer_bar_wrap li {
    list-style: none;
    text-align: center;
    min-width: 100px;
}

.footer_bar_wrap li a {
    display: block;
    padding: 1rem 10px;
    box-sizing: border-box;
    transition: .5s;
    color: #fff;
    text-decoration: none;
}

.footer_bar_wrap li:hover a {
    background: #00deff;
}

.footer_wrap {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    box-sizing: border-box;
}

.footer_box {
    font-size: 14px;
    color: #fff;
    letter-spacing: .5px;
    padding: 5px;
    box-sizing: border-box;
    text-align: left;
}

.social_btn_wrap {
    list-style: none;
    padding-left: 0;
}

.social_btn_box {
    min-width: 200px;
    margin-bottom: 10px;
}

.social_btn_box:first-of-type {
    background: #3578E5;
}

.social_btn_box:nth-of-type(2) {
    background: #00b900;
}

.social_btn_box:nth-of-type(3) {
    background: rgb(99, 89, 201);
}

.social_btn_box:nth-of-type(4) {
    background: #ff0000;
}

.social_btn_box a {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    box-sizing: border-box;
    text-decoration: none;
    color: #fff;
}

.social_btn_box img {
    width: 30px;
    height: 30px;
    margin-right: 20px;
}


#footer-copyright {
    width: 100%;
    padding: 20px 0;
    color: #fff;
    background-color: #282e3a;
    text-align: center;
}

#footer-copyright a {
    color: #a6aab1;
    text-decoration: none;
}

@media screen and (max-width:800px) {
    input {
        -webkit-appearance: none;
        /* Safari 和 Chrome，常用於iOS下移除內建樣式 */
        -moz-appearance: none;
        /* FireFox */
        appearance: none;
    }
    .footer_bar_wrap {
        border: 1px solid #fff;
    }
    .footer_bar_wrap li {
        width: calc(50% - 2px);
        border: 1px solid #fff;
    }
    .footer_wrap {
        flex-wrap: wrap;
    }
    .footer_box {
        width: 100%;
    }
}