/*------------------------------------------------------
 	説明
/*------------------------------------------------------
	
*/

/* 共通 */

:root {

	/* width >= 1200 ------------------------------------------------------- */
	--header-navi-height: 40px;
	--header-title-height: calc(var(--header-navi-height) * var(--aspect-16_9));

	/* ヘッダーイメージサイズ */
	--header-image-height: 50px;
	--header-image-width: 275px;
	--header-image-margin-top: 12px;

	/* 768 <= width < 992  ------------------------------------------------------- */
	--header-title-height-768_992: 50px;

	/* ヘッダーイメージサイズ */
	--header-image-height-768_992: 37.5px;
	--header-image-width-768_992: 206.25px;

	/* ハンバーガーメニュー */
	--hamburger-height-768_992: 31.25px;
	--hamburger-width-768_992: 31.25px;
	--hamburger-line-margin-768_992: 5px;
}

#header-wrapper {
	display: flex;
	justify-content: center;
	background-color: #fff;
}

#header-container {
	background-color: #fff;
}

a#header-image-wrapper {
	display: inline-block;
}

/* ヘッダナビ ------------------------------------------------------- */

label#header-navi-container {
	position: relative;
	margin: 0;
	padding: 0;
	background-color: var(--theme-color);
}


ul#header-navi,
ul#header-navi-appendix {
	margin: 0;
	padding: 0;
	list-style: none;
}


#header-navi li,
#header-navi-appendix li {
	display: flex;
}


a.header-navi-anchors {	
	width: auto;
	color: #fff;
	background-color: var(--theme-color);
}


#icon-home-hn,
#icon-profile-hn,
#icon-hammer2-hn,
#icon-envelop-hn {
	position: relative;
	fill: #fff;
}

/* PC */
@media (min-width: 1200px) {

	#header-wrapper {
		height: var(--header-title-height);
		width: 100%;
	}

	#main-title {
		height: var(--header-title-height);
		width: var(--main-width);
	}

	#hamburger-menu {
		display: none;
	}

	a#header-image-wrapper {
		height: var(--header-title-height);
		width: auto;
	}

	#header-image {
		height: var(--header-image-height);	
		width: var(--header-image-width);
		margin-top: var(--header-image-margin-top); 
	}

	/* ヘッダナビ ------------------------------------------------------- */
	label#header-navi-container {
		display: flex;
		justify-content: center;
		height: var(--header-navi-height);
		width: 100%;
		margin-bottom: calc(var(--header-navi-height) / var(--aspect-16_9)); 
		border-top: 2px solid var(--subtheme-color);
		border-bottom: 2px solid var(--subtheme-color);
		box-shadow: 3px 6px 15px 0 rgba(90, 110, 121, 0.7);
		-webkit-box-shadow: 3px 6px 15px 0 rgba(90, 110, 121, 0.7);
		-moz-box-shadow: 3px 6px 15px 0 rgba(90, 110, 121, 0.7);
	}
		
	nav#header-navi-wrapper {
		display: flex;
		justify-content: center;
		width: var(--main-width);
	}

	ul#header-navi,
	ul#header-navi-appendix {
		display: flex;
		justify-content: center;
		width: auto;
	}

	#header-navi li,
	#header-navi-appendix li {
		height: var(--header-navi-height);
		width: auto;
	}

	.header-navi-anchors {	
		height: var(--header-navi-height);
		line-height: 2.7;
		padding-left: 10px;
		padding-right: 10px;
		font-size: 1rem;
	}

	.header-navi-anchors:hover {
		color: var(--theme-color);
		background-color: #fff;
		transition: var(--hover-transition);
	}
	
	.header-navi-anchors:hover #icon-home-hn,
	.header-navi-anchors:hover #icon-profile-hn,
	.header-navi-anchors:hover #icon-hammer2-hn,
	.header-navi-anchors:hover #icon-envelop-hn {
		fill: var(--theme-color);
		transition: var(--hover-transition);
	}

	#icon-home-hn,
	#icon-profile-hn,
	#icon-hammer2-hn,
	#icon-envelop-hn {
		top: 1.8px;
		right: 3px;
	}
}

/* (992px <= width < 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

	#header-wrapper {
		height: calc(var(--header-title-height) * 0.8);
		width: 100%;
	}

	#main-title {
		height: calc(var(--header-title-height) * 0.8);
		width: var(--main-width-992_1200);
	}

	a#header-image-wrapper {
		height: calc(var(--header-title-height) * 0.8);
		width: auto;
	}

	#header-image {
		height: calc(var(--header-image-height) * 0.8);
		width: calc(var(--header-image-width) * 0.8);
		margin-top: calc(var(--header-image-margin-top) * 0.8);
	}

	/* ヘッダナビ ------------------------------------------------------- */
	label#header-navi-container {
		display: flex;
		justify-content: center;
		height: calc(var(--header-navi-height) * 0.8);
		width: 100%;
		margin-bottom: calc((var(--header-navi-height) * 0.8) / var(--aspect-16_9)); 
		border-top: 2px solid var(--subtheme-color);
		border-bottom: 2px solid var(--subtheme-color);
		box-shadow: 3px 6px 15px 0 rgba(90, 110, 121, 0.7);
		-webkit-box-shadow: 3px 6px 15px 0 rgba(90, 110, 121, 0.7);
		-moz-box-shadow: 3px 6px 15px 0 rgba(90, 110, 121, 0.7);
	}
		
	nav#header-navi-wrapper {
		display: flex;
		justify-content: center;
		width: var(--main-width-992_1200);
	}

	ul#header-navi,
	ul#header-navi-appendix {
		display: flex;
		justify-content: center;
		width: auto;
	}

	#header-navi li,
	#header-navi-appendix li {
		height: calc(var(--header-navi-height) * 0.8);
		width: auto;
	}

	.header-navi-anchors {
		height: calc(var(--header-navi-height) * 0.8);
		line-height: 2.7;
		padding-left: 10px;
		padding-right: 10px;
		font-size: 0.8rem;
	}

	.header-navi-anchors:hover {
		color: var(--theme-color);
		background-color: #fff;
		transition: var(--hover-transition);
	}

	#icon-home-hn,
	#icon-profile-hn,
	#icon-hammer2-hn,
	#icon-envelop-hn {
		top: 1.1px;
		right: 3px;
		height: 0.8rem;
		width: 0.8rem;
	}
	
	.header-navi-anchors:hover #icon-home-hn,
	.header-navi-anchors:hover #icon-profile-hn,
	.header-navi-anchors:hover #icon-hammer2-hn,
	.header-navi-anchors:hover #icon-envelop-hn {
		fill: var(--theme-color);
		transition: var(--hover-transition);
	}
}

/* SP */
/* (768px <= width < 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {

	#header-wrapper {
		height: var(--header-title-height-768_992);	/* 50px */
		width: 100%;
		border-bottom: 2px solid var(--theme-color);
	}

	#header-container {
		display: flex;
		justify-content: center;
		position: fixed;
		width: 100%;
		background-color: rgba(255, 255, 255, 0.3);
		z-index: 3;
	}

	#main-title {
		position: relative;
		height: var(--header-title-height-768_992);
		width: 94%;
	}

	#hamburger-menu {
		position: absolute;	 /* 親要素: main-title */
		top: 20%;
		right: var(--inner-margin);
		height: var(--hamburger-height-768_992);
		width: var(--hamburger-width-768_992);
		background-color: rgba(0, 0, 0, 0);
	}

	#top-layer,
	#middle-layer,
	#bottom-layer {
		height: 4px;
		width: 100%;
		background-color: var(--theme-color);
		border-radius: 3px 3px 3px 3px;
	}

	#top-layer {
		margin-top: var(--hamburger-line-margin-768_992);
		margin-bottom: 0;
	}

	#middle-layer {
		margin-top: var(--hamburger-line-margin-768_992);
		margin-bottom: var(--hamburger-line-margin-768_992);
	}

	#bottom-layer {
		margin-top: 0;
		margin-bottom: var(--hamburger-line-margin-768_992);
	}

	a#header-image-wrapper {
		height: auto;
		width: auto;
		margin-left: var(--inner-margin);
	}

	#header-image {
		height: var(--header-image-height-768_992);	
		width: var(--header-image-width-768_992);
		margin-top: 4.5%;
	}

	/* ヘッダナビ ------------------------------------------------------- */
	label#header-navi-container,
	nav#header-navi-wrapper {
		position: fixed;
		top: 0;
		left: 100%;
		height: 100%;
		width: 100%;
	}

	label#header-navi-container {
		display: block;
		z-index: 9;
		background-color: rgba(10, 10, 20, 0.7);
	}

	nav#header-navi-wrapper {
		z-index: 10;
		background-color: var(--theme-color);
		transition: var(--slide-transition);
	}

	ul#header-navi {
		height: 100%;
		width: 98%;
		margin-left: 1%;
	}

	#header-navi li, 
	.header-navi-anchors {
		height: 25px;
		width: 100%;
		padding-top: 5px;
		padding-bottom: 5px;
	}

	#header-navi li {
		display: flex;
	}

	ul#header-navi-appendix {
		display: none;
	}

	.header-navi-anchors {
		line-height: 1.8;
		margin-left: 5px;
		margin-right: 5px;
		background-color: var(--theme-color);
		font-size: 1rem;
	}

	input[id=hamburger-button]:checked ~ label#header-navi-container {
		left: 0;
	}

	input[id=hamburger-button]:checked ~ label#header-navi-container nav#header-navi-wrapper {
		left: 50%;
		transition: var(--slide-transition);
	}

	#icon-home-hn,
	#icon-profile-hn,
	#icon-hammer2-hn,
	#icon-envelop-hn {
		top: 2px;
		right: 0;
		height: 1rem;
		width: 1rem;
		padding-right: 3px; 
	}
}

/* (576px <= width < 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {

	#header-wrapper {
		height: var(--header-title-height-768_992);	/* 50px */
		width: 100%;
		border-bottom: 2px solid var(--theme-color);
	}

	#header-container {
		display: flex;
		justify-content: center;
		position: fixed;
		width: 100%;
		background-color: rgba(255, 255, 255, 0.3);
		z-index: 3;
	}

	#main-title {
		position: relative;
		height: var(--header-title-height-768_992);
		width: 100%;
	}

	#hamburger-menu {
		position: absolute;	/* 親要素: main-title */
		top: 20%;
		right:var(--inner-margin);
		height: var(--hamburger-height-768_992);
		width: var(--hamburger-width-768_992);
		background-color: rgba(0, 0, 0, 0);
	}

	#top-layer,
	#middle-layer,
	#bottom-layer {
		height: 4px;
		width: 100%;
		background-color: var(--theme-color);
		border-radius: 3px 3px 3px 3px;
	}

	#top-layer {
		margin-top: var(--hamburger-line-margin-768_992);
		margin-bottom: 0;
	}

	#middle-layer {
		margin-top: var(--hamburger-line-margin-768_992);
		margin-bottom: var(--hamburger-line-margin-768_992);
	}

	#bottom-layer {
		margin-top: 0;
		margin-bottom: var(--hamburger-line-margin-768_992);
	}

	a#header-image-wrapper {
		height: auto;
		width: auto;
		margin-left: var(--inner-margin);
	}

	#header-image {
		height: var(--header-image-height-768_992);	
		width: var(--header-image-width-768_992);
		margin-top: 4.5%;
	}

	/* ヘッダナビ ------------------------------------------------------- */
	label#header-navi-container,
	nav#header-navi-wrapper {
		position: fixed;
		top: 0;
		left: 100%;
		height: 100%;
		width: 100%;
	}

	label#header-navi-container {
		display: block;
		z-index: 9;
		background-color: rgba(10, 10, 20, 0.7);
	}

	nav#header-navi-wrapper {
		z-index: 10;
		background-color: var(--theme-color);
		transition: var(--slide-transition);
	}

	ul#header-navi {
		height: 100%;
		width: 98%;
		margin-left: 1%;
	}

	#header-navi li,
	.header-navi-anchors {
		height: 30px;
		width: 100%;
		padding-top: 5px;
		padding-bottom: 5px;
	}

	#header-navi li {
		display: flex;
	}

	ul#header-navi-appendix {
		display: none;
	}

	.header-navi-anchors {
		line-height: 1.7;
		margin-left: 10px;
		margin-right: 10px;
		background-color: var(--theme-color);
		font-size: 1.25rem;
	}

	input[id=hamburger-button]:checked ~ label#header-navi-container {
		left: 0;
	}

	input[id=hamburger-button]:checked ~ label#header-navi-container nav#header-navi-wrapper {
		left: 50%;
		transition: var(--slide-transition);
	}

	#icon-home-hn,
	#icon-profile-hn,
	#icon-hammer2-hn,
	#icon-envelop-hn {
		top: 2.2px;
		right: 0;
		height: 1.25rem;
		width: 1.25rem;
		padding-right: 6px; 
	}
}

/* (320px <= width < 576px) */
@media (min-width: 320px) and (max-width: 575.98px) {

	#header-wrapper {
		height: calc(var(--header-title-height-768_992) * 0.8);
		width: 100%;
		border-bottom: 2px solid var(--theme-color);
	}

	#header-container {
		display: flex;
		justify-content: center;
		position: fixed;
		width: 100%;
		background-color: rgba(255, 255, 255, 0.3);
		z-index: 3;
	}

	#main-title {
		position: relative;
		height: calc(var(--header-title-height-768_992) * 0.8);
		width: 100%;
	}

	#hamburger-menu {
		position: absolute; /* 親要素: main-title */
		top: 18.75%;
		right: var(--inner-margin);
		height: calc(var(--hamburger-height-768_992) * 0.8);
		width: calc(var(--hamburger-width-768_992) * 0.8);
		background-color: rgba(0, 0, 0, 0);
	}

	#top-layer,
	#middle-layer,
	#bottom-layer {
		height: 3px;
		width: 100%;
		background-color: var(--theme-color);
		border-radius: 3px 3px 3px 3px;
	}
	
	#top-layer {
		margin-top: calc(var(--hamburger-line-margin-768_992) * 0.8); 
		margin-bottom: 0;
	}

	#middle-layer {
		margin-top: calc(var(--hamburger-line-margin-768_992) * 0.8); 
		margin-bottom: calc(var(--hamburger-line-margin-768_992) * 0.8); 
	}

	#bottom-layer {
		margin-top: 0;
		margin-bottom: calc(var(--hamburger-line-margin-768_992) * 0.8); 
	}

	a#header-image-wrapper {
		height: auto;
		width: auto;
		margin-left: var(--inner-margin); 
	}
	
	#header-image {
		height: calc(var(--header-image-height-768_992) * 0.8);	
		width: calc(var(--header-image-width-768_992) * 0.8);
		margin-top: 4.5%; 
	}

	/* ヘッダナビ ------------------------------------------------------- */
	label#header-navi-container,
	nav#header-navi-wrapper {
		position: fixed;
		top: 0;
		left: 100%;
		height: 100%;
		width: 100%;
	}
	
	label#header-navi-container {
		display: block;
		z-index: 9;
		background-color: rgba(10, 10, 20, 0.7);
	}

	nav#header-navi-wrapper {
		z-index: 10;
		background-color: var(--theme-color);
		transition: var(--slide-transition);
	}

	ul#header-navi {
		height: auto;
		width: 98%;
		margin-left: 1%;
	}
	
	#header-navi li,
	.header-navi-anchors {
		height: 25px;
		width: 100%;
		padding-top: 5px;
		padding-bottom: 5px;
	}

	#header-navi li {
		display: flex;
	}

	ul#header-navi-appendix {
		display: none;
	}

	.header-navi-anchors {
		line-height: 2;
		margin-left: 5px;
		margin-right: 5px;
		background-color: var(--theme-color);
		font-size: 0.8rem;
	}

	input[id=hamburger-button]:checked ~ label#header-navi-container {
		left: 0;
	}
	
	input[id=hamburger-button]:checked ~ label#header-navi-container nav#header-navi-wrapper {
		left: 33%;
		transition: var(--slide-transition);
	}

	#icon-home-hn,
	#icon-profile-hn,
	#icon-hammer2-hn,
	#icon-envelop-hn {
		top: 1.7px;
		right: 0;
		height: 0.8rem;
		width: 0.8rem;
		padding-right: 5px; 
	}
}

/* (width < 320px) */
@media (max-width: 319.98px) {
	/* TODO */
}
