@charset "utf-8";

dl.photo {
	display: flex;
	flex-flow: column;
	row-gap: 50px;
	margin-top: 40px;
}

dl.photo>.block {
	display: flex;
	flex-flow: column;
	row-gap: 10px;
}

dl.photo>.block>dt {
	text-align: center;
}

dl.photo ul {
	display: flex;
	flex-flow: column;
	row-gap: 10px;
}

dl.photo ul:nth-of-type(n+2) {
	margin-top: 40px;
}

dl.photo ul>li {
	display: block;
}

.link_bb {
	margin-top: 20px;
	display: flex;
	flex-flow: wrap;
	justify-content: center;
}

.link_bb a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5em calc(20px + 7px + 20px) 0.5em calc(20px + 7px + 20px);
	width: 100%;
	min-height: 58px;
	max-width: 600px;
	border: 1px solid #295BA5;
	background: url(../../images/0topyaji.png) center right 20px / 7px auto no-repeat;
	transition: 0.3s all;
}

.link_bb a:hover {
	color: #FFFFFF;
	background-color: #295BA5;
	background-image: url(../../images/0topyaji_on.png);
}
#archive {
	margin-top: 80px;
}
#archive dl {
	display: flex;
	flex-flow: column;
	row-gap: 40px;
}
#archive dl > dt {
	font-size: 1.5em;
	font-weight: bold;
	padding-bottom: 20px;
	position: relative;
}
#archive dl > dt::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 80px;
	background-color: #295BA5;
}
#archive dl > dd ul {
	display: flex;
	flex-flow: wrap;
	row-gap: 20px;
	column-gap: calc((920 - 450 * 2)/920 * 100%);
}
#archive dl > dd ul > li {
	width: calc(450/920 * 100%);
	display: block;
}
#archive dl > dd ul > li a {
	display: flex;
	flex-flow: wrap;
	row-gap: 20px;
	justify-content: center;
	font-size: 14px;
	color: #295BA5;
}
#archive dl > dd ul > li a .img {
	width: 100%;
	overflow: hidden;
}
#archive dl > dd ul > li a .img img {
	transition: 0.3s all;
}
#archive dl > dd ul > li a:hover .img img {
	transform: scale(1.2);
}

@media only screen and (min-width:769px) {
	dl.photo ul {
		row-gap: 20px;
	}

	dl.photo ul:has(> :nth-child(2)) {
		flex-flow: wrap;
		justify-content: space-between;
	}

	dl.photo ul:has(> :nth-child(2))>li {
		width: calc(450/920 * 100%);
	}
}