﻿@media screen and (max-width: 999px) {

/*---------------------------------------------------------------------
 ハンバーガーメニュー 
---------------------------------------------------------------------*/

/* pcメニューを消す */
.pcnavi {
display: none !important;
}
.toggle,
.spmenu {
display: block !important;
}

#sparea {
position: relative;
}

/* クリックされていないときのトグルスイッチ */
.toggle {
position: fixed;
width: 100%;
height: 34px;
background-color: #2d709f;
top: 0;
z-index: +999999;
}
.toggle .ttl {
position: absolute;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
left: 10px;
font-size: 1.5rem;
font-weight: 600;
letter-spacing: 1px;
color: #fff;
}
.toggle div {
width: 40px;
height: 40px;
position: absolute;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
right: 10px;
}
.toggle span {
transition: .35s ease-in-out;
-webkit-transition: .35s ease-in-out;
-moz-transition: .35s ease-in-out;
display: block;
width: 70%;
position: absolute; /* .toggleに対して */
right: 7px;
padding-top: 5px;
border-bottom: solid 2px #fff;
}
.toggle span:nth-child(1) {
top: 6px;
}
.toggle span:nth-child(2) {
top: 14px;
}
.toggle span:nth-child(3) {
top: 22px;
}
.toggle span:nth-child(4) {
top: 35px;
padding-top: 0;
font-size: .9rem;
text-align: center;
letter-spacing: 2px;
color: #fff;
border-bottom: 0;
}

/* クリックされたときのトグルスイッチ */
.toggle.active {
}
.toggle.active span {
position: absolute;
}
/* 最初のspanをマイナス45度に */
.toggle.active span:nth-child(1) {
top: 15px;
right: 8px;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
transform: rotate(-45deg);
border-bottom: solid 2px #fff;
}
/* 2番目と3番目のspanを45度に */
.toggle.active span:nth-child(2),
.toggle.active span:nth-child(3) {
top: 15px;
right: 5px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
border-bottom: solid 2px #fff;
}

/* クリックされていないときのグローバルメニュー */
/* .sp-navi */
.spnavi {
display:none;
/*
transform: translateY(-100%);
transition: all 0.8s;
z-index: 2;
*/
/*
width: 100%;
position: fixed;
top: 0;
left: 0;
padding-top: 50px;
text-align: center;
color: #000;
background: #b0f3b8;
*/
}
/*
.sp-navi .nav_li {
width: 100%;
padding: 10px;
list-style-type: none;
}
.sp-navi .nav_li a {
display: block;
color: #000;
}
*/

/* クリックされたときのグローバルメニュー */
/* .sp-naviに.activeが追加 */
.spnavi.active {
z-index: 99999;
display: block;
width: 100%;
height: auto;
overflow: auto;
position: fixed;
top: 34px;
left: 0;
box-shadow: 0 0 20px #000;
/*
max-width: 100%;
height: 100vh;
color: #fff;
background-color: #B22400;
*/
}

.spnavi ul {
/*
color: #fff;
background-color: #fff;
border: 1px solid #ccc;
*/
}
.spnavi li {
position: relative;
font-size: 1.5rem;
line-height: 1.3;
text-align: left;
font-weight: bold;
background-color: #fff;
background-image: url(../img/spnavi_arrow.png);
background-repeat: no-repeat;
background-position: left 15px center;
background-size: 6px auto;
}
.spnavi li:last-child {
border-bottom: 0;
}
.spnavi li:nth-of-type(even) {
background-color: #e8e8e8;
}
.spnavi li a {
display: inline-block;
width: 100%;
height: 100%;
padding: 10px 10px 10px 30px;
color: inherit !important;
}
.spnavi li span {
    display: inline-block;
}
.spnavi li span:nth-child(1) {
margin-right: 15px;
}
.spnavi li span:nth-child(2) {
    font-weight: normal;
color: #3495c4;
}


/**/
}
