.openbtn {
    position: fixed;
    top: 20px;
    right:10px;
    z-index: 9999;
    cursor: pointer;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
}

.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
    width: 45%;
}

.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.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 80%;
    background-color: #EADBBB;
}

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

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 80%;
    background-color: #EADBBB;
}

#g-nav.panelactive {
    position: fixed;
    z-index: 9999;
    top: 0;
    width: 100%;
    height: 100vh;
}

/* ナビゲーションの縦スクロール */
#g-nav-list{
    display: none;
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list{
    /* クラスが付与されると出現 */
    display: block;
}

#g-nav ul {
    opacity: 0;/*はじめは透過*/

    /* 
        ナビゲーションは天地中央ぞろえ
        レイアウトによって調整削除可能
    */

    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 背景が出現後にナビゲーションを表示 */
#g-nav.panelactive ul {
    opacity: 1;
}

/* 
    背景が出現後にナビゲーションliを表示 
    レイアウトによって調整可能
*/
#g-nav.panelactive ul li {
    animation-name: gnaviAnime;
    animation-duration: 4s;

    /* 0.2秒遅らせて出現 */
    animation-delay: .2s;
    animation-fill-mode: forwards;
    opacity: 0;
    font-size: xx-large;
}

#g-nav.panelactive ul li a{
    color:aliceblue;
}

#g-nav.panelactive ul li a:hover{
    color:#EADBBB;
}

@keyframes gnaviAnime {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 丸の拡大 */
.circle-bg{
    position: fixed;
    z-index: 5;

    /* 丸の形 */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background:#931E56;

    /* 
        丸のスタート位置と形状 
        scaleをはじめは0に
    */
    transform: scale(0);
    right: -50px;
    top: calc(50% - 50px); /*画面の半分から円の半径を引いたところ*/
    
    transition: all 1.8s; /*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive {
    /* クラスが付与されたらscaleを拡大 */
    transform: scale(50);
}

nav ul{
    list-style: none;
    text-align: center;
}

nav ul li a{
    display:inline-block;
    text-decoration: none;
    color:#000;
    padding:10px;
}
