/* CSS Document */



.jumbotron{
	background: url("/educate/law/images/toppage/mainvisual_sp.jpg") no-repeat;
	background-size: contain;
	height: 400px;
	
}


#mainVisual p{
	font-size: 20px;
	text-align: center;
	color: white;
	background: rgba(51,0,0,0.7);
	margin-top: 180px;
	padding-top:25px;
	padding-bottom:25px;
}
@media screen and (max-width:575px){
	.jumbotron{
		padding-left:0!important;
		padding-right:0!important;
	}
	.jumbotron .container{
		padding-left:0!important;
		padding-right:0!important;
	}
}

/* orver size sm */
@media screen and (min-width:576px){
	
	
	.jumbotron{
		background: url("/educate/law/images/toppage/mainvisual.jpg") no-repeat;
		background-size: cover;
		height: 700px;
	}
	
	
	#mainVisual p{
		font-size: 40px;
		text-align: center;
		color: white;
		background: rgba(51,0,0,0.7);
		margin-top: 180px;
		padding-top:50px;
		padding-bottom:50px;
	}

	
}



#topNewsWrap h2{
	text-align: center;
	color: #5e362b;
	letter-spacing: 0.2em;
	font-size: 18px;
	font-weight: 800;
}


#topNews dl dt{
	font-size: 12px;
}
#topNews dl dd{
	font-size: 12px;
}

@media screen and (max-width:575px){
	#topNews{
		padding-top:20px;
		padding-bottom:20px;
		border-top:2px solid #5e362b;
		border-bottom:1px solid #5e362b;
		margin-left:auto;
		margin-right:auto;
		max-width: 990px;
		margin-bottom: 40px;
	}
	
	#topNews dl dt{
		font-size: 14px;
		padding-bottom: 8px;
	}
	#topNews dl dd{
		font-size: 18px;
		color: #5e362b;
	}
	#topNews dl dd a{
		color: #5e362b;
		text-decoration: underline;
	}
	
	#topNews .oldnews{
		text-align: center;
		margin-left:auto;
		margin-right:auto;
	}
}

@media screen and (min-width:576px){
	
	
	
	#topNewsWrap h2{
		margin-top: 100px;
		margin-bottom: 100px;
		font-size: 34px;
	}
	#topNews{
		border-left:1px solid #5e362b;
		border-right:1px solid #5e362b;
		margin-left:auto;
		margin-right:auto;
		max-width: 990px;
		margin-bottom: 100px;
	}
	#topNews dl{
		display: flex;
		flex-wrap: wrap;
		justify-content: space-around;
	}
	#topNews dl dt{
		width: 33%;
		padding-left:80px;
		font-size: 16px;
	}
	#topNews dl dd{
		width: 67%;
		padding-right: 80px;
		font-size: 20px;
		color: #5e362b;
	}
	#topNews dl dd a{
		color: #5e362b;
		text-decoration: underline;
	}
	
	#topNews .oldnews{
		margin-top:40px;
		text-align: center;
		margin-left:auto;
		margin-right:auto;
	}
	#topNews .oldnews a{
		padding-left:40px;
		padding-right:40px;
		font-size: 20px;
		letter-spacing: 0.1em;
	}
	#topNews .oldnews a:hover{
		background: #5e362b;
		color:white;
	}
}


#features{
	background-color: #eeebe5;
}
#features h2{
	text-align: center;
	color: #5e362b;
	letter-spacing: 0.2em;
	font-size: 20px;
	font-weight: 800;
}
#features h3{
	color: #5e362b;
	font-size: 20px;
	font-weight: 800;
}
#features h4{
	color: #5e362b;
	letter-spacing: 0.2em;
	font-size: 18px;
	font-weight: 800;
}

.link a{
	color: #333333;
}
.link a:hover img{
	outline: 8px solid white;
}
.link a:hover,
.link a:hover h4,
.link a:hover p{
	text-decoration: none;
}
.link a:hover{
	color: #333;
}

@media screen and (max-width:575px){
	#features{
		padding-top:40px;
	}
	#features h2{
		padding-bottom: 20px;
		background: url("/educate/law/images/toppage/features_image.jpg") no-repeat center bottom;
		background-size: contain;
		height: 190px;
		margin-bottom: 35px;
	}
	.link{
		border-top:1px solid #ccc;
		padding-top: 20px;
	}
	.link div>div{
		padding-top:20px;
		padding-bottom:20px;
	}
	.link div>div>a h4{
		order:1;
	}
	.link div>div>a p{
		order:2;
	}
	.link div>div>a div{
		order:3;
	}
	
}

@media screen and (min-width:576px){
	#features{
		padding-top:100px;
		padding-bottom:100px;
		
		background-image: url("/educate/law/images/toppage/zensho.png");
		background-repeat: no-repeat;
		background-position: 100px 50px;
		
	}
	#features h2{
		margin-bottom: 100px;
		font-size: 34px;
	}
	
	#features .intro{
		width: 500px;
		padding-left: 50px;
		margin-bottom: 50px;
	}
	#features .intro p{
		letter-spacing: 0.18em;
		line-height: 200%;
	}
	
	.link{
		border-top: 1px solid #ccc;
		padding-top:40px;
	}
	
	.link div>div a{
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		flex-direction: column;
	}
	.link div>div>a h4{
		padding-top:10px;
		padding-bottom:4px;
		width: 100%;
		order:2;
	}
	.link div>div>a p{
		width: 100%;
		order:3;
	}
	.link div>div>a div{
		width: 100%;
		order:1;
		margin-bottom: 10px;
	}
	
}



