@media screen and (max-width: 768px){
    
	
	/*========= ナビゲーションのためのCSS ===============*/

	#sp-gnav{
		/*position:fixed;にし、z-indexの数値を大きくして前面へ*/
		position:fixed;
		z-index: 999;
		/*ナビのスタート位置と形状*/
		top:0;
		right: -120%;
		width:100%;
		height: 100vh;/*ナビの高さ*/
		/*動き*/
		transition: all 0.3s;
		background-color: var(--main);
		background-color: #333;
        background: #fff;
	}

	#sp-gnav.panelactive .bg{
		width: calc(100% - 20px);
        margin: 60px 0 0 0;
        background-color: #f5f5f5;
        padding: 30px 20px 50px;
	}

	/*アクティブクラスがついたら位置を0に*/
	#sp-gnav.panelactive{
		right: 0;
	}

    
    /*body.active #sp-head,
    body.active .header{
        position: relative;
        top: 0;
    }*/
    
	/*ナビゲーションの縦スクロール*/
	#sp-gnav.panelactive #g-nav-list{
		/*ナビの数が増えた場合縦スクロール*/
		position: fixed;
		z-index: 999; 
		width: 100%;
		height: 100vh;/*表示する高さ*/
		overflow: scroll;
		-webkit-overflow-scrolling: touch;
        margin: 60px 0 0;
        padding: 20px 20px 200px;
		/*width: calc(100% - 20px);*/
        background-color: #fff;
		text-align: left;
        border-top: 1px #e5e5e5 solid;
	}

	#sp-gnav.panelactive #g-nav-list .g-nav-ttl{
		font-size: 1.4rem;
        font-weight: bold;
        color: #fff;
        background: var(--main);
		background: url(../img/dark_fish_skin.png) repeat center;
        padding: 6px 3px 6px 10px;
        /* margin: 0 0 0 50px; */
        line-height: 1;
        width: 100%;
	}

    #sp-gnav.panelactive #g-nav-list .g-nav-u-list{
        padding: 0 0 10px;
	}
    
	#sp-gnav.panelactive #g-nav-list .g-nav-u-list a{
		display: block;
        color: #333;
        font-size: 1.5rem;
        padding: 16px 0 14px 0;
        font-weight: 500;
        position: relative;
        border-bottom: 1px #ddd solid;
	}
    #sp-gnav.panelactive #g-nav-list .g-nav-u-list li:last-child a{
        border-bottom: none;
	}

	#sp-gnav.panelactive #g-nav-list .g-nav-u-list a::before{
		display: block;
        content: "\f105";
        color: var(--main);
        font-family: var(--webicon);
        font-weight: 900;
        position: absolute;
        top: calc(50% - 10px);
        right: 15px;
	}


	/*========= ボタンのためのCSS ===============*/
	.sp-gnav-btn{
		position:relative;
		z-index: 9999;/*ボタンを最前面に*/
		top: 0;
		right: 0;
		cursor: pointer;
		width: 60px;
		height: 60px;
		background: #fff;
	}
	.header-contact .sp-gnav-btn ,
	.header-recruit .sp-gnav-btn {
		position: absolute;
		top: 0;
		right: 0;
	}
	.sp-gnav-btn span{
		display: inline-block;
		transition: all .4s;
		position: absolute;
		left: 20px;
		height: 2px;
		border-radius: 2px;
		background-color: #172026;
		width: 35%;
		right: 0;
		left: 0;
		margin: 0 auto;
	}
	
	/*(メニュー無しver) 
	.sp-gnav-btn span:nth-of-type(1) {
		top: 20px; 
	}
	.sp-gnav-btn span:nth-of-type(2) {
		top: 28px;
	}
	.sp-gnav-btn span:nth-of-type(3) {
		top: 36px;
	}*/
	
	/*(メニュー有りver) */
	.sp-gnav-btn span:nth-of-type(1) {
		/* top: 16px; */
		top: 12px;
	}
	.sp-gnav-btn span:nth-of-type(2) {
		/* top: 50%;
		transform: translateY(-50%); */
		top: 20px;
	}
	.sp-gnav-btn span:nth-of-type(3) {
		top: 28px;
	}
	
	/*×に変化*/
	.sp-gnav-btn.active{
		/* background: #fff; */
	}
	.sp-gnav-btn.active span{
		background-color: var(--main);
	}
	
	/*×に変化(メニュー無しver) 
	.sp-gnav-btn.active span:nth-of-type(1) {
		top: 22px;
		left: 19px;
		transform: translateY(6px) rotate(-45deg);
		width: 40%;
	}
	.sp-gnav-btn.active span:nth-of-type(2) {
		opacity: 0;
	}
	.sp-gnav-btn.active span:nth-of-type(3){
		top: 34px;
		left: 19px;
		transform: translateY(-6px) rotate(45deg);
		width: 40%;
	}*/	
	
	/*×に変化(メニュー有りver) */
	.sp-gnav-btn.active span:nth-of-type(1) {
		top: 15px;
        left: 0px;
        transform: translateY(6px) rotate(-45deg);
        width: 40%;
	}
	.sp-gnav-btn.active span:nth-of-type(2) {
		opacity: 0;
	}
	.sp-gnav-btn.active span:nth-of-type(3){
		top: 27px;
        left: 0px;
        transform: translateY(-6px) rotate(45deg);
        width: 40%;
	}
	
	/*** menu-txt ***/
	.sp-gnav-btn .menu-txt{
		font-size: 1rem;
		font-family: var(--en);
		line-height: 1;
		font-weight: 600;
		color: #777;
		letter-spacing: 0;
		text-align: center;
		padding: 39px 0 0;
		left: 0.05em;
	}

	/* .sp-gnav-btn.active .menu-txt{
		color: #fff;
	} */

	
	body.active .nav-box.is-fixed{
		z-index: 99;
	}

	/* カテゴリナビ */
	#sp-gnav .g-nav-cate-list{
		display: flex;
        flex-wrap: wrap;
        gap: 1px;
		margin: 0 0 15px;
		background-color: #ccc;
		border: solid 1px #ccc;
		border-top: none;
	}

	#sp-gnav .g-nav-cate-list .g-nav-cate-item{
		width: calc((100% - 2px) / 3);
        height: 100px;
	}

	#sp-gnav .g-nav-cate-list .g-nav-cate-item a{
		width: 100%;
        height: 100%;
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        background-color: #fff;
		/* background: url(../img/bg-gray-texture.jpg) repeat center / auto; */
        font-size: 1.2rem;
        padding: 10px 5px;
        padding: 0px 5px 10px 5px;
        color: #333;
	}

	#sp-gnav .g-nav-cate-list .g-nav-cate-item a .img{
		width: 56px;
        height: 60px;
        color: #fff;
        /* background-color: #ccc; */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0;
	}

	#sp-gnav .g-nav-cate-list .g-nav-cate-item a .img img{
		width: 100%;
        height: 100%;
        max-width: 40px;
        max-height: 40px;
        object-fit: contain;
        object-position: center;
	}

	#sp-gnav .g-nav-cate-list .g-nav-cate-item a em{
		font-size: 1.2rem;
        font-weight: 600;
        line-height: 1.3;
	}
}