/* --------------------------------------------------------------------------------------------------------------
PC
-------------------------------------------------------------------------------------------------------------- */

header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    font-family: 'メイリオ', Osaka, 'MS PGothic', arial, helvetica, sans-serif;

}

header *{
    box-sizing: border-box;
}

header .sp {
    display: none;
}

header .pc {
    display: block;
}

header #globalNavi {
    background-color: #fbc93b;

}

header #globalNavi a {
    text-decoration: none;
}

header #globalNavi p,
header #globalNavi li,
header #globalNavi dt,
header #globalNavi dd,
header #globalNavi a {
    font-size: 18px;
    line-height: 24px;
    color: #561c20;
    list-style: none;
}

header #globalNavi ul {
    padding: 10px 0 8px;
    width: 980px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}
header #globalNavi li {
    width: 14%;
    text-align: center;
    border-left: 2px solid #ffe291;
}

header #globalNavi li a {
    font-weight: bold;
    font-size: 16px;
    display: block;
    padding: 10px 0 0;
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    font-family: 'メイリオ', Osaka, 'MS PGothic', arial, helvetica, sans-serif !important;
}

header #globalNavi li a:hover {
    transition: .2s;
    color: #e2003f;
}

header #globalNavi li a::after {
    position: absolute;
    bottom: 1px;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #e2003f;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
}

header #globalNavi li a:hover::after {
    bottom: -3px;
    opacity: 1;
    visibility: visible;
}

header #globalNavi li:nth-child(5),
header #globalNavi li:nth-child(6) {
    width: 18%;
}

header #globalNavi li:last-child {
    width: 8%;
    transition: .5s;
}

header #globalNavi li:last-child a {
    padding: 0;
    transform: rotateY(0deg);
}

header #globalNavi li:last-child a:hover::after {
    opacity: 0;
}

header #globalNavi li:last-child a:hover {
    transform: rotateY(360deg);
}

header #globalNavi li:last-child a:hover img,
header #globalNavi li:last-child a img {
    opacity: 1 !important;
}

header #globalNavi li img {
    width: 40px;
}

header figure {
    display: none;
}

header hr {
    background-image: url(../img/top/bg_gnavi.png);
    background-size: 100px auto;
    background-position: 0 top;
    background-repeat: repeat-x;
    height: 10px;
    margin: 0;
    border: none;
}

/* --------------------------------------------------------------------------------------------------------------
SP
-------------------------------------------------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {


    header .sp {
        display: block;
    }

    header .sp a {
        color: #561c20;
        text-decoration: none;
    }

    header .pc {
        display: none;
    }

    header .sp_menu {
        overflow: hidden;
    }

    #nav-drawer {
        padding: 8px 15px 5px 0;
        background: #fbc93b;
        position: relative;
        width: 100%;
        text-align: right;
        overflow: hidden;
    }

    #nav-drawer .logo {
        font-size: 0;
        color: #fbc93b;
        display: inline-block;
        width: 166px;
        height: 40px;
        background-image: url(../img/top/logo_sp.png);
        background-size: 125px auto;
        background-position: 10px 0;
        background-repeat: no-repeat;
        float: left;
    }

    .nav-unshown {
        display: none;
    }

    #nav-open {
        display: inline-block;
        width: 40px;
        height: 35px;
        vertical-align: middle;
    }

    #nav-open span {
        display: block;
        width: 45px;
        height: 40px;
        background: url(../img/top/sp_menu.png) 0 0 no-repeat;
        background-size: 40px 35px;
    }

    #nav-open span:before {
        bottom: -8px;
    }

    #nav-open span:after {
        bottom: -16px;
    }

    #nav-close {
        display: none;
        position: fixed;
        z-index: 99;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: black;
        opacity: 0;
        transition: .3s ease-in-out;
    }

    #nav-content {
        overflow: auto;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 9999;
        width: 75%;
        height: 100%;
        background: #fbc93b;
        transition: .3s ease-in-out;
        -webkit-transform: translateX(105%);
        transform: translateX(105%);
        padding: 20px 10px;
    }

    #nav-input:checked ~ #nav-close {
        display: block;
        opacity: .5;
    }

    #nav-input:checked ~ #nav-content {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
        box-shadow: 6px 0 25px rgba(0, 0, 0, .15);
    }

    #nav-content ul li {
        width: 100%;
        text-align: left;
        border-bottom: #ffe291 1px solid;
        list-style: none;
        font-size: 18px;
        line-height: 24px;
        color: #561c20;
    }

    #nav-content ul li a {
        display: block;
        font-weight: bold;
        padding: 15px 10px;

    }

    #nav-content ul li a img {
        width: 30px;
        margin: -3px 0 0 0;
    }

}