@charset "utf-8";

/*========= ナビゲーションのためのCSS ===============*/
#g-nav {
  position: fixed;
  z-index: 999;
  top: 0;
  right: -120%;
  width: 40%;
  height: 100vh;
  /*ナビの高さ*/
  background: rgba(192, 0, 23, 1);
  /*background: rgba(0,0,0,1);*/
  transition: all 0.6s;
  /*動き*/
  cursor: pointer;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
  right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
  position: fixed;
  z-index: 999;
  width: 40%;
  height: 100vh;
  /*表示する高さ*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul.include-accordion {
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 999;
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
}

/*リストのレイアウト設定*/
#g-nav li {
  list-style: none;
  text-align: left;
}

#g-nav li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  display: inline-block;
  letter-spacing: 0.1em;
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
}

#g-nav li a span {
  position: relative;
}

#g-nav li a span::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 3px;
  background: #fff;
  bottom: -8px;
  /*アンダーラインがaタグの下端から現れる*/
  transform: scale(0, 1);
  /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
  transform-origin: left top;
  /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
  transition: transform 0.3s;
  /*変形の時間*/
}

#g-nav li a span:hover::after {
  transform: scale(1, 1);
  /*ホバー後、x軸方向に1（相対値）伸長*/
}

#g-nav li a.blank::after {
  content: url(/wordpress/wp-content/uploads/img/link-blank.svg);
  width: 15px;
  height: 15px;
  float: right;
  margin-left: 5px;
  margin-top: 2px;
}

#g-nav li .g-navBtn {
  background: #fff;
  margin-top: 20px;
  border-radius: 30px;
  text-align: center;
}

#g-nav li .g-navBtn a {
  color: #e50012;
  padding: 10px 20px;
}

#g-nav li .g-navBtn::after {
  content: " ";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url(/wordpress/wp-content/uploads/img/ico-mail-r.svg);
  background-size: contain;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: 0px -1px;
  transition: all .3s ease-out;
}

#g-nav li .g-navBtn:hover::after {
  background-position: 0 -2px;
}

/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: fixed;
  z-index: 9999;
  /*ボタンを最前面に*/
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: #c00017;
  cursor: pointer;
  display: none;
}

/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
  width: 40%;
}

.open,
.close {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.01px;
  color: #fff;
  margin-top: 50px;
  text-align: center;
}

.openbtn .open {
  display: block;
  cursor: pointer;
}

.openbtn .close {
  display: none;
  cursor: pointer;
}

.openbtn.active .open {
  display: none;
  cursor: pointer;
}

.openbtn.active .close {
  display: block;
  cursor: pointer;
}

.openbtn span:nth-of-type(1) {
  top: 24px;
}

.openbtn span:nth-of-type(2) {
  top: 32px;
}

.openbtn span:nth-of-type(3) {
  top: 40px;
}

.openbtn.active span:nth-of-type(1) {
  top: 28px;
  left: 20px;
  transform: translateY(6px) rotate(-25deg);
  width: 52%;
  background-color: #fff;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
  top: 40px;
  left: 20px;
  transform: translateY(-6px) rotate(25deg);
  width: 52%;
  background-color: #fff;
}

.header-btn-mail {
  position: fixed;
  z-index: 998;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  margin: auto;
  padding: 12px 0;
  text-align: center;
  background: #e50012;
  transition: all .3s ease-out;
}

.header-btn-mail::before {
  content: " ";
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url(/wordpress/wp-content/uploads/img/ico-mail.svg);
  background-size: contain;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: 0px 4px;
  transition: all .2s ease-out;
}

.header-btn-mail:hover::before {
  background: url(/wordpress/wp-content/uploads/img/ico-mail-hover.svg);
  background-position: 0px 4px;
}

.btn-text-mail {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01px;
  color: #fff;
  margin-top: 8px;
  transition: .3s;
}

.header-btn-mail a,
.header-btn-mail a:hover {
  text-decoration: none;
}


@media (max-width:768px) {
  #g-nav {
    width: 90%;
  }

  #g-nav.panelactive #g-nav-list {
    width: 90%;
  }

  /* #g-nav ul {
		top: 45%;
		left: 30%;
		transform: translate(-25%, -50%);
	} */

  #g-nav li a {
    padding: 6px 0;
    font-size: 14px;
    letter-spacing: 0;
  }

  #g-nav li .g-navBtn a {
    color: #e50012;
    padding: 10px 15px 8px;
  }

  .header-btn-mail {
    top: 0;
    right: 80px;
  }

  #g-nav li .g-navBtn {
    width: 200px;
  }
}

@media (max-width:499px) {
  .header-btn-mail::before {
    background-position: 0px 6px;
  }
}



/* ハンバーガーメニュー　２行のアンダーライン */
#g-nav li a span.gnav-text-btn_none::after {
  content: none !important;
}

#g-nav-list>ul>li.br_marker {
  display: inline !important;
}

#g-nav-list>ul>li>a.gnav-text-btn_2 span {
  padding-bottom: .5em !important;
  background: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) 0 100%/0 3px no-repeat !important;
  transition: background .4s !important;
  text-decoration: none !important;
  /* display: inline !important; */
}


#g-nav-list>ul>li>a.gnav-text-btn_2:hover {
  background-size: 100% 3px !important;
}


li.accordionBtn_li {
  padding-bottom: .5em !important;
  background: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) 0 100%/0 3px no-repeat !important;
  transition: background .4s !important;
  text-decoration: none !important;
  display: inline !important;
}

li.accordionBtn_li:hover {
  background-size: 100% 3px !important;
}


a.gnav-text-btn_2_in {
  padding-bottom: .5em !important;
  background: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) 0 100%/0 3px no-repeat !important;
  transition: background .4s !important;
  text-decoration: none !important;
  display: inline !important;
}

li.gnav-text-btn_2_in_list {
  padding: 4px 0;
}

a.about_widefone_hd_btn {
  padding-bottom: .5em !important;
  background: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)) 0 100%/0 3px no-repeat !important;
  transition: background .4s !important;
  text-decoration: none !important;
  /* display: inline !important; */
}


a.about_widefone_hd_btn:hover {
  background-size: 100% 3px !important;
}


button.accordionBtn:hover {
  background-image: none !important;
}


button.accordionBtn:active {
  background: none;
  box-shadow: none;
}