@charset "UTF-8";

/* 建具・家具製品ページ */

.furniture-page {
	padding-bottom: 96px;
}

/* Hero layout: shared via products.css (.product-detail-hero) */

/* Content blocks */

.furniture-block {
	margin: 0 0 88px;
}

.furniture-block__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 0 0 36px;
	text-align: center;
}

.furniture-block__icon {
	display: block;
	width: 32px;
	height: auto;
}

.furniture-block__title {
	margin: 0;
	color: var(--color-navy);
	font-size: clamp(2.4rem, 2.8vw, 3.2rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
}

.furniture-block__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 0 56px;
}

.furniture-block--reverse .furniture-block__body {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.furniture-block--reverse .furniture-block__figure {
	order: 2;
}

.furniture-block--reverse .furniture-block__text {
	order: 1;
}

.furniture-block__figure {
	margin: 0;
	background: #e8eef2;
}

.furniture-block__slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 3 / 2;
}

.furniture-block__slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.furniture-block__slide.is-active {
	z-index: 1;
	opacity: 1;
}

.furniture-block__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.furniture-block__text {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	color: #333;
	background: transparent;
	box-shadow: none;
	font-size: 1.5rem;
	letter-spacing: 0.04em;
	line-height: 2;
}

.furniture-block:not(.furniture-block--reverse) .furniture-block__text {
	margin-left: 0;
}

.furniture-block--reverse .furniture-block__text {
	margin-right: 0;
}

.furniture-block__text p {
	margin: 0 0 1.4em;
}

.furniture-block__text p:last-child {
	margin-bottom: 0;
}

/* Process grid */

.furniture-process {
	margin: 0 0 72px;
}

.furniture-process__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 28px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.furniture-process__item {
	grid-column: span 2;
}

.furniture-process__item:nth-child(4) {
	grid-column: 2 / span 2;
}

.furniture-process__item:nth-child(5) {
	grid-column: 4 / span 2;
}

.furniture-process__figure {
	position: relative;
	margin: 0;
}

.furniture-process__image {
	display: block;
	width: 100%;
	height: auto;
	background: #e8eef2;
}

.furniture-process__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
	width: fit-content;
	max-width: calc(100% - 12px);
	margin: 0;
	padding: 0.5em 0.9em;
	color: #222;
	background: #fff;
	box-shadow: none;
	font-family: var(--font-ja);
	font-size: clamp(1.2rem, 1vw, 1.45rem);
	font-weight: 300;
	letter-spacing: 0.06em;
	line-height: 1.5;
	text-align: left;
}

.furniture-block__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.furniture-block__list li {
	position: relative;
	margin: 0;
	padding-left: 1.1em;
	line-height: 2;
}

.furniture-block__list li::before {
	content: "\30FB";
	position: absolute;
	left: 0;
	top: 0;
}

.furniture-block__text > .furniture-block__list + p,
.furniture-block__text > p + .furniture-block__list {
	margin-top: 0.2em;
}

.furniture-block__text > .furniture-block__list + p {
	margin-top: 0.4em;
}

.furniture-block__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: var(--color-navy);
}

.furniture-block--placeholder .furniture-block__figure {
	background: var(--color-navy);
}

/* Back button */

.furniture-page__action {
	display: flex;
	justify-content: center;
	margin: 16px 0 0;
}

.furniture-page__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 360px;
	min-height: 56px;
	padding: 14px 48px;
	border: 1px solid var(--color-navy);
	border-radius: 999px;
	color: #fff;
	background: var(--color-navy);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: opacity 0.2s;
}

@media screen and (min-width: 768px) {
	.furniture-page__back {
		position: relative;
		overflow: hidden;
		isolation: isolate;
		background: #fff;
		color: #fff;
		transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.furniture-page__back::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: var(--color-navy);
		transform: scaleY(1);
		transform-origin: top center;
		transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
		pointer-events: none;
	}

	@media (hover: hover) and (pointer: fine) {
		.furniture-page__back:hover,
		.furniture-page__back:focus-visible {
			color: var(--color-navy);
			opacity: 1;
		}

		.furniture-page__back:hover::before,
		.furniture-page__back:focus-visible::before {
			transform: scaleY(0);
		}
	}
}

/* SP */

@media screen and (max-width: 767px) {
	.furniture-page {
		padding-bottom: 64px;
	}

	.furniture-page .products-breadcrumb {
		justify-content: flex-end;
	}

	/* SP: 全幅画像の左下端に白背景をぴったり密着 */

	.furniture-block {
		margin: 0 0 56px;
	}

	.furniture-block__heading {
		gap: 10px;
		margin: 0 0 20px;
	}

	.furniture-block__icon {
		width: 26px;
	}

	.furniture-block__title {
		font-size: 2rem;
	}

	.furniture-block__body {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.furniture-block--reverse .furniture-block__figure,
	.furniture-block--reverse .furniture-block__text {
		order: initial;
	}

	.furniture-block__figure {
		width: 100%;
	}

	.furniture-block__text {
		position: relative;
		z-index: 1;
		width: 100%;
		margin-top: 0;
		padding: 0;
		background: transparent;
		font-size: 1.3rem;
		line-height: 1.9;
	}

	.furniture-block:not(.furniture-block--reverse) .furniture-block__text {
		align-self: stretch;
		margin-left: 0;
		margin-right: 0;
	}

	.furniture-block--reverse .furniture-block__text {
		align-self: stretch;
		margin-left: 0;
		margin-right: 0;
	}

	.furniture-process {
		margin: 0 0 48px;
	}

	.furniture-process__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.furniture-process__item,
	.furniture-process__item:nth-child(4) {
		grid-column: auto;
	}

	.furniture-process__item:nth-child(5) {
		grid-column: 1 / -1;
		width: calc(50% - 6px);
		justify-self: center;
	}

	.furniture-process__caption {
		position: static;
		bottom: auto;
		left: auto;
		width: 100%;
		max-width: none;
		margin: 10px 0 0;
		padding: 0;
		color: #333;
		background: transparent;
		font-size: 1.3rem;
		font-weight: 400;
		letter-spacing: 0.04em;
		line-height: 1.55;
		text-align: center;
	}

	.furniture-page__back {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		min-height: 52px;
		font-size: 1.4rem;
	}
}
