@charset "utf-8";

.header_container{
  position: relative;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.header_container > .wrapper{
  margin: 0 15px;
  width: calc(100% - 100px);
}

header {
  position: absolute;
  z-index: 9000;
  width: 100%;
}
.header_area{
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.header_area .logo{
  position: relative;
  display: inline-block;
  margin-top: 15px;
  width: 170px;
  height: 55px;
  background-image: url(../img/logo-87cyabou.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.header_area .logo:hover{opacity: 0.7;}


.header_area .nav{
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
}
.header_area .nav > ul{
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.header_area .nav > ul li a{
  display: inline-block;
  color: #123524;
  padding: 10px 15px;
  border-radius: 9999px;
  line-height: 1;
  margin: 0 5px;
}
.header_area .nav > ul li a:hover{
  color: #FFD633;
  background-color: #628675;
}


.sidebar{
  position: relative;
}
.sidebar .sub_nav{
  position: fixed;
  top: 0;
  right: 0;
  width: 70px;
  margin: 0 auto;
  background-color: #F8F8F8;
  height: 100vh;
  z-index: 9980;
}
.g_nav > .menu{
  margin: 5% 5% 0;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.g_nav > .menu ul{
  list-style: none;
  padding: 15% 0 10% 0;
}
.g_nav > .menu ul li a{
  position: relative;
  display: block;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  padding: 15px 0 15px 20px;
}
.g_nav > .menu ul li a .menu_txt{
  display: inline-block;
  min-width: 180px;
}

.g_nav > .menu ul li a:hover{
  color: #FFD633;
}

.g_nav > .menu a.txt_link{
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 10px;
}
.g_nav > .menu a:hover{
  color: #FFD633;
}

.g_nav .contact_box .tel{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.g_nav .contact_box span{
  font-size: 24px;
  font-weight: 600;
  display: inline-block;
  margin-right: 15px;
}
.g_nav .contact_box a{
  color: #fff;
  font-size: 38px;
  font-weight: 600;
}
.g_nav .contact_box .open_txt{
  margin-top: 10px;
  font-weight: 300;
}


.sub_nav .head_btn_box{
  position: fixed;
  top: 28%;
  right: 15px;
  z-index: 5;
}
.sub_nav .head_btn a{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
  color: #123524;
  font-weight: 600;
  transition: 0.3s;
}
.sub_nav .head_btn a > .icon{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: 0.3s;
}
.sub_nav .head_btn a > .icon.i_order{
  background-color: #FFD633;
}
.sub_nav .head_btn a > .icon.i_contact{
  background-color: #2D523F;
}
.sub_nav .head_btn a > .icon:after{
  content: "";
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}
.sub_nav .head_btn a > .icon.i_order:after{
  content: "";
  width: 18px;
  height: 24px;
  background-image: url(../img/i-order.svg);
}
.sub_nav .head_btn a > .icon.i_contact:after{
  content: "";
  width: 19px;
  height: 15px;
  background-image: url(../img/i-contact-w.svg);
}
.sub_nav .head_btn a > .txt{
  font-size: 16px;
  writing-mode: vertical-rl;
}


.sub_nav .head_line.pc{
  position: fixed;
  bottom: 85px;
  right: 15px;
}
.sub_nav .head_line a{
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url(../img/i-line.svg);
  background-repeat: no-repeat;
  transition: 0.3s;
}
.sub_nav .head_line.sp a{
  margin: 10px 0;
}

.sub_nav .head_btn a:hover{
  color: #FFD633;
}
.sub_nav .head_btn a:hover > .icon{
  opacity: 0.7;
}
.sub_nav .head_line a:hover{
  opacity: 0.7;
}

/*========= ボタンのためのCSS ===============*/
.openbtn{
  position:absolute;
  z-index: 9999;
  top: 10px ;
  right: 15px;
  cursor: pointer;
    width: 40px;
    height:40px;
  display: block;
  border-radius: 5px;
  background-color: #123524;
  transition: 0.3s;
}
.openbtn:hover{
  background-color: #FFD633;
}
  
/*×に変化*/  
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
  width: 20px;
  }

  .openbtn span:nth-of-type(1) {
    top:11px;  
  }
  .openbtn span:nth-of-type(2) {
    top:18px;
  }
  .openbtn span:nth-of-type(3) {
    top:26px;
  }
  


  .openbtn.active span:nth-of-type(1) {
      top: 13px;
      left: 8px;
      transform: translateY(6px) rotate(-45deg);
      width: 25px;
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  .openbtn.active span:nth-of-type(3){
      top: 25px;
      left: 8px;
      transform: translateY(-6px) rotate(45deg);
      width: 25px;
  }
  


/*========= ナビゲーションメニューの初期設定 ===============*/
.g_nav {
  position: fixed;
  width: 40%;
  background-color:#123524;
  height: 100vh;
  top: 0;
  right: -100%;
  color: #fff;
  transition: left 0.4s ease;
  z-index: 9995;
  /* overflow: scroll; */
}

.g_nav.active {
  right: 70px;
}

/*========= openbtnは991px以下のみ表示 ===============*/

@media only screen and (max-width: 1010px) {

  .nav_pc ul li a {
    font-size: 16px;
    padding: 15px 15px;
  }
}


@media only screen and (max-width: 991px) {
  .header_area .nav{
    width: calc(100% - 200px);
  }

  .g_nav {
    max-width: auto;
    width: 80%;
  }
  .nav_pc_container > .wrapper{
    margin-top: 70px;
  }
  .nav_logo_area{
    display: none;
  }
  .nav_pc {
    position: relative;
    width: 90%;
    margin-left: auto;
  }
  .nav_pc ul li a {
    padding: 15px 10px;
}

}


@media only screen and (max-width: 767px) {
  .header_container > .wrapper{
    width: calc(100% - 30px);
  }
  header .nav{
    display: none;
  }

  .sidebar .sub_nav{
    position: unset;
    background-color: #ccc;
    height: unset;
  }
  .openbtn{
    position: fixed;
  }
  .g_nav.active{
    right: 0;
  }

  .g_nav > .menu ul{
    padding: 50px 0 10% 0;
  }
  .g_nav > .menu ul li a{
    padding: 10px 0 10px 20px;
  }
  .g_nav .contact_box a{
    font-size: 30px;
  }

  .sub_nav .head_btn_box{
    left: 0;
    top: unset;
    right: unset;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #F8F8F8;
  }
  .sub_nav .head_btn{
    width: 50%;
  }
  .sub_nav .head_btn a{
    flex-wrap: wrap;
    flex-direction: unset;
    margin: 0;
    padding: 10px;
  }
  .sub_nav .head_btn a > .icon{
    margin-bottom: 0;
    margin-right: 10px;
  }
  .sub_nav .head_btn a > .txt {
    writing-mode: unset;
  }
  .sub_nav .head_line.pc{
    display: none;
  }
  .sub_nav .head_line.sp{
    display: block;
  }

}



/*========= オーバーレイ ===============*/
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
  z-index: 9980; /* メニューより1つ下 */
  display: none; /* 初期状態は非表示 */
  transition: opacity 0.4s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}