.header{
  position: fixed;
  /* position: relative; */
  width: 100%;
  z-index: 50;
}

.header_inner{
  position: absolute;
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  width: 100%;
  /* height: 10.5rem; */
  padding: 3rem 3rem 0;
  transition: all .3s;
}

.header_logo{
  height: fit-content;
}

.header_logo_inner{
  display: flex;
  align-items: center;
  justify-content: start;
  height: 6.5rem;
  gap: .8rem;
  transition: all ease .5s;
}

.header_inner.white .header_logo_inner{
  height: 6.378rem; 
}

.header_logo_icon{
  aspect-ratio: 62/65;
  height: 100%;
  background-image: url(../img/logo_kyouei.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.header_inner.white .header_logo_icon{
  background-image: url(../img/logo_top_contct.png);
}

.header_logo_tex{
  aspect-ratio: 237/50;
  width: 23.699rem;
  background-image: url(../img/logo_kyouei2.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

.header_inner.white .header_logo_tex{
  background-image: url(../img/logo_top_text.svg);
}

.header_contents{
  display: flex;
  justify-content: end;
  align-items: center;
  padding-bottom: 2.5rem;
  gap: 7.5rem;
  width: 103.5rem;
  height: 100%;
  border-bottom: #0B284C solid .2rem;
  transition: all ease .5s;
}

.header_inner.white .header_contents{
  border-bottom: white solid .2rem;
}

.header_content{
  color: #0B284C;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1em;
  transition: ease all .3s;
  transition: all ease .5s;
}


.header_inner.white  .header_content{
  color: white;
}

.header_content:hover{
  color: #f38201 !important;
}
  

.header_content.contact_link{
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-left: auto; */
  aspect-ratio: 190/50;
  width: 19rem;
  background-color: #0B284C;
  color: #fff;
  border-radius: 2.5rem;
}

.header_inner.white .header_content.contact_link{
  background-color: #fff;
  color: black;
}

.header_content:hover{
  color: #F38200;
}

.header_content.contact_link:hover{
  background-color: #F38200!important;
  color: white!important;
}

/* fv */
.front_view{
  position: relative;
  overflow: hidden;
  aspect-ratio:1440/600;
  width: 100%;
  color: #F38200;
}

.front_bg{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: lightgray;
  z-index: -1;
  padding: 0 !important;
}


.front_page_title{
  display: flex;
  justify-content: start;
  align-items: center;
  width: fit-content;
  height: 9.4rem;
  font-family: var(--GoogleSans);
  margin: 42.3rem 0 0 3rem;
  font-size: 7rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height:1em;
  text-transform: uppercase;
}

.front_page_minititle{
  margin: 0 0 0 3rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: calc(29em/20);
}

.hamburger_button{
  display: none;
}

.header_inner.none{
  opacity: 0;
}

@media screen and (max-width: 699.98px) {
  .header{
    position: absolute;
    width: 100%;
    z-index: 50;
  }

  .header_inner{
    /* position: fixed; */
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem 0;
    overflow-x: clip;
  }

  .header_logo{
    height: fit-content;
  }

  .header_logo_inner,
  .header_inner.white .header_logo_inner,
  .header_inner.white .sp_only .header_logo_inner{
    height: 4.5rem;
    gap: .5rem;
  }

  .header_logo.sp_only{
    margin-bottom: 1.5rem;
  }

  .header_logo_icon{
    aspect-ratio: 43.13/45;
    height: 100%;
  }

  .header_logo.sp_only .header_logo_icon{
    background-image: url(../img/logo_kyouei.png);
  }

  .header_logo_tex{
    aspect-ratio: 213.29/45;
    width: 21.329rem;
  }

  .header_logo.sp_only .header_logo_tex{
    background-image: url(../img/logo_kyouei2.svg);
  }

  .header_contents{
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 10;
    width: 100vw;
    height: 33rem;
    flex-direction: column;
    align-items: start;
    padding: 1rem 1rem 3.5rem;
    gap: 1.5rem;
    border-bottom: unset;
    background: white;
    transition: all ease .3s;
    transform: translateZ(1px);
  }

  .header_contents.active{
    left: 0;
  }

  .header_inner.white .header_contents{
    border-bottom:unset;
  }

  .header_content{
    padding: 1.5rem 0.5rem 0;
    border-top: #0B284C solid .2rem;
    color: #0B284C;
    width: 100%;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1em;
    transition: ease all .3s;
  }

  .header_inner.white  .header_content{
    color: #0B284C;
  }
    
    

  .header_content.contact_link{
    display: inline;
    margin-left: unset;
    aspect-ratio: unset;
    width: 100%;
    background-color: unset;
    color: #0B284C;
    border-radius: unset;  
    padding-bottom: 1.5rem;
    border-bottom: #0B284C solid .2rem;
  }

  .header_inner.white .header_content.contact_link{
    background-color: #fff;
    color: #0B284C;
  }

  .header_content:hover{
    color: #F38200;
  }

  .header_content.contact_link:hover{
    background-color: unset;
    color: #F38200;
  }

  .hamburger_button{
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    top: 1rem;
    right: 1rem;
    padding: 1.25rem .5rem;
    aspect-ratio: 1/1;
    width: 4.5rem;
    background-color: #F38200;
    border-radius: .3rem;
    z-index: 100;
  }

  .hamburger_button span{
    width: 100%;
    height: .1rem;
    background-color: #fff;
    transform-origin: left;
    transition: all ease .3s;
  }
  
  .hamburger_button.active span:nth-child(1){
    transform: rotateZ(28deg) scaleX(1.1331);
  }
  
  .hamburger_button.active span:nth-child(2){
    transform: scale(0);
  }
  
  .hamburger_button.active span:nth-child(3){
    transform: rotateZ(-28deg) scaleX(1.1331);
  }

  /* fv */
  .front_view{
    aspect-ratio:375/400;
  }
  
  .front_bg img{
    position: absolute;
    top: 0;
    aspect-ratio: 96/40;
    width:auto;
  }

  .front_bg.news img{
    left: -38.6rem;
  }

  .front_bg.contact img{
    left: -29.2rem;
  }

  .front_bg.company img{
    left: -5.4rem;
  }

  .front_bg.business img{
    left: -15.1rem;
  }


  .front_page_title{
    /* height: 6.7rem; */
    height: auto;
    margin: 27.8rem 0 0 1.5rem;
    font-size: 5rem;
    letter-spacing: 0;
    line-height:1em;
  }

  .front_page_minititle{
    margin: -.4rem 0 0 1.5rem;
    line-height: calc(29em/20);
  }

}