/*========= スクロール途中でヘッダーが表示＆非表示するためのCSS ===============*/
#header {
    /*fixedで上部固定*/
    position: fixed;
    top: 0;
    left: 0;
    height: 170px;
    width: 100%;
    z-index: 999;
    /*最前面へ*/
    /*以下はレイアウトのためのCSS*/
    /* display: flex;
	justify-content: space-between; */
    /* align-items: center; */
    background-color: #fff;
    color: #333;
    text-align: center;
    transition: all 0.5s ease;
}




/*　上に上がる動き　*/

#header.UpMove {
    animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}

/*　下に下がる動き　*/

#header.DownMove {
    animation: DownAnime 0.5s forwards;
    height: fit-content;
    background: rgba(255, 255, 255, 0.9);
}

@keyframes DownAnime {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*--------------------------------------
globalnavi_sp
---------------------------------------*/
#globalnavi_sp {
    display: none;
}

@media screen and (max-width: 1080px) {
    #globalnavi_sp {
        display: block;
    }
}

/*--------------------------------------
 #header_pc #globalnavi
---------------------------------------*/
#header_pc {
    background-color: #fff;
}

#header_pc #globalnavi {
    width: 100%;
    /*    height: 45px;*/
    z-index: 9999;
    /*    font-size: 1.5rem;*/
}

#globalnavi .globalNavList {
    max-width: 700px;
    margin: 0 auto;
}

#globalnavi nav ul li {
    display: flex;
    justify-content: center;
    padding: 40px 0px;
}

#globalnavi .navi li {
    white-space: nowrap;
}

#globalnavi .globalNavList .fa-gift {
    margin-right: 5px;
}

#globalnavi .globalNavTitle {
    text-decoration: none;
    margin: 10px 5px 10px 30px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#globalnavi .globalNavTitle:nth-of-type(2) {
    margin: 10px 10px 0px 10px;
}

/*========= ナビゲーションドロップダウンのためのCSS ===============*/

nav {
    text-align: center;
    position: relative;
    z-index: 9999;
}

/*ナビゲーションを横並びに*/
nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

/*2階層目以降は横並びにしない*/
nav ul ul {
    display: block;
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li {
    position: relative;
    text-align: left;
    border-bottom: solid 1px rgba(255, 255, 255, 0.6);
}

/*ナビゲーションのリンク設定*/
nav ul li a {
    display: block;
    text-decoration: none;
    color: #999;
    padding: 20px 18px;
    transition: all .3s;
    height: auto;
    font-weight: 500;
}

nav ul li li a {
    padding: 15px 10px;
    font-weight: 400;
}

nav ul li a:hover {
    color: #111;
}

/*==矢印の設定*/
/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 27px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #111;
    border-right: 2px solid #111;
    transform: rotate(135deg);
    display: none;
}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 17px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    transform: rotate(45deg);
}

/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul {
    /*絶対配置で位置を指定*/
    position: absolute;
    left: 0;
    top: 70px;
    z-index: 4;
    /*形状を指定*/
    background: #f6f6f6;
    font-size: 1.4rem;
    min-width: 185px;
    /*はじめは非表示*/
    visibility: hidden;
    opacity: 0;
    /*アニメーション設定*/
    transition: all .3s;
}

/*hoverしたら表示*/
nav li.has-child:hover>ul,
nav li.has-child ul li:hover>ul,
nav li.has-child:active>ul,
nav li.has-child ul li:active>ul {
    visibility: visible;
    opacity: 1;
}

/*ナビゲーションaタグの形状*/
nav li.has-child ul li a {
    color: #111;
    width: 185px;
}

nav li.has-child ul li a::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 21px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    transform: rotate(45deg);
}

nav li.has-child ul li:last-child {
    border-bottom: none;
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active {
    background: #cccccc;
}


/*==3階層目*/

/*3階層目の位置*/
/* nav li.has-child ul ul {
    top: 0;
    left: 182px;
    background: #66ADF5;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active {
    background: #fff;
}

.index_globalNav i {
    padding-right: 5px;
} */



@media screen and (max-width: 1250px) {
    nav ul li a {
        padding: 20px 10px 0px 0px;
        font-size: 1.4rem;
    }
}

/*==1185px以下の形状*/

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

    #globalnavi_sp {
        display: block;
    }

    nav {
        padding: 0;
    }

    nav ul {
        display: block;
    }

    nav li.has-child ul,
    nav li.has-child ul ul {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        visibility: visible;
        /*JSで制御するため一旦表示*/
        opacity: 1;
        /*JSで制御するため一旦表示*/
        display: none;
        /*JSのslidetoggleで表示させるため非表示に*/
        transition: none;
        /*JSで制御するためCSSのアニメーションを切る*/
    }

    nav ul li a {
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
        width: 100%;
        padding: 20px 0px 20px 40%;
    }

    /*ナビゲーションaタグの形状*/
    nav li.has-child ul li a {
        width: 100%;
    }

    /*矢印の位置と向き*/

    nav ul li.has-child::before {
        left: 92%;
        top: 25px;
    }

    nav ul ul li.has-child::before {
        transform: rotate(135deg);
        left: 20px;
    }

    nav ul li.has-child.accordion::before {
        transform: rotate(-45deg);
    }

}

/*========= ナビゲーションドロップダウンのためのCSSここまで ===============*/

/*--------------------------------------
 #header_pc #header_right
---------------------------------------*/
#header_right {
    align-items: flex-start;
}

#header_right .navi {
    font-size: 1.3rem;
    padding: 5px 0 5px 0;
}

#header_right .navi ul {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

#header_right .navi a {
    white-space: nowrap;
    position: relative;
    display: inline-block;
}


/* #header_right .navi a::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: #111;
    display: absolute;
    top: -4px;
    right: -5px;
    margin: 0 10px;
} */




/*--------------------------------------
 header_pc 
---------------------------------------*/
/* 検索フォームのcss */

#form {
    position: relative;
    max-width: 250px;
    min-width: 150px;
    height: 50px;
    margin: 0 0 0 auto;
    border-radius: 10px;
    z-index: 100;
    background: #fff;
    border: 1px solid #999;
    padding: 0 0 0 10px;
    box-sizing: border-box;
}

#form i {
    font-size: 1.8rem;
}

#sbox {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 0;
    /* position:absolute;  */
    right: 15px;
    top: 0;
    outline: none;
    border: none;
    border-radius: 10px;
    z-index: 50;

}

#sbtn {
    height: 50px;
    position: absolute;
    right: 0.7rem;
    /*アイコン左右の位置調整*/
    top: -3px;
    background: none;
    color: #111;
    border: none;
    font-size: 2.3rem;
    /*アイコンサイズ*/
}

#sp_header_icon {
    display: none;
}

@media screen and (max-width: 1080px) {
    #form {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    #form {
        height: 40px;
        margin: 0 auto;
    }

    #sbtn {
        height: 40px;
        top: -2px;
    }

}

/*--------------------------------------
 #header_pc #tophead
---------------------------------------*/


#tophead {
    width: 93vw;
    margin: 0 auto;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aniv_emb {
    /* padding: 0 0 0 1rem; */
    width: 3.5rem;
    height: auto;

}

/* #top_link a {
	display: flex;
	align-items: center;
	gap: 2rem;
} */

#top_link h2 {
    font-size: 1.6rem;
    white-space: nowrap;
}

#top_link p {
    font-size: 1.2rem;
}

#logo {
    width: 100px;
}

.emblem_wrapper {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
}

.emblem_area {
    display: flex;
}

.emblem_area img {
    width: 7rem;
    height: auto;
}



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


    .emblem_wrapper {
        padding: 0 0 0 1rem;
    }
}

@media screen and (max-width: 1250px) {
    .emblem_area img {
        width: 5.5rem;
    }
}

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

    .aniv_emb,
    .emblem_wrapper {
        display: none;
    }

    #tophead {
        width: 95vw;
    }

    #top_link,
    #globalnavi {
        display: none;
    }

    #tophead {
        display: block;
    }

    #header_pc {
        display: flex;
        gap: 5px;
        flex-direction: column-reverse;
    }

    #header_right .navi {
        display: none;
    }

    .sp_header_icon_wrapper {
        display: flex;
        align-items: center;
        padding: 12px 15px 0px 15px;
    }

    #sp_header_icon {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }

    #sp_header_icon p {
        font-size: 8px;
        line-height: normal;
    }

    .dtl_search .fa-search {
        font-size: 1.8rem;
        color: #666;
    }

    .beginner img {
        width: 23px;
        vertical-align: bottom;
        padding: 3px;
    }

    #sp_sbox {
        display: inline-block;
        width: 100%;
        height: 40px;
        padding: 0 10px;
        /* position:absolute;  */
        right: 15px;
        top: 0;
        outline: none;
        border: none;
        border-radius: 50px;
        z-index: 50;
        background: #fff;
        border: 1px solid #bbbbbb;
    }

    #sp_sbtn {
        height: 40px;
        position: absolute;
        right: -8px;
        /*アイコン左右の位置調整*/
        top: 0;
        background: none;
        color: #666;
        border: none;
        font-size: 2.3rem;
        /*アイコンサイズ*/
    }

}

@media screen and (max-width: 480px) {
    #sp_sbox {
        width: 98%;
    }

    #sp_sbtn i {
        font-size: 2rem;
        /*アイコンサイズ*/
    }
}


.sp_header_icon_wrapper #shop_logo {
    display: none;
}


@media screen and (max-width: 1080px) {
    .sp_header_icon_wrapper {
        position: relative;
    }

    .sp_header_icon_wrapper #shop_logo {
        display: block;
        max-width: 180px;
        min-width: 150px;
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
    }



    /*========= ボタンのためのCSS ===============*/
    .openbtn {
        /* position: fixed; kesu*/
        z-index: 9999;
        /*ボタンを最前面に*/
        top: 90px;
        left: 0px;
        cursor: pointer;
        width: 50px;
        height: auto;
        transition: all 0.5s ease;
    }

    .openbtn.open_active {
        top: 12px;
        z-index: 9999;
    }

    /*×に変化*/
    .openbtn span {
        display: inline-block;
        transition: all .5s;
        /* position: absolute; kesu*/
        left: 10px;
        height: 3px;
        border-radius: 2px;
        background-color: #666;
        width: 30px;
        z-index: 9999;

    }

    /* .openbtn span:nth-of-type(1) {
        top: 15px;
    }

    .openbtn span:nth-of-type(2) {
        top: 23px;
    }

    .openbtn span:nth-of-type(3) {
        top: 31px;
    } */

    .openbtn.open_active span:nth-of-type(1) {
        position: absolute;
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30px;
        z-index: 9999;
    }


    .openbtn.open_active span:nth-of-type(2) {
        opacity: 0;
    }

    .openbtn.open_active span:nth-of-type(3) {
        position: absolute;
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30px;
        z-index: 9999;
    }

}

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

    .openbtn {
        top: 85px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        background-color: #fff;
        width: 30px;
        height: 30px;
    }

    #header.active .openbtn {
        top: 8px;
    }

}

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

    .sp_header_icon_wrapper {
        gap: 8px;
    }

    .openbtn {
        width: 30px;
    }


}

@media screen and (max-width: 400px) {
    .sp_header_icon_wrapper #shop_logo {
        max-width: 160px;
        min-width: 120px;
    }
}


/* ハンバーガーメニューの中身 */
/*========= ナビゲーションのためのCSS ===============*/
@media screen and (max-width: 1080px) {
    #globalnavi_sp {
        /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
        display: none;
        /* position: fixed; */
        /* z-index: -1; */
        /* opacity: 0; */
        /*はじめは透過0*/
        /*ナビの位置と形状*/
        top: 0;
        width: 100%;
        /*ナビの高さ*/
        background: #fff;
        /*動き*/
        transition: all 0.3s;
    }

    /*アクティブクラスがついたら透過なしにして最前面へ*/
    #globalnavi_sp.panelactive {
        display: block;
        opacity: 1;
        z-index: 1000;
        height: 100vh;
        overflow: auto;
        /* -webkit-overflow-scrolling: touch; */
        /* top: 220px; */
    }

    #sp_header_icon_wrapper.panelactive {
        padding: initial
    }

    #header_pc.panelactive {
        width: 50px;
        background-color: transparent;
    }

    /*アクティブクラスがついたら非表示*/
    #top_info.panelactive,
    #sp_header_icon.panelactive,
    #tophead.panelactive,
    .panelactive #shop_logo {
        display: none;
    }


    /*ナビゲーションの縦スクロール*/
    #globalnavi_sp.panelactive .globalNavList {
        /* position: fixed; */
        z-index: 1000;
        width: 100%;
        /* height: 100vh;  */
        padding: 15px 0px;
    }

    /*ナビゲーション*/
    /* #globalnavi_sp .globalNavList {
    display: none; 
    position: absolute;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}  */

    #globalnavi_sp.panelactive .globalNavList {
        display: block;
    }

    /*リストのレイアウト設定*/

    #globalnavi_sp li {
        list-style: none;
        text-align: center;
    }

    #globalnavi_sp li a {
        color: #000;
        text-decoration: none;
        padding: 15px;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 400;
        text-align: left;
    }


    .g-nav-list {
        box-sizing: border-box;
        padding: 50px 5%;
    }

    #globalnavi_sp.panelactive i {
        font-size: 1.8rem;
        margin-right: 5px;
    }

    .g-nav-list-inner {
        width: 90vw;
    }

    #globalnavi_sp h4 {
        text-align: left;
        font-size: 1.8rem;
        margin: 3rem 0 1rem;
    }

}

#globalNavList_wrapper {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
