section {
	padding: 0px 0px 40px;
}

.case-single-page {
	margin: 0 auto;
	padding: 0 20px;
	max-width: 1000px;
	background-color: #ffffff;
	font-family: sans-serif;
	line-height: 1.5;
}

.case-single-page p {
	line-height: 1.7;
	margin-top: 0;
	margin-bottom: 15px;
}

.case-single-page h1,
.case-single-page h2 {
	margin: 0;
}

.case-single-page .page-header {
	margin-top: 30px;
	margin-bottom: 0;
	text-align: center;
}

.case-single-page .case-page-main-title {
	font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
	font-size: 2.0em;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #ff4c4c;
	position: relative;
	padding: .5em .7em .4em;
	border-bottom: 3px solid #b60000;
	display: block;
	margin-bottom: 10px;
}

.case-single-page .case-page-main-title::before,
.case-single-page .case-page-main-title::after {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -15px;
	width: 30px;
	height: 15px;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	content: '';
}

.case-single-page .case-page-main-title::before {
	background-color: #b60000;
}

.case-single-page .case-page-main-title::after {
	bottom: -11px;
	background-color: #ffffff;
}

.case-single-page .page-header .sub-title {
	font-size: 1.3em;
	color: #555;
	margin-top: 25px;
	margin-bottom: 50px;
	text-align: left;
}

.case-single-page h2 {
	font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
	font-size: 1.8em;
	position: relative;
	padding: .5em 0 .4em 0;
	border-bottom: 3px solid #aaaaaa;
	color: #333333;
	display: block;
	text-align: center;
	margin-top: 0px;
	margin-bottom: 25px;
	background-color: transparent;
}

.case-single-page h2::before,
.case-single-page h2::after {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -15px;
	width: 30px;
	height: 15px;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	content: '';
}

.case-single-page h2::before {
	background-color: #aaaaaa;
}

.case-single-page h2::after {
	bottom: -11px;
	background-color: #ffffff;
}

.case-single-page .main-case-visual {
	margin-top: 0;
	margin-bottom: 20px;
	margin-left: -20px;
	margin-right: -20px;
}

.case-single-page .r-single-images-grid {
	display: block;
	overflow-x: hidden;
	text-align: left;
}
.case-single-page .r-single-images-grid figure {
	width: 100%;
	margin: 0 0 20px 0;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background-color: #ffffff;
	box-shadow: none;
}
.case-single-page .r-single-images-grid img {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 500px;
	object-fit: contain;
	display: block;
	padding: 20px 20px 0;
}
.case-single-page .r-single-images-grid figcaption {
	font-size: 1.2em;
	font-weight: bold;
	padding: 20px 20px 10px;
	border-top: none;
	background-color: transparent;
}
.case-single-page .r-single-images-grid figure p {
	padding: 0px 20px 0px;
	line-height: 1.7;
	background-color: transparent;
}

.case-category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-top: 30px;
	padding: 0px;
}

.category-card {
	flex: 1 1 calc(33.333% - 20px);
	display: block;
	text-decoration: none;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s, box-shadow 0.3s;
	text-align: center;
}

.category-card p {
    padding: 0 10px;
}

.category-card-dummy {
	flex: 1 1 calc(33.333% - 20px);
	border: none;
	background-color: transparent;
	box-shadow: none;
	pointer-events: none;
	height: 0;
	margin: 0;
	padding: 0;
}

.category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.category-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.category-card h2 {
	font-size: 1.5em;
	color: #00665e;
	padding: 18px 10px 5px;
}

.case-single-page .back-link {
	text-align: center;
	margin: 40px 0;
}
.case-single-page .back-link a {
	display: inline-block;
	margin: 0 10px;
	padding: 12px 25px;
	font-weight: 500;
	border: 2px solid #00665e;
	border-radius: 50px;
	transition: background-color 0.3s;
	color: #00665e;
	text-decoration: none;
}
.case-single-page .back-link a:hover {
	background-color: #00665e;
	color: #fff;
}

@media (max-width: 768px) {

	.case-single-page .main-case-visual {
		margin-left: -20px;
		margin-right: -20px;
	}

	.case-single-page .case-page-main-title {
		font-size: 2.0em;
	}

	.case-single-page .r-single-images-grid img {
		padding: 10px 10px 0;
	}
	.case-single-page .r-single-images-grid figure {
		margin-bottom: 20px;
	}

	.case-category-list {
		flex-direction: column;
		gap: 25px;
		padding: 0px;
	}

	.category-card {
		flex: 1 1 100%;
		max-width: none;
	}

	.category-card img {
		height: 180px;
	}

	.category-card-dummy {
		display: none;
	}

	.case-single-page .back-link a {
		display: block;
		margin-bottom: 15px;
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100%;
		box-sizing: border-box;
	}
	.case-single-page .back-link a:last-child {
		margin-bottom: 0;
	}
}

.case-single-page .case-h2 {
	padding: 15px;
	border-bottom: none;
	margin-top: 0;
	margin-bottom: 0;
	text-align: left;
	background-color: transparent;
	font-family: sans-serif;
	font-size: 1.2em;
	font-weight: bold;
}

.case-single-page .case-h2::before,
.case-single-page .case-h2::after {
	content: none;
	display: none;
}