/*
 * mofli PRESENT
 * STEP8-PRESENT-F
 * Production: mofli-core/assets/frontend/css/present.css
 */

.mofli-present-page,
.mofli-present-complete {
	--present-ink: #4c4039;
	--present-muted: #7c7068;
	--present-coral: #d56f67;
	--present-coral-dark: #bd5d56;
	--present-coral-soft: #fff1ee;
	--present-cream: #fbf7f1;
	--present-line: #eadfd6;
	--present-white: #fff;
	box-sizing: border-box;
	color: var(--present-ink);
	font-family: inherit;
}

.mofli-present-page *,
.mofli-present-page *::before,
.mofli-present-page *::after,
.mofli-present-complete *,
.mofli-present-complete *::before,
.mofli-present-complete *::after {
	box-sizing: border-box;
}

.mofli-present-page {
	padding: 54px 22px 72px;
	background:
		radial-gradient(circle at 8% 7%, rgba(213,111,103,.08) 0 90px, transparent 91px),
		radial-gradient(circle at 94% 24%, rgba(213,111,103,.06) 0 120px, transparent 121px),
		var(--present-cream);
}

.mofli-present-page__inner {
	width: min(100%, 960px);
	margin: 0 auto;
}

.mofli-present-hero {
	position: relative;
	margin: 0 auto 30px;
	padding: 20px 20px 4px;
	text-align: center;
}

.mofli-present-hero__eyebrow,
.mofli-present-kicker {
	margin: 0 0 8px;
	color: var(--present-coral-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
}

.mofli-present-hero__title {
	margin: 0;
	color: var(--present-ink);
	font-size: clamp(30px, 5vw, 44px);
	line-height: 1.3;
}

.mofli-present-hero__title::after {
	content: "";
	display: block;
	width: 52px;
	height: 3px;
	margin: 14px auto 0;
	border-radius: 999px;
	background: var(--present-coral);
}

.mofli-present-hero__lead {
	max-width: 620px;
	margin: 18px auto 0;
	color: var(--present-muted);
	font-size: 15px;
	line-height: 1.9;
}

.mofli-present-card,
.mofli-present-message {
	margin: 0 0 22px;
	padding: 32px 34px;
	border: 1px solid var(--present-line);
	border-radius: 22px;
	background: var(--present-white);
	box-shadow: 0 7px 24px rgba(76,64,57,.055);
}

.mofli-present-card h2 {
	margin: 0 0 18px;
	color: var(--present-ink);
	font-size: clamp(20px, 3vw, 25px);
	line-height: 1.5;
}

.mofli-present-card p,
.mofli-present-message p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.9;
}

.mofli-present-card p:last-child,
.mofli-present-message p:last-child {
	margin-bottom: 0;
}

.mofli-present-intro {
	position: relative;
	overflow: hidden;
	padding-top: 35px;
	text-align: center;
	border-color: rgba(213,111,103,.24);
}

.mofli-present-intro::before {
	content: "PRESENT";
	position: absolute;
	top: 12px;
	right: 18px;
	color: rgba(213,111,103,.075);
	font-size: clamp(40px, 9vw, 80px);
	font-weight: 900;
	letter-spacing: .08em;
	line-height: 1;
	pointer-events: none;
}

.mofli-present-intro > * {
	position: relative;
	z-index: 1;
}

.mofli-present-intro h2 {
	margin-bottom: 14px;
}

.mofli-present-period,
.mofli-present-shipping {
	display: inline-block;
	margin: 8px 5px 0 !important;
	padding: 7px 12px;
	border-radius: 999px;
	background: #f7f1eb;
	color: #675b54;
	font-size: 13px !important;
	font-weight: 700;
}

.mofli-present-application-conditions {
	max-width: 700px;
	margin: 22px auto 8px;
	padding: 18px 20px;
	text-align: left;
	border: 1px solid rgba(213,111,103,.3);
	border-radius: 15px;
	background: var(--present-coral-soft);
}

.mofli-present-application-conditions > strong {
	display: block;
	margin-bottom: 7px;
	color: var(--present-coral-dark);
	font-size: 14px;
}

.mofli-present-application-conditions ul {
	margin: 0;
	padding-left: 1.35em;
}

.mofli-present-application-conditions li {
	margin: 4px 0;
	font-size: 13px;
	line-height: 1.75;
}

.mofli-present-message--error {
	border-color: #e8aaa4;
	background: #fff3f1;
	color: #9d443e;
}

.mofli-present-form > .mofli-present-card {
	margin-top: 22px;
}

.mofli-present-gift-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 20px;
}

.mofli-present-gift {
	position: relative;
	display: block;
	min-width: 0;
	cursor: pointer;
}

.mofli-present-gift > input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.mofli-present-gift__content {
	position: relative;
	display: flex;
	height: 100%;
	overflow: hidden;
	flex-direction: column;
	border: 2px solid var(--present-line);
	border-radius: 18px;
	background: #fff;
	transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.mofli-present-gift:hover .mofli-present-gift__content {
	transform: translateY(-2px);
	border-color: #dfb1ac;
	box-shadow: 0 9px 22px rgba(76,64,57,.08);
}

.mofli-present-gift > input:checked + .mofli-present-gift__content {
	border-color: var(--present-coral);
	box-shadow: 0 0 0 3px rgba(213,111,103,.12);
}

.mofli-present-gift > input:focus-visible + .mofli-present-gift__content {
	outline: 3px solid rgba(189,93,86,.42);
	outline-offset: 3px;
}

.mofli-present-gift > input:checked + .mofli-present-gift__content::after {
	content: "選択中";
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--present-coral);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.mofli-present-gift__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f5efe9;
}

.mofli-present-gift__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mofli-present-gift__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 19px 20px 20px;
}

.mofli-present-gift__name {
	display: block;
	color: var(--present-ink);
	font-size: 18px;
	line-height: 1.5;
}

.mofli-present-gift__description {
	display: block;
	margin-top: 9px;
	color: var(--present-muted);
	font-size: 13px;
	line-height: 1.75;
}

.mofli-present-gift__count {
	display: block;
	margin-top: auto;
	padding-top: 15px;
	color: var(--present-coral-dark);
	font-size: 13px;
	font-weight: 700;
}

.mofli-present-gift__count strong {
	font-size: 16px;
}

.mofli-present-rules {
	border-left: 5px solid var(--present-coral);
}

.mofli-present-rules h2,
.mofli-present-consent h2 {
	font-size: 20px;
}

.mofli-present-rules p,
.mofli-present-consent p {
	color: #655a53;
}

.mofli-present-consent {
	background: #fffdfb;
}

.mofli-present-consent__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 16px 18px;
	border: 1px solid var(--present-line);
	border-radius: 13px;
	background: #fff;
	color: var(--present-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
	cursor: pointer;
}

.mofli-present-consent__label input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--present-coral);
}

.mofli-present-consent__label a {
	color: var(--present-coral-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mofli-present-submit-area {
	padding: 12px 0 4px;
	text-align: center;
}

.mofli-present-submit {
	display: inline-flex;
	min-width: 250px;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	padding: 13px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--present-coral);
	box-shadow: 0 6px 16px rgba(189,93,86,.2);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.mofli-present-submit:hover {
	transform: translateY(-1px);
	background: var(--present-coral-dark);
	box-shadow: 0 8px 20px rgba(189,93,86,.25);
}

.mofli-present-submit:focus-visible {
	outline: 3px solid rgba(189,93,86,.42);
	outline-offset: 4px;
}

.mofli-present-home-return {
	margin-top: 30px;
	text-align: center;
}

.mofli-present-home-return a {
	color: #675b54;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mofli-present-home-return a:hover {
	color: var(--present-coral-dark);
}

/* Complete */
.mofli-present-complete {
	min-height: 420px;
	padding: 80px 22px;
	background: var(--present-cream);
}

.mofli-present-complete__card {
	width: min(100%, 720px);
	margin: 0 auto;
	padding: 52px 36px;
	text-align: center;
	border: 1px solid var(--present-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 9px 30px rgba(76,64,57,.07);
}

.mofli-present-complete__card h1 {
	margin: 0 0 18px;
	color: var(--present-ink);
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.5;
}

.mofli-present-complete__card p:last-child {
	margin: 0;
	color: var(--present-muted);
	font-size: 14px;
	line-height: 1.9;
}

@media (max-width: 700px) {
	.mofli-present-page {
		padding: 36px 16px 56px;
	}

	.mofli-present-hero {
		margin-bottom: 22px;
		padding-right: 8px;
		padding-left: 8px;
	}

	.mofli-present-card,
	.mofli-present-message {
		padding: 24px 19px;
		border-radius: 17px;
	}

	.mofli-present-intro {
		padding-top: 28px;
	}

	.mofli-present-intro::before {
		top: 10px;
		right: 8px;
	}

	.mofli-present-period,
	.mofli-present-shipping {
		display: block;
		width: fit-content;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	.mofli-present-application-conditions {
		padding: 16px;
	}

	.mofli-present-gift-list {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mofli-present-gift__body {
		padding: 17px 17px 18px;
	}

	.mofli-present-submit {
		width: 100%;
		min-width: 0;
	}

	.mofli-present-complete {
		padding: 54px 16px;
	}

	.mofli-present-complete__card {
		padding: 38px 20px;
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mofli-present-gift__content,
	.mofli-present-submit {
		transition: none;
	}

	.mofli-present-gift:hover .mofli-present-gift__content,
	.mofli-present-submit:hover {
		transform: none;
	}
}
