/* お客様の声ギャラリー */
.p-voice-gallery {
	margin-block: 2.5rem 4rem;
}

.c-voice-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .65rem;
	margin-bottom: 2.5rem;
}

.c-voice-filter__button {
	appearance: none;
	border: 1px solid #9ba4a5;
	border-radius: 0;
	background: #fff;
	color: #333;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	padding: .75rem 1.35rem;
	transition: background-color .2s ease, color .2s ease;
}

.c-voice-filter__button:hover,
.c-voice-filter__button:focus-visible,
.c-voice-filter__button.is-active {
	background: #9ba4a5;
	color: #fff;
}

.p-voice-gallery__grid {
	align-items: start;
	display: grid;
	gap: 18px 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-voice-gallery__item {
	min-width: 0;
}

.p-voice-gallery__item[hidden] {
	display: none;
}

.p-voice-card {
	color: inherit !important;
	display: block;
	text-decoration: none !important;
}

.p-voice-card__image {
	background: #eee;
	display: block;
	overflow: hidden;
	position: relative;
}

.p-voice-card__img {
	display: block;
	height: auto;
	transition: transform .45s cubic-bezier(.25, 1, .5, 1), filter .25s ease;
	width: 100%;
}

.p-voice-card__plus {
	height: 42px;
	left: 50%;
	opacity: 0;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: opacity .25s ease;
	width: 42px;
}

.p-voice-card__plus::before,
.p-voice-card__plus::after {
	background: #fff;
	box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
	content: "";
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.p-voice-card__plus::before {
	height: 2px;
	width: 100%;
}

.p-voice-card__plus::after {
	height: 100%;
	width: 2px;
}

.p-voice-card:hover .p-voice-card__img,
.p-voice-card:focus-visible .p-voice-card__img {
	filter: brightness(.75);
	transform: scale(1.04);
}

.p-voice-card:hover .p-voice-card__plus,
.p-voice-card:focus-visible .p-voice-card__plus {
	opacity: 1;
}

.p-voice-card__caption {
	display: block;
	font-size: .9rem;
	line-height: 1.6;
	padding-top: .45rem;
	text-align: center;
}

.c-voice-lightbox {
	background: transparent;
	border: 0;
	color: #fff;
	height: 100dvh;
	margin: auto;
	max-height: none;
	max-width: none;
	padding: 3.5rem 1rem 1rem;
	width: 100%;
}

.c-voice-lightbox::backdrop {
	background: rgb(0 0 0 / 88%);
}

.c-voice-lightbox__figure {
	align-items: center;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	margin: 0;
}

.c-voice-lightbox__image {
	display: block;
	max-height: calc(100dvh - 7rem);
	max-width: min(1100px, 94vw);
	object-fit: contain;
}

.c-voice-lightbox__caption {
	margin-top: .8rem;
	text-align: center;
}

.c-voice-lightbox__close {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 2.5rem;
	line-height: 1;
	padding: .25rem .6rem;
	position: absolute;
	right: 1rem;
	top: .75rem;
}

@media (min-width: 600px) {
	.p-voice-gallery__grid {
		gap: 22px 18px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.p-voice-gallery__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.p-voice-card__img,
	.p-voice-card__plus {
		transition: none;
	}
}

/* お客様の声ページ：SWELL本文幅をコンテナいっぱいに広げる */
.page-id-1647 #main_content {
	max-width: 100%;
	width: 100%;
}
