﻿

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

/* グローバルナビ用  
   ========================================================================== */
nav.globalMenuSp {
    position: fixed;
    z-index: 190;
    top: 0;
    right: 0;
    background-color:#fff;
    color:#595757;
    transform: translateX(100%);
    transition: all 0.6s;
    width: 60%;
	max-width: 350px;
	min-width: 280px;
	height: 100vh;
	padding-bottom: 1em;
	overflow: auto;
}
 
nav.globalMenuSp ul {
    margin: 58px auto 58px;
    padding: 0;
    width: 100%;
}
 
nav.globalMenuSp ul li {
    font-size: 1em;
    list-style-type: none;
    padding: 0;
    width: 100%;
}

nav.globalMenuSp ul li a {
    display: block;
    color: #595757;
    padding: 0.8em ;
	text-decoration-line: none;
}
nav.globalMenuSp ul li a:hover{
	background-color:#595757;
	color:#fff;
}

 
/* このクラスを、jQueryで付与・削除する */
nav.globalMenuSp.active {
    transform: translatey(0%);
}

.btn_header_sp{
	display: inline-block;
	text-align: center;
	width: calc(100% - 30px);
	background-color:rgba(255,255,255,0.0);
	color: #fff;
	padding: 0.5em;
	background: #ff3b60;
	border-radius: 10px;
	margin-left: 20px;
	margin-bottom: 20px;
	position: relative;
}
.btn_header_sp::after{
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	content: "\f105";
	position: absolute;
	top: calc(50% - 0.5em);
	right: 15px;
	transition: .5s;
}
.btn_header_sp:hover{
	color: #fff;
	background:#595757;
	transition: .5s;
}
.btn_header_sp:hover::after{
	right: 10px;
	transition: .5s;
}
nav.globalMenuSp p{
	text-align: center;
	font-size: 0.8em;
}

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

.navToggle {
    display: block;
    position: fixed;    /* bodyに対しての絶対位置指定 */
    right: 10px;
    top: 20px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 200;
    background:transparent;
}
 
.navToggle span {
    display: block;
    position: absolute;    /* .navToggleに対して */
    width: 42px;
    border-bottom: solid 3px #595757;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
    left: 12px;
}
 
.navToggle span:nth-child(1) {
    top: 14px;
}
 
.navToggle span:nth-child(2) {
    top: 23px;
}
 
.navToggle span:nth-child(3) {
    top: 32px;
}


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

/* 最初のspanをマイナス45度に */
.navToggle.active span:nth-child(1) {
    top: 22px;
    left: 12px;
    -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: 22px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}