/*========= ナビゲーションのためのCSS ===============*/
#g-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: block;
    width: 100%;
    height: 120px;
    background-color: #fff;
    border: 4px solid #000;
/*
    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;
}
.nav-logo {
    display: flex;
    align-items: center;
    width: 510px;
    height: 100%;
    margin-left: 35px;
    transition: all 0.4s ease;
}
.nav-logo img { display: flex; align-items: center; }

/*スクロールしたら*/
#g-nav.scrolled { height: 90px; }
#g-nav.scrolled .nav-logo { width: 330px; }
#g-nav.scrolled .openbtn { width: 60px; height: 60px; }


/*ナビゲーションの縦スクロール*/
.g-nav-list {
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 0;
    width: 100%;
    height: auto;
    max-height: 100vh;
    padding: 2em 2em 5em;
    background-color: rgb(184, 46, 41);
    background: linear-gradient(0deg, rgba(184, 46, 41,0) 0%, rgba(184, 46, 41,0) 23px, rgba(184, 46, 41,1) 23px, rgba(184, 46, 41,1) 100%);
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
    -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::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: block;
    width: 100%;
    height: 23px;
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto;
    background-image: url(../img/bg-wave.svg);
}
.g-nav-list > div { display: inline-block; }
.g-nav-list .nav-logo { width: 450px!important; margin: 0 auto 2.5em; }


/*リストのレイアウト設定*/
.nav-list-box {
    position: relative;
    z-index: 1;
    margin-bottom: 40px!important;
    padding-bottom: 25px!important;
}
#g-nav li { list-style: none; }
.g-nav-list li a {
	color: #fff;
    font-size: 1.1em;
    font-weight: bold;
	text-decoration: none;
	padding: 10px;
	display: block;
	/* text-transform: uppercase; */
	letter-spacing: 0.1em;
	font-weight: bold;
}

/* ナビ開いたら */
#g-nav.panelactive .g-nav-list {
    animation: nav-move .5s forwards;
}
@keyframes nav-move {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes nav-move-r {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-100%); }
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul.nav-list-box {
    opacity: 1;
    padding: 0;
}
#g-nav.panelactive ul.nav-list-box li {
    animation-name: gnaviAnime;
    animation-duration: 0.4s;
    animation-delay: .2s;/*0.2 秒遅らせて出現*/
    animation-fill-mode: forwards;
    opacity: 0;
}
@keyframes gnaviAnime{
    0% { opacity: 0; }
    100% { opacity: 1; }
}


/*========= ボタンのためのCSS ===============*/
.openbtn {
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top: 20px;
	right: 24px;
	cursor: pointer;
    width: 80px;
    height: 80px;
    background-color: transparent;
    border-radius: 100%;
    transition-duration: .4s;
    transition-timing-function: ease-in-out;
    transition-property: width,background-color,border-color,color,fill,opacity;
}
.openbtn::before {
    content: "";
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: no-repeat 50%;
    background-size: contain;
    background-image: url(../img/hd-menu.png);
    transition-property: width,background-color,border-color,color,fill,opacity;
    transition-duration: .4s;
    transform-origin: center;
    transition-timing-function: ease-in-out;
    transition-property: opacity;
}
.openbtn::after {
    content: "CLOSE";
    color: #fff;
    font-family: bebas-neue, m-plus-1p, 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    position: absolute;
    top: 35px;
    left: 50%;
    opacity: 0;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    transition-duration: .4s;
    transform-origin: center;
    transition-timing-function: ease-in-out;
    transition-property: opacity;
}
	
/*×に変化*/	
.openbtn span {
    display: inline-block;
    position: absolute;
    left: 50%;
    width: 0;
    height: 0.2rem;
    border-radius: 5px;
	background-color: transparent;
    transition-duration: .4s;
    transform-origin: center;
    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: 23px; }
.openbtn span:nth-of-type(3) { top: 30px; }

/* Clickされたら */
.openbtn.active { right: 1.5em; }
.openbtn.active::before { opacity: 0; }
.openbtn.active::after { opacity: 1; }
.openbtn.active span { background-color: #fff; width: 3.25rem; }
.openbtn span:nth-of-type(1) { animation: menu07-bar01 .75s forwards; }
@keyframes menu07-bar01 {
    0% { transform: translate(-50%, 7px) rotate(15deg); }
    50% { transform: translate(-50%, 7px) rotate(0); }
    100% { 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% { transform: translate(-50%, -7px) rotate(-15deg); }
    50% { transform: translate(-50%, -7px) rotate(0); }
    100% { transform: translate(-50%, 0) rotate(0); }
}
.openbtn.active span:nth-of-type(1) { animation: active-menu07-bar01 .75s forwards; }
@keyframes active-menu07-bar01 {
    0% { transform: translate(-50%, 0) rotate(0); }
    50% { transform: translate(-50%, 7px) rotate(0); }
    100% { transform: translate(-50%, 7px) rotate(15deg); }
}
.openbtn.active span:nth-of-type(2) { opacity: 0; }
.openbtn.active span:nth-of-type(3) { animation: active-menu07-bar03 .75s forwards; }
@keyframes active-menu07-bar03 {
    0% { transform: translate(-50%, 0) rotate(0); }
    50% { transform: translate(-50%, -7px) rotate(0); }
    100% { transform: translate(-50%, -7px) rotate(-15deg); }
}

/* --------------------------------------------
    Language
-------------------------------------------- */
.drop-menu {
    color: #fff;
    background: #B82E29;
    width: 140px;
    display: inline-block;
    border: none;
    transition: all .4s;
    z-index: 100;
    
    text-align: center;
    letter-spacing: 0.05em;
    position: absolute;
    right: 125px;
    top: 25%;
}

#g-nav.scrolled .drop-menu .drop-pare {
    height: 50px;
}
.icon-lang {
    display: block;
    width: 27px;
    height: 27px;
    line-height: 1.2;
    margin-right: 5px;
}
.drop-menu .drop-pare {
    cursor: pointer;
    display: block;
    padding: 0;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    background: #B82E29;
}
.bnr-wrap span { font-size: 23px;}
.drop-menu .drop-pare i {
    font-size: 11px;
    color: #fff;
    transition: all .3s ease-in-out;
    line-height: 1.5;
    margin-left: 7px;
}

.drop-menu .drop-chi {
    position: absolute;
    z-index: 999;
    left: 0;
    background: #fff;
    color: #B82E29;
    width: 100%;
    margin-top: 1px;
    box-shadow: 0 0 0 #fff;
    padding: 5px 0;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
    overflow-y: auto;
    -webkit-filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
    -moz-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));
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
    visibility: hidden;
    opacity: 0;
    transform: translateY(-1em);
    transform-origin: center top;
    transition: all 0.4s !important;
    z-index: -10;
}
.drop-menu .drop-chi li {
    position: relative;
    padding-bottom: 5px;
    border-bottom: 1px solid #B82E29;
    cursor: pointer;
}
.drop-menu .drop-chi li.red-point { cursor: auto;}
.drop-menu .drop-chi li a, .drop-menu .drop-chi li span { 
    font-size: 16px;
    color: #B82E29;
}
.drop-menu .drop-chi li:last-child {
    border-bottom: none;
}
.drop-menu .drop-chi li.red-point::before {
    content: "";
    position: absolute;
    width: 5px;
    aspect-ratio: 1;
    background: #B82E29;
    border-radius: 50%;
    left: 1em;
    top: 50%;
    transform: translate(-50%, -50%);
}
.drop-menu.active .drop-chi {
    visibility: visible;
    z-index: 10;
    opacity: 1;
    transform: translateY(0);
}
.drop-menu.active i {
    transform: rotate(180deg);
}

#g-nav.panelactive .drop-menu.drop-nav{
    display: none !important;
}
.drop-menu.drop-nav {
    display: inline-block;
}
.g-nav-list .drop-menu {
    right: auto;
    top: auto;
    border: 1px solid #fff;
    position: relative;
    display: block;
    margin: 0 auto;
}
.g-nav-list .drop-menu .drop-chi li a {
    padding: 0;
}


/* --------------------------------------------
    Responsive
-------------------------------------------- */
@media screen and (max-width: 991px) {
    #g-nav { height: 100px; }
    .nav-logo { width: 440px; }
    .openbtn { width: 70px; height: 70px; }
}
@media screen and (max-width: 767px) {
    #g-nav { height: 67px!important; border: 3px solid #000; }
    .nav-logo { width: 185px!important; margin-left: 10px; }
    .openbtn { top: 12px; right: 12px; width: 46px!important; height: 46px!important; }
}
@media screen and (max-width: 575px) {
    .g-nav-list .nav-logo {  width: 185px!important; }
}
@media screen and (max-width: 460px) {
    .g-nav-list { padding: 6em 1rem 3em; }
    .g-nav-list li a {  padding: 10px 0; }
}