/*-----------------------------
	ナビゲーション
------------------------------*/

.nav_overlay {
	position: fixed;
	top: 0;
	left: 0;
	display: block;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	visibility: hidden;
	background-color: rgba(0, 0, 0, 1);
	opacity: 0;
	pointer-events: none;
	transition: all .3s;
}
.open .nav_overlay {
	visibility: visible;
	opacity: .5;
	pointer-events: all;
	transition: all .3s;
}
.nav_btn_wrap {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 9999;
	opacity: 1;
	visibility: inherit;
	transition: all .3s;
}
.nav_btn_wrap.hide {
	left: -20px;
	opacity: 0;
	visibility: hidden;
	transition: all .3s;
}
#nav_btn {
	position: absolute;
	top: 40px;
	left: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 80px;
	height: 80px;
	background: url(../images/nav_bg.png);
	background-size: cover;
	cursor: pointer;
	pointer-events: all;
}
#nav_btn span {
	display: block;
	width: 20px;
	height: 3px;
	margin: 1px 0;
	background: url(../images/nav_line.png);
	background-size: 100% 100%;
	transition: all .3s;
}
.open #nav_btn span:first-child {
	transform: rotate(45deg) translate(2px,2px);
}
.open #nav_btn span:nth-child(2) {
	display: none;
}
.open #nav_btn span:last-child {
	transform: rotate(-45deg) translate(2px,-2px);
}

#nav {
	position: fixed;
	top: 0px;
	left: -20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	width: 200px;
	height: 100vh;
	height: 100dvh;
	padding: 0 50px;
	background: linear-gradient(to right, rgba(255, 255, 255, 1) 80%, rgba(255, 255, 255, 0) 100%);
	background: #fff;
	opacity: 0;
	visibility: hidden;
	z-index: 9990;
	transition: all .3s;
}
.open #nav {
	left: 0px;
	opacity: 1;
	visibility: visible;
	transition: all .3s;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.nav ul {
	direction: rtl;
	writing-mode: vertical-rl;
	font-feature-settings: "vert";
}
.nav li {
	text-align: right;
	font-size: 14px;
	line-height: 2.6em;
}

.nav li span {
	cursor: pointer;
	pointer-events: all;
	margin-bottom: -10px;
	padding: 10px 5px;
	border-radius: 5px;
	transition: all .5s;
}
.nav li.opened span {
	background: #666;
	color: #fff;
	transition: all .5s;
}
.nav ul li ul {
	display: block;
	width: 0;
	height: auto;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: all .5s;
}
.nav ul li.opened ul {
	width: 110px;
	opacity: 1;
	visibility: visible;
	transition: all .5s;
}

.side_nav {
	padding-top: 120px;
}
.side_nav li {
	font-size: 12px;
	margin-bottom: 10px;
}
.side_nav li a {
	display: inline-block;
	font-size: 16px;
	text-decoration: underline;
	margin-bottom: 5px;
}
.side_nav .lang li a {
	font-size: 12px;
	text-decoration: none;
	margin-bottom: 0;
}
.nav_foot {
	padding-bottom: 40px;
}
.nav_foot div {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 20px 0;
}
.nav_foot a {
	display: inline-block;
	font-size: 20px;
}
.nav_foot p {
	font-size: 10px;
}

a.nav_ec {
	display: block;
	font-size: 12px;
	padding: 15px 5px;
	border: 1px solid #000;
}
.nav a.nav_ec {
	margin-right: 10px;
	margin-bottom: -5px;
}
.nav_foot a.nav_ec {
	font-size: 12px;
	padding: 5px 10px;
}
.head_nav .nav {
	position: relative;
}


/*-----------------------------
	PC設定
------------------------------*/

@media screen and (min-width: 941px)

{


}

/*-----------------------------
	タブレット設定
------------------------------*/

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


.nav_btn_wrap {
	height: calc(var(--vh, 1vh) * 100);
}
#nav_btn {
	top: 20px;
	left: 20px;
	width: 80px;
	height: 80px;
}
.nav li {
	font-size: 12px;
}
.nav ul li ul {
	position: relative !important;
}
.nav ul li.opened ul {
	width: 95px;
}


}