@charset "utf-8";


/*グローバルナビゲーション
==================================================================================================================*/
/*ヘッダー*/

header{
  width: 100%;
  min-height: 60px;
  padding: 1.5em .5em .5em;
  margin: auto;
  background: rgba(255, 255, 255, .8);
  position: fixed;
  margin-bottom: 0;
  top: 0;
  z-index: 9999;
  transition: all 0.8s;
}



header h1{
  position: absolute;
  top: .5em;
  left: .5em;
  font-size: clamp(0.5rem, 0.386rem + 0.57vw, 0.813rem);
  margin-bottom: 0;
  line-height: 1.2;
  text-align: left;
  width: calc(100% - 80px - 1em);
  font-weight: 500;
}

.header_logo h2{
  width: 60vw;
  max-width: 350px;
}

header .head_tel{
  position: absolute;
  top: 1em;
  right: calc(80px + 1.5em);
  line-height: 1;
}
header .head_tel a{
  font-size: var(--f34);
  font-family: "Overpass", sans-serif;
  color: var(--c_red);
}
header .head_tel a span{
  position: relative;
  padding-left: .75em;
}
header .head_tel a span::before{
  content: "";
  mask-image: url(../images/common/icon_tel.svg);
  mask-size: cover;
  width: 18px;
  height: 30px;
  background-color: var(--c_red);
  position: absolute;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
}
header .head_tel .time{
  text-align: right;
  font-size: clamp(0.75rem, 0.705rem + 0.23vw, 0.875rem);
}


.nav_box{
  background: var(--c_egren);
  display: none;
  position: fixed;
  z-index: 99; 
  width: 35%;
  height: 100vh;
  overflow: auto;
  margin: auto;
  -webkit-overflow-scrolling: touch;
}

.nav_box>ul{
 display: flex;
 justify-content: space-between;
 flex-wrap: wrap;
  opacity: 0;
  position: absolute;
  z-index: 99;
  top:20%;
  right: 0;
  width: 90%;
  padding-bottom: 2em;
}
.nav_box>ul>li{
 width: 100%;
 padding: 0 1em;
}


.nav_box>ul>li:not(:first-child){border-top: 1px solid #fff;}
.nav_box>ul>li a{
  color: #fff;
  text-align: left;
  display: block;
  padding: .75em 0;
  position: relative;
}


#gnav_wrap.panelactive{
  position:fixed;
  z-index: 999;
  top: 0;
  right: 0;
  width: 35%;
  height: 100vh;
}
.circle-bg{
  position: fixed;
  z-index:3;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--c_egren);
  transform: scale(0);
  right:-50px;
  top:calc(50% - 50px);
  transition: all .5s;
}

#gnav_wrap.panelactive .nav_box{display: block;}


#gnav_wrap.panelactive ul {opacity:1;}
#gnav_wrap.panelactive ul li{
  animation-name:gnaviAnime;
  animation-duration:1s;
  animation-delay:.2s;
  animation-fill-mode:forwards;
  opacity:0;
}

@keyframes gnaviAnime{
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.circle-bg.circleactive{transform: scale(50);width: 50%;}

.openbtn1{
  background: var(--c_egren);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 998;
  cursor: pointer;
  width: 80px;
  height: 80px;
}


.openbtn1::after,
.openbtn1.active::after{
  content: "MENU";
  font-size: clamp(0.75rem, 0.705rem + 0.23vw, 0.875rem);
  color: #fff;
  font-weight: bold;
  position: absolute;
  bottom: 1em;
  left: 50%;
  transform: translateX(-50%);
  margin: auto;
}


.openbtn1.active::after{
  content: "CLOSE";
}


.openbtn1 span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 15px;
  height: 4px;
  background-color: #fff;
  width: 50px;
}

.openbtn1 span:nth-of-type(1) {top:15px;}
.openbtn1 span:nth-of-type(2) {top:35px;}

.openbtn1.active{
  z-index: 9999;
}


.openbtn1.active span{
  width: 40px;
  left: 20px;
}



.openbtn1.active span:nth-of-type(1) {
  top: 12px;
  transform: translateY(6px) rotate(-45deg);
}
.openbtn1.active span:nth-of-type(2){
  top: 24px;
  transform: translateY(-6px) rotate(45deg);
}



@media (max-width:799px) {



#gnav_wrap.panelactive,.nav_box,.nav_box>ul{width: 100%;}
.nav_box>ul{top: 10%;}
.nav_box>ul>li a{
  text-align: center;
}


header .head_tel{
  position: fixed;
  top: unset;
  bottom: .5em;
  right: 2%;
  line-height: 1;
  width: 96%;
  background: var(--c_red);
  border-radius: var(--br10);
}
header .head_tel a{
  display: flex;
  justify-content: center;
  padding: .5em;
  color: #fff;
}
header .head_tel a span {
  padding-left: 1em;
}
header .head_tel a span::before{
  width: 14px;
  height: 24px;
  background-color: #fff;
}


header .head_tel .time{display: none;}

}



@media (max-width: 599px) {


header{padding: 1.25em .5em .25em;}

header h1{
  top: .25em;
  left: .5em;
  width: calc(100% - 60px - 1em);
}

.openbtn1{
  width: 60px;
  height: 60px;
}
.openbtn1 span{
  left: 10px;
  height: 3px;
  width: 40px;
}
.openbtn1 span:nth-of-type(1) {top:10px;}
.openbtn1 span:nth-of-type(2) {top:25px;}
.openbtn1::after,
.openbtn1.active::after{
  bottom: .5em;
}

.openbtn1.active span{
  width: 30px;
  left: 15px;
}


}