@charset "utf-8";

header{
	position: fixed;
	z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  top: 0;
  padding: 2em 3.5em 2em 3.5em;
  white-space: nowrap;
  min-width: 1200px;
}
header .area{
  width: 100%;
  box-sizing: border-box;
}
@media screen and (max-width: 1330px){
	header{
    font-size: 1.4rem;
	}
}
@media screen and (max-width: 520px){
	header{
    padding: 3vw 3vw 3vw 5vw;
    min-width: 0;
  }
  header .area{

  }
  header .logo{
    max-width: 20vw;
  }
}

/*--------------------------------------------------------------------*/

@media screen and (min-width: 521px){
  header .menu{
    display: none;
  }
}
@media screen and (max-width: 520px){
  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;
}
.global_navigation[data-navigation-type="heading"] .common{
  /* padding-right: 2em; */
}
.global_navigation[data-navigation-type="heading"] .common li{
  margin: 0 1em;
}
.global_navigation[data-navigation-type="heading"] .common li a{
  padding: 0 .5em;
}
.global_navigation[data-navigation-type="heading"] .relative{
  padding-left: 2em;
  border-left: 1px solid var(--border_gray);
}
.global_navigation[data-navigation-type="heading"] .relative li{
  margin: 0 1em;
}
.global_navigation[data-navigation-type="heading"] .contact{
  margin-left: 2em;
}
.global_navigation[data-navigation-type] .contact a{
  background-color: var(--bg_dark);
  color: #fff;
  padding: .6em 2em;
  border-radius: 5em;
  font-size: 87.5%;
}
.global_navigation[data-navigation-type] .contact a .icon{
  padding-left: 1.5em;
  background-image: url("../img/icons/email_w.svg");
  background-repeat: no-repeat;
  background-position: left top 60%;
  background-size: 1.2em auto;
}
@media screen and (max-width: 520px){
  .global_navigation[data-navigation-type="heading"]{
    display: none;
  }
}

/*--------------------------------------------------------------------*/

.global_navigation[data-navigation-type="overlay"]{
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  z-index: 999;
  transform: translateY(1em);
}
.global_navigation[data-navigation-type="overlay"]::after{
  content: "";
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/bg_gnavi.webp");
  background-repeat: no-repeat;
  background-position: center bottom 70%;
  background-size: 100% auto;
  pointer-events: none;
}
header.active + .global_navigation[data-navigation-type="overlay"]{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0em);
  transition: opacity .3s, transform .3s ease-in-out;
}
.global_navigation[data-navigation-type="overlay"] .bg_button{
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
  padding: 6vw;
  overflow: auto;
  padding-bottom: 20vw;
  padding-top: 20vw;
}
.global_navigation[data-navigation-type="overlay"] .common{
  margin-bottom: 1.25em;
  border-bottom: 1px solid var(--border_gray);
  padding-bottom: 1.25em;
}
.global_navigation[data-navigation-type="overlay"] .common li{
  margin: .65em 0;
}
.global_navigation[data-navigation-type="overlay"] .common li a{
  position: relative;
  padding-left: 1em;
}
.global_navigation[data-navigation-type="overlay"] .common li a::before{
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--bg_dark);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: .75em;
}
.global_navigation[data-navigation-type="overlay"] .relative li{
  margin: .5em 0;
}
.global_navigation[data-navigation-type="overlay"] .contact{
  margin-top: 2em;
}
.global_navigation[data-navigation-type="overlay"] .contact a{
  display: block;
  text-align: center;
  padding: 1em 2em;
}
