@charset "UTF-8";

/* 不燃板加工ページ — バリアフリー製品と同じテキストのみレイアウト */

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

.plate-page .product-detail-hero {
	margin-bottom: 56px;
}

/* Content */

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

.plate-block__text {
	margin: 0;
	padding: 0;
	color: #333;
	font-size: 1.5rem;
	letter-spacing: 0.04em;
	line-height: 2;
}

.plate-block__text p {
	margin: 0;
}

.plate-block__text p + p {
	margin-top: 0.6em;
}

/* Back button */

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

.plate-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) {
	.plate-page .product-detail-hero {
		margin-bottom: 96px;
	}

	/* ヒーロー画像（右寄せ 78%）の左端にテキストを揃える */
	.plate-block__text {
		margin-left: 22%;
	}

	.plate-page__back {
		position: relative;
		overflow: hidden;
		isolation: isolate;
		background: #fff;
		color: #fff;
		transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.plate-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) {
		.plate-page__back:hover,
		.plate-page__back:focus-visible {
			color: var(--color-navy);
			opacity: 1;
		}

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

/* SP */

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

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

	.plate-page .product-detail-hero {
		margin-bottom: 36px;
	}

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

	.plate-block__text {
		font-size: 1.3rem;
		line-height: 1.9;
	}

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