/*╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗*/
/*║ HEADER I                                                                                                                                                                                                                                              ║*/
/*╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*/
/***-------------------------------------------*** Space for Header ***-------------------------------------------***/
#cmsgrid > div:first-of-type { padding-top: 96px; }

/***-------------------------------------------*** Header ***-------------------------------------------***/
header { position: fixed; z-index: 1000; inset: 0 0 auto 0; height: 96px; background: transparent; transition: var(--transition); }
body.scrolled header { background: var(--white); box-shadow: 0 0 100px 0 rgba(0,0,0,0.1); }
header .cms_container { position: relative; height: 96px; padding: 0 30px; }

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
header #hHamburger { cursor: pointer; position: absolute; top: 50%; right: 30px; transform: translateY(-50%); }
#hHamburgerIcon { position: relative; width: 48px; height: 35px; }
#hHamburgerIcon span { position: absolute; left: 0; display: block; width: 100%; height: 3px; background: var(--black); transform: rotate(0deg); transition: var(--transition); will-change: transform; }
#hHamburgerIcon span:first-child,
#hHamburgerIcon span:nth-child(2),
#hHamburgerIcon span:last-child { transform-origin: left center; }
#hHamburgerIcon span:first-child { top: 0px; }
#hHamburgerIcon span:nth-child(2) { top: 16px; }
#hHamburgerIcon span:last-child { top: 32px; }
body.navi #hHamburgerIcon span:first-child { top: -1px; left: 7px; transform: rotate(45deg); }
body.navi #hHamburgerIcon span:nth-child(2) { width: 0%; opacity: 0; }
body.navi #hHamburgerIcon span:last-child { top: 33px; left: 7px; transform: rotate(-45deg); }

/***-------------------------------------------*** Logo ***-------------------------------------------***/
body #logo_container { position: absolute; z-index: 1; top: 50%; left: 30px; transform: translateY(-50%); width: 171px; height: 23px; }
body #logo_container > a { position: absolute; z-index: 2; inset: 0; background: center left / contain no-repeat url("/pages/img/logo.svg"); }

/***-------------------------------------------*** Desktop ***-------------------------------------------***/
@media screen and (min-width: 960px) {
	/* Start: Navi */
	header #hNavigation { position: fixed; top: 96px; right: -100%; bottom: 0; max-width: 811px; width: 100%; padding: 48px 0; background: var(--white); box-shadow: -3px 4px 11px 0 rgba(0,0,0,0.25); overflow-y: auto; transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 5px; }
	header #hNavigation > ul > li { display: block; }
	header #hNavigation > ul > li > a { display: block; width: 100%; font-weight: 300; font-size: 23px; line-height: 28px; padding: 10px 66px; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { background: var(--tertiary); }
	/* End: Navi */

	/* Start: Scrolled */
	header,
	header .cms_container,
	header #hNavigation { transition: var(--transition); }

	body.scrolled header { height: 77px; }
	body.scrolled header .cms_container {height: 77px; }
	body.scrolled header #hNavigation { top: 77px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Smartphone ***-------------------------------------------***/
@media screen and (max-width: 959px) {
	/* Start: Header */
	#cmsgrid > div:first-of-type { padding-top: 91px; }
	header { height: 91px; }
	header .cms_container { height: 91px; }
	/* End: Header */

	/* Start: Navi */
	header #hNavigation { position: fixed; z-index: 9999; top: 91px; right: -100vW; bottom: 0; width: 100vW; overflow-y: auto; background: var(--white); padding: 56px 30px; transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 5px; }
	header #hNavigation > ul > li { display: block; }
	header #hNavigation > ul > li > a { display: block; width: 100%; font-weight: 300; font-size: 23px; line-height: 28px; padding: 10px 30px; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { background: var(--tertiary); }
	/* End: Navi */
}