@charset "utf-8";
/* CSS Document */

/* PC時からハンバーガーメニューの場合は#sp_boxのみ削除  */
#open_menu,#sp_box {
	display:none;
}
#sp_box {
    opacity: 0;
    animation: spBox 0.3s ease 0.3s forwards;
    position: relative;
    z-index: 99999;
}
@keyframes spBox {
    to {
        opacity: 1;
    }
}

/*****************************************************************

	色の設定

******************************************************************/
/* ハンバーガーメニューの線 */
#spicon span{
	border-bottom:2px solid #201c1a;
}
/* ハンバーガーメニュー【MENU】のテキスト色（いらない場合はdisplay:none;） */
#spicon:before{
    display: none;
}
/* 開閉後、ハンバーガーメニューの色を変更する場合 */
#spicon.m_active span:nth-child(1) {
    /*border-color: #FFF;*/
}
#spicon.m_active span:nth-child(3) {
    /*border-color: #FFF;*/
}
#spicon.m_active:before {
    /*color: #FFF;*/
}
/* 開閉後の背景の色 */
#center_box {
    background-color: #FFF;
}

/**************************************
	ハンバーガーアイコン
***************************************/
#sp_box {
    position: absolute;
    right: 0;
    top: 0;
}
#spicon {
	position:absolute;
	right:30px;
	top:105px;
	background-position:50% 0;
	background-repeat:no-repeat;
	background-size:cover;
	width:50px;
	height:50px;
    
    padding: 15px 0;
    
	z-index:9999;
	cursor:pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}
#spicon {
    animation: iconClose 0.5s linear forwards;
}
#sp_box.scroll #spicon {
    animation: iconOpen 0.5s linear forwards;
}

@keyframes iconClose {
    0% {
        transform: scale(1);
    	top:20px;
    }
    20% {
        transform: scale(0);
    	top:20px;
    }
    80% {
        transform: scale(0);
    	top:105px;
    }
    100% {
        transform: scale(1);
    	top:105px;
    }
}
#spicon.m_active {
    animation: iconOpen 0.5s linear forwards;
}
@keyframes iconOpen {
    0% {
        transform: scale(1);
    	top:105px;
        position: absolute;
    }
    20% {
        transform: scale(0);
    	top:105px;
        position: absolute;
    }
    80% {
        transform: scale(0);
    	top:20px;
        position: fixed;
    }
    100% {
        transform: scale(1);
    	top:20px;
        position: fixed;
    }
}

#spicon span {
	width:100%;
	transition: 0.2s linear 0.3s;
}

/* ボタンを押した後のボタンのスタイル */
#spicon.m_active span:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
}

#spicon.m_active span:nth-child(2) {
	opacity:0;
}

#spicon.m_active span:nth-child(3) {
    transform: translateY(-8px) rotate(-135deg);
}

/**************************************
	メニューオープン
***************************************/
#open_menu {
	background-position:50% 0;
	background-repeat:no-repeat;
	background-size:cover;
	position:fixed;
	z-index:9990;
	top:0;
	left:0;
	width:100%;
    height: 100%;
    background-color: rgba(0,0,0,0.70);
}
/***********/
#center_box {
	position:fixed;
	right:0;
	top:0;
	width:450px;
	margin:0;
	height:100%;
	display:block;
	overflow-y:scroll;
	padding:100px 0;
    border-left: 1px solid #dcdcdc;
    transition: 0.5s ease;
    transform: translateX(450px);
}
#center_box.active {
    transform: translateX(0);
}
/**************************************
	MENUの中身
***************************************/
.sp_search {
    position: absolute;
    top: 25px;
    left: 20px;
    .header_search_btn {
        width: 300px;
    }
}

.sp_menu_cont {
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.sp_menu {
    a {
        color: inherit;
    }
    li > a {
        color: inherit;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f7f7f7;
        padding: 25px 20px;
        font-size: 20px;
        border-bottom: 1px solid #ccc;
    }
}

.sp_sub_bg {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    > p {
        width: 50%;
        &:nth-child(odd) a {
            border-right: 1px solid #eee;
        }
    }
    a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eeeeee;
    }
}



@media only screen and (max-width: 1024px){
#sp_box {
	display:block;
}    

}

@media only screen and (max-width: 768px){
/**************************************
	ハンバーガーアイコン
***************************************/
#spicon {
    right: 20px;
	top:60px;
}


@keyframes iconClose {
    0% {
        transform: scale(1);
    	top:15px;
    }
    20% {
        transform: scale(0);
    	top:15px;
    }
    80% {
        transform: scale(0);
    	top:15px;
    }
    100% {
        transform: scale(1);
    	top:15px;
    }
}
@keyframes iconOpen {
    0% {
        transform: scale(1);
    	top:15px;
        position: absolute;
    }
    20% {
        transform: scale(0);
    	top:15px;
        position: absolute;
    }
    80% {
        transform: scale(0);
    	top:15px;
        position: fixed;
    }
    100% {
        transform: scale(1);
    	top:15px;
        position: fixed;
    }
}


#center_box {
	width:400px;
	padding:100px 0;
}
#center_box.active {
    transform: translateX(0);
}
/**************************************
	MENUの中身
***************************************/
.sp_search {
    .header_search_btn {
        width: 260px;
    }
}
.sp_menu {
    li > a {
        padding: 25px 20px;
        font-size: 20px;
    }
    .event_none {
        border-bottom: 0;
    }
}

.sp_sub_bg {
    > p {
        font-size: 18px;
        width: 100%;
        &:nth-child(odd) a {
            border-right: 0;
        }
    }
    a {
        padding: 20px 20px;
    }
}

  
}


