@charset "UTF-8";
/* CSS Document */

.global-nav {
  position: fixed;
  right: -70%; /* これで隠れる */
  top: 0px;
  width: 70%; /* スマホに収まるくらい */
  height: 100vh;
  padding-top: 40px;
  background-color: #fff;
  transition: all .6s;
  z-index: 200;
  overflow-y: auto; /* メニューが多くなったらスクロールできるように */

}
.hamburger {
	width: 70px; /* クリックしやすいようにちゃんと幅を指定する */
  height: 70px; /* クリックしやすいようにちゃんと高さを指定する */
  cursor: pointer;
  z-index: 100;
	margin-right: 0%
}
.global-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.global-nav__item {
  text-align: left;
  padding: 0 30px;
}
.global-nav__item a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #111;
}
.global-nav__item a:hover {
  background-color: #eee;
}
.hamburger__line {
  position: absolute;
  left: 20px;
  width: 50px;
  height: 5px;
  background-color: #111;
  transition: all .6s;
}

.black-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background-color: #000;
  opacity: 0;
  visibility: hidden;
  transition: all .6s;
  cursor: pointer;
}
/* 表示された時用のCSS */
.nav-open .global-nav {
  right: 0;
}
.nav-open .black-bg {
  opacity: .8;
  visibility: visible;
}
@media screen and (max-width:560px)  {
.hamburger {
position: fixed;
	top: 0;
	right:0;
	width: 60px; /* クリックしやすいようにちゃんと幅を指定する */
  height: 60px; /* クリックしやすいようにちゃんと高さを指定する */
  cursor: pointer;
  z-index: 300;
}
.global-nav {
  position: fixed;
  right: -70%; /* これで隠れる */
  top: 0;
  width: 70%; /* スマホに収まるくらい */
  height: 80vh;
  padding-top: 40px;
  background-color: #fff;
  transition: all .6s;
  z-index: 200;
  overflow-y: auto; /* メニューが多くなったらスクロールできるように */
}
}
