* {
	box-sizing: border-box;
}

html {
	background: #18263d;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0 auto;
	padding: 0;
	width: 100%;
	max-width: 800px;
	background: #fff;
	color: #111;
	font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
}

button, a {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

button {
	font: inherit;
	cursor: pointer;
}

a {
	text-decoration: none;
}

.container {
	width: 100%;
	padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

.imagemap {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.imagemap > img {
	display: block;
	width: 100%;
	height: auto;
}

/* 화면 하단에 고정되는 세 개의 버튼 */
.nav {
	position: fixed;
	left: 50%;
	bottom: 0;
	z-index: 10;
	transform: translateX(-50%);
	display: flex;
	width: 100%;
	max-width: 800px;
	padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
	background: #213451;
	box-shadow: 0 -3px 18px rgba(0, 0, 0, .18);
}

.nav-item {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 2px;
}

.nav-item + .nav-item {
	border-left: 1px solid rgba(255, 255, 255, .15);
}

.nav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 6px 4px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	text-align: center;
}

.nav-icon {
	display: block;
	line-height: 0;
}

.nav-icon img, .nav-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.nav-text {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
}

.nav-link:hover {
	background: rgba(255, 255, 255, .08);
}

/* PC에서는 본문 오른쪽, 모바일에서는 화면 오른쪽에 배치합니다. */
.top-button {
	position: fixed;
	right: 16px;
	bottom: calc(92px + env(safe-area-inset-bottom, 0px));
	z-index: 11;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 50%;
	background: rgba(28, 47, 76, .95);
	color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.top-button svg {
	width: 22px;
	height: 22px;
}

.top-button span {
	margin-top: -3px;
	font-size: 10px;
	font-weight: 700;
	line-height: 14px;
}

@media (min-width: 800px) {
	.top-button {
		right: calc((100% - 800px) / 2 + 16px);
	}
}

/* 기존 초청장의 스크롤 안내 */
.hint-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
}

.hint-modal.show {
	display: flex;
}

.hint-dialog {
	width: calc(100% - 40px);
	max-width: 420px;
	padding: 24px 20px;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	text-align: center;
}

.hint-title {
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 700;
}

.hint-msg {
	margin-bottom: 18px;
	font-size: 16px;
	line-height: 1.6;
}

.hint-close-btn {
	min-width: 80px;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 4px;
	background: #213451;
	color: #fff;
	font-weight: 600;
}

body.is-hint-open {
	overflow: hidden;
}

.hint-close-btn:focus-visible, .nav-link:focus-visible, .top-button:focus-visible {
	outline: 3px solid #8ed3e5;
	outline-offset: 2px;
}

#invitation:focus {
	outline: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
