/* 中学校別定期テスト対策 */

@media screen and (min-width: 641px){

#pre {
	font-size: 16px;
	line-height: 200%;
	}

#pre ol {
	width: 1200px;
	margin: 0px auto 80px auto;
	text-align: center;
	overflow: hidden;
	position: relative;
	}

#pre h3 {
	font-size: 28px;
	border-bottom: 2px #EE7800 dotted;
	color: #EE7800;
	margin: 0px 0px 50px 0px;
	padding: 0px 0px 15px 0px;
	display: inline-block;
	}

#pre h4 {
	border-bottom: 7px #EE7800 solid;
	font-size: 24px;
	font-weight: 700;
	margin: 0px 0px 30px 0px;
	padding: 0px 0px 10px 0px;
	display: inline-block;
	}

/*
#pre h4 {
	font-size: 24px;
	font-weight: 700;
	margin: 0px 0px 60px 0px;
	position: relative;
	}

#pre h4:before {
	content: '';
	width: 50px;
	border-top: 7px #EE7800 solid;
	position: absolute;
	bottom: -30px;
	}
*/

#pre h5 {
	width: 100%;
	border-bottom:1px #F6BB7F solid;
	font-size: 21px;
	color: #EE7800;
	margin: 0px 0px 20px 0px;
	padding: 0px 0px 20px 0px;
	}

#pre h1 {
	width: 100%;
	border-bottom:1px #F6BB7F solid;
	font-size: 21px;
	color: #EE7800;
	padding: 0px 0px 20px 0px;
	}

#pre h1 span {
	margin: 0px 0px 0px 20px;
	}

#pre .main {
	text-align: left;
	}

#pre.top li {
	width: 575px;
	margin: 0px 50px 50px 0px;
	float: left;
	}

#pre.top li:nth-child(2n) {
	margin: 0px 0px 30px 0px;
	}

#pre.top li p {
	margin: 0px;
	}

#pre.top li a {
	width: 171.66px;
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ee7800+0,ee7800+100&0.8+0,1+100 */
	background: -moz-linear-gradient(left,  rgba(238,120,0,0.8) 0%, rgba(238,120,0,1) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(left,  rgba(238,120,0,0.8) 0%,rgba(238,120,0,1) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to right,  rgba(238,120,0,0.8) 0%,rgba(238,120,0,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ccee7800', endColorstr='#ee7800',GradientType=1 ); /* IE6-9 */
	border-radius: 9px;
	-moz-border-radius: 9px;
	-webkit-border-radius: 9px;
	font-size: 24px;
	font-weight: 900;
	line-height: 100px;
	color: #ffffff;
	margin: 0px 30px 0px 0px;
	float: left;
	text-align: center;
	display: block;
	}

#pre.top li a:last-child {
	margin: 0px 0px 0px 0px;
	}

#pre.top dl {
	width: 366px;
	margin: 0px 50px 0px 0px;
	float: left;
	}

#pre.top dl:last-child {
	margin: 0px 0px 0px 0px;
	}

#pre.top dl a {
	font-size: 18px;
	line-height: 50px;
	display: block;
	text-decoration: underline;
	}

#pre.top dl a p {
	border:1px #F6BB7F solid;
	font-size: 14px;
	font-weight: bold;
	color: #EE7800;
	line-height: 30px;
	margin: 0px 10px 0px 0px;
	padding: 0px 10px;
	display: inline-block;
	text-decoration: none;
	}

#pre.det li {
	width: 575px;
	border: 2px #EFEEE8 solid;
	margin: 50px 50px 0px 0px;
	float: left;
	}

#pre.det li:nth-child(2n) {
	margin: 50px 0px 0px 0px;
	}

#pre.det li h6 {
	width: 100%;
	background: #EFEEE8;
	font-size: 18px;
	font-weight: 700;
	line-height: 40px;
	margin: 0px;
	text-align: center;
	}

#pre.det li dl {
	width: 100%;
	border-bottom: 2px #EFEEE8 solid;
	line-height: 50px;
	display: table;
	}

#pre.det li dt {
	width: 150px;
	border-right: 2px #EFEEE8 solid;
	color: #EE7800;
	text-align: center;
	display: table-cell;
	vertical-align: middle;
	}

#pre.det li dd {
	padding: 0px 30px 0px 30px;
	}

#pre.det li dd span {
	margin: 0px 20px 0px 0px;
	}

#pre.det li dd span:last-child {
	margin: 0px 0px 0px 0px;
	}

#pre.det li p {
	margin: 30px;
	}

}

@media screen and (max-width: 640px){

#pre {
	line-height: 200%;
	}

#pre ol {
	width: 90%;
	margin: 50px 5% 0px 5%;
	text-align: center;
	overflow: hidden;
	position: relative;
	}

#pre h3 {
	font-size: 21px;
	border-bottom: 2px #EE7800 dotted;
	color: #EE7800;
	margin: 0px 0px 30px 0px;
	padding: 0px 0px 10px 0px;
	display: inline-block;
	}

#pre h4 {
	border-bottom: 4px #EE7800 solid;
	font-size: 18px;
	font-weight: 700;
	margin: 0px 0px 30px 0px;
	padding: 0px 0px 5px 0px;
	display: inline-block;
	}

/*
#pre h4 {
	font-size: 18px;
	font-weight: 700;
	margin: 0px 0px 40px 0px;
	position: relative;
	}

#pre h4:before {
	content: '';
	width: 40px;
	border-top: 4px #EE7800 solid;
	position: absolute;
	bottom: -10px;
	}
*/

#pre h5 {
	width: 100%;
	border-bottom:1px #F6BB7F solid;
	font-size: 18px;
	color: #EE7800;
	margin: 0px 0px 10px 0px;
	padding: 0px 0px 10px 0px;
	}

#pre h1 {
	width: 100%;
	border-bottom:1px #F6BB7F solid;
	font-size: 18px;
	color: #EE7800;
	padding: 0px 0px 10px 0px;
	}

#pre h1 span {
	margin: 0px 0px 0px 10px;
	}

#pre .main {
	text-align: left;
	}

#pre.top li {
	width: 100%;
	margin: 0px 0px 30px 0px;
	overflow: hidden;
	}

#pre.top li:last-child {
	margin: 0px 0px 0px 0px;
	}

#pre.top li p {
	margin: 0px;
	}

#pre.top li a {
	width: 48.5%;
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ee7800+0,ee7800+100&0.8+0,1+100 */
	background: -moz-linear-gradient(left,  rgba(238,120,0,0.8) 0%, rgba(238,120,0,1) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(left,  rgba(238,120,0,0.8) 0%,rgba(238,120,0,1) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to right,  rgba(238,120,0,0.8) 0%,rgba(238,120,0,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ccee7800', endColorstr='#ee7800',GradientType=1 ); /* IE6-9 */
	border-radius: 9px;
	-moz-border-radius: 9px;
	-webkit-border-radius: 9px;
	font-size: 18px;
	font-weight: 900;
	line-height: 50px;
	color: #ffffff;
	margin: 0px 3% 10px 0px;
	float: left;
	text-align: center;
	display: block;
	}

#pre.top li a:nth-child(2n) {
	margin: 0px 0px 10px 0px;
	}

#pre.top dl {
	margin: 0px 0px 30px 0px;
	}

#pre.top dl:last-child {
	margin: 0px 0px 0px 0px;
	}

#pre.top dl a {
	line-height: 40px;
	display: block;
	text-decoration: underline;
	}

#pre.top dl a p {
	border:1px #F6BB7F solid;
	font-size: 12px;
	font-weight: bold;
	color: #EE7800;
	line-height: 26px;
	margin: 0px 10px 0px 0px;
	padding: 0px 8px;
	display: inline-block;
	text-decoration: none;
	}

#pre.det li {
	width: 100%;
	border: 2px #EFEEE8 solid;
	margin: 30px 0px 0px 0px;
	}

#pre.det li h6 {
	width: 100%;
	background: #EFEEE8;
	font-size: 16px;
	font-weight: 700;
	line-height: 40px;
	margin: 0px;
	text-align: center;
	}

#pre.det li dl {
	width: 100%;
	border-bottom: 2px #EFEEE8 solid;
	padding: 20px 20px 20px 20px;
	text-align: center;
	}

#pre.det li dt {
	color: #EE7800;
	}

#pre.det li dd {
	}

#pre.det li dd span {
	margin: 0px 20px 0px 0px;
	}

#pre.det li dd span:last-child {
	margin: 0px 0px 0px 0px;
	}

#pre.det li p {
	margin: 20px;
	}

}

