@charset "utf-8";



/*--------------------*/
/*　以下メニューCSS　*/
/*--------------------*/

nav {
	position: fixed;
	top: 0;
	right:0;
	width: 300px;
	height: 100%;
	background-color: #333;
	transition: all 0.1s;
	transform: translate(300px);
	z-index: 1000;
    padding-top: 30px;
}
nav.open {
	transform: translate(0); 
}
nav ul {
	margin: 0;
	padding: 1em;
	list-style-type: none;
	overflow: auto;
}
nav ul li {
	border-bottom: 1px solid #fff;
	text-align: left;
}
nav ul li a {
	display: block;
	text-decoration: none;
	color: #fff;
	padding: 1em 0;
}

    @media screen and (max-width:768px){
        /* サブメニュー */
        nav ul ul{
            padding: 0;
            margin-left: 1em;
        }
        nav ul ul li:first-child {
            border-top: 1px solid #fff;
        }
        nav ul ul li:last-child {
            border-bottom: none;
        }

        nav ul ul li a:before {
            content: "-";
            padding-right: 0.5em;
        }
    }


/* 開閉ボタン */

.navBtn button {
  display: block;
    background:#333;
  border: none;
  padding: 3px 10px;
  width: 48px;
  color: #fff;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right:10px;
  z-index: 1001;
  text-align: center;
  outline: none;
}
/* ハンバーガーボタン3本線 */
.navBtn button span.bar {
  display: block;
  height: 3px;
  background-color: #fff;
  margin: 8px 0;
  transition: all 0.1s;
  transform-origin: 0 0;
}
/* メニューアクティブ時 */
.navBtn button.active{
    background-color:#666;
}

.navBtn button.active span.bar {
  width: 36px;
}
.navBtn button.active .bar1 {
  transform: rotate(38deg);
}
.navBtn button.active .bar2 {
  opacity: 0;
}
.navBtn button.active .bar3 {
  transform: rotate(-38deg);
  margin-left:-2px;
}




@media screen and (min-width:931px){
	/* PCでメニュボタン非表示 */
	.navBtn{display:none;}
	
	/*　PCでメニュー常時表示　*/
	nav{
		position: static;
		transform:none;
		width:auto;
		background-color:transparent;
        padding-top: 0;

	}
	nav ul{
		width:auto;
		margin:auto;
        padding: 0;
        overflow: visible;
        display: flex;
        justify-content: flex-end;
        font-size: 18px;
        line-height: 1.4em;
	}
	nav ul li {
		padding: 0;
		width: auto;
		border-bottom: none;
		text-align:center;
        position: relative;
        margin-left: 1em;
	}
	nav ul li:last-child{
		border-right:none;
	}
	nav ul li a{
		color:#000;
        padding: 0.8em;
        background-position: center center;
        background-size: 50% 10px;
        transition: 0.1s;
	}
    nav ul li.active a,
    nav ul li a:hover{
        background: url(../img/common/active.png) center center no-repeat;
        background-size: 100% 10px;
    }
    nav ul li.sp{
        display: none;
    }



    /*　ドロップダウンメニュー　*/
    nav ul li ul{
        list-style: none;
        position: absolute;
        z-index: 9999;
        top: 100%;
        left: 0;
        margin: 0;
        padding: 0;
    }
    nav ul li ul li{
        width: 100%;
        border-right:none;
    }
    nav ul li ul li a{
        padding: 13px 15px;
        border-top: 1px solid #999;
        background-color: #ddd;
    }
    /* 広がるように 表示 */
    nav ul li ul li{
        overflow: hidden;
        height: 0;
        transition: .2s;
    }
    nav ul li:hover ul li{
        overflow: visible;
        height: 55px;
    }


}

@media (min-width:931px) and (max-width:1400px){

    nav ul{
        font-size: 1.2vw;
        line-height: 1.4em;
    }


}











