@charset "UTF-8";

.slick div.img01{
	background-image: url("img/top-01.jpg");
}

.slick div.img02{
	background-image: url("img/top-02.jpg");
}

.slick div.img03{
	background-image: url("img/top-03.jpg");
}

.slick div.img04{
	background-image: url("img/top-04.jpg");
}

.top-caption h1, .chapter h1{
	font-size:2.5rem;
	text-align: center;
	margin-bottom:20px;
}

.logo-img{
	width:40%;
	margin:30px auto;
}

.flex-img{
	margin-top:40px;
}

.flex-img img{
	width:calc(100% / 4);
}


.bg-color{
	background-color:#dcdcdc;
	box-sizing: border-box;
	padding:40px 20px;
}

.bg-color .top-caption{
	width:700px;
	margin:40px auto;
}

.p-box{
	width:800px;
	margin:auto;
	box-sizing: border-box;
	padding:50px 0;
	justify-content:space-around;
}

.small-box{
	width:25%;
}

.small-box .name{
	margin-top:10px;
	color:#000;
}

.small-box h2, .small-box h3{
	text-align:center;
	font-family: 'Roboto', sans-serif;
}

.chapter{
	width:900px;
	margin:30px auto 50px;
	padding-bottom:40px;
}

.chapter:last-of-type{
	padding-bottom:0;
}

.chapter h1 {
  position: relative;
  padding: 1.5rem;
  text-align: center;
  color:#364f72;
}

.chapter h1:before {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 30px);
  width: 60px;
  height: 5px;
  content: '';
  border-radius: 3px;
  background:#364f72;
}

.com-box{
	margin:30px 0;
	align-items: center;
	box-sizing: border-box;
	padding:15px 0;
}

.com-box .round-img{
	width:10%;
}

.comment{
	width:80%;
	border-radius:10px;
	box-sizing: border-box;
	padding:20px 40px;
	position:relative;
}

.naru{
	flex-direction: row-reverse;
}

.naru .comment{
	margin-right:30px;
	background-color:#fff;
}

.naru .comment::before{
	content: "";
	position: absolute;
	top: 50%;
	left: 100%;
	margin-top: -15px;
	border: 15px solid transparent;
	border-left: 15px solid #fff;
}

.onga .comment{
	margin-left:30px;
	background-color:#fff;
}

.onga .comment::before{
	content: "";
	position: absolute;
 	top: 50%;
 	left: -30px;
 	margin-top: -15px;
 	border: 15px solid transparent;
 	border-right: 15px solid #fff;
}

.freebox{
	width:700px;
	margin:10px auto;
	padding:40px 0;
}

.freebox p{
	font-size:1.2rem;
	text-align: center;
	margin-top:15px;
}

.chapter-img-box{
	justify-content: space-around;
}

.chapter-img-box img{
	width:40%;
}

.chapter-img-box-single{
	width:60%;
	margin:auto;
	box-sizing: border-box;
	padding:20px;
	background-color:#fff;
}

/*タブレット用*/
@media screen and (max-width: 768px){

	.logo-img{
		width:50%;
		margin:30px auto;
	}
	
	.bg-color .top-caption, .p-box{
		width:600px;
	}
	
	.bg-color .top-caption{
		margin:40px auto 20px;
	}
	
	.p-box{
		padding:30px 0 40px;
	}
	
	.small-box{
		width:35%;
	}

	.chapter{
		width:700px;
		margin:30px auto 50px;
		padding-bottom:40px;
	}
	
	.chapter h1{
		font-size:2rem;
	}	

}

/*スマホ用*/
@media screen and (max-width:640px){

	.top-caption h1{
		font-size:1.9rem;
	}
	
	.chapter h1{
		font-size:1.5rem;
	}
	
	.bg-color .top-caption{
		width:280px;
	}
	
	.p-box{
		width:300px;
	}
	
	.sp-block{
		display:block;
	}
	
	.bg-color .top-caption{
		margin:30px auto;
		padding:0;
	}
	
	.small-box{
		width:100%;
		display:flex;
		height:auto;
	}
		
	.small-box:first-of-type{
		margin-bottom:20px;
	}
	
	.small-box img{
		width:40%;
		margin-right:15px;
		align-self: flex-start;
	}
	
	.small-box h2, .small-box h3{
		text-align: justify;
	}
	
	.name h3{
		font-size:1.1rem;
	}
	
	.chapter{
		width:320px;
		overflow:hidden;
	}

	.com-box .round-img{
		width:20%;
	}

	.comment{
		width:75%;
		padding:20px;
		position:relative;
	}
	
	.comment p{
		font-size:1.2rem;
	}
	
	.naru .comment{
		margin-right:20px;
	}

	.onga .comment{
		margin-left:20px;
	}

	.freebox{
		width:300px;
		padding:40px 0 20px;
	}
	
	.freebox p{
		font-size:1.1rem;
	}

	.chapter-img-box img, .chapter-img-box-single{
		width:100%;
	}
	
	.chapter-img-box img:first-of-type{
		margin-bottom:10px;
	}



}
/* CSS Document */

