@charset "utf-8";



/*=== Global Navi ===*/
nav {
	position: sticky;
	top: 0;
	width: 84%;
	margin-right: auto;
	margin-left: auto;
	background-color: #FFF;
	padding-bottom: 1.2vw;
	z-index: 100;
	box-shadow: 0px 8px 8px -6px #999;
}

nav  ul {
	display:flex;
	flex-wrap:wrap;
	justify-content: space-between;
	width: 100%;
}

nav  ul li {
	text-align: center;
	font-size: 1.1vw;
	line-height: 120%;
}

nav ul li a,
nav ul li a:visited {
	text-decoration: none;
	color: #000;
	display: block;
	padding-top: 0.7em;
	padding-right: 1.5em;
	padding-left: 1.5em;
	border-top-width: 4px;
	border-top-style: solid;
	border-top-color: #CCC;
	margin-top: 0.8em;
	transition:all 0.1s;
}

nav ul li a:hover {
	border-top-color: #C00;/*#4EA6B6*/
	filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.3));
	font-weight: 500;
}

nav ul li.this {
	color: #000;
	display: block;
	padding-top: 0.7em;
	padding-right: 1.5em;
	padding-left: 1.5em;
	border-top-width: 4px;
	border-top-style: solid;
	border-top-color: #000;
	margin-top: 0.8em;
}

.eng {
	font-size: 0.8vw;
}

/* トグル */
.navToggle {
    display: none;
}


@media screen and (max-width: 767.98px){


/*=== Global Navi ===*/
nav {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    background: #fff;
	padding-bottom: 0vw;
    color: #000;
    text-align: center;
    transform: translateY(-100%);
    transition: all 0.6s;
    width: 100%;
	height: 100%;
	margin-left: 0%;
}


nav ul {
	overflow: auto;
	display:flex;
	flex-wrap:wrap;
	width: 100%;
	height: 100%;
}

nav ul li {
	text-align: center;
	font-size: 5vw;
	line-height: 120%;
	width: 100%;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #999;
}

nav ul li a,
nav ul li a:visited {
	text-decoration: none;
	color: #000;
	display: block;
	padding-top: 0.4em;
	padding-right: 0em;
	padding-bottom: 0em;/*0.7*/
	padding-left: 0;
	border-top-style: none;
	margin-top: 0.6em;
	transition:all 0.1s;
	background-color: #FFF;
	height: auto;/*100%*/
}


nav ul li a:hover {
	border-top-color: #E7E9E7;/*#4EA6B6*/
	filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0));
	font-weight: 400;
}


nav ul li.this {
	color: #FFF;
	width: 100%;
	padding-top: 0.7em;
	padding-right: 0em;
	padding-bottom: 0em;
	padding-left: 0;
	background-color: #4799B4;
	border-top-width: 4px;
	border-top-style: none;
	border-top-color: #000;
	margin-right: 0px;
	margin-top: 0em;
	height: auto;
}

.eng {
	font-size: 3.8vw;
}

.iconMenu {
	display: flex;
	justify-content: center;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
}

.iconMenu a,
.iconMenu a:visited {
	
}

.iconMenu img {
	margin-right: 6vw;
	margin-left: 6vw;
}



/* このクラスを、jQueryで付与・削除する */
nav.active {
    transform: translateY(0%);
}

/* トグル */
.navToggle {
	display: block;
	position: fixed;    /* bodyに対しての絶対位置指定 */
	right: 16px;
	top: 14px;
	width: 48px;
	height: 54px;
	cursor: pointer;
	z-index: 20;
	text-align: center;
	background-color: #4B9DB8;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border: 1px solid #FFF;
	margin-top: 0px;
}

.navToggle span {
    display: block;
    position: absolute;    /* .navToggleに対して */
    width: 34px;
    border-bottom: solid 3px #eee;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
    left: 6px; 
}

.menu {
	font-size: 9px;
	font-weight: bold;
}

.navToggle span:nth-child(1) {
    top: 9px;
}
 
.navToggle span:nth-child(2) {
    top: 18px;
}
 
.navToggle span:nth-child(3) {
    top: 27px;
}
 
.navToggle span:nth-child(4) {
    border: none;
    color: #eee;
    font-size: 6px;
    top: 34px;
    width: 40px;
    left: 2px;
	text-align: center;
}

/* 最初のspanをマイナス45度に */
.navToggle.active span:nth-child(1) {
    top: 18px;
    left: 6px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
 
/* 2番目と3番目のspanを45度に */
.navToggle.active span:nth-child(2),
.navToggle.active span:nth-child(3) {
    top: 18px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}


}
