
/********************************************
    ヘッダーcss
*********************************************/

.spacebook_header {
    top: 0;
    z-index: 100;
    position: fixed;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;/* flexboxを使用して要素を配置 */
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;/* 垂直方向に中央揃え */
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;/* 要素間にスペースを挿入 */
    font-size: 1.14rem;
    width: 100%;
    height: 6em;
    padding: 1em 3.4em .9em;
    background-color: #000;
}

.logo img,
#logo {
    width: 15.4em;
    aspect-ratio: 50 / 11;
    vertical-align: bottom;
}

.logo img:hover,
#logo:hover {
    background: -o-linear-gradient(left, #2638ff, #6f78ff, #27bcee, #6f78ff, #2638ff);
    background: -webkit-gradient(linear, left top, right top, from(#2638ff), color-stop(#6f78ff), color-stop(#27bcee), color-stop(#6f78ff), to(#2638ff));
    background: linear-gradient(to right, #2638ff, #6f78ff, #27bcee, #6f78ff, #2638ff);
    border-radius: 10px;
}


.navigation {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    margin: 0;
    padding-top: 0;
  }

  .navigation li a {
      color: #fff;
      margin-left: 1.4em;
      font-size: 2em;
  }

@-webkit-keyframes AnimationTitle {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes AnimationTitle {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.navigation li a:hover {
    -webkit-animation: AnimationTitle 5s ease infinite;
    animation: AnimationTitle 5s ease infinite;
    
    background: -o-linear-gradient(left, #ff9748, #fe00dc, #fc45a4);
    background: -webkit-gradient(linear, left top, right top, from(#ff9748), color-stop(#fe00dc), to(#fc45a4));
    background: linear-gradient(to right, #ff9748, #fe00dc, #fc45a4);
    
    -webkit-transition: left 0.5s ease;
    -o-transition: left 0.5s ease;
    transition: left 0.5s ease;

    background-size: 200% 100%;
    background-position: 0 0;
    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent; /* Safari対応 */
}

/*スマホ表示*/
.hamburger {
    display: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    vertical-align: bottom;
    color: inherit;
    font: inherit;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    text-align: inherit;
    text-transform: inherit;
    cursor: pointer;
    width: 2.6em;
}

.hamburger__line {
    display: block;
    border-bottom: clamp(1px, 0.5333333333vw, 4px) solid #fff;
    border-radius: clamp(1px, 0.5333333333vw, 4px);
}

.hamburger__line:nth-child(2) {
    margin: .4em 0;
}


#gnav {
    display: none;
    opacity: 0;
    position: fixed;
    display: block;
    top: 7em;
    right: -100%;
    width: 40vw;
    height: auto;
    padding-block: 2em;
    background-color: rgba(255, 255, 255, 0.9333333333);
    text-align: center;
}



@media screen and (max-width:640px) {

    .spacebook_header {
        height: 7em;
        padding: 0 2rem;
    }

    .top_banner {
        display: none;
    }

    .hamburger {
        display: block;
    }

    #gnav.panelactive {
        z-index: 9999;
        opacity: 1;
        right: 0;
        -webkit-transition: opacity 1.5s ease;
        -o-transition: opacity 1.5s ease;
        transition: opacity 1.5s ease;
    }

    .gnav__pages {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
    }

    .gnav__menu {
        position: relative;
        height: 100%;
        margin-block: 1em;
        font-weight: 700;
        font-size: clamp(1px, 2.9333333333vw, 22px);
        color: #171717;
    }

    .gnav__menu a {
        position: relative;
        color: #fff;
        background-image: -webkit-gradient(linear, left top, right top, from(#ff9152), to(#ff5fea));
        background-image: -o-linear-gradient(left, #ff9152, #ff5fea);
        background-image: linear-gradient(90deg, #ff9152, #ff5fea);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .gnav__menu a:hover {
        top: .06em;
    }

    .gnav__pages li:nth-child(1) a img {
        width: 67%;
        aspect-ratio: 166/37;
    }

}