/* PC版グローバルナビ */
.sp-nav, .sp-nav-logo, .sp-return{
  display: none;
}
.global-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  margin: auto;
  right: -250px;
  width: 200px;
  height: 95vh;
  background-color: rgba(118, 185, 42, 0.9);
  box-shadow: 0 5px 5px var(--myShadowColor);
  border-radius: 50px 0 0 50px;
  z-index: 9999;
  overflow: hidden;
  transition: 1s;
}
.global-nav.n-fixed {
  right: -165px;
}
.global-nav.n-fixed.open {
  right: 0px;
}
.nav-menu-btn {
  position: absolute;
  top: 50px;
  left: -14px;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  transform: rotate(90deg);
  z-index: 100;
}
.nav-menu-btn:hover {
  cursor: pointer;
}
.nav-area{
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
  height: 95vh;
  padding:20px 0;
  overflow: hidden;
  box-sizing: border-box;
}
.nav-area ul{
  height: 50%;
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.nav-logo {
  height:50%;
  text-align: center;
  margin-bottom: 15px;
}
.nav-logo img{
  height: 100%;
}
.nav-logo img:hover {
  opacity: 0.8;
}
.nav-icon-wrapper {
  float:left;
}
.nav-icon {
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.nav-icon:hover {
  transform: scale(1.1);
}
.nav-icon img{
  width: 40px;
  opacity: 0.9;
}
.nav-icon p {
  display: inline;
  color: white;
  font-size: 1.4rem;
  line-height: 1.8rem;
  font-weight: 700;
  text-shadow: 1px 1px 1px #aaa;
  margin-left: 10px;
}


/* ネット販売サイトへ飛ぶボタン */
.nav-buy-button,.nav-buy-button:visited {
  border: solid 3px var(--myAccentColor2);
  background-color: var(--myAccentColor2);
  box-shadow: 0px 5px 0px rgb(119, 69, 28);
}
.nav-buy-button:hover,.nav-buy-button:visited:hover{
  background-color: white;
  color: var(--myAccentColor2);
}
/* Facebookボタン */
.nav-facebook-button, .nav-facebook-button:visited {
  background-color: #3B5998;
  border: solid 3px #3B5998;
  box-shadow: 0px 5px 0px rgb(21, 26, 75);
}
.nav-fb-button:hover {
  color: #3B5998;
  background-color: white;
}
.nav-button, .nav-button:visited {
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-radius: 10px;
  width: 100%;
  padding: 5px 10px;
  color: white;
  font-size: 1.4rem;
  line-height: 1.8rem;
  font-weight: 700;
  transition: 0.3s;
}
.nav-font-icon:before {
  font-size: 2.8rem;
  margin-right: 10px;
}
.nav-button:active {
  box-shadow: none;
  transform: translateY(5px);
}
/* PAGE TOPボタン */
.pagetop {
  position: fixed;
  bottom: -100px;
  right: 5%;
  z-index: 50;
  padding: 0;
  margin: 0;
  height: 90px;
  transition: 1s;
}
.pagetop.n-fixed {
  bottom: 0;
}
.pagetop.n-fixed:active {
  transition: 0s;
  transform: translateY(10px);
}
.pagetop img {
  height: 90px;
}

@media(max-width:896px) {
  /* SPドロワーメニュー */
  .nav-menu-btn, .nav-logo, .pagetop {
    display: none;
  }
  /* ナビデザイン */
  .global-nav{
    top: 0px;
    right: 0;
    height: 400px;
    width: 200px;
    z-index: 100;
    border-radius: 20px 0 0 20px;
    transform: translateX(225px);
    transition: ease .5s;
  }
  /* メニュー開いた状態 */
  .global-nav.action {
    transform:translateX(0);
    overflow-y: auto;
  }
  .nav-area {
    right:auto;
    height: 100%;
  }
  .nav-area ul {
    height: 100%;
    margin-top: 20px;
  }
  .sp-nav-logo {
    display: inline;
    width: 90%;
  }
  .sp-nav-logo img{
    width: 100%;
  }
  .nav-icon p{
    padding-bottom: 5px;
    border-bottom: dashed 1px white;
  }
  .nav-button {
    padding: 3px 10px;
    font-size: 1.4rem;
    line-height: 2rem;
  }

  /* SP用ナビアイコン */
  .sp-nav, .sp-return {
    display: block;
    position: fixed;
    background-color: rgba(118, 185, 42, 0.9);
    box-shadow: 0 5px 3px var(--myShadowColor);
    border-radius: 5px 0 0 5px;
  }
  .sp-nav {
    width: 30px;
    height: 26px;
    top: 10px;
    right: 0;
    z-index: 99999;
    padding: 10px 15px 25px 15px;
  }
  /* SP用上に戻るアイコン */
  .sp-return {
    margin: auto;
    text-align: center;
    width: 60px;
    height: 55px;
    bottom: 10px;
    right: 0px;
    z-index: 9999;
  }
  .sp-return a{
    font-size: 2.6rem;
    line-height: 55px;
    color: white;
    vertical-align: middle;
  }
  /* ハンバーガーメニューアイコン */
  .sp-nav-icon, .sp-nav-icon span {
    display: inline-block;
    transition: all .4s;
    box-sizing: border-box;
  }
  .sp-nav-icon {
    position: relative;
    width: 30px;
    height: 26px;
    margin: auto;
  }
  /* MENUの文字 */
  .sp-nav p {
    position: absolute;
    font-size: 1.2rem;
    text-align: center;
    bottom: 1px;
    left: 0;
    right: 0;
    margin-left: auto;
    font-weight: 700;
    color: white;
  }
  /* ハンバーガーメニュー */
  .sp-nav-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 5px;
  }
  .sp-nav-icon span:nth-of-type(1){
    top: 0;
  }
  .sp-nav-icon span:nth-of-type(2){
    top: 11px;
  }
  .sp-nav-icon span:nth-of-type(3){
    bottom: 0;
  }
  .sp-nav-icon.action span:nth-of-type(1){
    transform: translateY(11px) rotate(-45deg);
  }
  .sp-nav-icon.action span:nth-of-type(2){
    opacity: 0;
  }
  .sp-nav-icon.action span:nth-of-type(3){
    transform: translateY(-11px) rotate(45deg);
  }
}
