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

/*-------TOP画像---------*/

.topics_box{
    margin: 40px auto 120px;
    width: 80%;
    max-width: 1000px;
    position: relative;
}

h1{
	font-size: 26px;
	padding-bottom: 20px;
	color: #333;
	letter-spacing: 2px;
	font-weight: normal;
}

.topics{
	display:block;
	width:100%;
	padding:20px;
	text-decoration: none;
	transition: .2s;
}
@media only screen and (min-width: 521px){
	.topics:hover{
		background: #eee;
	}
}


.topics_wrap{
	display: flex;
	flex-wrap: wrap;
}
.topics_text{
	margin: auto;
	width:calc(60% - 15px);
	padding-right: 15px;
	color:#333;
}
.topics_text p{
	font-size:16px;
	padding-bottom: 5px;
}

.topics_text h2{
	font-size:18px;
	font-weight: normal;
}

.topics_wrap .img_box{
	display: flex;
	flex-wrap: wrap;
	aspect-ratio:16 / 9;
	width:calc(40% - 2px);
	line-height: 0;
	height:auto;
	text-align: center;
}
.topics_wrap .img_box img{
	height:100%;
	width:auto;
	margin: auto;
	box-shadow: 1px 1px 5px rgba(0,0,0,.2);
}
.topics_wrap .img_box img.clear{
	box-shadow: 1px 1px 5px rgba(0,0,0,0);
}
.topics_wrap .img_box img.col{
	height:100%;
}
.topics_wrap .img_box img.sq{
	width:100%;
	height:auto;
}
.topics_wrap .img_box img.grayline{
	border:1px #ddd solid;
}

@media only screen and (max-width: 767px){
	.topics_box{
	    width: 90%;
	}
	.topics{
		padding:20px 0;
	}
	.topics_text{
		width:calc(50% - 30px);
		padding:0 15px;
	}
	.topics_wrap .img_box{
		width:calc(50% - 2px);
	}
	
	.topics_text p{
		font-size:14px;
		padding-bottom: 5px;
	}
	.topics_text h2{
		line-height: 1.3;
		font-size:16px;
	}
}

@media only screen and (max-width: 520px){
	.topics_box{
		width: 84%;
		max-width:395px;
		margin: 35px auto 30px;
	}
	.topics{
		padding: 0;
		margin:0 0 50px;
	}

	.topics_wrap{
		flex-direction: column-reverse;
	}
	.topics_text{
		width:calc(100% - 20px);
		padding-right: 0;
		padding:0 10px 5px;
	}
	.topics_text p{
		font-size:13px;
		padding:2px 0 0;
	}
	.topics_text h2{
		line-height: 1.2;
		font-size:14px;
	}
	.topics_wrap .img_box{
		width:100%;
		border-radius: 8px;
		aspect-ratio:auto;
		box-shadow: 1px 1px 5px rgba(0,0,0,.2);
	}
	.topics_wrap .img_box img{
		width:100%;
		border-radius: 8px;
		box-shadow: 1px 1px 5px rgba(0,0,0,0);
	}
	.topics_wrap .img_box img.col{
		width:38%;
		height:auto;
		border-radius: 0;
	}
	.topics_wrap .img_box img.sq{
		
	}
	.topics_wrap .img_box img.grayline{
		border: none;
		box-shadow: 1px 1px 5px rgba(0,0,0,.2);
	}
	
}