@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;
}
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:911px){
        /* サブメニュー */
        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:#195ba0;
  border: none;
  padding: 3px 10.5px;
  width: 51px;
  color: #333;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: fixed;
  top: 25px;
  right:10px;
  z-index: 1001;
  text-align: center;
  outline: none;
}
/* ハンバーガーボタン3本線 */
.navBtn button span.bar {
  display: block;
  height: 3px;
  background-color: #fff;
  margin: 9px 0;
  transition: all 0.1s;
  transform-origin: 0 0;
}
/* メニューアクティブ時 */
.navBtn button.active{
/*	background-color:#666;*/
    padding-left: 13px;
}

.navBtn button.active span.bar {
  width: 36px;
}
.navBtn button.active .bar1 {
  transform: rotate(42deg);
}
.navBtn button.active .bar2 {
  opacity: 0;
}
.navBtn button.active .bar3 {
  transform: rotate(-42deg);
  margin-left:-2px;
}
@media screen and (max-width:640px){
    .navBtn button {
        top: 15px;
    }
}



@media screen and (min-width:911px){
	/* PCでメニュボタン非表示 */
	.navBtn{display:none;}
	
	/*　PCでメニュー常時表示　*/
	nav{
		position: static;
		transform:none;
        width: calc(100% - 300px);
		max-width: 950px;
		background-color:transparent;
	}
	nav ul{
		width:100%;
		margin:auto;
        overflow: visible;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
	}
	nav ul li {
		padding: 0;
		width: auto;
		border-bottom: none;
		text-align:center;
        position: relative;
	}
	nav ul li:last-child{
		border-right:none;
	}
	nav ul li a{
		color:#fff;
        padding: 0 1em;
	}
    nav ul li.sp{
        display: none;
    }
    nav ul li.nav_toi a{
        width: 175px;
        height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #fff;
        border-radius: 6px;
        color:#000;
        font-size: 15px;
    }
    nav ul li.nav_toi a span{
        padding-right: 2em;
        background-image: url(../img/common/nav_toi_ya.png);
        background-position: right center;
        background-repeat: no-repeat;
    }
    nav ul li.nav_toi a:hover{
        background-color: #000;
        color:#fff;
    }
    nav ul li.nav_toi a:hover span{
        background-image: url(../img/common/nav_toi_ya_w.png);
    }
    
    .fixed nav ul li a{
        color:#000;
    }
    .fixed nav ul li.nav_toi a{
        background-color: #000;
        color:#fff;
    }
    .fixed nav ul li.nav_toi a span{
        background-image: url(../img/common/nav_toi_ya_w.png);
    }
    .fixed nav ul li.nav_toi a:hover{
        background-color: #195ba0;
    }
    
    /*　ドロップダウンメニュー　*/
    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 (max-width:1200px) and (min-width:911px){

    nav{
        font-size: 1.2vw;
    }
    nav ul li a {
        padding: 0 0.5em;
    }
    nav ul li.nav_toi a{
        width: 100px;
        font-size: 12px;
    }
    nav ul li.nav_toi a span{
        padding-right: 0;
        background-image: none;
    }
    .fixed nav ul li.nav_toi a span{
        background-image: none;
    }

    
    
}











