@charset "utf-8";

@media print, screen and (min-width: 800px) {
.fixed {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 10000;
	box-shadow: 0px 1px 3px rgba(0,41,88,0.2);
	-webkit-box-shadow: 0px 1px 3px rgba(0,41,88,0.2);
 	-moz-box-shadow: 0px 1px 3px rgba(0,41,88,0.2);
}
}


nav ul {
	box-sizing: border-box;
	line-height: 1.5;
}

nav li {
	box-sizing: border-box;
	border-left: dotted 1px #ccc;
	background: #fff;
	float: left;
	font-size: 90%;
	font-weight: normal !important;
	text-align: center;
	width: 20%;
}

nav li:first-child { border-left: none;}

nav span {
	display: block;
	font-size: 75%;
	font-weight: normal;
}

nav li a {
	display: block;
	background: #2c79ad;
	color: #fff !important;
	padding: 15px 0;
	text-decoration: none !important;
	position: relative;
	z-index: 2;
}

nav a:hover {
	background: #fff;
	color: #1e87b9 !important;
	letter-spacing: 3px;
}

nav li a:before,
nav li a:after {
	content: '';
	top: 0;
	width: 50%;
	height: 100%;
	transition: all 0.4s ease;
	position: absolute;
	display: block;
	z-index: -1;
}

nav li a:before {	right: 0;}
nav li a:after { left: 0;}

nav li a:hover:before,
nav li a:hover:after {
	background: #2a94c7 !important;
	width: 0;
}

.close-bt { display: none;}


@media print, screen and (max-width: 800px) {
/*右上に固定でメニューボタンを設置*/
.drawr-bt {
	display: block;
	background: #f7f9fb;
	border-radius: 50%;
	box-shadow: 0 1px 2px #ccc;
	cursor: pointer;
	text-align: center;
	font-size: 200%;
	padding: 6px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 7777;	
}

#panel-btn-icon {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  margin: -1px 0 0 -15px; /* widthの半分引いた数 */
  background: #138ce7;
}

#panel-btn-icon:before,
#panel-btn-icon:after {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 2px;
  background: #138ce7;
}

#panel-btn-icon:before { margin-top: -10px;}
#panel-btn-icon:after { margin-top: 8px;}


/*右から出てくるメニューボックス。こちらもfixed。z-indexでメニューボタンの上に持ってきましょう。*/
.drawr {
	display: none;
	background: #fff;
	box-shadow: 0 0 4px #ccc;
	padding: 0 0 20px;	
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	z-index: 8888;
}

/*閉じるボタンを設置。z-indexを最強にしておかないと隠れちゃいます。*/
.close-bt {
	display: block;
	background: #f7f9fb;
	border-radius: 50%;
	box-shadow: 0 1px 2px #ccc;
	color: #138ce7;
	cursor: pointer;
	font-size: 200%;
	padding: 6px;
	margin: 20px 20px 10px auto;
	text-align: center;
	width: 40px;
	height: 40px;
	line-height: 37px;
	z-index: 9999;
}

nav { background: #2c79ad !important;}

/*nav ul { background: #2c79ad;}*/

nav li {
	border-left: none;
	border-bottom: solid 1px #ccc;
	float: none;
	font-size: 90%;
	margin: 0;
	text-align: left;
	width: 100%;
}

nav li:first-child { border-bottom: solid 1px #ccc !important;}
nav span { display: inline;}
nav li a {
	text-decoration: none !important;
	padding: 20px 10px;
}

nav li a:before,
nav li a:after {
	width: 100%;
	height: 50%;
	left: 0;
}

nav li a:before {	top: 0;}
nav li a:after { bottom: 0; top: auto;}

nav a:hover { letter-spacing: 0;}

nav li a:hover:before,
nav li a:hover:after {
	background: #2a94c7 !important;
	width: 100%;
	height: 0;
}
}


@media print, screen and (max-width: 480px) {
nav li a { padding: 30px 10px;}

.drawr-bt {
	top: 10px;
	right: 10px;
}

.close-bt {	margin: 10px 10px 10px auto;}

}