@charset "utf-8";
/* CSS Document */

#lower-image {
	background: url(../../about/images/main_image.jpg) center -150px;
	background-size: cover;
}

#main-contents dl {
	padding: 20px;
	border: 1px solid #dfdfdf;
	border-radius: 5px;
}

#main-contents dt {
	width: 110px;
	margin: 0 auto 10px;
}

#main-contents dt img {
	width: 100%;
	vertical-align: bottom;
}

#main-contents dd {
	font-size: 1.3rem;
	text-align: justify;
}

#main-contents ul {
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

#main-contents li {
	width: calc(50% - 10px);
	text-align: center;
	box-sizing: border-box;
}

#main-contents li:nth-of-type(n + 3) {
	margin-top: 30px;
}

#main-contents li figure img {
	border: 1px solid #dfdfdf;
	box-sizing: border-box;
}

#lower-contents #main-contents li a {
	display: block;
}

#main-contents li a figcaption {
	line-height: 1.6;
}

#main-contents li a:hover figcaption {
	color: var(--color-link);
}


@media screen and (min-width: 768px) {
	#main-contents dl {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	
	#main-contents dt {
		margin: 0;
	}
	
	#main-contents dd {
		width: calc(100% - 130px);
	}

	#lower-contents #main-contents li {
		width: calc(33.33% - 20px);
	}
	
	#lower-contents #main-contents li:nth-of-type(n + 3) {
		margin-top: 0;
	}

	#lower-contents #main-contents li:nth-of-type(n + 4) {
		margin-top: 20px;
	}
}

@media screen and (min-width: 1280px) {
	#lower-contents #main-contents li {
		width: calc(25% - 20px);
	}
	
	#lower-contents #main-contents li:nth-of-type(n + 4) {
		margin-top: 0;
	}
}