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

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

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

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

#top-head {
    top: -100px;
    position: absolute;
    width: 100%;
    height: 70px;
    margin: 100px auto 0;
    padding: 0px 0;
    line-height: 1;
    z-index: 999;
    background-color:#fff;
    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: #333;
}

#top-head .inner {
    position: relative;
}

#top-head .logo {
    float: left;
    position: relative;
    height: 52px;
}

#top-head .logo img{
    margin-top: 16px;
    height: 40px;
}

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

#global-nav ul {
    list-style: none;
    position: absolute;
    top: 27px;
    right: 230px;
    margin: auto;}


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

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

#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: #171C61;
    -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: #333;
    height: 2px;
    display: block;
    position: relative;
    width: 50px;
    left: 0;
}

.head-head {
    float: right;
}

a#btn_top{
    display: inline-block;
    height: px;
    margin: 0 auto;
    transition: 0.5s;
    background: linear-gradient(90deg, #171C61, #3C4869);
    padding: 27px 30px;
    text-align: center;
    font-size: 16px;
    color:#fff;
    vertical-align: middle;
}

a#btn_top:hover {
    opacity: 0.8;
}


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

#top-head.fixed {
    margin-top: 0;
    top: 0;
    position: fixed;
    background: rgba(255, 255, 255, 1.0);
    transition: top 0.65s ease-in;
    -webkit-transition: top 0.65s ease-in;
    -moz-transition: top 0.65s ease-in;
}

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

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

#top-head.fixed #global-nav ul li a {
    color: #333;
    padding: 0px 5px 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: 1px;
    width: 100%;
    background:#333;
    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: 60px;
        top: 0;
        position: fixed;
        margin-top: 0;
        z-index: 9999;
    }

    #top-head .logo img{
        height: 38px;
        margin-top: 12px;
    }

  
    /* Fixed reset */
    #top-head.fixed {
        padding-top: 0px;
        background: transparent;
    }


    #mobile-head {
        background: #fff;
        width: 100%;
        height: 60px;
        z-index: 999;
        position: relative;
        padding: 0;
        z-index: 9999;
    }

    #top-head.fixed .logo,
    #top-head .logo {
        position: absolute;
        left: 20px;
        height: 60px;
    }


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

    #global-nav {
        position: absolute;
        /* 開いてないときは画面外に配置 */
        top: -100vh;
        width:100%;
        background: linear-gradient(90deg, #171C61, #3C4869);
        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; /* Fallback */
        height: calc(var(--vh, 1vh) * 100 + 60px);
    }

    #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;     
    }

    #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: #fff;
    }


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

    .head-head {
        float: none;
        margin: 16px auto;
        transition: 0.5s;
        padding-bottom: 6px;
    }
        
    a#btn_top{
        padding: 22px 30px ;
        font-size: 14px;
        line-height: 0;
    }

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

    /* #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 {
        /* #global-nav top + #mobile-head height */
        -moz-transform: translateY(100vh);
        -webkit-transform: translateY(100vh);
        transform: translateY(100vh);
    }
}