@charset "utf-8";

/*========= ナビゲーションのためのCSS ===============*/

#sp-nav {
  display: none;
/*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
  position: fixed;
  z-index: -1;
  opacity: 0;/*はじめは透過0*/
    /*ナビの位置と形状*/
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;/*ナビの高さ*/
  background: #F2F2F2;
    /*動き*/
  transition: all 0.3s;
}

/*アクティブクラスがついたら透過なしにして最前面へ*/
#sp-nav.panelactive {
  display: block;
  opacity: 1;
  z-index: 999;
}

/*ナビゲーションの縦スクロール*/
#sp-nav.panelactive #sp-nav-list {
/*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999; 
  width: 100%;
  height: 100vh;/*表示する高さ*/
  overflow: auto;
    -webkit-overflow-scrolling: touch;
  padding: 80px 20px;
}

#sp-nav a {
  pointer-events: auto;
}
.sp-nav_logo {
  margin: 0 auto 40px auto;
  width: 175px;
}
/*ナビゲーション*/
.nav_btn_wrap {
  text-align: left;
  width: 420px;
  margin: 0 auto;
}

#sp-nav ul {
  display: none;
  margin: 15px auto 0 auto;
  /*ナビゲーション天地中央揃え*/
}
#sp-nav.panelactive ul {
  display: block;
  font-weight: bold;
}

/*リストのレイアウト設定*/
#sp-nav li {
  list-style: none;
  text-align: left; 
  text-indent: -5px;
  padding: 15px 15px;
  border-bottom: 1px solid #B3B3B3;
}
#sp-nav li:first-child {
  border-top: 1px solid #B3B3B3;
}


#sp-nav li a {
  display: block;
  width: 100%;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.12em;
}
#sp-nav ul li a:before {
  content: '';
  display: inline-block;
  background-image: url(../img/icon_link.png);
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  top: 3px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
}


#sp-nav div.mail {
  margin-bottom: 40px;
  font-weight: bold;
  font-size: 1em;
  color: #E84729;
}
#sp-nav div.mail a {
  display: inline-block;
  background-color: #E84729;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 15px 22px;
  font-size: 1.22em;
  width: 300px;
}
/*========= ボタンのためのCSS ===============*/
.openbtn1 {
  position: fixed;
  z-index: 9999;/*ボタンを最前面に*/
  top: 20px;
  right: 20px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  pointer-events: auto;
}
.openbtn1.active {
  right: 15px;
  border: none;
  background-color: #F2F2F2;
} 
/*×に変化*/  
.openbtn1 span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background-color: #000;
  width: 100%;
  }

.openbtn1 span:nth-of-type(1) {
  top: 12px; 
}
.openbtn1 span:nth-of-type(2) {
  top: 22px;
}
.openbtn1 span:nth-of-type(3) {
  top: 32px;
}

.openbtn1.active span:nth-of-type(1) {
  top: 13px;
  left: 10px;
  transform: translateY(6px) rotate(-45deg);
  width: 70%;
  background-color: #000;
}

.openbtn1.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn1.active span:nth-of-type(3) {
  top: 25px;
  left: 10px;
  transform: translateY(-6px) rotate(45deg);
  width: 70%;
  background-color: #000;
}


@media only screen and (max-width: 580px) {
  .nav_btn_wrap {
      width: 100%;
  }
}
@media only screen and (max-width: 480px) {
  .openbtn1 {
      top: 14px;
  }
  #sp-nav div.mail a {
    padding: 9px 22px;
    font-size: 1.2em;
    width: 100%;
  }
  #sp-nav div.mail a img {
    width: 20px;
    top: 8px;
  }
}