/*------------------------------------------------------
	　　　　　　　   ヘッダー
------------------------------------------------------*/


#header {
    line-height: 1;
    word-break: break-all;
    -webkit-font-smoothing: antialiased;
    border-bottom: none!important;
    width: 100%;
    background-color:#000;
    letter-spacing: 1px;
    font-family: "FP-ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic", "ヒラギノ角ゴ Pro W3", Osaka, "ＭＳ Ｐゴシック", Frutiger, Helvetica, sans-serif;
}

#header a {
    text-decoration: none;
    opacity: 1;
    -webkit-transition: opacity 0.3s linear;
    transition: opacity 0.1s linear;
    height:100%;
}

#header a:hover {
    text-decoration: none !important;
}

#header li {
    list-style-type: none;
}


/* マーズフラッグ検索窓 */
.head_search_modal {
    position: absolute;
    top: 0;
    right: 0;
}

.mf_finder_header {
    padding-top: 8px;
}

.mf_finder_header .mf_finder_searchBox {
    margin-right: 0;
}

.mf_finder_header .mf_finder_searchBox_items {
    width: 150px;
    padding: 0 10px;
    border: 1px solid #999;
    border-radius: 18px;
    background-color:#B3B3B3;
}

.mf_finder_header .mf_finder_searchBox_query_input {
    width: 100%;
    min-height: 30px;
    height: auto;
    background-color: transparent;
    font-size: 12px;
    border: none;
    outline: 0;
}

.mf_finder_header .mf_finder_searchBox_submit {
    background-color: transparent;
    color: #999;
    font-size: 20px;
    padding: 0;
    margin: -2px 5px 0 0;
    outline: 0;
}

.mf_finder_header .mf_finder_searchBox_submit span {
    margin: 0;
}

.mf_finder_searchBox_suggest_items {
    width: auto;
    min-width: 150px;
    z-index: 10;
    right: -30px;
}

.mf_finder_searchBox_suggest_item a {
    white-space: nowrap;
    color: #fff !important;
    padding: 10px 6px;
    text-align: left;
    font-size: 14px;
}


/* ヘッダー */

#header .container {
    max-width: 1260px;
    padding: 0 30px;
    width: 100%;
}

#header .navbar-collapse {
    padding: 0;
    width: calc(100% - 150px);
}

.navbar-default {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 10px;
    margin-bottom: 0px;
    width:100%;
}

.navbar-brand {
    padding: 5px 0px;
}

.navbar-brand img {
    max-width: 130px;
    margin-top:9px;
}

.navbar-search {
    display: none;
}

#header h2.navbar-nav {
    font-size: 12px;
    color: #FFF;
    background-color: #45464B;
    padding: 0;
    width: 100px;
    text-align: center;
    height: 30px;
    font-weight: normal;
    line-height: 2.6;
    clear: none;
    margin: 10px 25px 12px 25px !important;
}

ul.navbar-nav {
    display: flex;
}

ul.navbar-nav:first-of-type > li {
    margin: 0 2px;
}

ul.navbar-nav:first-of-type > li > a {
	color:#ccc !important;
    font-size: 15px;
    cursor: pointer;
    overflow:hidden;
}

ul.navbar-nav:first-of-type > li > a:hover::after {
    content: "";
    display: block;
    background-color: #fff;
    width: 60%;
    height: 5px;
    margin: 17px auto -20px;
    border-radius: 100% 100% 0 0;
    box-shadow: 0px 0px 15px 15px #fff;
    opacity:0.6;
}



/* 購入ボタン */
ul.navbar-nav:first-of-type .cart_btn a {
    padding-top: 12px;
    margin-bottom: -1px;
}

#header .cart_btn img {
    vertical-align: middle;
    height: 24px;
}

#header .cart_btn span {
    vertical-align: middle;
}


/* 個人・法人のお客様 遷移ボタン */
ul.navbar-nav:last-of-type {
    justify-content: flex-end;
    float: none;
    margin-top: 0;
    margin-right: 15px;
}

ul.navbar-nav:last-of-type li {
    background-color:#3E3E45;
    padding-right:10px;
    border-radius:18px;
    margin-top:10px;
}

ul.navbar-nav:last-of-type li:hover {
    background-color:#555;
}

ul.navbar-nav:last-of-type a {
    color: #fff !important;
    font-size: 12px;
    padding: 5px 15px;
    margin-top: 0;
}

ul.navbar-nav:last-of-type a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
    transform-origin: center center;
    border-radius: 2px;
    position: absolute;
    right: 5px;
    top: 50%;
    margin-top: -4px;
}


/* グローバルナビ展開表示 */
.navbar-default .navbar-nav > .open > a {
    background-image: linear-gradient(to bottom, #000 0%, #000 0%);
    box-shadow: none;
}

.open_active {
    padding-bottom: 12px !important;
    background-color:transparent;
}

.open_active::after{
    content: "";
    display: block;
    background-color: #fff;
    width: 60%;
    height: 5px;
    margin: 20px auto -20px;
    border-radius: 100% 100% 0 0;
    box-shadow: 0px 0px 15px 15px #fff;
    opacity:0.6;
}

.open_active:hover::after{
    margin: 20px auto -20px !important;
}

.navbar-nav .btn:active {
    box-shadow: none;
}


/* メガドロップダウンメニュー */

.navbar-nav > li > .dropdown-menu {
    border-radius: 0;
}

.mega-dropdown {
    position: static !important;
}

.mega-dropdown-menu {
    background-color: rgba(247, 249, 248, 0.97);
    width: calc(100vw - 10px) !important;
	margin-left: calc((100% - 100vw) / 2) !important;	
    margin-right: calc((100% - 100vw) / 2) !important;
    padding: 30px 0;
    border: none;
    border-top: 1px solid #ccc;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.mega-dropdown-menu > section {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    width: 1190px;
    margin: 0 auto 20px auto;
}

.mega-dropdown-menu > section > div {
    font-size: 26px;
    line-height: 1.1;
    text-indent: 1em;
}

.mega-dropdown-menu > section .close-menu {
    cursor: pointer;
    font-size: 40px;
    line-height: 0.6;
}

.mega-dropdown-menu > section .close-menu:hover {
    color: #ccc;
}

.mega-dropdown-menu ul {
    display: flex;
    flex-flow: row wrap;
    padding: 0;
    margin: 0 auto 2em;
    width: 1190px;
}



/* メガドロップダウンメニュー内部 */

#header .mega-dropdown-menu li {
    width: 25%;
    height: 100%;
    padding: 1em 0.5em;
}

#header .mega-dropdown-menu li:nth-of-type(n+5) {
    margin-top:1em;
}

#header .mega-dropdown-menu li a{
	color:#333;
}

#header .mega-dropdown-menu li h3 {
    font-family: "FP-ヒラギノ角ゴ ProN W6";
    font-weight: bold;
    font-size:16px;
    margin: 1em;
}

#header .mega-dropdown-menu li p {
	line-height: 1.2;
    margin: 0 0 0 1em;
}


#header .mega-dropdown-menu li p a {
    display: inline-block;
    position: relative;
    padding: 0 0 0 1em;
    margin: 0.3em 0;
    width:100%;
}

#header .mega-dropdown-menu li p a:hover {
    text-decoration: underline !important;
}

#header .mega-dropdown-menu li p a:before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #333;
    border-right: 1.5px solid #333;
    transform: rotate(45deg);
    transform-origin: center center;
    position: absolute;
    margin: 4px 0 0 -1em;
}


/* レスポンシブ対応 */
.mega-dropdown-menu li img,
.navbar-brand img,
.b2b_header .mega-dropdown-menu li div:first-child img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.navbar-brand img {
    min-width: 80px;
}

@media (min-width: 769px) and (max-width: 1200px) {
    #header {
        width: auto;
    }

    #header .container {
        min-width: 1060px;
        width:100vw;
        padding: 0 30px;
    }

    h2.navbar-nav {
        margin: 10px 15px 10px 26px !important;
    }

    ul.navbar-nav a {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mega-dropdown-menu {
        width: 100vw !important;
    }

    .mega-dropdown-menu > section{
        width:100%;
    	padding-right:1em;
    }

    .mega-dropdown-menu span,
    .mega-dropdown-menu ul {
        width: 90vw;
    }

}

@media (min-width: 769px) and (max-width: 980px) {
    .mega-dropdown-menu {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mega-dropdown-menu span,
    .mega-dropdown-menu ul {
        width: 90%;
    }

}

@media (max-width: 768px) {

    .sma_nodisplay,
    .mega-dropdown-menu span .close-menu,
    .mega-dropdown-menu li > a > img,
    ul.navbar-nav:first-of-type > li > a:hover::after{
        display: none !important;
    }

    #header {
        width: 100%;
        line-height: 1;
    }

    #header a,
    .mega-dropdown-menu li > a > p {
        font-size: 18px;
        line-height:1.5;
    }

    #header .mega-dropdown-menu li p > a {
        font-size: 16px;
        padding: 4px 4%;
    }

    #header .container {
        width: 100%;
        padding: 0;
    }

    #header .navbar-collapse {
        padding: 0;
        background: #000;
        width: 100%;
    }

    .navbar-default {
        margin-top: 0;
    }

    .navbar-header {
        height: 50px;
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
    }

    .navbar-brand {
        padding: 7px 15px;
        margin: 0 auto;
        height: auto;
    }

    .navbar-brand img {
        min-width: auto;
    }

    .navbar-search {
        height: 50px;
        width: 40px;
        padding: 10px 5px;
        display: inline;
    }

    .navbar-toggle {
        border: 0;
        padding: 12px 5px;
        margin: 0;
        float: none;
        height: 50px;
    }

    .navbar-toggle .icon-bar {
        width: 33px;
        height: 3px;
        background-color: #fff !important;
    }

    .navbar-toggle .icon-bar + .icon-bar {
        margin-top: 9px;
    }

    .navbar-default .navbar-toggle:hover,
    .navbar-default .navbar-toggle:focus {
        background-color: transparent;
    }

    ul.navbar-nav {
        display: block;
        margin: 1% auto;
        text-align: center;
    }

    ul.navbar-nav:last-of-type {
        margin: 10px 0;
    }

    ul.navbar-nav:last-of-type li,
    ul.navbar-nav:last-of-type li:hover{
        background-color: unset;
        padding-right: 0px;
        border: none;
    }

    ul.navbar-nav:last-of-type a{
        width: 50%;
        margin: 0 auto;
        color: #ccc !important;
        padding: 10px 0;
        border: 1px solid #ccc;
    	text-shadow:none;
    }

    ul.navbar-nav:last-of-type a::after{
		display:none;
	}

    ul.navbar-nav li {
        margin-top: 10px;
        border-bottom: 1px solid #888;
    }

    ul.navbar-nav li:first-of-type {
        margin-top: 0px;
    }

    ul.navbar-nav:first-of-type > li > a:hover,
    .open_active {
        border-bottom: none !important;
    }


	.dropdown.mega-dropdown a[data-toggle="dropdown"] > span,
    .mega-dropdown > a::before{
        display: block;
        content: "";
        position: absolute;
        top: 45%;
        right: 40px;
        width: 24px;
        height: 2px;
        margin: 0;
        background: #fff;
    }

	.dropdown.mega-dropdown a[data-toggle="dropdown"] > span{
        transform: rotate(90deg);
    }

    .dropdown.mega-dropdown.open a[data-toggle="dropdown"] > span{
        transform: rotate(0deg);
    }


    .navbar-nav .open .dropdown-menu {
        background: #f5f5f5;
    }

    .navbar-default .navbar-nav > .open > a {
        border-bottom: 1px solid #ddd !important;
    }

    .dropdown-menu {
        position: relative;
    }

    .mega-dropdown-menu {
        padding: 0;
        margin: 0 !important;
        border: none;
        border-top: none;
        box-shadow: none;
        width: 100% !important;
    }

    .mega-dropdown-menu span h1 {
        font-size: 100%;
        font-weight: bold;
    }

    .mega-dropdown-menu ul {
        flex-flow: column nowrap;
    	margin:0;
        width: 100%;
    }

    #header .mega-dropdown-menu li {
        margin: 0;
    	width:100%;
    	padding:10px 1em;
    }

    #header .mega-dropdown-menu li:nth-of-type(n+5) {
        margin-top:0;
    }

    #header .mega-dropdown-menu li p a::before {
    	margin-top:8px;
    }

    /* 検索モーダル */

    .head_search_modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #f5f5f5;
        z-index: 10 !important;
        padding: 80px 40px;
        display: none;
    }

    .head_search_modal > p {
        display: inline-block;
        font-size: 25px;
        line-height: 1.1;
        color: #666;
    }

    .head_search_modal > p.close-menu,
    .head_search_modal input[type="image"] {
        float: right;
    }


    /* マーズフラッグ検索窓 */
    .mf_finder_header {
        width: 100%;
        margin-top: 3em;
        padding-top: 0;
    }

    .mf_finder_header .mf_finder_searchBox {
        margin: 0;
        padding: 0;
    }

    .mf_finder_header .mf_finder_searchBox_items {
        width: 100%;
        padding: 0;
        border: none;
    	background-color:transparent;
    }

    .mf_finder_header .mf_finder_searchBox_query_wrap {
        border-bottom: 1px solid #666;
        margin-right: 15px;
    }

    .mf_finder_header .mf_finder_searchBox_query_input {
        border: none;
        outline: 0;
    }

    .mf_finder_header .mf_finder_searchBox_submit {
        background-color: transparent;
        color: #333;
        font-size: 35px;
        padding: 0;
        margin: 0;
        outline: 0;
    }

    .mf_finder_header .mf_finder_searchBox_submit span {
        margin: 0;
    }

    .mf_finder_searchBox_suggest_items {
        width: 100%;
        z-index: 10;
        right: auto;
        font-size: 14px;
    }

    #header .mf_finder_searchBox_suggest_items .mf_finder_searchBox_suggest_link {
        font-size: 14px;
    }


}
