:root {
	--melis-header-height: 80px;
	--melis-header-mobile-height: 83px;
}

.melis-global-header,
.melis-global-header * {
	box-sizing: border-box;
}

.melis-global-header {
	position: fixed;
	z-index: 99990;
	top: 0;
	right: 0;
	left: 0;
	height: var(--melis-header-height);
	margin: 0;
	padding: 0;
	border: 0;
	background: #000;
	color: #fff;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

body.admin-bar .melis-global-header {
	top: 32px;
}

.melis-global-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 90vw;
	max-width: 1600px;
	height: 100%;
	margin: 0 auto;
	padding: 0;
}

.melis-global-header__brand {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 215px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	color: #fff !important;
	text-align: center;
	text-decoration: none !important;
}

.melis-global-header__brand:hover,
.melis-global-header__brand:focus {
	color: #fff !important;
	opacity: 0.82;
}

.melis-global-header__brand:focus-visible,
.melis-global-navigation a:focus-visible,
.melis-global-header__toggle:focus-visible,
.melis-global-header__search-toggle:focus-visible,
.melis-global-header__mobile-actions a:focus-visible,
.melis-global-search button:focus-visible,
.melis-global-search input:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.melis-global-search button:focus-visible,
.melis-global-search input:focus-visible {
	outline-color: #111;
}

.melis-global-header__logo {
	display: block;
	width: auto;
	height: 36px;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: contain;
}

.melis-global-header__lead {
	display: block;
	margin: 2px 0 0;
	padding: 0;
	color: #fff;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.15;
	white-space: nowrap;
}

.melis-global-header__lead--mobile,
.melis-global-header__toggle,
.melis-global-header__search-toggle,
.melis-global-header__mobile-actions,
.melis-global-search {
	display: none;
}

.melis-global-header__toggle,
.melis-global-header__search-toggle {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.melis-global-navigation {
	display: block;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
}

.melis-global-navigation ul {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	list-style: none !important;
}

.melis-global-navigation li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.melis-global-navigation a {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none !important;
	white-space: nowrap;
}

.melis-global-navigation a:hover,
.melis-global-navigation a:focus {
	color: #fff !important;
	opacity: 0.72;
}

.melis-global-header-spacer {
	display: block;
	width: 100%;
	height: var(--melis-header-height);
}

/* Replace only the old Twenty Fourteen masthead. */
body.melis-unified-header-enabled #masthead.site-header {
	display: none !important;
}

body.melis-unified-header-enabled.masthead-fixed .site-main {
	margin-top: 0 !important;
}

/* Match the desktop store logo's 214px centered frame and vertical position. */
@media (min-width: 1001px) {
	.melis-global-header__brand {
		flex: 0 0 214px;
		align-items: center;
		width: 214px;
		min-width: 214px;
		padding: 6px 0 0;
	}

	.melis-global-header__logo {
		height: 34px;
	}

	.melis-global-header__lead {
		width: 100%;
		margin-top: 4px;
		text-align: center;
	}
}

@media (max-width: 1200px) and (min-width: 1001px) {
	.melis-global-header__inner {
		width: calc(100% - 48px);
	}

	.melis-global-navigation ul {
		gap: 12px;
	}

	.melis-global-navigation a {
		font-size: 12px;
	}
}

@media (max-width: 1000px) {
	.melis-global-header {
		position: relative;
		top: auto;
		height: var(--melis-header-mobile-height);
	}

	body.admin-bar .melis-global-header {
		top: auto;
	}

	.melis-global-header__inner {
		justify-content: center;
		width: 100%;
		padding: 0;
	}

	.melis-global-header__brand {
		position: absolute;
		top: 8px;
		left: 50%;
		z-index: 1;
		align-items: center;
		justify-content: flex-start;
		min-width: 0;
		height: auto;
		margin: 0;
		transform: translateX(-50%);
	}

	.melis-global-header__logo {
		height: 35px;
		margin: 0 auto;
	}

	.melis-global-header__lead--desktop {
		display: none;
	}

	.melis-global-header__lead--mobile {
		display: block;
		margin-top: 6px;
		font-size: 10px;
		line-height: 1.3;
		text-align: center;
	}

	.melis-global-header__toggle,
	.melis-global-header__search-toggle {
		position: absolute;
		top: 50%;
		z-index: 3;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 48px;
		color: #fff;
		transform: translateY(-50%);
	}

	.melis-global-header__toggle {
		left: 8px;
		flex-direction: column;
	}

	.melis-global-header__search-toggle {
		left: 52px;
	}

	.melis-global-header__toggle:hover,
	.melis-global-header__toggle:focus,
	.melis-global-header__search-toggle:hover,
	.melis-global-header__search-toggle:focus {
		border: 0;
		background: transparent;
		color: #fff;
	}

	.melis-global-header__toggle-icon {
		position: relative;
		display: block;
		width: 26px;
		height: 18px;
	}

	.melis-global-header__toggle-icon span {
		position: absolute;
		left: 0;
		display: block;
		width: 26px;
		height: 2px;
		border-radius: 1px;
		background: currentColor;
		transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
	}

	.melis-global-header__toggle-icon span:nth-child(1) {
		top: 0;
	}

	.melis-global-header__toggle-icon span:nth-child(2) {
		top: 8px;
	}

	.melis-global-header__toggle-icon span:nth-child(3) {
		top: 16px;
	}

	.melis-global-header.is-menu-open .melis-global-header__toggle-icon span:nth-child(1) {
		top: 8px;
		transform: rotate(45deg);
	}

	.melis-global-header.is-menu-open .melis-global-header__toggle-icon span:nth-child(2) {
		opacity: 0;
	}

	.melis-global-header.is-menu-open .melis-global-header__toggle-icon span:nth-child(3) {
		top: 8px;
		transform: rotate(-45deg);
	}

	.melis-global-header__mobile-actions {
		position: absolute;
		top: 50%;
		right: 2%;
		z-index: 3;
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
		transform: translateY(-50%);
	}

	.melis-global-header__mobile-actions li {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	.melis-global-header__mobile-actions a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 40px;
		margin: 0;
		padding: 0;
		border: 0;
		color: #fff !important;
		text-decoration: none !important;
	}

	.melis-global-header__mobile-actions a:hover,
	.melis-global-header__mobile-actions a:focus {
		color: #fff !important;
		opacity: 0.72;
	}

	.melis-global-navigation {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		max-height: calc(100vh - var(--melis-header-mobile-height));
		overflow-y: auto;
		margin: 0;
		padding: 0 16px 14px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		background: #000;
		box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
	}

	.melis-global-header.is-menu-open .melis-global-navigation {
		display: block;
	}

	.melis-global-navigation ul {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.melis-global-navigation li + li {
		border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
	}

	.melis-global-navigation a {
		padding: 14px 4px;
		font-size: 14px;
		font-weight: 600;
		text-align: left;
	}

	.melis-global-search {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		width: 100%;
		margin: 0;
		padding: 15px;
		border: 0;
		background: #fff;
		box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
		color: #222;
	}

	.melis-global-header.is-search-open .melis-global-search {
		display: block;
	}

	.melis-global-search form {
		display: flex;
		align-items: stretch;
		gap: 8px;
		width: 100%;
		max-width: 720px;
		margin: 0 auto;
		padding: 0;
	}

	.melis-global-search input[type="search"] {
		flex: 1 1 auto;
		min-width: 0;
		height: 44px;
		margin: 0;
		padding: 9px 12px;
		border: 1px solid #bbb;
		border-radius: 2px;
		background: #fff;
		box-shadow: none;
		color: #222;
		font: 400 14px/1.4 "Noto Sans JP", sans-serif;
	}

	.melis-global-search__submit,
	.melis-global-search__close {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 44px;
		margin: 0;
		border: 1px solid #111;
		border-radius: 2px;
		box-shadow: none;
		font-family: "Noto Sans JP", sans-serif;
		cursor: pointer;
	}

	.melis-global-search__submit {
		flex: 0 0 66px;
		padding: 0 14px;
		background: #111;
		color: #fff;
		font-size: 13px;
		font-weight: 700;
	}

	.melis-global-search__close {
		flex: 0 0 44px;
		width: 44px;
		padding: 0;
		background: #fff;
		color: #222;
	}

	.melis-global-header-spacer {
		display: none;
		height: 0;
	}
}

@media (max-width: 360px) {
	.melis-global-header__logo {
		height: 30px;
	}

	.melis-global-header__lead--mobile {
		margin-top: 4px;
		font-size: 9px;
	}

	.melis-global-header__mobile-actions {
		gap: 4px;
	}
flex: 0 0 214px
	.melis-global-header__mobile-actions a {
		width: 29px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .melis-global-header {
		top: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.melis-global-header__toggle-icon span {
		transition: none;
	}
}
