﻿

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

/* グローバルナビ用  
   ========================================================================== */
nav.globalMenuSp {
    position: fixed;
    z-index: 190;
    top: 0;
    right: 0;
    background-color:#f5f5f5;
    color:#1a1a1a;
    transform: translateX(100%);
    transition: all 0.6s;
    width: 60%;
	max-width: 400px;
	min-width: 250px;
	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%;
}

nav.globalMenuSp ul li a {
    display: block;
    color: #1a1a1a;
    padding: 0.9em ;
	text-decoration-line: none;
	transition: .5s;
}
nav.globalMenuSp ul li a:hover{
	background-color:#029f5b;
	color:#fff;
}
.btn_header_sp{
	display: inline-block;
	text-align: center;
	width: calc(100% - 30px);
	background-color:#029f5b;
	border: solid 1px #029f5b;
	color: #fff;
	padding: 0.5em;
	margin-left: 20px;
	margin-bottom: 20px;
	position: relative;
	font-weight: 500;
	transition: .5s;
}
.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: #029f5b;
	background:#fff;
	transition: .5s;
}
.btn_header_sp:hover::after{
	right: 10px;
	transition: .5s;
}

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


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

.navToggle {
    display: block;
    position: fixed;    /* bodyに対しての絶対位置指定 */
    right: 10px;
    top: 3px;
    width: 58px;
    height: 58px;
    cursor: pointer;
    z-index: 200;
    background:transparent;
    text-align: center;
}
 
.navToggle span {
    display: block;
    position: absolute;    /* .navToggleに対して */
    width: 46px;
    border-bottom: solid 3px #1a1a1a;
    -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: #1a1a1a;
    font-size: 14px;
    top: 34px;
}

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

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