/*--- NAV 選單 ---*/
.topNav {
    position: fixed;
    top: 0;
    z-index: 9;
    width: 100%;
    height: 48px;
    font-size: 2rem;
    line-height: 45px;
    background-color: #fff;
    text-align: center;
    border-bottom: 3px solid #9d9d9d;
}
.topNav>ul {
    position: relative;
    width: 1100px;
    max-width: 98%;
    margin: 0 auto;
    height: 100%;
}
.topNav>ul>li {
    width: calc((100% - 23%) / 4);
    height: 100%;
    position: relative;
    -webkit-transition: 0.2s;
            transition: 0.2s;
}
.topNav>ul>li.logo_24h {
    width: 23%;
}
.topNav li.logo_24h img {
    width: 80%;
    margin-top: 12px;
}
.topNav>ul>li::before, .topNav>ul>li:hover::before {
    content: '';
    width: 20px;
    height: 50px;
    background: url('../img/nav_shadow_white.png') bottom center;
    position: absolute;
    z-index: 5;
    right: -20px;
    bottom: 0px;
}
.topNav .btn-group {
    width: 100%;
    height: 100%;
    display: block;
}
.topNav .btn-group .btn, .topNav a.installment {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background-color: inherit;
    font-size: 2rem;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-transition: 0.2s;
            transition: 0.2s;
}
.topNav .btn-group .btn span {
    font-weight: inherit;
    font-size: inherit;
}
.topNav .btn-group .btn span.glyphicon {
    font-size: 15px;
}
.topNav .btn-group .btn:active {
    box-shadow: inherit;
}
.topNav .btn-group.open .dropdown-toggle, .topNav a.installment:hover {
    box-shadow: inherit;
    border-radius: 0;
    color: #fff;
    background-color: #5bc0de;
}
.topNav .dropdown-menu {
    min-width: 100%;
    border: 0;
    border-radius: 0 0 10px 10px;
    margin-top: 3px;
    background: rgba(0,0,0,.9);
    padding: 0;
    overflow: hidden;
    box-shadow: 3px 3px 10px rgba(0,0,0,.5);
    border: 1px solid #404040;
    border-top: 0px;
}
.topNav .dropdown-menu>li>a, .topNav .dropdown-menu button  {
    text-align: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 300;
    padding: 8px 15px;
    -webkit-transition: 0.2s;
            transition: 0.2s;
}
.topNav .dropdown-menu>li>a:focus, .topNav .dropdown-menu>li>a:hover, .topNav .dropdown-menu button:hover {
    background-color: #ce4844 !important;
    color: #fff;
}
.topNav .dropdown-menu>li {
    border-top: 1px dotted rgba(255,255,255,.3);
}
.topNav .dropdown-menu>li:first-child, .topNav .dropdown-menu button:first-child {
    border: 0;
}
.topNav ul.dropdown-menu.bank_promo {
    width: 450px;
}
.topNav ul.dropdown-menu.bank_promo a {
    text-align: left;
    white-space: inherit;
    line-height: 1.5;
}
.topNav .bank_promo small {
    font-weight: 500;
    background-color: #5bc0de;
    padding: 0 5px;
    border-radius: 4px;
}
.topNav .bank_promo small, .topNav .bank_promo strong {
    vertical-align: 0;
}
.topNav .dropdown-menu button {
    background-color: transparent;
    border: 0;
    width: 100%;
    border-top: 1px dotted rgba(255,255,255,.3);
    display: block;
    line-height: 1.5;
}
.topNav ul.dropdown-menu.bank_choice {
    padding: 0 10px;
}
.topNav ul.dropdown-menu.bank_choice>li {
    width: calc(100% / 3 - 3.5px) !important;
    display: inline-block;
    border: 0;
    padding: 10px 0 0px;
}
.topNav ul.dropdown-menu.bank_choice>li.jcb {
    width: 100% !important;
}
.topNav ul.dropdown-menu.bank_choice>li a {
    background-color: #ce4844;
    border-radius: 30px;
}
.topNav ul.dropdown-menu.bank_choice>li.bankData {
    width: 100% !important;
    padding-bottom: 10px;
}
.topNav ul.dropdown-menu.bank_choice>li.bankData a {
    display: inline-block;
    clear: inherit;
    width: calc(100% / 4 - 1px);
    background-color: #5bc0de;
    margin-bottom: 5px;
}
.topNav>ul>li:nth-child(2) {
    border-left: 0;
}
.topNav>ul>li:nth-child(2) .btn {
    color: #fff;
    background-color: #5bc0de; 
}
.topNav>ul>li:nth-child(2) span.glyphicon {
    -webkit-animation: move 0.7s ease-out infinite;
            animation: move 0.7s ease-out infinite;
}

/*--- END // NAV 選單 ---*/
.mobile_header {
    text-align: center;
    display: none;
    background-color: #fff;
    position: relative;
    border-bottom: 1px dotted #ccc;
    /* padding: 3px 10px; */
}
.mobile_header .return {
    width: 8%;
    margin: -5px 0 0 5px;
    float: left;
}
.mobile_header .logo {
    width: 50%;
    margin: 9px auto 7px;
}
.media_share {
    position: absolute;
    top: 0;
    right: 13px;
    width: 10%;
    /* background-color: red; */
}
.media_share .dropdown-toggle {
    opacity: 0.5;
    width: 68%;
    float: right;
}
.media_share .dropdown-menu {
    left: inherit;
    right: 0;
    margin-top: 5px;
    top: 7vw;
}
.media_share .dropdown-menu a.flex {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    padding: 0;
    line-height: 2;
}
.media_share .dropdown-menu li {
    padding: 4px 10px;
}
.media_share .line, .media_share .fb {
    width: 30px;
    padding: 3px;
    background-color: #00c603;
    border-radius: 4px;
    margin-right: 5px;
}
.media_share .fb {
    background-color: #335a9d;
}
.mobile_header img {
    width: 100%;
    display: block;
}



/*--- 分享選單 ---*/
.right_box {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 8px;
    z-index: 5;
    transition: 0s;
}
.right_box img {
    width: 100%;
}
a.fb_share {
    display: block;
    background-color: #335a9d;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    padding: 6px 5px 0;
    overflow: hidden;
}
a.line_share {
    display: block;
    background-color: #00c603;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    padding: 7px 6px 0;
    margin-top: 10px;
    overflow: hidden;
}
.gobuy {
    width: 230px;
    position: fixed;
    right: 0;
    bottom: -5px;
    z-index: 99;
}
.share_box {
    padding: 10px 0 0 10px;
}
.share_box a.fb_share, .share_box a.line_share {
    width: 43px;
    height: 43px;
}
.share_box a.line_share {
    margin: 0 5px 0;
}



/*--- PC 銀行側邊選單 ---*/
.menu_arrow {
    position: fixed;
    width: 30px;
    z-index: 999;
    top: 48px;
    right: 0;
    cursor: pointer;
}
#arrowIn {
    display: none;
}
.menu_box {
    width: 110px;
    position: fixed;
    z-index: 999;
    top: 83px;
    right: 0;
    color: #d6d6d6;
}
.menu_title {
    width: 100%;
    text-align: center;
    color: #0d424d;
    font-size: 18px;
    padding: 0;
    margin-bottom: 2px;
    font-weight: bold;
    position: relative;
}
.menu_title::before {
    content: '';
    width: 130px;
    height: 46px;
    background: url('../img/bank_01.png') top left no-repeat;
    position: absolute;
    z-index: -1;
    top: -3px;
    right: 0;
}
.bank_wrap{
    width: 100%;
    overflow: hidden;
    margin: 0;
    background-color: rgba(106, 106, 106, 0.9);
}
a.to_bank {
    float: left;
    width: calc(100% / 2 - 1px);
    text-align: center;
    padding: 5px 0;
    margin: 0 1px 1px 0;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
a.to_bank:hover, .menu_box a.other:hover {
    background-color: #ce4844;
    transition: 0.3s;
}

.goTOP {
    width: 100%;
    text-align: center;
    padding: 5px 0;
    font-size: 14px;
    cursor: pointer;
    color: #0d424d;
    position: relative;
}
.goTOP::before {
    content: '';
    width: 130px;
    height: 46px;
    background: url('../img/bank_01.png') top left no-repeat;
    position: absolute;
    z-index: -1;
    top: -16px;
    right: 0;
    -webkit-transform: scaleY(-1);
            transform: scaleY(-1);
}
.menu_box a.other {
    float: none;
    display: block;
    width: 100%;
    background-color: #16181b;
    color: #fdff60;
    padding: 5px 0;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid rgba(106, 106, 106, 0.9);
    transition: 0.3s;
}
.menu_box a.jcb {
    background-color: #eb0000;
    color: #ffffff;
}
.menu_box a.jcb:hover {
    background-color: #00aa18;
}

/*--- PC 銀行側邊選單 END ---*/

.mobile      { display: none; }
@-webkit-keyframes move {
    from    { transform: translateY(0px); }
    to      { transform: translateY(3px); }
}
@keyframes move {
    from    { transform: translateY(0px); }
    to      { transform: translateY(3px); }
}



@media only screen and (max-width: 1400px) {
    .gobuy                                      { width: 172px; }
}
@media only screen and (max-width: 1280px) {
    a.to_bank                                   { padding: 3px 0; }
}
@media only screen and (max-width: 1130px) {
    .gobuy                                      { width: 160px; }
}
@media only screen and (max-width: 1024px) {
    .topNav                                     { font-size: 1.8rem; }
    .topNav li.logo_24h img                     { margin: 12px auto 0; }
}
@media only screen and (max-width: 768px) {
    .topNav .pc                                 { display: none !important; }
    .right_box                                  { display: block; }
    .mobile                                     { display: block; }
    .menu_arrow, .menu_box                      { display: none; }
    .mobile_header                              { display: block; }
    .topNav>ul                                  { max-width: 100%; }
    .topNav                                     { position: relative; border-bottom: 0; font-size: 1.8rem; line-height: 1;     height: auto; }
    .topNav>ul>li                               { width: calc(100% / 4); border-left: 1px dotted #ccc; position: static; }

    .topNav>ul>li.logo_24h                      { display: none; }
    .topNav span.mobile                         { display: inline-block; }
    .topNav .dropdown-menu                      { margin-top: 0; border-top: 3px solid #5bc0de; border-radius: 0; width: 100% !important; }
    .topNav .dropdown-menu>li                   { width: 100% !important; }
    .topNav .btn-group .btn, .topNav a.installment                      { font-size: 3.7vw; font-weight: 500; padding: 13px 0; }
    .topNav .btn-group .btn span.glyphicon                              { font-size: inherit; vertical-align: -2px; }
    .topNav .btn-group, .topNav .btn-group .btn, .topNav a.installment  { position: static; }
    .topNav .dropdown-menu>li>a, .topNav .dropdown-menu button          { font-size: 4vw; font-weight: 400; }
    .fixed                                      { position: fixed; }
}
@media only screen and (max-width: 767px) {
    .mobile_header .return                      { width: 9%; }
    .gobuy                                      { display: none; }
    .topNav                                     { font-size: 14px; height: auto; line-height: 1.3; }
    .topNav a                                   { padding: 13px 3px; }
    .topNav li span                             { font-size: 11px; font-weight: normal; }
    .topNav li:nth-child(2)                     { width: calc((100% / 4) + 10px); }
    .topNav li:nth-child(3)                     { width: calc((100% / 4) - 10px); }
    .topNav li .sub_menu a      { font-size: 14px; line-height: 1.5; }

}
@media only screen and (max-width: 400px) {
    .topNav                 { font-size: 13px; height: auto; line-height: 1.3; }
}
@media only screen and (max-width: 350px) {
    
}