@charset "utf-8";
.menu {
	font-size:90%;
	width: 160px;
	margin-left: auto;
	margin-right: auto;
}
.menu02 {
	font-size:90%;
	width: 160px;
	margin-left: auto;
	margin-right: auto;
}

/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
	position:relative;
	z-index:500;
	padding:0;
	margin:0;
	list-style-type:none;
	width:150px;
}
/* style the list items */
.menu li {
	height:26px;
	/* for IE7 */
float:left;
}
.menu li.sub {
	height: 40px;
	width: 160px;
	background-image: url(images/sub.gif);
	background-repeat: no-repeat;
	background-position: right center;
} 

/* get rid of the table */
.menu table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:100; font-size:1em;}

/* style the links */
.menu a, .menu a:visited {
	display:block;
	text-decoration:none;
	height:auto;
	line-height:25px;
	width:170px;
	color:#333333;
	text-indent:5px;
	padding-right: 2px;
	padding-left: 2px;
	font-weight: bold;
}
/* hack for IE5.5 */
* html .menu a, * html .menu a:visited {width:150px; w\idth:149px;}
.menu .sub li {
	color: #333333;
	font-size: 12px;
	height: auto;
	background-repeat: repeat;
	background-image : url(../img/menu/menu_s.gif);
}
.menu  .sub  li a:hover {
	color: #FF0000;
	background-image : url(../page/gakkou_an_nai/menu_s.gif);
}
/* style the link hover */
* html .menu a:hover {
	position:relative;
}

.menu li:hover {
	position:relative;
	color: #FFFFFF;
}

/* retain the hover colors for each sublevel IE7 and Firefox etc */
.menu li:hover > a {
}
 
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu li ul {
	visibility:hidden;
	position:absolute;
	top:-30px;
	/* set up the overlap (minus the overrun) */
left:131px;
	/* set up the overrun area */
padding:30px;
}

/* for browsers that understand this is all you need for the flyouts */
.menu li:hover > ul {visibility:visible;}


/* for IE5.5 and IE6 you need to style each level hover */

/* keep the third level+ hidden when you hover on first level link */
.menu ul a:hover ul ul{
visibility:hidden;
}
/* keep the fourth level+ hidden when you hover on second level link */
.menu ul a:hover ul a:hover ul ul{
visibility:hidden;
}
/* keep the fifth level hidden when you hover on third level link */
.menu ul a:hover ul a:hover ul a:hover ul ul{
visibility:hidden;
}

/* make the second level visible when hover on first level link */
.menu ul a:hover ul {
visibility:visible;
}
/* make the third level visible when you hover over second level link */
.menu ul a:hover ul a:hover ul{ 
visibility:visible;
}
/* make the fourth level visible when you hover over third level link */
.menu ul a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}
/* make the fifth level visible when you hover over fourth level link */
.menu ul a:hover ul a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}
