* { box-sizing: border-box; }
html {
	background: #f3f1e8;
	-webkit-text-size-adjust: 100%;
	scrollbar-gutter: stable;
}
body {
	margin: 0;
	color: #173f3b;
	font-family: Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
body.modal-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
#invitation { width: 100%; max-width: 800px; margin: 0 auto; }
.imagemap { position: relative; margin: 0; padding: 0; width: 100%; outline: none; scroll-margin-top: 0; }
.page-image { display: block; width: 100%; height: auto; margin: 0; padding: 0; border: 0; vertical-align: top; }
.floating-controls {
	position: fixed;
	z-index: 20;
	top: 14px;
	top: max(14px, env(safe-area-inset-top));
	right: 14px;
	right: max(14px, env(safe-area-inset-right));
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.menu-toggle, .music_onoff {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 9px;
	border: 1px solid rgba(23, 63, 59, .1);
	border-radius: 8px;
	background: rgba(255, 255, 255, .96);
	color: #173f3b;
	box-shadow: 0 3px 14px rgba(23, 63, 59, .14);
}
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 23px; }
.hamburger span { display: block; width: 100%; height: 2px; background: currentColor; }
.music_onoff img { display: block; width: 28px; height: 28px; object-fit: contain; }
.music_onoff[aria-busy="true"] { opacity: .65; }
button:focus-visible, a:focus-visible { outline: 3px solid #00796d; outline-offset: 3px; }
/* 우측 전체 메뉴. dialog의 기본 여백을 제거해 화면에 고정합니다. */
.menu-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(340px, 86vw);
	max-width: 100%;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: max(20px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
	border: 0;
	background: #fff;
	color: #173f3b;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
}
.menu-drawer[open] { animation: drawer-in .22s ease-out; }
.menu-drawer::backdrop, .intro-dialog::backdrop { background: rgba(0, 0, 0, .46); }
.menu-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #e9eeeb; }
.menu-heading h2 { margin: 0; font-size: 22px; font-weight: 800; }
.menu-close { width: 44px; height: 44px; padding: 0; border: 0; background: #f2f6f4; color: #173f3b; font-size: 32px; line-height: 1; }
.menu-drawer nav { padding-top: 12px; }
.menu-drawer nav a { display: flex; align-items: center; gap: 13px; min-height: 62px; padding: 10px 8px; color: #26443e; text-decoration: none; font-size: 18px; font-weight: 700; border-bottom: 1px solid #f0f3f1; }
.menu-drawer nav a span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #eaf3ee; font-size: 12px; }
.menu-drawer nav a[aria-current="location"] { color: #008e80; background: #f2faf7; }
.menu-drawer nav a[aria-current="location"] span { background: #00aa98; color: #fff; }
/* 첫 방문 안내창: 확인 클릭에서만 음악 재생을 요청합니다. */
.intro-dialog {
	position: fixed;
	inset: 0;
	width: calc(100% - 40px);
	max-width: 380px;
	max-height: calc(100% - 40px);
	margin: auto;
	padding: 30px 24px 24px;
	border: 0;
	border-radius: 10px;
	background: #fffdf6;
	color: #173f3b;
	text-align: center;
	box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
}
.intro-dialog p { margin: 0 0 24px; font-size: clamp(16px, 4.1vw, 19px); font-weight: 700; line-height: 1.8; word-break: keep-all; }
#intro_confirm { display: block; width: 100%; min-height: 50px; border: 0; border-radius: 4px; background: #00a997; color: #fff; font-size: 18px; font-weight: 700; }
.music-notice { position: fixed; z-index: 30; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 40px); max-width: 440px; padding: 13px 16px; background: rgba(23, 63, 59, .94); color: #fff; font-size: 15px; line-height: 1.6; text-align: center; pointer-events: none; }
.no-script-menu { position: fixed; bottom: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px; background: #fff; }
.no-script-menu a { color: #00796d; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .menu-drawer[open] { animation: none; } }
