main .container {
	max-width:1160px;
}

main .title_area {
	background: #666;
	overflow: hidden;
	margin-bottom:40px;
}

main .title_area .container {
	box-shadow: 0 36px 0px 0px #666, 0 -36px 0px 0px #666, 48px 0 60px -16px rgba(0,0,0,0.4), -48px 0 60px -16px rgba(0,0,0,0.4);
	padding:2em;
}

main .title_area h1 {
	font-size:1.8em;
	font-weight:bold;
	color:#FFF;
	text-align: center;
	line-height: 1.4;
}

main .title_area h1 span {
	display:block;
	color:#FFCB04;
	font-weight:bold;
	font-size:0.67em;
}

#cases .title_area + .container h1 {
	font-size: 1.4em;
	font-weight: 500;
	border-bottom:solid 1px #CCC;
}

#cases .title_area + .container h1 span {
	font-weight: 500;
	display: inline-block;
	padding-bottom:0.5em;
	position: relative;
}

#cases .title_area + .container h1 span:after {
	content:"";
	display: block;
	width: 100%;
	height: 0;
	outline: solid 2.5px var(--Yellow);
	position: absolute;
	bottom: 0;
	left: 0;
}

#cases ul {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: left;
	gap:32px 14px;
	margin:2em auto;
	width: 100%;
	max-width: 692px;
}

#cases ul li {
	width: calc((100% - 14px) / 2);
}

#cases ul li a {
	display: block;
	color:var(--DarkGray);
}

#cases ul li a:hover,
#cases ul li a:active,
#cases ul li a:focus,
#cases ul li a:visited {
	text-decoration: none;
}

#cases ul li a figure {
	overflow: hidden;
	border-radius: 4px;
	background: var(--PaleBlue);
}

#cases ul li a figure img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

#cases ul li a p {
	text-align: justify;
	font-weight: 500;
	margin:0.7em 0;
}

#cases ul li a span {
	display: inline-block;
	vertical-align: top;
	border:solid 1px #B3B3B3;
	border-radius: 1em;
	line-height: 1.6;
	color:#999;
	padding:0 0.6em 1px;
	margin:0 2px 4px;
	font-size: 1.1rem;
}

#cases .page-navi {
	text-align: center;
}

#cases .pagination a,
#cases .pagination span,
#cases .wp-pagenavi a,
#cases .wp-pagenavi span {
	padding:8px 12px;
	border:solid 2px var(--DarkGray);
	margin:6px;
	font-weight:bold;
}

#cases .pagination a,
#cases .wp-pagenavi a {
	color:var(--DarkGray);
}

#cases .pagination a:hover {
	text-decoration: none;
}

#cases .pagination span,
#cases .wp-pagenavi span {
	background: var(--DarkGray);
	color:#FFF;
}

#cases .wp-pagenavi span.extend {
	border:none;
	background: none;
	color:#999;
	margin:6px 0;
}

#cases .page-navi {
	margin: 0 0 2em;
	padding: 1em 0;
	display: block;
	overflow: hidden;
}

@media screen and (min-width: 560px) {

#cases ul li a p {
	font-size: 1.1em;
}

}

@media screen and (min-width: 640px) {

#cases ul li a span {
	font-size: 1.2rem;
}

}


@media screen and (min-width: 768px) {

#cases ul {
	gap:32px 24px;
}

#cases ul li {
	width: calc((100% - 24px) / 2);
}

}


@media screen and (min-width: 1000px) {

#cases .container {
	width: 96%;
}

#cases ul {
	max-width: none;
	gap:32px 14px;
}

#cases ul li {
	width: calc((100% - 42px) / 4);
}

#cases ul li a p,
#cases ul li a span,
#cases ul li a:hover figure,
#cases ul li a figure img {
	transition-duration: .3s;
}

#cases ul li a:hover figure {
	filter: brightness(0.8);
}

#cases ul li a:hover figure img {
	transform: scale(1.1);
}

#cases ul li a:hover p,
#cases ul li a:hover span {
	opacity: 0.6;
	text-decoration: none;
}

#cases ul li a p {
	font-size: 1.0em;
}

#cases ul li a span {
	font-size: 11px;
}

}


@media screen and (min-width: 1200px) {

#cases ul {
	gap:24px;
}

#cases ul li {
	width: calc((100% - 72px) / 4);
}

#cases ul li a span {
	font-size: 12px;
}

}