@charset "shift_jis";

#faculty-menu {
	display:none;	
}

@media screen and (max-width: 767px) {

#searchButton {
	display: none;
	}

#openButton {
	display: none;
	}

/*#page-top {
	display: block !important;
}*/
	
#page-top {
    display: none;
}

#gotop {
    margin-top:0 !important;
}

.pc {
	display: none !important;
	}
	
.sp {
	display: block !important;
	}
	
#container #boxLeft {
	width:auto;
	float:none;
	clear:none;
	margin: 0;
	overflow:hidden;
	}
	
#container #content {
	width: auto;
    float: none;
}

#container #side {
	width:auto;
	float:none;
	margin:0 10px;
	}			
	

#mainInner {
	display:none !important;
	}

#MainSp {
	width:auto;
	height:auto;
	display:block !important;
	}	
	
#MainSp img {
	width:100%;
	height:auto;
	}	
	

#main #course {
	width:auto;
	background-color:#fff;
	border:1px solid #4B7BA3;
	display:block !important;
	overflow:hidden;
	padding:10px;
	}

#course h2 {
	color:#fff;
	background-color:#DE8F19;
	padding:8px;
	}
	
#course ul {
	margin:0;
	padding:0;
	overflow:hidden;
	}
	
#course ul li {
	width:33.3%;
	height:auto;
	display:inline;
	float:left;
	margin-bottom:5px;
	}
	
#course ul li a {
	display:block;
	color:#333;
	padding:8px 15px 8px 35px;
	border-left:1px solid #ccc;
	border-bottom:1px solid #ccc;
	border-top:1px solid #ccc;
	border-right:none;
	background: url(../images/icon_sp.gif) 10px center no-repeat;
	text-decoration:none;
	margin:0;
	}
	
#course ul li:last-child a {
	border-right:1px solid #ccc;
	}
	
#course ul li a:hover {
	border-top:1px solid #333 !important;
	border-bottom:1px solid #333 !important;
	border-right:1px solid #333 !important;
	border-left:1px solid #333 !important;
	}

	
}
@media screen and (max-width: 710px) {
	
#course ul li {
	width:50%;
	}
	
#course ul li:nth-child(3n+3) a {
	border-right:none;
	}		
	
#course ul li:nth-child(2n+2) a {
	border-right:1px solid #ccc;
	}
	
#course ul li:last-child a {
	border-right:1px solid #ccc;
	}
	
}

@media screen and (max-width: 640px) {
/*　学部メニューボタン（右上）　*/
#facultyBar .sp-menu-btn {
	display: block !important;
	}
	
	#facultyBar ul li.sp-menu-btn {
		padding-top: 4px;
		margin-right: 8px;
	}
	#facultyBar ul li.sp-menu-btn a {
		background-image: none;
		background-color: #7DA4C4;
		color:#FFF;
		text-indent: inherit;
		line-height: 26px;
		height: 26px;
		padding: 2px 10px;
		border-radius: 14px;
		text-decoration: none;
		font-weight: bold;
		font-size: 90%;
	}
/*　学部メニューボタン（右上）　*/


/*　学部メニューボタン（左下）　*/
#faculty-menu {
	 display:block !important;
	  position: fixed;
	  bottom: 20px;
	  left: 20px;
	  font-size: 77%;
	}
	#faculty-menu a {
		background-color:rgba(74,123,163,0.9);
		text-decoration: none;
		color: #fff;
		width: 80px;
		padding: 24px 0;
		text-align: center;
		display: block;
		border-radius: 5px;
		font-size: 120%;
	}
	#faculty-menu a:hover {
		text-decoration: none;
		background: #999;
	}
/*　学部メニューボタン（左下）　*/		

}



@media screen and (max-width: 490px) {	
	
#course ul li {
	width:auto;
	height:auto;
	display:block;
	float:none;
	margin:0 0 2px;
	}
	
#course ul li a {
	padding:8px 15px 8px 30px;
	}	
	
	
#course ul li:nth-child(3n+3) a {
	border-right:none;
	}		
	
#course ul li:nth-child(2n+2) a {
	border-right:none;
	}
	
#course ul li:last-child a {
	border-right:none;
	}
	
#course ul li a {
	border-right:1px solid #ccc !important;
	}	

	
#container #aside {
    width: auto;
	height:auto;
	margin:20px 10px;
	
	position: relative;
	overflow: hidden;
	display:block;
	float:none;
}

#container #asideBanner {
	overflow: hidden;
	margin-bottom:0;
	float:none;
}

#container #aside img {
	width:100%;
	height:auto;
}

#container #aside ul {
	position: relative;
	left: 50%;
	float: left;
	
	padding: 0;
    margin: 0;
    width: 100%;
    }
	
#container #aside ul li {
	width:49%;
	position: relative;
	left: -50%;
	float: left;
	
	padding: 0;
	margin: 0 0 5px;
	list-style-type:none;
    }

#container #aside ul li:nth-child(odd) {
	margin-right:1%;
}

#container #aside ul li:nth-child(even) {
	margin-left:1%;
}

#container #content {
    float: none;
    margin-left: 10px;
    margin-right: 10px;
    padding-bottom: 20px;
    width: auto;
	padding-left:0;
}

}

@media screen and (max-width: 490px) {
		
			
#content .floatRight {
	float:none;
	margin:20px 0;
	}

#content .frobject {
	text-align:center
	}
	
#content .frobject img {
	width:80%;
	height:auto;
	}

.content-inside img {
	width:97%;
	height:auto;
	text-align:center;
	margin-bottom:10px;
	}
	
#content p.caption {
	margin-top:0 !important;
	}	
}


@media screen and (max-width: 414px) {

#searchButton {
	display: block !important;
	}

#openButton {
	display: block !important;
	}

#openButton p{
	width: 100%;
	height: auto;
	display: inline-block;
	}	

}