#nav li a {
	display: block;
	position: relative;
}
#nav .menu-item-has-children > a:after, #nav .menu-item-has-children > a:before {
	display: block;
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	right: 10px;
	margin: auto;
	width: 10px;
	height: 1px;
	background: #FFF
	transition: .2s;
}
#nav .menu-item-has-children > a:after {
	transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
}
#nav .menu-item-has-children > a.open:before {
	transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
}
#nav .menu-item-has-children > a.open:after {
	background: transparent;
}
#nav .menu-item-has-children .sub-menu {
	display: none;
}

#menu_btn, .overlay {
	display: none;
}
#nav > ul {
	display: flex;
	flex-wrap: wrap;
	-webkit-align-items: center; /* 縦方向中央揃え（Safari用） */
	align-items: center; /* 縦方向中央揃え */
}
#nav li {
	position: relative;
}
#nav li a {
	padding: 0 10px;
	font-size:clamp(14px, 1vw, 16px);
	font-weight:bold;
	letter-spacing:1px;
}

@media (min-width: 980px){
#nav li:last-child {
	margin-left:10px;
}

#nav li:last-child a {
	background:#1043a1;
	padding:0.75rem 3rem;
	color:#FFF;
}
#nav li:last-child a:before {
	content: "";
	display: inline-block;
	width: 34px;
	height: 23px;
	margin: -0.3rem 0.5rem 0 0;
	background:url(../../images/icon_mail.png) no-repeat;
	background-size: contain;
	vertical-align: middle;
}
}

#nav .menu-item-has-children > a {
	padding-right: 30px;
}
#nav .menu-item-has-children > a.open:first-of-type, #nav .current-menu-item a {
}

#nav .menu-item-has-children > a:after, #nav .menu-item-has-children > a:before {
	background: #333;
}

#nav .current-menu-item li a {
}
#nav li ul.sub-menu {
	flex-direction: column;
	background: #fff;
	position: absolute;
	width: max-content;
	max-width:382px;
	left: 50%;
	top: 100%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
}
#nav li ul.sub-menu li {
	width: 100%;
}
#nav li ul.sub-menu li a {
	position: relative;
	display: block;
	line-height: 1.6em;
	padding: 10px 20px;
	text-indent: -1.3rem;
	padding-left: 3rem;
	border-bottom: 1px solid #FFF;
	background:#ebebeb;
	overflow: hidden;
	z-index: 0;
	font-size:clamp(14px, 1.2vw, 15px);
}

#nav li ul.sub-menu li a:before {
  content: "\f105";
  font-family: FontAwesome;
  margin-right: 0.5rem;
  font-size:0.8em;
}

#nav li ul.sub-menu li:last-child a {
  border-bottom: none;
}

#nav li ul.sub-menu li a::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
/*  background-image: linear-gradient(90deg, #8b0006, #a21d14); /* ホバー時の背景 */
	background:#1043a1;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1; /* テキストの後ろに配置！ */
  pointer-events: none;
}

#nav li ul.sub-menu li a:hover {
	color:#FFF;
}

#nav li ul.sub-menu li a:hover:after {
  opacity: 1;
}

@media (max-width: 1480px){
#nav li a {
  padding: 0 5px;
}
}

@media (max-width: 1480px){
}

@media (max-width: 1280px){
.overlay {
	width: 0;
	height: 0;
	position: fixed;
	z-index: 11;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity .5s;
	background: rgba(0,0,0,.7);
}
.overlay.open {
	width: 100%;
	height: 100%;
	opacity: 1;
}
#main {
	transition: all .5s;
	min-height: 100vh;
}
#main.open {
	position: fixed;
	width: 100%;
}
#menu_btn {
	top: 0;
	right: 0;
	transition: .3s;
	cursor: pointer;
	position: fixed;
	z-index: 9999;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background:#1043a1;
}
.menu-trigger {
	width: 30px;
	height: 16px;
	position: relative;
}
.menu-trigger span {
	display: inline-block;
	box-sizing: border-box;
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: #FFF;
	transition: all .5s;
}
.menu-trigger span:nth-of-type(1) {
	top: 0;
}
.menu-trigger span:nth-of-type(2) {
	width: 70%;
	top: 7px;
}
.menu-trigger span:nth-of-type(3) {
	bottom: 0;
}
#menu_btn.active .menu-trigger span:nth-of-type(1) {
	transform: translateY(8px) rotate(-45deg);
}
#menu_btn.active .menu-trigger span:nth-of-type(2) {
	opacity: 0;
}
#menu_btn.active .menu-trigger span:nth-of-type(3) {
	transform: translateY(-7px) rotate(45deg);
}
#nav {
	width: 280px;
	height: 100%;
	overflow: auto;
	padding: 90px 0;
	background: rgba(0,0,0,0.85);
	position: fixed;
	top: 0;
	right: 0;
	z-index: 12;
	transform: translate(280px);
	transition: all .5s;
}
#nav.open {
	transform: translateZ(0);
}
#nav li {
	padding: 0 20px;
}
#nav li a {
	position: relative;
	padding: 7.5px 15px;
	color: #FFF;
	font-weight:500;
}
#nav .menu-item-has-children .sub-menu {
	padding: 10px 0 10px 30px;
}
#nav .menu-item-has-children > a:first-of-type {
	position: relative;
	padding-right: 2em;
}
#nav .menu-item-has-children > a.open:first-of-type {
	color: #FFF;
}
#nav .menu-item-has-children .sub-menu li {
	padding: 0;
	margin-bottom: 20px;
}
#nav .menu-item-has-children .sub-menu li:last-child {
	margin-bottom: 0;
}
#nav .menu-item-has-children .sub-menu li a {
	padding: 0;
	font-size:0.9em;
}
}

