/*====================
single-result（施工事例 詳細）
====================*/
.result-single {
	display: block;
	background: #fff;
}

/* BOX1 */
.result-single__box1 {
	padding: 72px 16px;
	background: #fff;
}

.result-single__box1-inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1024px;
	margin-inline: auto;
}

.result-single__title {
	margin: 0 0 32px;
	color: var(--color-brand-navy);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-align: center;
}

@media screen and (max-width: 900px) {
	.result-single__title {
		text-align: left;
	}
}

.result-single__gallery {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.result-single__gallery-main-wrap {
	width: 100%;
}

.result-single__gallery-main {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 1024 / 576;
	background: #dce8f4;
	cursor: zoom-in;
}

.result-single__gallery-main-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.result-single__gallery-main.is-switching .result-single__gallery-main-img {
	opacity: 0.15;
	transform: scale(1.03);
}

.result-single__gallery-fx {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.result-single__gallery-main.is-switching .result-single__gallery-fx {
	opacity: 1;
}

.result-single__gallery-fx-beam {
	position: absolute;
	inset: 0 auto 0 0;
	width: 45%;
	background: linear-gradient(90deg, transparent, rgba(0, 41, 125, 0.45), transparent);
	animation: result-gallery-beam 0.55s ease-out forwards;
}

.result-single__gallery-fx-hatch {
	position: absolute;
	inset: 0;
	opacity: 0.2;
	background: repeating-linear-gradient(
		-45deg,
		var(--color-brand-navy) 0,
		var(--color-brand-navy) 2px,
		transparent 2px,
		transparent 10px
	);
	animation: result-gallery-hatch 0.55s linear forwards;
}

@keyframes result-gallery-beam {
	0% {
		transform: translateX(-120%);
	}
	100% {
		transform: translateX(320%);
	}
}

@keyframes result-gallery-hatch {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 28px 0;
	}
}

.result-single__gallery-zoom {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--color-brand-navy);
	color: #fff;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.result-single__gallery-zoom span {
	display: block;
	margin-top: -2px;
}

.result-single__gallery-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0;
	padding: 8px 4px 12px;
	overflow-x: auto;
	list-style: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: auto;
	scrollbar-color: var(--color-brand-navy) rgba(0, 41, 125, 0.12);
}

.result-single__gallery-thumbs-wrap {
	position: relative;
}

.result-single__gallery-thumbs-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--color-brand-navy);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-align: center;
}

.result-single__gallery-thumbs-hint[hidden] {
	display: none;
}

.result-single__gallery-thumbs-hint-arrow {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.result-single__gallery-thumbs-wrap.is-scrollable::before,
.result-single__gallery-thumbs-wrap.is-scrollable::after {
	content: '';
	position: absolute;
	top: 28px;
	bottom: 0;
	z-index: 2;
	width: 28px;
	pointer-events: none;
}

.result-single__gallery-thumbs-wrap.is-scrollable::before {
	left: 0;
	background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0));
}

.result-single__gallery-thumbs-wrap.is-scrollable::after {
	right: 0;
	background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0));
}

.result-single__gallery-thumbs-wrap.is-scrollable.is-scrolled-start::before {
	opacity: 0;
}

.result-single__gallery-thumbs-wrap.is-scrollable.is-scrolled-end::after {
	opacity: 0;
}

.result-single__gallery-thumbs::-webkit-scrollbar {
	height: 8px;
}

.result-single__gallery-thumbs::-webkit-scrollbar-track {
	border-radius: 4px;
	background: rgba(0, 41, 125, 0.12);
}

.result-single__gallery-thumbs::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: var(--color-brand-navy);
}

.result-single__gallery-thumb {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	background: #dce8f4;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 160 / 96;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.result-single__gallery-thumb.is-active {
	border-color: var(--color-brand-navy);
}

.result-single__gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.result-single__gallery-thumb-item {
	flex: 0 0 calc((100% - 32px) / 5);
	max-width: calc((100% - 32px) / 5);
	scroll-snap-align: start;
}

/* BOX2 */
.result-single__box2-band {
	padding: 72px 16px;
	background: var(--color-topics-bg);
}

.result-single__box2 {
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
}

.result-single__section + .result-single__section {
	margin-top: 56px;
}

.result-single__section-title {
	margin: 0 0 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0, 41, 125, 0.2);
	color: var(--color-brand-navy);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.13em;
}

.result-single__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.result-single__details-row {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	margin: 0;
	border: 1px solid var(--color-brand-navy);
}

.result-single__details-row--full {
	grid-column: 1 / -1;
}

.result-single__details-label,
.result-single__details-value {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.13em;
}

.result-single__details-label {
	justify-content: center;
	background: var(--color-brand-navy);
	color: #fff;
}

.result-single__details-value {
	background: #fff;
	color: var(--color-brand-navy);
}

.result-single__details-row--project-name .result-single__details-value {
	justify-content: flex-start;
	text-align: left;
}

.result-single__details-value--center {
	justify-content: center;
	text-align: center;
}

.result-single__overview {
	color: var(--color-brand-navy);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.13em;
}

.result-single__overview > :first-child {
	margin-top: 0;
}

.result-single__overview > :last-child {
	margin-bottom: 0;
}

/* Lightbox */
.result-single__lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	padding: 64px 24px 20px;
	background: rgba(0, 20, 60, 0.92);
}

.result-single__lightbox[hidden] {
	display: none;
}

body.result-single-lightbox-open {
	overflow: hidden;
}

.result-single__lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}

.result-single__lightbox-stage {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
	margin: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.result-single__lightbox-img-wrap {
	display: inline-block;
	transform-origin: center center;
	will-change: transform;
}

.result-single__lightbox-img {
	display: block;
	width: min(1024px, calc(100vw - 48px));
	max-width: none;
	height: auto;
	max-height: calc(100vh - 120px);
	object-fit: contain;
}

.result-single__lightbox-hint {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-align: center;
}

@media screen and (max-width: 600px) {
	.result-single__box1,
	.result-single__box2-band {
		padding: 48px 16px;
	}

	.result-single__title {
		margin-bottom: 24px;
		font-size: 24px;
	}

	.result-single__section-title {
		margin-bottom: 20px;
		font-size: 32px;
	}

	.result-single__details {
		display: flex;
		flex-direction: column;
	}

	.result-single__details-row {
		grid-template-columns: 112px minmax(0, 1fr);
	}

	.result-single__details-row--full {
		grid-column: auto;
	}

	.result-single__details-row--project-name {
		order: 1;
	}

	.result-single__details-row--start {
		order: 2;
	}

	.result-single__details-row--completion {
		order: 3;
	}

	.result-single__details-row--client {
		order: 4;
	}

	.result-single__details-row--location {
		order: 5;
	}

	.result-single__details-value--center {
		justify-content: flex-start;
		text-align: left;
	}

	.result-single__details-label,
	.result-single__details-value,
	.result-single__overview {
		font-size: 14px;
	}

	.result-single__gallery-thumb-item {
		flex: 0 0 calc((100% - 16px) / 3);
		max-width: calc((100% - 16px) / 3);
	}

	.result-single__gallery-zoom {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

@media screen and (max-width: 374px) {
	.result-single__gallery-thumb-item {
		flex: 0 0 calc((100% - 8px) / 2);
		max-width: calc((100% - 8px) / 2);
	}
}

@media (prefers-reduced-motion: reduce) {
	.result-single__lightbox-img-wrap {
		transition: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.result-single__gallery-main-img,
	.result-single__gallery-fx,
	.result-single__gallery-thumb {
		transition: none;
	}

	.result-single__gallery-fx-beam,
	.result-single__gallery-fx-hatch {
		animation: none;
	}
}
