.navbar{
    min-height: 90px;
    margin-bottom: 0;
    border-radius: 0;
    background-color: #000000;
}

.nav-id>ul>li>a{
    font-size: 18px;
    font-weight: 500;
}
.navbar-brand {
    line-height: 100%;
    height: 90px;
    margin-left: 0;
}
.navbar-brand>img {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    max-width: 300px;
    max-height: 36px;
}

.nav-id li.active a {
    background: #C61E47;
    border-radius: 5px;
    color: #FFF;
}

.nav-id {
    top: 1.5em;
    position: absolute;
    right: 0;
}
.navbar {
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-width: 0 0 1px;
    transition: 1s;
}
.bg-navbar{
    background-color: #000!important;
    top: 0;
}

.nav.navbar-nav.navbar-right li > *{
    text-align: left;
}

.navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse {
    max-height: 100vh;
}

.navbar-collapse{
    overflow: hidden;
}

.nav-id > ul > li > a, .nav-id > ul > li > span {
    display: block;
    margin-left: 0;
    padding: 0.80em 1.2em;
    letter-spacing: 0;
    text-decoration: none;
    font-size: 16px;
    outline: 0;
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #fff;
    font-size: 1.1em;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
    color: #fff;
}

.navbar-toggle{

    height: 40px;
}

/*--清除預設--*/
.navbar-default .navbar-nav > li > a {
    color: #fff;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    /*background-color: #C61E47;*/
    /*border: none;*/
    color: #fff;
}

.navbar-default .navbar-nav > li{
    position: relative;
}
.navbar-default .navbar-nav > li:before{
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 1%;
    overflow: hidden;
    padding-left: 0.7em;
    padding-right: 0.7em;
    margin-bottom: -1.2em;
    border-bottom: 10px solid transparent;
    transition: all .5s;
}
.navbar-default .navbar-nav > li:not(.open):hover:before{
    left: 0;
    width: 100%;
    border-bottom: 10px solid #C61E47;
}
.navbar-default .navbar-nav > li.dropdown.open{

}


.dropdown-menu{
    background-color: #313131;
}
.dropdown-menu > li > a {
    padding: 8px 20px;
    line-height: 1.6;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background-color: #555;
}
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
    background-color: #C61E47;
    color: #fff;
}



@media (min-width: 768px){
    .navbar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand {
        margin-left: 0;
    }
    .navbar-right {
        float: right!important;
        margin-right: 15px;
    }
}



@media (max-width: 1200px){
    .nav-id > ul > li > a, .nav-id > ul > li > span {
        padding: 0.80em .4em;
        margin-left: 0.3em;

    }
}
@media (max-width: 767px){
    /*--navbar調整--*/
    .nav-id {
        top: 0;
        position: static;
        right: 0;
    }
    .navbar-brand {
        height: 50px;
    }
    .navbar {
        background-color: #000;
        min-height: 60px;
    }
    #myCarousel.carousel{
        margin-top: 60px;
    }
    .navbar-brand img{
        height: 24px;
    }
    /*----*/
    .nav.navbar-nav.navbar-right li > *{
        text-align: center;
    }
    .navbar-default .navbar-nav > li:not(.open):hover:before{
        border-bottom: none;
    }
}

@media (max-width: 420px){
    .navbar-brand img{
        height: 24px;
    }
}