#header-wrapper {
	width: 100%;
    position: relative;
	background: pink;
	background: var(--bg-color);
}

#header {
	padding-top: calc(16px * 2);
    display: flex;
    justify-content: flex-start;
	align-items: flex-start;
    transition: none;
	pointer-events: none;
}

#menu {
	flex: 0 0 auto;
}

#site-title,
#menu,
#btn-mobile-menu,
#btn-mobile-works-filter {
	pointer-events: auto;
}

#site-title,
#menu,
#btn-mobile-menu,
#btn-mobile-works-filter {
	line-height: 1;
	flex: 0 0 auto;
}

#site-title a {
	display: inline-block;
}

#btn-mobile-menu,
#btn-mobile-works-filter {
	cursor: pointer;
}

.mobile-popup {
	display: none;
}

@media screen and (min-width: 961px) {
	#header-wrapper {
		text-align: center;
	}

	#header {
		margin: 0 auto;
		padding-bottom: calc(16px * 2);
		text-align: left;
	}

	#site-title {
		width: calc(16px * 10);
	}
	
	#mobile-controls {
		display: none;
	}

	#menu {
		display: flex;
	}

	.menu_list {
		display: block;
		width: calc(16px * 4);
	}

	body.post-type-archive-works .btn-menu_works a,
	body.single-works .btn-menu_works a,
	body.about .btn-menu_about a,
	body.contact .btn-menu_contact a,
	body.contact-confirm .btn-menu_contact a,
	body.contact-thanks .btn-menu_contact a {
		color: #999;
	}

}

@media screen and (max-width: 960px) {
	#header-wrapper {
		position: absolute;
		top: 0;
		width: 100%;
		z-index: 10;
	}

	#header {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		justify-content: space-between;
		align-items: center;
		padding-top: calc(16px * 7);
		padding-bottom: calc(16px * 2);
		background: var(--bg-color);
	}

	#header.sticky {
		position: fixed;
		padding-top: calc(16px * 2);
		padding-bottom: calc(16px * 2);
	}

	#site-title {
		font-size: var(--large-txt);
	}

	#menu {
		display: none;
	}

	#mobile-controls {
		align-self: center;
		display: flex;
		align-items: center;
	}

	#btn-mobile-menu {
		margin-left: 10px;
	}
	
	#btn-mobile-works-filter {
		display: none;
	}
	
	.post-type-archive-works #btn-mobile-works-filter,
	.single-works #btn-mobile-works-filter {
		display: inline-block;
	}
	
	.mobile-popup {
		padding-left: calc(16px * 4);
		padding-right: calc(16px * 4);
	}

	.mobile-popup__content {
		padding-left: calc(16px * 4);
		padding-right: calc(16px * 4);
	}

	.mobile-popup .copyright {
		margin-top: calc(16px * 2);
	}
}

@media screen and (max-width: 768px) {
	#header {
		padding-top: calc(16px * 7);
		padding-bottom: calc(16px * 2);
	}
	
	.mobile-popup {
		padding-left: calc(16px * 2);
		padding-right: calc(16px * 2);
	}
}

@media screen and (max-width: 430px) {
	.mobile-popup {
		padding-left: calc(16px * 1);
		padding-right: calc(16px * 1);
	}
}



/* =====================================================================
	= MENU
=====================================================================*/
.menu_list {
	display: inline-block;
}

.menu_list_item a {
	position: relative;
	display: block;
	padding: 0.5em 0;
}

@media screen and (min-width: 961px) {
	.menu_list_item {
		font-size: var(--micro-txt);
	}
}

@media screen and (max-width: 960px) {
	.menu-active #mobile-popup-menu,
	.works-filter-active #mobile-popup-works-filter {
		visibility: visible;
		display: block;
		position: fixed;
		width: 100vw;
		height: auto;
		min-height: 100vh;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		margin: 0 auto;
		z-index: 100;
		background: rgba(255, 255, 255, 0.70);
		backdrop-filter: blur(25px);
		padding-top: calc(16px * 7);
		padding-top: calc(16px * 2);
		padding-bottom: calc(16px * 2);
		overflow: scroll;
		justify-content: center;
		align-items: flex-start;
	}

	.mobile-popup_header {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: calc(16px * 4);
	}

	.mobile-popup_title {
		font-size: var(--large-txt);
		line-height: 1;
	}

	.mobile-popup_btn-close {
		display: block;
		top: calc(16px * 2);
		right: 16px;
		line-height: 1;
		z-index: 30;
	}

	.mobile-popup_content {
		width: calc(16px * 15);
		margin: 0 auto;
		padding: 0 calc(16px * 0);
	}

	.menu_list {
		text-align: left;
		width: 100%;
		padding-top: 1em;
		border-top: var(--border);
	}

	.menu_list_item {
		font-size: var(--base-txt);
	}

	.menu_list_item a {
		position: relative;
		display: block;
		padding: 0 0;
	}

	.menu_list_item a sup {
		position: absolute;
		top: 1.1em;
		font-size: 50%;
	}
}

