/*--------inner-----------*/

.inner {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0 0px;
    position: relative;
}

.inner:after {
    content: "";
    clear: both;
    display: block;
}

/*--------header-----------*/

#top-head {
    top: 0;
    position: fixed;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    line-height: 1;
    z-index: 999;
    background-color: #ffcb00;
    font-family: source-han-sans-japanese, sans-serif;
    font-weight: 400;
    font-style: normal;
}

#top-head a,
#top-head {
    text-decoration: none;
    font-weight: 400;
    color: #000;
}

#top-head .inner {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

#top-head .logo {
    float: left;
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

#top-head .logo img {
    margin-top: 0;
    height: 30px;
}

#top-head .logo a {
    position: absolute;
    width: 100%;
    height: 30px;
}

#global-nav ul {
    list-style: none;
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    margin: 0;
    display: flex;
    align-items: center;
}

#global-nav ul li {
    float: left;
    padding: 0 10px;
}

#global-nav ul li a {
    padding: 0 0px 5px;
    position: relative;
    display: inline-block;
    color: #000;
}

#global-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    background-color: #000;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

#global-nav ul li a:hover::after {
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
}

nav span {
    background: #000;
    height: 2px;
    display: block;
    position: relative;
    width: 50px;
    left: 0;
}


/*--------固定化されたときのCSS-----------*/

#top-head.fixed {
    background-color: rgba(255, 203, 0, 0.92);
}

#top-head.fixed .logo {
    position: relative;
}

#top-head.fixed .inner {
    margin-top: 0;
}

#top-head.fixed .logo a {
    position: absolute;
    width: 100%;
    height: 30px;
}

#top-head.fixed #global-nav ul li a {
    color: #000;
    padding: 0px 0px 5px;
}


/*-----------スマホのトグルボタンのCSS-------------*/

#nav-toggle {
    display: none;
    position: absolute;
    right: 12px;
    top: 14px;
    width: 34px;
    height: 36px;
    cursor: pointer;
    z-index: 101;
}

#nav-toggle div {
    position: relative;
}

#nav-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #000;
    left: 0;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}

#nav-toggle span:nth-child(1) {
    top: 0px;
}

#nav-toggle span:nth-child(2) {
    top: 10px;
}

#nav-toggle span:nth-child(3) {
    top: 20px;
}

/*------------タブレット用------------------*/

@media screen and (max-width: 1024px) {
    .head-inner {
        display: none;
    }

    .slick-next {
        right: 0;
    }

    #top-head,
    .inner {
        width: 100%;
        padding: 0;
    }

    #top-head {
        height: 50px;
        top: 0;
        position: fixed;
        margin-top: 0px;
        z-index: 9999;
        background-color: #ffcb00;
    }

    #top-head .inner {
        height: 50px;
        display: flex;
        align-items: center;
    }

    #top-head .logo img {
        height: 30px;
        margin-top: 0;
    }

    /* Fixed時も見た目を変えない */
    #top-head.fixed {
        padding-top: 0px;
        background-color: #ffcb00;
    }

    #mobile-head {
        background-color: #ffcb00;
        width: 100%;
        height: 50px;
        position: relative;
        padding: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
    }

    /* logoはflex内の通常フローに乗せる（absoluteをやめる） */
    #top-head.fixed .logo,
    #top-head .logo {
        position: relative;
        left: 20px;
        height: auto;
        display: flex;
        align-items: center;
    }

    body#global-nav {
        height: 100vh;
        overflow-y: hidden;
    }

    #global-nav {
        position: absolute;
        top: calc(-100vh - 50px);
        width: 100%;
        background-color: rgba(255, 203, 0, 0.88);
        text-align: center;
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        z-index: 9998;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100 + 50px);
    }

    #gnav-container {
        width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
    }

    #global-nav ul {
        display: block;
        list-style: none;
        position: static;
        font-size: 14px;
        transform: none;
        top: auto;
        right: auto;
    }

    #global-nav ul li {
        float: none;
        position: static;
        padding: 14px 0;
    }

    #top-head #global-nav ul li a,
    #top-head.fixed #global-nav ul li a {
        width: 100%;
        max-width: 100%;
        display: block;
        padding: 6px 0;
        color: #000;
        font-weight: 700;
        font-size: 16px;
    }

    #global-nav ul li a::after {
        display: none;
    }

    #nav-toggle {
        display: block;
        right: 20px;
        top: 14px;
    }

    /* #nav-toggle 切り替えアニメーション */
    .open #nav-toggle span:nth-child(1) {
        top: 11px;
        -webkit-transform: rotate(315deg);
        -moz-transform: rotate(315deg);
        transform: rotate(315deg);
    }

    .open #nav-toggle span:nth-child(2) {
        width: 0;
        left: 50%;
    }

    .open #nav-toggle span:nth-child(3) {
        top: 11px;
        -webkit-transform: rotate(-315deg);
        -moz-transform: rotate(-315deg);
        transform: rotate(-315deg);
    }

    /* #global-nav スライドアニメーション */
    .open #global-nav {
        -moz-transform: translateY(100vh);
        -webkit-transform: translateY(100vh);
        transform: translateY(100vh);
    }
}