/* =========================================================
   Lightning layout reset
========================================================= */
body.niagara-thanks-manager-active .page-header,
body.niagara-thanks-manager-active .breadcrumb,
body.niagara-thanks-manager-active .entry-header,
body.niagara-thanks-manager-active .entry-footer,
body.niagara-thanks-manager-active .sub-section {
	display: none !important;
}

body.niagara-thanks-manager-active .site-body {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.niagara-thanks-manager-active .site-body-container.container,
body.niagara-thanks-manager-active .main-section {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.niagara-thanks-manager-active .entry-body,
body.niagara-thanks-manager-active .entry-content {
	margin: 0 !important;
	padding: 0 !important;
}

/* =========================================================
   Thanks page
========================================================= */
.niagara-thanks-page {
	--nth-yellow: #f6cf18;
	--nth-gold: #947000;
	--nth-ink: #1b1b1b;
	--nth-paper: #fffdf7;
	--nth-cream: #f7f2e7;
	--nth-blue: #e8f5f8;
	--nth-line: #ddd5c6;
	position: relative;
	width: 100vw;
	margin: 0 calc(50% - 50vw);
	background: var(--nth-paper);
	color: var(--nth-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
	font-size: var(--niagara-body-font-pc, 18px);
	line-height: 1.95;
	overflow: hidden;
}

.niagara-thanks-page *,
.niagara-thanks-page *::before,
.niagara-thanks-page *::after {
	box-sizing: border-box;
}

.niagara-thanks-page h1,
.niagara-thanks-page h2,
.niagara-thanks-page p {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
}

.niagara-thanks-page p {
	font-size: var(--niagara-body-font-pc, 18px);
	line-height: 1.95;
}

.niagara-thanks-page a,
.niagara-thanks-page a:visited {
	color: inherit;
	text-decoration: none;
}

.niagara-thanks-page a:focus-visible {
	outline: 3px solid #1477a5;
	outline-offset: 3px;
}

.niagara-thanks-inner {
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
}

.niagara-thanks-inner-narrow {
	width: min(920px, calc(100% - 48px));
}

.niagara-thanks-kicker {
	margin-bottom: 10px !important;
	color: var(--nth-gold) !important;
	font-size: 0.78rem !important;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.4 !important;
}

.niagara-thanks-message {
	padding: 88px 0 62px;
	background: #fff;
}

.niagara-thanks-heading {
	padding: 26px 32px;
	border-top: 6px solid var(--nth-yellow);
	background: var(--nth-paper);
}

.niagara-thanks-heading h1 {
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.03em;
}

.niagara-thanks-body {
	padding: 42px 32px 0;
	text-align: left;
}

.niagara-thanks-body p + p,
.niagara-thanks-notice-body p + p {
	margin-top: 20px;
}

.niagara-thanks-signature {
	margin-top: 30px !important;
	padding: 0 32px;
	font-weight: 700;
	text-align: right;
}

.niagara-thanks-notice-section {
	padding: 0 0 78px;
	background: #fff;
}

.niagara-thanks-notice {
	padding: 32px;
	border: 1px solid var(--nth-line);
	border-left: 7px solid var(--nth-yellow);
	background: var(--nth-blue);
}

.niagara-thanks-notice-heading {
	margin-bottom: 20px;
}

.niagara-thanks-notice-heading h2,
.niagara-thanks-navigation-heading h2 {
	font-size: clamp(22px, 2.8vw, 28px);
	font-weight: 800;
	line-height: 1.45;
}

.niagara-thanks-notice-body {
	text-align: left;
}

.niagara-thanks-navigation {
	padding: 70px 0 92px;
	background: var(--nth-cream);
}

.niagara-thanks-navigation-heading {
	margin-bottom: 28px;
	text-align: left;
}

.niagara-thanks-navigation-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.niagara-thanks-navigation-grid a {
	display: flex;
	min-height: 64px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	border: 1px solid var(--nth-ink);
	background: #fff;
	font-weight: 800;
	transition: background 0.2s ease;
}

.niagara-thanks-navigation-grid a:hover {
	background: var(--nth-yellow);
}

@media (min-width: 768px) {
	.niagara-thanks-hide-pc { display: none !important; }
}

@media (max-width: 767px) {
	.niagara-thanks-page,
	.niagara-thanks-page p {
		font-size: var(--niagara-body-font-sp, 17px);
	}

	.niagara-thanks-hide-sp { display: none !important; }

	.niagara-thanks-inner,
	.niagara-thanks-inner-narrow {
		width: min(100% - 32px, 920px);
	}

	.niagara-thanks-message {
		padding: 56px 0 42px;
	}

	.niagara-thanks-heading,
	.niagara-thanks-body,
	.niagara-thanks-signature {
		padding-right: 20px;
		padding-left: 20px;
	}

	.niagara-thanks-heading h1 {
		font-size: clamp(27px, 8vw, 36px);
	}

	.niagara-thanks-body {
		padding-top: 30px;
	}

	.niagara-thanks-notice-section {
		padding-bottom: 56px;
	}

	.niagara-thanks-notice {
		padding: 24px 20px;
		border-left-width: 5px;
	}

	.niagara-thanks-navigation {
		padding: 56px 0 72px;
	}

	.niagara-thanks-navigation-grid {
		grid-template-columns: 1fr;
	}
}
