﻿/* Flexnav Base Styles */
.flexnav {
	-webkit-transition: none;
	-moz-transition: none;
	-ms-transition: none;
	transition: none;
	-webkit-transform-style: preserve-3d;
	overflow: hidden;
	margin: 0 auto;
	width: 100%;
	max-height: 0;
	position: relative;
	z-index: 100;
}

.flexnav.opacity {
	opacity: 0;
}

.flexnav.flexnav-show {
	max-height: 2000px;
	opacity: 1;
	-webkit-transition: all .5s ease-in-out;
	-moz-transition: all .5s ease-in-out;
	-ms-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out;
}

.flexnav.one-page {
	position: fixed;
	top: 50px;
	right: 5%;
	max-width: 200px;
}

.flexnav li {
	font-size: 100%;
	position: relative;
	overflow: hidden;
}

.flexnav li a {
	position: relative;
	display: block;
	text-decoration: none;
	color: #555;
	padding: 10px;
	z-index: 2;
	overflow: hidden;
	background-color: #e0f3fb;
	border-bottom: 1px solid #fff;
}

/*dropdown*/
.flexnav li ul {
	/*width: 100%;*/
	/*width: 261px;/*background:url(../img/menu_dropdown_bg.gif);*/
}

.flexnav li ul li {
	font-size: 100%;
	position: relative;
	overflow: hidden;
}

.flexnav li ul.flexnav-show li {
	overflow: visible;
}

.flexnav li ul li a {
	display: block;
	background: #f1f1f1;
}

/*dropdown sub*/
.flexnav ul li ul li a {
	background: #d8d8d8;
}

.flexnav ul li ul li ul li a {
	background: #cbcbc9;
}

/*mark*/
.flexnav .touch-button {
	position: absolute;
	z-index: 999;
	top: 0;
	right: 0;
	width: 40px;
	height: 100%;
	display: inline-block;
	background: #acaca1;
	background: rgba(0, 0, 0, 0.03);
	text-align: center;
}

/*▲マーク*/
.flexnav .touch-button:hover {
	cursor: pointer;
}

.flexnav .touch-button .navicon {
	font: inherit;
	position: relative;
	top: 1em;
	font-size: 12px;
	color: #666;
}


/*スマホ用*/
.menu-button {
	position: relative;
	display: block;
	font-weight: bold;
	margin-top: 10px;
	padding: 1em;
	background: #8ec0f6;
	color: #fff;
	cursor: pointer;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-button.one-page {
	position: fixed;
	top: 0;
	right: 5%;
	padding-right: 45px;
}

.menu-button .touch-button {
	background: transparent;
	position: absolute;
	z-index: 999;
	top: 0;
	right: 0;
	width: 50px;
	height: 45px;
	display: inline-block;
	text-align: center;
}

.menu-button .touch-button .navicon {
	font: inherit;
	font-size: 16px;
	position: relative;
	top: 1em;
	color: #fff;
}



@media all and (min-width: 768px) {

	.flexnav .touch-button .navicon {
		display: none;
	}

	.flexnav .touch-button {
		display: none;
	}


	.flexnav li {
		margin-left: 2%;
	}

	.flexnav li:first-child {
		margin-left: 0;
	}

	nav ul li a {
		text-indent: -9999px;
	}

	nav>div>ul>li>a {
		height: 35px;
	}

	nav ul li#menu-item-13 a {
		background: url(../images/menu01_home.jpg) no-repeat;
		width: 39.2px;
		background-size: 100%;
	}

	nav ul li#menu-item-16>a {
		background: url(../images/menu02_about.jpg) no-repeat;
		width: 79.1px;
		background-size: 100%;
	}

	nav ul li#menu-item-20>a {
		background: url(../images/menu03_reports.jpg) no-repeat;
		width: 53.9px;
		background-size: 100%;
	}

	nav ul li#menu-item-24>a {
		background: url(../images/menu04_library.jpg) no-repeat;
		width: 91.7px;
		background-size: 100%;
	}

	nav ul li#menu-item-25>a {
		background: url(../images/menu05_network.jpg) no-repeat;
		width: 121.1px;
		background-size: 100%;
	}

	nav ul li#menu-item-183 a,
	nav ul li#menu-item-262 a {
		background: url(../images/menu06_dvd.jpg) no-repeat;
		width: 66.5px;
		background-size: 100%;
	}

	nav ul li#menu-item-46 a {
		background: url(../images/menu07_donation.jpg) no-repeat;
		width: 79.1px;
		background-size: 100%;
	}

	nav ul li#menu-item-12621 a {
		background: url(../images/menu08_inquiry.jpg) no-repeat;
		width: 52.5px;
		background-size: 100%;
	}

	nav ul li#menu-item-54 a {
		background: url(../images/menu09_english.jpg) no-repeat;
		width: 47.6px;
		background-size: 100%;
	}

	/* --about-- */
	nav ul li#menu-item-51 a {
		background: url(../images/menu02-1.png) no-repeat;
		width: 191px;
		height: 61px;
	}

	nav ul li#menu-item-51 a:hover {
		background: url(../images/menu02-1_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	nav ul li#menu-item-12746 a {
		background: url(../images/menu02-1.png) no-repeat;
		width: 191px;
		height: 61px;
	}

	nav ul li#menu-item-12746 a:hover {
		background: url(../images/menu02-1_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	nav ul li#menu-item-50 a {
		background: url(../images/menu02-2.png) no-repeat;
		width: 191px;
		height: 47px;
	}

	nav ul li#menu-item-50 a:hover {
		background: url(../images/menu02-2_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	nav ul li#menu-item-19 a {
		background: url(../images/menu02-3.png) no-repeat;
		width: 191px;
		height: 54px;
	}

	nav ul li#menu-item-19 a:hover {
		background: url(../images/menu02-3_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	/*reports*/
	nav ul li#menu-item-21 a {
		background: url(../images/menu03-1.png) no-repeat;
		width: 191px;
		height: 47px;
	}

	nav ul li#menu-item-21 a:hover,
	nav ul li#menu-item-8>a:hover {
		background: url(../images/menu03-1_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	nav ul li#menu-item-22 a {
		background: url(../images/menu03-2.png) no-repeat;
		width: 191px;
		height: 61px;
	}

	nav ul li#menu-item-22 a:hover {
		background: url(../images/menu03-2_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	nav ul li#menu-item-23 a {
		background: url(../images/menu03-3.png) no-repeat;
		width: 191px;
		height: 54px;
	}

	nav ul li#menu-item-23 a:hover {
		background: url(../images/menu03-3_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	nav ul li#menu-item-9788 a {
		background: url(../images/menu03-5.png) no-repeat;
		width: 191px;
		height: 47px;
	}

	nav ul li#menu-item-9788 a:hover {
		background: url(../images/menu03-5_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	/*library*/
	nav ul li#menu-item-52 a {
		background: url(../images/menu04-1.png) no-repeat;
		width: 261px;
		height: 61px;
	}

	nav ul li#menu-item-52 a:hover {
		background: url(../images/menu04-1_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	nav ul li#menu-item-53 a,
	nav ul li#menu-item-14>a {
		background: url(../images/menu04-2.png) no-repeat;
		width: 261px;
		height: 54px;
	}

	nav ul li#menu-item-53 a:hover {
		background: url(../images/menu04-2_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	/*Taro's Network*/
	nav ul li#menu-item-49 a {
		background: url(../images/menu05-1.png) no-repeat;
		width: 275px;
		height: 61px;
	}

	nav ul li#menu-item-49 a:hover {
		background: url(../images/menu05-1_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	nav ul li#menu-item-48 a {
		background: url(../images/menu05-2.png) no-repeat;
		width: 275px;
		height: 54px;
	}

	nav ul li#menu-item-48 a:hover {
		background: url(../images/menu05-2_ov.png) no-repeat;
		opacity: 1;
		filter: alpha(opacity=100);
		-ms-filter: "alpha( opacity=100 )";
	}

	body.one-page {
		padding-top: 70px;
	}

	.flexnav {
		overflow: visible;
	}

	.flexnav.opacity {
		opacity: 1;
	}

	.flexnav.one-page {
		top: 0;
		right: auto;
		max-width: 1080px;
	}

	.flexnav li {
		position: relative;
		list-style: none;
		float: left;
		display: block;
		overflow: visible;
	}

	.flexnav li a {
		/*border-left: 1px solid #acaca1;
      border-bottom: none;*/
	}

	.flexnav li>ul {
		position: absolute;
		top: auto;
		left: 0;
	}

	.flexnav li>ul li {
		width: 100%;
		margin: 0;
	}

	.flexnav li>ul li:first-child {
		margin: 0;
	}

	.flexnav li ul li>ul {
		margin-left: 100%;
		top: 0;
	}

	.flexnav li ul li a {
		border-bottom: none;
	}

	.flexnav li ul.open {
		display: block;
		opacity: 1;
		visibility: visible;
		z-index: 1;
	}

	.flexnav li ul.open li {
		overflow: visible;
		max-height: 100px;
	}

	.flexnav li ul.open ul.open {
		margin-left: 100%;
		top: 0;
	}

	.menu-button {
		display: none;
	}
}

.oldie body.one-page {
	padding-top: 70px;
}

.oldie .flexnav {
	overflow: visible;
}

.oldie .flexnav.one-page {
	top: 0;
	right: auto;
	max-width: 1080px;
}

.oldie .flexnav li {
	position: relative;
	list-style: none;
	float: left;
	display: block;
	background-color: #a6a6a2;
	width: 20%;
	min-height: 50px;
	overflow: visible;
}

.oldie .flexnav li:hover>ul {
	display: block;
	width: 100%;
	overflow: visible;
}

.oldie .flexnav li:hover>ul li {
	width: 100%;
	float: none;
}

.oldie .flexnav li a {
	border-left: 1px solid #acaca1;
	border-bottom: none;
	overflow: visible;
}

.oldie .flexnav li>ul {
	background: #acaca1;
	position: absolute;
	top: auto;
	left: 0;
	display: none;
	z-index: 1;
	overflow: visible;
}

.oldie .flexnav li ul li ul {
	top: 0;
}

.oldie .flexnav li ul li a {
	border-bottom: none;
}

.oldie .flexnav li ul.open {
	display: block;
	width: 100%;
	overflow: visible;
}

.oldie .flexnav li ul.open li {
	width: 100%;
}

.oldie .flexnav li ul.open ul.open {
	margin-left: 100%;
	top: 0;
	display: block;
	width: 100%;
	overflow: visible;
}

.oldie .flexnav ul li:hover ul {
	margin-left: 100%;
	top: 0;
}

.oldie .menu-button {
	display: none;
}

.oldie.ie7 .flexnav li {
	width: 19.9%;
}

/*--------------------------------1024px以上--------------------------------*/

@media all and (min-width: 1024px) {
	.flexnav li {
		margin-left: 40px;
	}

	.flexnav li:first-child {
		margin-left: 15px;
	}

	nav>div>ul>li>a {
		height: 48px;
	}

	nav ul li#menu-item-13 a {
		background: url(../images/menu01_home.jpg) no-repeat;
		width: 56px;
	}

	nav ul li#menu-item-16>a {
		background: url(../images/menu02_about.jpg) no-repeat;
		width: 113px;
	}

	nav ul li#menu-item-20>a {
		background: url(../images/menu03_reports.jpg) no-repeat;
		width: 77px;
	}

	nav ul li#menu-item-24>a {
		background: url(../images/menu04_library.jpg) no-repeat;
		width: 131px;
	}

	nav ul li#menu-item-25>a {
		background: url(../images/menu05_network.jpg) no-repeat;
		/*width: 153px;*/
		width: 173px;
	}

	nav ul li#menu-item-183 a,
	nav ul li#menu-item-262 a {
		background: url(../images/menu06_dvd.jpg) no-repeat;
		/*width: 83px;*/
		width: 95px;
	}

	nav ul li#menu-item-46 a {
		background: url(../images/menu07_donation.jpg) no-repeat;
		width: 113px;
	}

	nav ul li#menu-item-12621 a {
		background: url(../images/menu08_inquiry.jpg) no-repeat;
		width: 75px;
	}

	nav ul li#menu-item-54 a {
		background: url(../images/menu09_english.jpg) no-repeat;
		width: 68px;
	}

	/* 新・グローバルメニュー */
	.gnav {
		box-sizing: border-box;
		display: flex;
		height: 2rem;
		margin: 0 auto;
	}

	.gnav>li {
		/*親階層のみ幅を25%にする*/
		width: 30%;
	}

	/*全てのリスト・リンク共通*/
	.gnav li {
		border-right: 1px solid #ccc;
		list-style: none;
		position: relative;
	}

	.gnav li a {
		background: #fff;
		border-right: 1px solid #eee;
		color: #666;
		display: block;
		font-size: larger;
		font-weight: bold;
		height: 2rem;
		line-height: 1.1rem;
		padding: 9px 10px;
		text-align: center;
		text-decoration: none;
		width: 100%;
	}

	.gnav li a span.en {
		color: blue;
		display: block;
		font-size: 12px;
		line-height: 1.1rem;
		padding-top: 2px;
	}

	.gnav li li {
		height: 0;
		overflow: hidden;
		transition: .5s;
	}

	.gnav li li a {
		background-color: #eee;
	}

	.gnav li:hover>ul>li {
		height: 2.5rem;
		overflow: visible;
	}

	.gnav li:hover>ul>li a {
		background-color: #eee;
		padding: 9px 10px;
	}

	.gnav li:hover>ul>li a span.en2 {
		color: blue;
		display: block;
		font-size: 12px;
		line-height: 1.1rem;
		padding-top: 2px;
	}

	.balloon {
		position: relative;
		display: inline-block;
		margin-top: 5px;
		width: 100%;
	}

	.balloon:before {
		content: "";
		position: absolute;
		top: -20px;
		left: 30%;
		margin-left: -10px;
		border: 10px solid transparent;
		border-bottom: 10px solid #eee;
	}

	.balloon a {
		margin: 0;
		padding: 0;
	}

	.gnav li:hover>ul>li a:hover {
		background-color: #fff;
		border: 5px solid #eee;
		padding: 4px 5px;
	}
}