/***************************************************
途中から出現して追従(ヘッダー)
****************************************************/
header{
    position: relative;
    width: 100%;
}

/* 追従メニューの背景色を設定 */
.header.fixed-1 {
    background-color:rgba(255, 255, 255, 0.8);
}

/* 追従ヘッダー */
.fixed-1{
    position: fixed;
    width: 100%;
    top: 0;
}

.fixed-1 .header-item a{
    color: #fff;
}

.fixed-1 > .header__inner > .header-wrap >  .hamburger span {
    background: #000!important;
}

.fixed-1 > .header__inner > .header-wrap >  .header-logo {
    visibility: visible!important;
}

/* 追従ヘッダーの高さ保持 */

/* 高さの設定はheader.css内 ".head-space"にて設定 */
.head-space {
    display: none;
}


/***************************************************
ハンバーガーメニュー
****************************************************/
.header-wrap {
    /* position: absolute; */
    /* right: 0; */
}
/* ハンバーガーメニュー ブレイクポイント */
    .header-list {
        display: block;
    }
    .header-logo {
        padding: 0;
    }
    .globalMenuSp h1 {
        padding: 20px 0 0 20px;
    }
    .hamburger {
        display: block;
        position: relative;
        /* z-index: 10010; */
        top: 0px;
        right: 0;
        width: 70px;
        height: 70px;
        cursor: pointer;
        text-align: center;
        -webkit-transition: .5s;
        transition: .5s;
        background-color: #274347;
        padding: 14px;
        background-image: url(../images/menu.png);
        background-position: center;
        background-size: 40px;
        background-repeat: no-repeat;

    }
    .hamburger.cross {
        background-image: url(../images/close.png);
        z-index: 10000;
        background-color: #fff;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        left: 6px;
        background: #000;/* ハンバーガーメニューの色(ナビが閉じている時) */
        -webkit-transition: 0.3s ease-in-out;
        transition: 0.3s ease-in-out;
        position: absolute;
    }
    .hamburger span:nth-child(1) {
        top: 13px;
    }
    .hamburger span:nth-child(2) {
        top: 20px;
    }
    .hamburger span:nth-child(3) {
        top: 27px;
    }
    .header__inner .hamburger {
        -webkit-transition: 0s; /* */
        transition: 0s;
    }
    /* ナビ開いてる時のボタン */
    .hamburger.cross span:nth-child(1) {
        top: 16px;
        left: 6px;
        background: #000;/* ハンバーガーメニューの色 */
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    .hamburger.cross span:nth-child(2),
    .hamburger.cross span:nth-child(3) {
        top: 16px;
        background: #000;/* ハンバーガーメニューの色 */
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    nav.globalMenuSp {
        position: fixed;
        display: block;
        color: #000;
        background-color: #274347;
        /* background: rgba(255, 255, 255, 0.9);ナビが開いている時の背景色 */
        z-index: 9999;
        top: 0;
        left: 0;
        text-align: center;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        -webkit-transition: opacity .6s ease, visibility .6s ease;
        -webkit-transition: opacity 0.6s ease;
        transition: opacity 0.6s ease;
    }
    nav.globalMenuSp ul {
        margin: auto;
        padding: 5vh 20px 20px;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        width: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    nav.globalMenuSp ul li {
        list-style-type: none;
        padding: 10px 0;
        margin: 5px auto;
        width: 70%;
        -webkit-transition: .4s all;
        transition: .4s all;
    }
    nav.globalMenuSp ul li:last-child {
        margin-bottom: 15px;
    } 
    nav.globalMenuSp ul li a {
        display: block;
        color: #fff; /*メニューのテキストカラー */
        padding: 0;
        text-decoration: none;
        margin: 0 auto;
    }

    /* このクラスを、jQueryで付与・削除する */
    nav.globalMenuSp.active {
        opacity: 100;
        visibility: visible;
        height: 100%;
    }
    
    @media screen and (max-width: 767px) {
        .hamburger {
            width: 60px;
            height: 60px;
        }
        
    }

/* 画面に入ったらフェードイン */
.scroll-fadein {
    opacity: 0;
}
.scroll-fadein.s-fadein {
    opacity: 1;
    transition: all 1.5s ease-out;
}

