@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* ==========================================================================
	DESIGN VARIABLES
	========================================================================== */
:root {
	--color-bg-base: #faf8f3;
	--color-bg-warm: #f4f0e6;
	--color-sage-light: #cdd6c4;
	--color-sage: #9aaa90;
	--color-sage-deep: #4f5d49;
	--color-text-main: #2a2f2a;
	--color-text-sub: #5d6358;
	--color-amber-mute: #b8a983;
	--color-divider: rgba(122, 132, 114, 0.22);

	--font-serif: 'Noto Serif JP', serif;
	--font-sans: 'Noto Sans JP', sans-serif;
}

/* ==========================================================================
	BASE & RESET
	========================================================================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-family: var(--font-sans);
	background-color: var(--color-bg-base);
}

body {
	background-color: var(--color-bg-base);
	color: var(--color-text-main);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
	HERO / COVER
	========================================================================== */
.Hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	height: 100vh;
	box-sizing: border-box;
	overflow-y: auto;
	padding: 64px 24px;
	text-align: center;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.Hero.-active {
	display: flex;
}

.Hero__Bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url('./all.webp') center / cover no-repeat;
}

.Hero__Overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(
			to bottom,
			rgba(250, 248, 243, 0.78) 0%,
			rgba(250, 248, 243, 0.20) 32%,
			rgba(250, 248, 243, 0.20) 68%,
			rgba(250, 248, 243, 0.78) 100%
		),
		linear-gradient(
			to right,
			rgba(250, 248, 243, 0.18) 0%,
			rgba(250, 248, 243, 0) 30%,
			rgba(250, 248, 243, 0) 70%,
			rgba(250, 248, 243, 0.18) 100%
		);
}

.Hero__Inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 720px;
	margin: auto;
	padding: 48px 32px;
	background-color: rgba(250, 248, 243, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.Hero__Badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 6px 18px;
	background-color: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--color-divider);
	color: var(--color-sage-deep);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 4px;
	text-transform: uppercase;
	margin-bottom: 32px;
}

.Hero__Title {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 56px;
	letter-spacing: 0.3em;
	color: var(--color-text-main);
	line-height: 1;
	margin-bottom: 16px;
}

@media (min-width: 768px) {

	.Hero__Title {
		font-size: 88px;
	}

}

.Hero__Subtitle {
	font-family: var(--font-serif);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.4em;
	color: var(--color-amber-mute);
	text-transform: uppercase;
	margin-bottom: 8px;
}

.Hero__DecorLine {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 28px 0;
}

.Hero__DecorBar {
	height: 1px;
	width: 56px;
	background-color: var(--color-sage);
	opacity: 0.5;
}

.Hero__DecorMark {
	font-family: var(--font-serif);
	font-size: 14px;
	color: var(--color-sage);
	letter-spacing: 0.1em;
}

.Hero__Intro {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: 14px;
	line-height: 2.2;
	color: var(--color-text-main);
	max-width: 560px;
	margin: 0 auto;
}

@media (min-width: 768px) {

	.Hero__Intro {
		font-size: 15px;
	}

}

/* ==========================================================================
	PRODUCT SECTIONS
	========================================================================== */
.ProductSection {
	width: 100%;
	min-height: 100vh;
	height: 100vh;
	box-sizing: border-box;
	overflow-y: auto;
	padding: 64px 24px;
	background-color: var(--color-bg-base);
	position: relative;
	display: none;
}

.ProductSection.-active {
	display: block;
}

@media (min-width: 768px) {

	.ProductSection {
		padding: 80px 32px;
	}

	.ProductSection.-active {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

}

/* subtle dot pattern background */
.ProductSection::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(circle at 1px 1px, rgba(122, 132, 114, 0.08) 1px, transparent 0);
	background-size: 24px 24px;
	opacity: 0.6;
}

.ProductGrid {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

@media (min-width: 768px) {

	.ProductGrid {
		grid-template-columns: 360px 1fr;
		gap: 72px;
	}

}

/* Product image (left) */
.ProductImagePanel {
	display: flex;
	justify-content: center;
}

.ProductImagePanel__Wrapper {
	position: relative;
	width: 100%;
	max-width: 360px;
}

.ProductImagePanel__Frame {
	position: absolute;
	inset: 0;
	border: 1px solid var(--color-divider);
	transform: translate(12px, 12px);
	pointer-events: none;
}

.ProductImagePanel__Inner {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-bg-warm);
	border: 1px solid var(--color-divider);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ProductImagePanel__Photo {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Product details (right) */
.ProductDetails {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.ProductDetails__Ribbon {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 5px;
	padding: 5px 16px;
	border: 1px solid var(--color-sage);
	color: var(--color-sage-deep);
	background-color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	margin-bottom: 24px;
}

.ProductDetails__Title {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 500;
	color: var(--color-text-main);
	letter-spacing: 0.06em;
	line-height: 1.4;
	margin-bottom: 4px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

@media (min-width: 768px) {

	.ProductDetails__Title {
		font-size: 38px;
	}

}

.ProductDetails__EnName {
	font-family: var(--font-serif);
	font-size: 12px;
	font-weight: 300;
	color: var(--color-amber-mute);
	letter-spacing: 0.15em;
}

@media (min-width: 768px) {

	.ProductDetails__EnName {
		font-size: 13px;
	}

}

.ProductDetails__Catch {
	font-family: var(--font-serif);
	font-size: 17px;
	font-weight: 400;
	color: var(--color-sage-deep);
	letter-spacing: 0.06em;
	line-height: 1.7;
	margin: 18px 0 28px;
}

@media (min-width: 768px) {

	.ProductDetails__Catch {
		font-size: 19px;
	}

}

.ProductDetails__NoteBox {
	position: relative;
	width: 100%;
	padding: 22px 32px;
	margin-bottom: 28px;
	background-color: var(--color-bg-warm);
	border-left: 2px solid var(--color-sage);
	font-family: var(--font-serif);
	font-size: 14px;
	line-height: 1.9;
	color: var(--color-text-main);
}

.ProductDetails__QuoteMark {
	position: absolute;
	font-family: var(--font-serif);
	font-size: 36px;
	line-height: 1;
	color: var(--color-sage);
	opacity: 0.45;
	pointer-events: none;
	user-select: none;
}

.ProductDetails__QuoteMark.-open {
	top: 4px;
	left: 10px;
}

.ProductDetails__QuoteMark.-close {
	bottom: -8px;
	right: 14px;
}

.ProductDetails__Desc {
	font-family: var(--font-sans);
	font-size: 13.5px;
	line-height: 2;
	color: var(--color-text-sub);
	margin-bottom: 32px;
}

@media (min-width: 768px) {

	.ProductDetails__Desc {
		font-size: 14px;
	}

}

.ProductDetails__Specs {
	width: 100%;
	border-top: 1px solid var(--color-divider);
	margin-bottom: 28px;
}

.ProductDetails__SpecRow {
	display: grid;
	grid-template-columns: 130px 1fr;
	padding: 12px 4px;
	border-bottom: 1px solid var(--color-divider);
	font-family: var(--font-sans);
	font-size: 13px;
}

.ProductDetails__SpecRow dt {
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--color-sage-deep);
}

.ProductDetails__SpecRow dd {
	color: var(--color-text-main);
}

/* ==========================================================================
	NEXT BUTTON
	========================================================================== */
.ButtonContainer {
	margin-top: 8px;
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

.ButtonContainer.-hero {
	justify-content: center !important;
	margin-top: 36px;
}

.NextButton {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 28px;
	background-color: var(--color-sage-deep);
	color: var(--color-bg-base);
	border: 1px solid var(--color-sage-deep);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.NextButton:hover {
	background-color: var(--color-text-main);
	border-color: var(--color-text-main);
	transform: translateY(-1px);
}

.NextButton:active {
	transform: translateY(0);
}

.NextButton__Arrow {
	font-size: 14px;
	transition: transform 0.25s ease;
}

.NextButton:hover .NextButton__Arrow {
	transform: translateX(4px);
}

/* ==========================================================================
	PAGE CURL TRANSITION CANVAS
	========================================================================== */
.FxCanvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	display: none;
}

body.-transitioning .NextButton {
	pointer-events: none;
}
