:root {
	--page-max: 1200px;
	--page-gutter: 24px;
	--brand-gold: #dcc26b;
	--surface: #111;
	--text-primary: #fff;
	--text-muted: #aaa;
}

html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

*, *::before, *::after {
	box-sizing: inherit;
}

body {
	min-width: 320px;
	color: var(--text-primary);
	overflow-x: hidden;
}

img,
video {
	max-width: 100%;
}

button,
input,
select,
textarea {
	font: inherit;
}

.menu_toggle,
.menu_backdrop,
.mobile_tabbar {
	display: none;
}

@media (max-width: 1199px) {
	.top,
	.bottom_main {
		width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
	}

	.menu > li {
		margin-right: 24px;
	}
}

@media (max-width: 1023px) {
	body {
		padding-top: 64px;
		padding-bottom: 0;
	}

	body.menu_open {
		overflow: hidden;
	}

	.top_bg {
		position: fixed;
		z-index: 1001;
		top: 0;
		right: 0;
		left: 0;
		height: 64px;
		padding: 8px 0;
		background: rgba(0, 0, 0, 0.92);
		box-shadow: 0 4px 18px rgba(0, 0, 0, .24);
	}

	.top {
		width: calc(100% - 32px);
		height: 48px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.logo,
	.logo img {
		float: none;
		width: auto;
		height: 42px;
		max-width: 230px;
		object-fit: contain;
		object-position: left center;
	}

	.menu_toggle {
		display: flex;
		width: 44px;
		height: 44px;
		padding: 10px;
		border: 0;
		background: transparent;
		flex-direction: column;
		justify-content: space-around;
		cursor: pointer;
	}

	.menu_toggle span {
		display: block;
		width: 24px;
		height: 2px;
		margin: 0 auto;
		background: #fff;
		transition: transform .2s ease, opacity .2s ease;
	}

	.menu_open .menu_toggle span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.menu_open .menu_toggle span:nth-child(2) {
		opacity: 0;
	}

	.menu_open .menu_toggle span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.menu {
		position: fixed;
		z-index: 1002;
		top: 64px;
		right: 0;
		bottom: 0;
		width: min(84vw, 360px);
		height: auto;
		padding: 16px 20px 96px;
		background: #0b0b0b;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .25s ease;
	}

	.menu_open .menu {
		transform: translateX(0);
	}

	.menu > li,
	.menu li .childmenu li {
		width: 100%;
		height: auto;
		float: none;
		margin: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
	}

	.menu li:hover {
		border-bottom-color: rgba(255, 255, 255, .1);
	}

	.menu > li > a,
	.menu li .childmenu li a {
		width: 100%;
		height: auto;
		min-height: 48px;
		float: none;
		padding: 13px 8px;
		line-height: 22px;
		text-align: left;
		font-size: 16px;
	}

	.menu li .childmenu {
		display: none;
		position: static;
		width: 100%;
		float: none;
		background: rgba(255, 255, 255, .05);
	}

	.menu li .childmenu.is_open {
		display: block;
	}

	.menu li .childmenu li a {
		padding-left: 28px;
		color: #ccc;
		font-size: 14px;
	}

	.menu_backdrop {
		position: fixed;
		z-index: 1000;
		inset: 0;
		width: 100%;
		height: 100%;
		border: 0;
		background: rgba(0, 0, 0, .68);
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s ease;
	}

	.menu_open .menu_backdrop {
		display: block;
		opacity: 1;
		pointer-events: auto;
	}

	.bottom {
		height: auto;
		padding: 40px 20px;
	}

	.bottom_main {
		width: 100%;
		height: auto;
		display: block;
	}

	.bottom_left,
	.bottom_right,
	.qrcode,
	.contact,
	.bottonmenu {
		float: none;
	}

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

	.qrcode {
		flex: 0 0 110px;
	}

	.qrcode img,
	.qrcode font {
		width: 110px;
		height: auto;
		float: none;
	}

	.contact {
		width: min(100%, 320px);
		margin: 12px 0 0;
	}

	.tel,
	.tel font,
	.contact span {
		float: none;
	}

	.bottom_right {
		display: none;
	}

	.mobile_tabbar {
		display: none !important;
	}

	.mobile_tabbar a {
		min-width: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 2px;
		color: #bbb;
		font-size: 11px;
	}

	.mobile_tabbar .tabbar_icon {
		color: var(--brand-gold);
		font-size: 22px;
		line-height: 24px;
	}
}

@media (max-width: 520px) {
	:root {
		--page-gutter: 16px;
	}

	.bottom_left {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.contact {
		margin-top: 0;
	}

	.tel {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.menu,
	.menu_toggle span,
	.menu_backdrop {
		transition: none;
	}
}
