#contents.photo_gallery_page {
	padding-bottom: 40px;
}

#contents.photo_gallery_page .photo_gallery_mainarea {
	float: none;
	width: 100%;
	margin: 0;
}

#contents.photo_gallery_page .page_contents,
.photo_gallery_archive_header .page_inner,
.photo_gallery_title .page_inner,
.pankuzu_photo_gallery .pankuzu_inner {
	width: 1000px;
	max-width: 94%;
	margin: 0 auto;
  text-align: center;
}

.photo_gallery_archive_header {
	margin: 0;
}

.photo_gallery_archive_header h2 {
	margin: 0;
	padding-top: 43px;
	min-height: 140px;
	text-align: center;
	box-sizing: border-box;
	line-height: 1;
	background: url("/assets/img/kotsu_archive/title_bk.png") no-repeat top center;
}

.photo_gallery_archive_header h2 img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.pankuzu_photo_gallery {
	background: url("/assets/img/kotsu_archive/photo_gallery_bk.png") center top no-repeat;
	min-height: 110px;
	margin: 0;
}

.pankuzu_photo_gallery p {
	margin: 0;
	padding-top: 75px;
	font-size: 14px;
	line-height: 1.6;
	color: #4e3f2b;
}

.pankuzu_photo_gallery p a {
	text-decoration: none;
	color: #4e3f2b;
}

.photo_gallery_title {
	margin-bottom: 30px;
	padding: 20px 0;
	background: url("/assets/img/kotsu_archive/title2_bk.png") top center;
}

.photo_gallery_title.photo_gallery_title--subway {
	background: #4c3c28 !important;
}

.photo_gallery_title--subway ul li:nth-of-type(1) {
	margin-right: 16px;
}

.photo_gallery_title--subway ul li:nth-of-type(2),
.photo_gallery_title--subway ul li:nth-of-type(3),
.photo_gallery_title--subway ul li:nth-of-type(4),
.photo_gallery_title--subway ul li:nth-of-type(5),
.photo_gallery_title--subway ul li:nth-of-type(6),
.photo_gallery_title--subway ul li:nth-of-type(7),
.photo_gallery_title--subway ul li:nth-of-type(8) {
	width: 110px;
}

.photo_gallery_title ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
}

.photo_gallery_title ul li:nth-of-type(1) {
	width: 15%;
	margin-right: 10px;
}

.photo_gallery_title ul li:nth-of-type(2) {
	margin-left: auto;
}

.photo_gallery_title ul li:nth-of-type(2),
.photo_gallery_title ul li:nth-of-type(3),
.photo_gallery_title ul li:nth-of-type(4),
.photo_gallery_title ul li:nth-of-type(5),
.photo_gallery_title ul li:nth-of-type(6),
.photo_gallery_title ul li:nth-of-type(7),
.photo_gallery_title ul li:nth-of-type(8) {
	width: 110px;
}

.photo_gallery_title ul li:nth-of-type(2),
.photo_gallery_title ul li:nth-of-type(3),
.photo_gallery_title ul li:nth-of-type(4),
.photo_gallery_title ul li:nth-of-type(5),
.photo_gallery_title ul li:nth-of-type(6),
.photo_gallery_title ul li:nth-of-type(7) {
	margin-right: 5px;
}

.photo_gallery_title ul li img {
	display: block;
	width: 100%;
	height: auto;
}

.photo_gallery_title ul li:nth-of-type(1) img {
	width: auto;
	height: 34px;
	max-width: 100%;
}

.photo_gallery_anchor_link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 8px;
	margin: 0 auto;
	box-sizing: border-box;
	border: 1px solid #fff;
	background: transparent;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
	text-align: center;
}

.photo_gallery_box {
	text-align: left;
}

.photo_gallery_box h4 {
	margin: 0 0 30px;
	line-height: 1;
}

.photo_gallery_box h4 img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

#contents.photo_gallery_page .page_contents .photo_gallery_list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	justify-content: stretch;
	column-gap: 20px;
	row-gap: 20px;
	margin: 0 0 60px;
	padding: 0;
	list-style: none;
}

#contents.photo_gallery_page .page_contents .photo_gallery_item {
	width: 100%;
	margin-bottom: 0;
	font-size: 90%;
	line-height: 1.4;
	position: relative;
}

.photo_gallery_box .icon_zoom {
	position: absolute;
	top: 0;
	right: 0;
	width: 35px;
	height: 35px;
	pointer-events: none;
	z-index: 2;
}

.photo_gallery_thumb {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 5px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.photo_gallery_thumb img {
	display: block;
	width: 100%;
	height: auto;
	border: solid 1px #663300;
	box-sizing: border-box;
	object-fit: cover;
	aspect-ratio: 4 / 4;
}

.photo_gallery_caption {
	margin: 0;
}

.photo_gallery_empty {
	margin-bottom: 40px;
}

@media (max-width: 767px) {
	#contents.photo_gallery_page {
		padding-bottom: 20px;
	}

	.pankuzu_photo_gallery {
		background-size: 1400px, 1400px;
		background-image: url("/assets/img/kotsu_archive/photo_gallery_bk.png"), url("/assets/img/kotsu_archive/title_bk.png");
		background-position: center top, center top;
		background-repeat: no-repeat, no-repeat;
		min-height: 90px;
	}

	.pankuzu_photo_gallery p {
		padding-top: 65px;
		padding-bottom: 15px;
		font-size: 13px;
	}

	.photo_gallery_title ul {
		display: block;
	}

	.photo_gallery_title ul li:nth-of-type(1) {
		width: 100%;
		margin: 0 auto 15px;
		text-align: center;
	}

	.photo_gallery_title ul li:nth-of-type(1) img {
		width: auto;
		height: 34px;
		max-width: 100%;
		margin: 0 auto;
	}

	.photo_gallery_title ul li:nth-of-type(2) {
		margin-left: 0;
	}

	.photo_gallery_title ul li:nth-of-type(2),
	.photo_gallery_title ul li:nth-of-type(3),
	.photo_gallery_title ul li:nth-of-type(4),
	.photo_gallery_title ul li:nth-of-type(5),
	.photo_gallery_title ul li:nth-of-type(6),
	.photo_gallery_title ul li:nth-of-type(7),
	.photo_gallery_title ul li:nth-of-type(8) {
		width: 50%;
		padding: 1%;
		float: left;
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		margin-right: 0;
	}

	.photo_gallery_anchor_link {
		width: 100%;
		min-height: 40px;
		margin: 0;
		border-color: #fff;
		background: transparent;
		color: #fff;
		font-size: 13px;
	}

	.photo_gallery_title ul::after {
		content: "";
		display: block;
		clear: both;
	}

	.photo_gallery_box h4 {
		margin-bottom: 20px;
	}

	.photo_gallery_box h4 img {
		height: 30px;
		width: auto;
	}

	#contents.photo_gallery_page .page_contents .photo_gallery_list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
		row-gap: 16px;
		margin-bottom: 40px;
	}
}
