/*選單橫條*/
.navbar {
}
/*選單區*/
.nav-wrap{
	font-size: 14px;
}
/* 觸發區*/
.nav-wrap__trigger {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}
.nav-wrap--open .nav-wrap__trigger {
	color: #002852;
	color: var(--blue-main, #002852);
}
/*網站選單 - 外框*/
.nav-wrap__dropbox-overlay {
	position: fixed;
	top: 44px;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0);
	pointer-events: none;
	transition: background .15s;
}
.nav-wrap--open .nav-wrap__dropbox-overlay {
	background: rgba(0,0,0,.6);
	pointer-events: auto;
}
.nav-wrap__dropbox {
	position: fixed;
	top: 44px;
	left: 0;
	right: 15%;
	bottom: 0;
	-webkit-transition: transform 350ms;
	-moz-transition: transform 350ms;
	transition: transform 350ms;
	overflow-y: auto;/*內容需可滾動*/
	z-index: 2;
	overflow-X: hidden;
	background-color: #2071aa;
	/*background-color: var(--blue-main, #002852);*/
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transform: translateX(-101%);
	
}
.nav-wrap--open .nav-wrap__dropbox {
	z-index: 6;
	transform: translateX(0);
	
}

/*選單 - 已觸發-換icon*/
.nav-wrap--open .nav-wrap__trigger-icon:before {
	content: "\e90c";
}

/*主選選單*/
.nav {
	padding: 0;
	margin: 0;
}
.nav--open {

}
/*項目*/
.nav__item{
	border-bottom: 1px solid hsla(0, 0%, 87%, .3);
}
/*各層標題和連結*/
.nav__heading,
.nav__sub-heading,
.nav__link,
.nav__sub-link,
.nav__third-link{
	display: block;
	cursor: pointer;
	text-decoration: none;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.4;
	padding: 1.2em 10px;
	color: #fff;
	color: inherit;
}

/*第一層*/
.nav__heading,
.nav__link {
	letter-spacing: .05em;
	transition: background .435s ease;
	text-decoration: none;
	position: relative;
}
.nav__heading:focus,
.nav__heading:active,
.nav__sub-heading:focus,
.nav__sub-heading:active,
.nav__link:focus,
.nav__link:active,
.nav__sub-link:focus,
.nav__sub-link:active {
	color: #fff;
	color: inherit;
}


/*第一層-箭頭*/
.nav__heading-icon {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 40px;
	height: 30px;
	margin-top: -15px;
	line-height: 30px;
	font-size: 1em;
	text-align: center;
	/* transition: transform .425s ease; */
	/* margin: 0 -4px; */
	display: inline-block;
	letter-spacing: normal;
}
.nav__sub-heading {
	border-bottom: 1px solid hsla(0, 0%, 87%, .3);
}

/*第二層*/
.nav__sub-nav-wrap {
	padding: 0;
	-webkit-transition: transform .35s;
	transition: transform .35s;
	transform: translateX(100%);
	position: absolute;
	overflow: hidden;
	background: #002852;
	background: var(--blue-main, #002852);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 12;
}
/*第二層-展開*/
.nav__heading--active + .nav__sub-nav-wrap {
	transform: translateX(0);
	overflow: auto;
}
.nav__sub-item {
	border-bottom: 1px solid hsla(0, 0%, 87%, .3);
}
.nav__sub-link {
	padding-left: 3.5em;
}
.nav__sub-heading-icon {
	font-size: 1em;
	margin-right: .5em;
	vertical-align: baseline;
}
/* 活動 */
.nav-event {
	display: none;
}
.nav-wrap__footer-info {
	padding: 30px 16px;
}
@media screen and (min-width: 1024px) {
	.navbar{
		background: #fff;
	}
	.navbar__inner {
		max-width: none;
		position: relative;
	}
	/*選單按鈕*/
	.nav-wrap__trigger {
		display: none;
	}
	/* 隱藏-選單登入按鈕 */
	.nav-wrap__login {
		display: none;
	}
	.nav-wrap__dropbox {
		text-align: left;
		color: #555;
	}
	/*展開區*/
	.nav-wrap__dropbox,
	.nav-wrap--open .nav-wrap__dropbox,
	.nav-wrap__dropbox-overlay,
	.nav-wrap--open .nav-wrap__dropbox-overlay {
		display: block;
		position: static;
		overflow: visible;
		transform: none;
		/* background: #fff; */
		background: none;
		width: 100%;
		height: auto;
		max-height: none;
		transition: none;
		pointer-events: auto;
	}
	/*選單*/
	.nav {
		display: flex;
		/* max-width: 1200px;
		margin: 0 auto; */
	}
	/*各層標題和連結*/
	.nav__heading,
	.nav__sub-heading,
	.nav__link,
	.nav__sub-link,
	.nav__third-link{
		font-weight: 400;
	}
	/*第一層-標題、連結*/
	.nav__heading,
	.nav__link{
		padding: 0;
		line-height: 62px;
		height: 62px;
		text-align: center;
		border-bottom: none;
		font-size: 16px;
		color: #555;
		position: static;
	}
	.nav__heading:hover,
	.nav__link:hover,
	.nav__heading--active,
	.nav__item--current .nav__link,
	.nav__item--current .nav__heading {
		color: #033e7c;
		color: var(--blue-light, #033e7c);
	}
	.nav__heading-icon {
		display: none;
		/* position: static;
		width: auto;
		height: auto;
		line-height: 1;
		vertical-align: text-bottom;
		margin-left: .15em; */
	}
	/*第一層-icon-開啟*/
	/* .nav__item:hover .nav__heading::after,
	.nav__heading:hover::after {
		transform: translateY(-50%) rotate(180deg);
	} */
	.nav__item {
		border: none;
		margin-right: 55px;
	}
	.nav__item:last-child {
		margin: 0;
	}
	/*第二層*/
	.nav__sub-nav-wrap {
		background: none;
		width: 100%;/*必設定*/
		border: none;/*去除前面*/
		transform: none;
		overflow: hidden;
		top: auto;
		/* box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.10); */
		height: auto;
		max-height: 0;
		top: 100%;
		bottom: auto;
		z-index: -1;
		display: flex;
		justify-content: space-between;
		max-width: 1200px;
		margin: 0 auto;
		visibility: hidden;
	}
	/* 灰底 */
	.nav__sub-nav-wrap::before {
		content: '';
		width: 100vw;
		background: #f7f7f7;
		top: 0;
		left: 50%;
		transform: translateX(-50%) scaleY(.65);
		bottom: 0;
		position: absolute;
		z-index: -1;
		opacity: 0;
		transition: transform .25s, opacity .25s;
		transform-origin: top center;
	}
	/*第二層-滑過-開啟*/
	.nav__heading--active + .nav__sub-nav-wrap,
	.nav__item:hover .nav__sub-nav-wrap {
		overflow: visible;
		height: 373px;
		max-height: 373px;
		padding: 42px;
		visibility: visible;
	}
	/* 灰底區塊 */
	.nav__heading--active + .nav__sub-nav-wrap::before,
	.nav__item:hover .nav__sub-nav-wrap::before {
		opacity: 1;
		transform: translateX(-50%) scaleY(1);
	}
	.nav__sub-nav {
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		align-content: flex-start;
		position: static;
		width: 50%;
		transition: transform .4s .2s, opacity .4s .2s;
		transform: translateY(10px);
		opacity: 0;
	}
	.nav__heading--active + .nav__sub-nav-wrap .nav__sub-nav,
	.nav__item:hover .nav__sub-nav {
		transform: translateY(0);
		opacity: 1;
	}
	.nav__sub-item {
		width: 33.333%;
	}
	.nav-event {
		display: flex;
		justify-content: flex-end;
		width: 50%;
		transition: transform .5s .35s, opacity .5s .35s;
		transform: translateY(10px);
		opacity: 0;
	}
	.nav__heading--active + .nav__sub-nav-wrap .nav-event,
	.nav__item:hover .nav-event {
		transform: translateY(0);
		opacity: 1;
	}
	.nav-event__item {
		width: 50%;
		max-width: 210px;
		margin-left: 24px;
		position: relative;
	}
	.nav-event__imgbox {
		margin-bottom: 15px;
	}
	.nav-event__name {
		line-height: 1.7;
		overflow : hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		max-height: 3.4em;
	}
	.nav-event__link {
		display: block;
		text-indent: 100%;
		overflow: hidden;
		white-space: nowrap;
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		font-size: 0;
		text-decoration: none;
	}
	/*第二層-項目*/
	.nav__sub-item {
		border: none;
	}
	.nav__sub-item--current .nav__sub-link {
		color: #033e7c;
		color: var(--blue-light, #033e7c);
	}
	
	/*第二層-標題和連結*/
	.nav__sub-heading {
		display: none;
	}
	.nav__sub-link{
		padding: .5em 1em .5em 0;
		display: inline-block;
	}
	/*第二層-active*/
	
	/*第二層-icon*/
	.nav__sub-heading-icon,
	.nav__sub-heading--active .nav__sub-heading-icon {
		transform: rotate(-90deg);
		transition: inherit;
		margin: 0 -6px 0 0;
	}
	.nav-wrap__footer-info {
		display: none;
	}
	
}

/* for IE */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.nav__heading--active + .nav__sub-nav-wrap,
	.nav__item:hover .nav__sub-nav-wrap {
		height: 373px;
	}
}