#sb-mobile-bar,
#sb-mobile-nav,
#sb-menu-overlay {
	display: none;
}

@media only screen and (max-width: 768px) {
	html {
		padding-top: calc(48px + env(safe-area-inset-top, 0px));
	}

	.sb-menu-open body {
		overflow: hidden;
	}

	#sb-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: calc(48px + env(safe-area-inset-top, 0px));
		padding: env(safe-area-inset-top, 0px) calc(4px + env(safe-area-inset-right, 0px)) 0 calc(14px + env(safe-area-inset-left, 0px));
		background: #b70000;
		border-bottom: 2px solid #cccccc;
		box-sizing: border-box;
		z-index: 99999;
		font-family: Arial, Helvetica, sans-serif;
	}

	#sb-mobile-bar .sb-call {
		color: #ffffff;
		font-size: 16px;
		font-weight: bold;
		text-decoration: none;
		letter-spacing: 0.02em;
		white-space: nowrap;
	}

	#sb-mobile-bar .sb-call svg {
		width: 16px;
		height: 16px;
		margin-right: 7px;
		vertical-align: -2px;
		fill: currentColor;
	}

	#sb-menu-toggle {
		display: flex;
		align-items: center;
		height: 44px;
		padding: 0 12px;
		border: 0;
		background: transparent;
		color: #ffffff;
		font: bold 14px/1 Arial, Helvetica, sans-serif;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		cursor: pointer;
	}

	#sb-menu-toggle .sb-icon {
		position: relative;
		width: 22px;
		height: 16px;
		margin-left: 10px;
	}

	#sb-menu-toggle .sb-icon span {
		position: absolute;
		left: 0;
		width: 22px;
		height: 2px;
		border-radius: 2px;
		background: #ffffff;
		transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
	}

	#sb-menu-toggle .sb-icon span:nth-child(1) { top: 0; }
	#sb-menu-toggle .sb-icon span:nth-child(2) { top: 7px; }
	#sb-menu-toggle .sb-icon span:nth-child(3) { top: 14px; }

	.sb-menu-open #sb-menu-toggle .sb-icon span:nth-child(1) {
		top: 7px;
		transform: rotate(45deg);
	}

	.sb-menu-open #sb-menu-toggle .sb-icon span:nth-child(2) {
		opacity: 0;
	}

	.sb-menu-open #sb-menu-toggle .sb-icon span:nth-child(3) {
		top: 7px;
		transform: rotate(-45deg);
	}

	#sb-menu-overlay {
		display: block;
		position: fixed;
		top: calc(48px + env(safe-area-inset-top, 0px));
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.45);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0s linear 0.3s;
		z-index: 99997;
	}

	.sb-menu-open #sb-menu-overlay {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.3s ease;
	}

	#sb-mobile-nav {
		display: block;
		position: fixed;
		top: calc(48px + env(safe-area-inset-top, 0px));
		right: 0;
		bottom: 0;
		width: 82%;
		max-width: 340px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: #ffffff;
		box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.3s ease, visibility 0s linear 0.3s;
		z-index: 99998;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		font-family: Arial, Helvetica, sans-serif;
	}

	.sb-menu-open #sb-mobile-nav {
		transform: translateX(0);
		visibility: visible;
		transition: transform 0.3s ease;
	}

	#sb-mobile-nav ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#sb-mobile-nav li {
		position: relative;
		border-bottom: 1px solid #e5e5e5;
	}

	#sb-mobile-bar a,
	#sb-mobile-bar button,
	#sb-mobile-nav a,
	#sb-mobile-nav button {
		-webkit-tap-highlight-color: transparent;
	}

	#sb-mobile-nav a {
		display: block;
		padding: 14px 56px 14px 18px;
		border-left: 4px solid transparent;
		color: #222222;
		font-size: 16px;
		font-weight: bold;
		line-height: 1.3;
		text-decoration: none;
	}

	#sb-mobile-nav a:focus {
		outline: none;
	}

	#sb-mobile-nav a:focus-visible,
	.sb-sub-toggle:focus-visible,
	#sb-menu-toggle:focus-visible,
	#sb-mobile-bar .sb-call:focus-visible {
		outline: 2px solid #e70000;
		outline-offset: -2px;
	}

	#sb-mobile-bar .sb-call:focus-visible,
	#sb-menu-toggle:focus-visible {
		outline-color: #ffffff;
	}

	#sb-mobile-nav .current-menu-item > a {
		border-left-color: #e70000;
		color: #b70000;
	}

	#sb-mobile-nav .sub-menu {
		display: none;
		background: #f7f7f7;
		border-top: 1px solid #e5e5e5;
	}

	#sb-mobile-nav .sb-sub-open > .sub-menu {
		display: block;
	}

	#sb-mobile-nav .sub-menu li:last-child {
		border-bottom: 0;
	}

	#sb-mobile-nav .sub-menu a {
		padding: 12px 18px 12px 32px;
		font-size: 15px;
		font-weight: normal;
	}

	.sb-sub-toggle {
		position: absolute;
		top: 0;
		right: 0;
		width: 52px;
		height: 48px;
		padding: 0;
		border: 0;
		border-left: 1px solid #e5e5e5;
		background: transparent;
		color: #b70000;
		font: bold 24px/48px Arial, Helvetica, sans-serif;
		cursor: pointer;
	}

	.admin-bar #sb-mobile-bar {
		top: 46px;
	}

	.admin-bar #sb-mobile-nav,
	.admin-bar #sb-menu-overlay {
		top: calc(94px + env(safe-area-inset-top, 0px));
	}

	#wpadminbar {
		position: fixed;
	}
}

@media only screen and (max-width: 768px) and (hover: hover) {
	#sb-mobile-nav a:hover {
		background: #f4f4f4;
		color: #b70000;
	}
}

@media (prefers-reduced-motion: reduce) {
	#sb-mobile-nav,
	#sb-menu-overlay,
	#sb-menu-toggle .sb-icon span {
		transition: none !important;
	}
}
