/*========= ナビゲーションのためのCSS ===============*/
#g-nav {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    display: block;
    width: 100%;
    height: 0;
    background-color: transparent;
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
    -webkit-filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
    -ms-filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
    transition: all 0.4s ease;
}
#g-nav .nav-logo {
    display: none;
    justify-content: flex-start;
    align-items: center;
    width: 19em;
    height: 100%;
    margin: 0;
    padding: 0;
    margin-left: 50px;
}
#g-nav .nav-logo a {
    display: block;
    color: #fff;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.hd-btn a {
    font-size: 16px;
    display: inline-block;
    position: absolute;
    top: 38px;
    right: 130px;
    padding: 1em 20px 1em 55px;
}
.hd-btn a::before {
    content: '';
    display: block;
    width: 25px;
    height: 30px;
    position: absolute;
    top: 50%;
    right: auto;
    left: 20px;
    z-index: -1;
    transform: translateY(-50%);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-image: url(../img/login-img01.png);
}
/* .hd-btn a:hover:before { transform: translateY(-50%) rotate(180deg); } */

/*ナビゲーションの縦スクロール*/
.g-nav-list {
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999;
    width: 578px;
    max-width: 100%;
    height: 100vh;
    padding: 10em 5em 5em 5em;
    background-color: #000;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: nav-move-r .75s forwards;
    transition-duration: .5s;
    transition-timing-function: ease-in-out;
    transition-property: background-color,border-color,color,fill,opacity;
}
.g-nav-list > div {
    width: 100%;
    max-width: 425px;
}

/*リストのレイアウト設定*/
.nav-list-box {
    margin-bottom: 1.8em;
    padding: 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
}
.g-nav-list li {
    list-style: none;
    position: relative;
    margin-bottom: 1.3em;
}
.g-nav-list li:last-of-type { margin-bottom: 1.8em; }
.g-nav-list li a, .nav-tit {
	color: #fff;
    font-family: m-plus-1p, sans-serif;
    font-weight: 800;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
	text-decoration: none;
	padding: 0;
	display: block;
	letter-spacing: 0.02em;
}

/*-- スクロール後のMENU --*/
#g-nav.is-fixed, .other-page #g-nav {
    position: fixed;
    height: 70px;
    background-color: rgba(135, 0, 17, 0.9);
}
#g-nav.is-fixed .nav-logo, .other-page #g-nav .nav-logo { display: flex; }
#g-nav.is-fixed .openbtn, .other-page #g-nav .openbtn { top: 0; right: 20px; }
#g-nav.is-fixed .openbtn::before, .other-page #g-nav .openbtn::before { font-size: 11px; top: 40px; }
#g-nav.is-fixed .openbtn span, .other-page #g-nav .openbtn span { width: 35px; height: 2px; }
#g-nav.is-fixed .openbtn span:nth-of-type(1), .other-page #g-nav .openbtn span:nth-of-type(1) { top: 18px; }
#g-nav.is-fixed .openbtn span:nth-of-type(2), .other-page #g-nav .openbtn span:nth-of-type(2) { top: 27px; }
#g-nav.is-fixed .openbtn span:nth-of-type(3), .other-page #g-nav .openbtn span:nth-of-type(3) { top: 36px; }
#g-nav.is-fixed .hd-btn a, .other-page #g-nav .hd-btn a { top: 15px; right: 100px; padding: 0.55em 20px 0.55em 55px; }


/* ナビ開いたら */
#g-nav.panelactive .openbtn::before { content: "CLOSE"; }
#g-nav.panelactive .g-nav-list {
    animation: nav-move .5s forwards;
}
@keyframes nav-move {
    0% { opacity: 1; transform: translateX(100%); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes nav-move-r {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(100%); }
}

/*========= ボタンのためのCSS ===============*/
.openbtn {
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top: 30px;
    right: 35px;
	cursor: pointer;
    width: 70px;
    height: 70px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    transition-duration: .4s;
    transition-timing-function: ease-in-out;
    transition-property: width,background-color,border-color,color,fill,opacity;
}
.openbtn::before {
    content: "MENU";
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.08em;
    position: absolute;
    top: 43px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

/* ×に変化 */	
.openbtn span {
    display: inline-block;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 46px;
    height: 3px;
    border-radius: 0;
	background-color: #fff;
    transition-duration: .4s;
    transition-timing-function: ease-in-out;
    transition-property: width,background-color,border-color,color,fill,opacity;
  }
.openbtn span:nth-of-type(1) { top: 16px; }
.openbtn span:nth-of-type(2) { top: 27px; }
.openbtn span:nth-of-type(3) { top: 39px; }

/* Clickされたら */
.openbtn.active span { width: 56px; }
.openbtn span:nth-of-type(1) { animation: menu07-bar01 .75s forwards; }
@keyframes menu07-bar01 {
    0% { -webkit-transform: translate(-50%, 11px); transform: translate(-50%, 11px) rotate(18deg); }
    50% { -webkit-transform: translate(-50%, 11px); transform: translate(-50%, 11px) rotate(0); }
    100% { -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0) rotate(0); }
}
.openbtn span:nth-of-type(2) { opacity: 1; }
.openbtn span:nth-of-type(3) { animation: menu07-bar03 .75s forwards; }
@keyframes menu07-bar03 {
    0% { -webkit-transform: translate(-50%, -11px); transform: translate(-50%, -11px) rotate(-18deg); }
    50% { -webkit-transform: translate(-50%, -11px); transform: translate(-50%, -11px) rotate(0); }
    100% { -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0) rotate(0); }
}
/* Closeされたら */
.openbtn.active span:nth-of-type(1) { animation: active-menu07-bar01 .75s forwards; }
@keyframes active-menu07-bar01 {
    0% { -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0) rotate(0); }
    50% { -webkit-transform: translate(-50%, 11px); transform: translate(-50%, 11px) rotate(0); }
    100% { -webkit-transform: translate(-50%, 11px); transform: translate(-50%, 11px) rotate(18deg); }
}
.openbtn.active span:nth-of-type(2) { opacity: 0; }
.openbtn.active span:nth-of-type(3) { animation: active-menu07-bar03 .75s forwards; }

.other-page .openbtn.active span:nth-of-type(3) { animation: active-menu07-bar03 .75s forwards; top: 39px !important;}
@keyframes active-menu07-bar03 {
    0% { -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0) rotate(0); }
    50% { -webkit-transform: translate(-50%, -11px); transform: translate(-50%, -11px) rotate(0); }
    100% { -webkit-transform: translate(-50%, -11px); transform: translate(-50%, -11px) rotate(-18deg); }
}

/* 2023.07.追加 */
.nav-btn{
    position: fixed;
    z-index: 999;
    top: 40px;
    right: 130px;
    cursor: pointer;
}
#g-nav.is-fixed .nav-btn{
    top: 10px;
    right: 100px;
}
#g-nav.is-fixed .nav-btn a{
    padding: 0.5em 1.5em;
}
.btn01 {
    display: table;
}
.btn01 a {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    margin: 0 auto;
    padding: 0.8em 1.5em;
    background-color: #000;
    border-radius: 45px;
    text-decoration: none;
    outline: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
    vertical-align: middle;
}
.btn01 a span { position: relative; z-index: 10; }
.btn01 img{
    position: relative;
    width: 25px;
    margin: 0 15px 5px 0;
}
.btn01 a:hover {
    color: #fff;
    text-decoration: none;
    outline: none;
    background-color: #3B0007;
}

.mem-nav{
    position: fixed;
    width: 100%;
    height: auto;
    bottom: 0;
    text-align: center;
    z-index: 10;
}
.mem-nav a{
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}
.mem-nav p{
    margin-bottom: 0;
}
.mem-nav .smnav01{
     border-right: 1px solid #fff;
}
.mem-nav .smnav01,.mem-nav .smnav02{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}
.other-page .nav-btn{
    top: 10px;
    right: 100px;
}
.other-page .nav-num{
    position: fixed;
    z-index: 999;
    top: 10px;
    right: 280px;
    cursor: pointer;
}

.openbtn.active span:nth-of-type(3){ top: 39px !important;}


/* --------------------------------------------
    Responsive
-------------------------------------------- */
@media screen and (max-width: 991px) {
    #g-nav .nav-logo { margin-left: 2%; }
    #g-nav .nav-logo a { font-size: 23px; }
}
@media screen and (max-width: 767px) {
    .openbtn { top: 20px; right: 20px; }
    #g-nav .nav-logo { display: flex; width: 10em; text-align: left; margin-left: 4%; }
    #g-nav .nav-logo a { font-size: 16px; white-space: break-spaces; }
/*
    #g-nav { height: 64px; }
    .nav-logo { width: 240px; margin-left: 20px; }
    .openbtn { width: 64px; height: 64px; }
    .openbtn span:nth-of-type(1) { top: 22px; }
    .openbtn span:nth-of-type(2) { top: 32px; }
    .openbtn span:nth-of-type(3) { top: 42px; }
*/
}
@media screen and (max-width: 575px) {
    #g-nav { height: 90px; }
    .openbtn { top: 10px; right: 10px; }
    #g-nav.is-fixed, .other-page #g-nav { height: 70px; }

    .g-nav-list { padding: 8em 3em 3em 3em; }
    .g-nav-list li a, .nav-tit { font-size: 18px; }
    .sec01-wrap .sec01-img { max-width: 230px; }

    /* 2023.07.追加 */
    #g-nav.is-fixed .nav-btn{ top: 10px; right: 85px;}
    #g-nav.is-fixed .nav-btn a{padding: 10px 15px;}
    .nav-btn{ width: 64px; height: 64px; top: 20px; right: 95px;}
    .btn01 a { padding: 10px 20px; font-size: 16px;}
    .btn01 img{ margin: 0 auto;}
    
}