@charset "UTF-8";
/* 中学校教材ページCSS Document */

.subjectBox{
	text-align: left;
}
.subjectBox .flexBox_four div span.junior,
.subjectBox .flexBox_four div span.elementary,
.subjectBox .flexBox_four div span.university,
.subjectBox .flexBox_four div span.teacher,
.subjectBox h4.subject-title span.junior,
.subjectBox h4.subject-title span.elementary,
.subjectBox h4.subject-title span.university,
.subjectBox h4.subject-title span.teacher,
.subjectBox .flexBox_map div.map_73 span.junior,
.subjectBox .flexBox_map div.map_73 span.elementary{
	color:#fff;
	padding: 1px 10px;
	border-radius: 10px;
	display: inline-block;
	font-size: 0.9rem;
	margin-left: 0.25rem;
	font-weight: bold;
}
.subjectBox .flexBox_four div span.junior,
.subjectBox h4.subject-title span.junior,
.subjectBox .flexBox_map div.map_73 span.junior{
	background-color: #00bfff;	
}
.subjectBox .flexBox_four div span.elementary,
.subjectBox h4.subject-title span.elementary,
.subjectBox .flexBox_map div.map_73 span.elementary{
	background-color: #ff8c00;
}
.subjectBox .flexBox_four div span.university,
.subjectBox h4.subject-title span.university{
	background-color: #4169e1;
}
.subjectBox .flexBox_four div span.teacher,
.subjectBox h4.subject-title span.teacher{
	background-color: #ff69b4;
}

.subjectBox .flexBox_four div{
	position: relative;
}
.subjectBox .flexBox_four::before{
	content:"";
  display: block;
  width:23%;
  order:1;
}
.subjectBox .flexBox_four::after{
	content:"";
  display: block;
  width:23%;
}

.subjectBox .flexBox_four div a{
	text-decoration: none;
}

.subjectBox .flexBox_four div img,
.subjectBox .flexBox_half_child ul li img{
	width: 100%;
}

.subjectBox .flexBox_four div h4,
.subjectBox .flexBox_map div.map_73 h4{
	font-size: 1.1rem;
	line-height: 1.8rem;
}
.subjectBox .flexBox_four div h4 span,
.subjectBox .flexBox_half_child ul li h4 span{
	font-size:0.9rem;
	display: block;
	line-height: 1.8rem;
}
.subjectBox h4.subject-title{
	font-size: 1.3rem;
	border-bottom:2px solid #AB886D;
	margin: 20px 0 10px;
	padding-bottom:10px;
}
.subjectBox .flexBox_four div a:hover img,
.subjectBox .flexBox_half_child ul li a:hover img{
	opacity:0.5;
	transition:0.3s;
}
.subjectBox .flexBox_half_child,
.subjectBox .flexBox_map{
	display: flex;
    flex-wrap: wrap;
	justify-content: space-between;	
	margin-top: 20px;
}
.subjectBox .flexBox_half_child div{
	width:48%;
}
.subjectBox .flexBox_half_child ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;	
}
.subjectBox .flexBox_half_child ul li{
	width:48%;
	list-style: none;
}
.subjectBox .flexBox_half_child ul li a{
	text-decoration: none;	
}
.subjectBox .price span{
	font-size:1rem;
	padding-left:10px;
}
.subjectBox .flexBox_map div.map_23{
	width:23%;
}
.subjectBox .flexBox_map div.map_73{
	width:73%;
}
.subjectBox .flexBox_map div.map_23 img{
	width:100%;
}
.subjectBox .flexBox_map div.map_73 h5{
	margin: 20px 0 10px;
	border-bottom: 1px solid #999;
	padding:5px 0;
}
	
/*ページ内リンク*/
ul.pagenai-list{
	text-align: center;
	margin: 10px auto;
}
ul.pagenai-list li{
	display: inline-block;
	margin-bottom: 10px;
	margin-top: 20px;
}
ul.pagenai-list li a{
	text-decoration: none;
	color: #AB886D;
	border:1.5px solid #AB886D;
	padding: 10px;
	margin-right: 5px;
}
ul.pagenai-list li a:hover{
	background-color: #AB886D;
	color: #fff;
}

/*スマホ設定*/
@media screen and (max-width:767px) {
	.subjectBox .flexBox_half_child,
	.subjectBox .flexBox_map{
		display: block;
	}
	.subjectBox .flexBox_map{
		margin-top: 0;
	}
	.subjectBox .flexBox_half_child div,
	.subjectBox .flexBox_map div.map_23,
	.subjectBox .flexBox_map div.map_73{
		width:100%;
	}
	.subjectBox .flexBox_map div.map_23{
		text-align: center;
	}
	.subjectBox .flexBox_map div.map_23 img{
		width:70%;
	}
}