/* メニューボタン */
#tbsp-menu-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 100%;
    z-index: 10001;
}

@media screen and (min-width: 1025px) {
    #tbsp-menu-btn {
        display: none;
    }
}

@media screen and (min-width: 768px) {
    #tbsp-menu-btn {
        transform: scale(1.3);
        right: 130px;
        top: 0px;
    }
}

@media screen and (max-width: 767px) and (min-width: 481px) {
    #overlay-right {
        transform: scale(1.3);
    }
}


@media screen and (max-width: 767px) {
    #tbsp-menu-btn {
        top: 20px;
        right: 20px;
    }
    
    #nav-logo {
        max-width: 18vw !important;
    }
    
    #overlay-left {
        text-align: left !important;
    }
    
    #overlay-right {
        padding-right: 0px !important;
    }
    
    .overlay-door nav {
        left: auto !important;
        right: 0px;
    }
}

@media screen and (max-width: 480px) {
    .overlay {
        padding: 20px 20px 60px 20px !important;
    }
    
    #tbsp-main-link {
        margin-top: 30vw !important;
        padding-top: 50vw;
        font-size: 160% !important;
    }
    
    .overlay-door nav {
        left: auto !important;
        right: -17vw;
    }
    
    #nav-logo {
         max-width: 20vw !important;
    }
    
    #menu-sns-out {
        margin-top: 60px;
    }
}

#trigger-overlay {
    position: fixed;
    top: 20px;
    right: 30px;
    background: white;
    padding: 11px 18px;
    border-radius: 16px;
}

/* 二本線メニューボタン */
.menu_btn {
	position: relative;
	background: none;
	border: none;
	appearance: none;
	cursor: pointer;
	width: 18px;
	height: 9px;
	transition: all 1s;
}
.menu_btn span {
	display: inline-block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
    border-radius: 3px;
	background: #0b2c80;
	transition: all .4s;
}
.menu_btn span:nth-of-type(1) {
	top: 0;
}
.menu_btn span:nth-of-type(2) {
	top: 10px;
}
.menu_btn span:nth-of-type(3) {
	bottom: 0;
}

.menu_btn span:nth-of-type(2) {
	bottom: 0;
	top: auto;
}

.menu_btn.active span:nth-of-type(1) {
	transform: translateY(4px) rotate(25deg);
}
.menu_btn.active span:nth-of-type(2) {
	transform: translateY(-3px) rotate(-25deg);
}

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #0b2c80;
	z-index: 9999;
    padding: 20px 25px 60px 35px;
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 80px;
	height: 80px;
	position: absolute;
	right: 20px;
	top: 20px;
	overflow: hidden;
	border: none;
    /*
	background: url(../img/cross.png) no-repeat center center;
    */
	text-indent: 200%;
	color: #8a997a;
	outline: none;
	z-index: 100;
}

/* Menu style */
.overlay nav {
	text-align: right;
	position: relative;
	top: 50%;
	/* height: 60%; */
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

#overlay-left {
    display: block;
    width: 40%;
    text-align: center;
}

#nav-logo {
    max-width: 10vw;
    margin-top: 10vw;
}

#overlay-right {
	width: 60%;
    padding-right: 30px;
} 

.overlay ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	height: 100%;
	position: relative;
	margin-top: 60px;
}

.overlay ul li {
	display: block;
	margin-bottom: 30px;
	text-align: right;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	letter-spacing: 0.15em;
}

.overlay {
    display: flex;
}

.overlay ul li a {
	display: inline-block;
	font-size: 1.4em;
	font-weight: 300;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	color: white;
	text-decoration: none;
	font-weight: bold;
}

.overlay ul li a:hover,
.overlay ul li a:focus {
	color: white;
}

#product-link {
    font-size: 1.4em;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid white;
    font-weight: 600;
    color: white;
}

.tbsp-menu-arrow {
    max-width: 14px;
    vertical-align: 4px;
    margin-left: 8px;
    /* rotate: 180deg; */
}


#product-link.active .tbsp-menu-arrow {
  transform: rotate(180deg);
}

.sub-menu {
    display: none;
    margin-top: 15px !important;
}

.sub-menu li {
    margin-bottom: 10px !important;
}

.sub-menu li a {
    font-size: 100% !important;
}



/* Effects */
.overlay-door {
	visibility: hidden;
	width: 0;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	-webkit-transition: width 0.5s 0.3s, visibility 0s 0.8s;
	transition: width 0.5s 0.3s, visibility 0s 0.8s;
}

.overlay-door.open {
	visibility: visible;
	width: 100%;
	-webkit-transition: width 0.5s;
	transition: width 0.5s;
}

.overlay-door nav {
	position: absolute;
	left: 50%;
	-webkit-transform: translateY(-50%) translateX(-50%);
	transform: translateY(-50%) translateX(-50%);
}

.overlay-door nav,
.overlay-door .overlay-close,
#nav-logo
{
	opacity: 0;
	-webkit-transition: opacity 0.3s 0.5s;
	transition: opacity 0.3s 0.5s;
}

.overlay-door.open nav,
.overlay-door.open .overlay-close,
.overlay-door.open #nav-logo
{
	opacity: 1;
	-webkit-transition-delay: 0.5s;
	transition-delay: 0.5s;
}

.overlay-door.close nav,
.overlay-door.close .overlay-close {
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
}

@media screen and (max-height: 30.5em) {
	.overlay nav {
		height: 70%;
		font-size: 34px;
	}
	.overlay ul li {
		min-height: 34px;
	}
}

#menu-copyright .sp-link {
    display: none;
}

/* sns */
#menu-sns-out {
    display: inline-block;
    margin-top: 70px;
}

#menu-sns-out li {
    float: left;
}

.overlay #insta-icon {
    max-width: 35px;
    margin-right: 30px;
}

.overlay #x-icon {
    max-width: 35px;
}

@media screen and (max-width: 767px) {
    #menu-copyright .sp-link {
        display: block;
    }
    
    #menu-copyright .pc-link {
        display: none;
    }
    
    #trigger-overlay {
        right: 20px;
    }
    
    .tbsp-menu-arrow {
        max-width: 9px;
    }
}

@media screen and (max-width: 480px) {
    .tbsp-menu-arrow {
        position: relative;
        right: 2px;
        max-width: 13px;
    }
    
    #product-link {
        padding-bottom: 10px;
    }
    
    .overlay ul li {
        margin-bottom: 50px;
    }
    
    .sub-menu {
        margin-top: 20px !important;
    }
    
    .sub-menu li {
        margin-bottom: 25px !important;
    }
    
    #nav-logo {
        margin-top: 12vw;
        max-width: 24.5vw !important;
    }
}

@media screen and (max-height: 30.5em) {
	.overlay nav {
		/* height: 70%; */
		font-size: 34px;
	}
	.overlay ul li {
		min-height: 34px;
	}
}


