@charset "utf-8";

header{
	position: fixed;
	z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  top: 0;
}
header .area{
  width: 100%;
  box-sizing: border-box;
  padding: 1.5em 3em 1em 3em;
  align-items: flex-start;
  transition: backdrop-filter .3s ease-out, background-color .3s ease-out, transform .3s ease-out;
}
header .logo{
  max-width: 20vw;
}
@media screen and (max-width: 520px){
	header .area{
    padding: 1em 3vw 1em 6vw;
    align-items: center;
	}
	header .logo{
    max-width: 50vw;
	}
}

/*--------------------------------------------------------------------*/
/* scrolled */

header._scrolled .area{
  backdrop-filter: blur(5px);
  background-color: rgb(255 255 255 / 90%);
  transform: translate(0, -100%);
}
header._scrolled._scroll_up .area{
  transform: translate(0, 0%);
}

/*--------------------------------------------------------------------*/

@media screen and (min-width: 1201px){
  header .menu{
    display: none;
  }
}
@media screen and (max-width: 1200px){
  header .menu{
    position: relative;
    align-items: stretch;
    border-radius: 3px;
    display: inline-block;
    z-index: 3;
    margin-left: auto;
  }
  header .menu .button{
    position: relative;
    z-index: 1100;
    width: 14px;
    height: 14px;
    margin: 10px;
  }
  header .menu .button .line{
    display: inline-block;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 4px;
    transition: all .3s;
  }
  header .menu .button .line:nth-of-type(1){
    top:0;
  }
  header .menu .button .line:nth-of-type(2){
    top: 0;
    bottom: 0;
  }
  header .menu .button .line:nth-of-type(3){
    bottom: 0;
  }
  header.active .menu .button .line:nth-of-type(1){
    top: 0;
    bottom: 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  header.active .menu .button .line:nth-of-type(2){
    opacity: 0;
  }
  header.active .menu .button .line:nth-of-type(3){
    top: 0;
    bottom: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
}

/*--------------------------------------------------------------------*/


.global_navigation[data-navigation-type="heading"]{
  margin-left: auto;
  font-weight: 700;
}
.global_navigation[data-navigation-type="heading"] ul{
  gap: 2em;
}
@media screen and (max-width: 1200px){
  .global_navigation[data-navigation-type="heading"]{
    display: none;
  }
}

/*--------------------------------------------------------------------*/

.global_navigation[data-navigation-type="overlay"]{
  display: none;
}
@media screen and (max-width: 1200px){
  .global_navigation[data-navigation-type="overlay"]{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 999;
    transform: translate(0, -10%);
    opacity: 0;
    transition: transform .3s cubic-bezier(.35,.97,.57,.97), opacity .3s cubic-bezier(.35,.97,.57,.97);
    pointer-events: none;
  }
  header.active + .global_navigation[data-navigation-type="overlay"]{
    opacity: 1;
    transform: translate(0, 0%);
    pointer-events: auto;
  }
  .global_navigation[data-navigation-type="overlay"] .area::after{
    width: 170%;
    height: 7em;
    background-image: url(../img/cta_form_shadow.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    pointer-events: none;
  }
  .global_navigation[data-navigation-type="overlay"] .panel{
    background-color: #fff;
    padding-bottom: 3em;
    border-radius: 0 0 2em 2em;
  }
  .global_navigation[data-navigation-type="overlay"] nav{
    padding: 0 10vw;
    padding-top: 2em;
  }
  .global_navigation[data-navigation-type="overlay"] nav li{
    padding: .25em 0;
  }
  .global_navigation[data-navigation-type="overlay"] nav li.icon_arrow::before{
    pointer-events: none;
    border-color: var(--c_primary);
  }
  .global_navigation[data-navigation-type="overlay"] nav li a{
    padding: .5em 0;
    display: block;
  }
  .global_navigation[data-navigation-type="overlay"] .bg_button{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }
}
