﻿

/* Document
   ========================================================================== */

/* グローバルナビ用  
   ========================================================================== */
nav.globalMenuSp {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    background-color:#f9e59d;
    color:#fff;
    transform: translateX(100%);
    transition: all 0.6s;
    width: 60%;
	max-width: 290px;
	height: 100vh;
	padding-bottom: 1em;
	overflow: auto;
}
 
nav.globalMenuSp ul {
    margin: 58px auto 0;
    padding: 0;
    width: 100%;
}
 
nav.globalMenuSp ul li {
    font-size: 1em;
    list-style-type: none;
    padding: 0;
    width: 100%;
	font-family: 'M PLUS 1p', sans-serif;
	ransform: rotate(0.05deg);
}

nav.globalMenuSp ul li a {
    display: block;
    color: #333;
    padding: 0.9em ;
	text-decoration-line: none;
}
nav.globalMenuSp ul li a:hover{
	background-color:#69c78e;
	color:#fff;
}
.globalMenuSp p{
	text-align: center;
	margin-top: 0.5em;
}
.globalMenuSp p a i {
	width: 60px;
	height: 60px;
	line-height: 60px;
	background-color: rgba(0,0,0,0.65);
	text-align: center;
	color:#fff;
	border-radius: 50%;
	font-size: 25px;
}
.globalMenuSp p a :hover{
	color:#1e664a;
	background-color: rgba(255,255,255,0.70);
}
 
/* このクラスを、jQueryで付与・削除する */
nav.globalMenuSp.active {
    transform: translatey(0%);
}


/* ハンバーガー用
   ========================================================================== */

.navToggle {
    display: block;
    position: fixed;    /* bodyに対しての絶対位置指定 */
    right: 10px;
    top: 10px;
    width: 58px;
    height: 58px;
    cursor: pointer;
    z-index: 30;
    background:transparent;
    text-align: center;
}
 
.navToggle span {
    display: block;
    position: absolute;    /* .navToggleに対して */
    width: 46px;
    border-bottom: solid 3px #fff;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
    left: 6px;
}
 
.navToggle span:nth-child(1) {
    top: 9px;
}
 
.navToggle span:nth-child(2) {
    top: 18px;
}
 
.navToggle span:nth-child(3) {
    top: 27px;
}
 
.navToggle span:nth-child(4) {
    border: none;
    color: #ffffff;
    font-size: 14px;
    top: 34px;
}

/* タップした後 
   ========================================================================== */

/* 最初のspanをマイナス45度に */
.navToggle.active span:nth-child(1) {
    top: 18px;
    left: 6px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
 
/* 2番目と3番目のspanを45度に */
.navToggle.active span:nth-child(2),
.navToggle.active span:nth-child(3) {
    top: 18px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}