header{
	width: 100%;
	background-image: url('../img/index/header-bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	font-family: "cwTeXKai";
	position: relative;
}

.header-box{
	width: 1200px;
	max-width: 100%;
	margin: 0 auto;
	padding: 10px 0;
}
.header-logo{
	width: 530px;
	max-width: 100%;
	margin: 0 auto;
	padding: 15px 0;
}

/*
 * 頁首選單：flex 排版，寬度、高度都跟著字走，不寫死。
 *
 * 原本是每格 width: 15% + height: 29px + overflow: hidden，字型只要一換
 * （cwTeXKai 的 Google early access 已停，現在吃的是瀏覽器的替代字）就會被上下或左右切掉。
 * 各斷點也都寫在這裡；rwd.css 裡已經沒有 .header-menu 的排版規則，要改就改這裡。
 */
.header-menu{
	display: flex;
	flex-wrap: wrap;            /* 真的擠不下就換行，不會被切掉 */
	justify-content: center;
	align-items: center;
	width: 1200px;
	max-width: 100%;
	margin: 0 auto;
	padding: 15px 0;
	box-sizing: border-box;
}

.header-menu li{
	flex: 0 0 auto;
	/* letter-spacing 會在最後一個字後面多留一格，右邊 padding 少一點才會左右對稱 */
	padding: 0 9px 0 14px;
	font-size: 30px;
	line-height: 1.3;
	letter-spacing: 5px;
	font-weight: 200;
	color: #FFF;
	text-align: center;
	white-space: nowrap;
	border-right: 1px solid #FFF;
}

.header-menu li:last-child{
	border-right: 0;
}

@media only screen and (max-width: 1367px){
	.header-menu li{
		padding: 0 8px 0 12px;
		font-size: 20px;
		letter-spacing: 4px;
	}
}

@media only screen and (max-width: 1024px){
	.header-menu li{
		padding: 0 7px 0 10px;
		font-size: 18px;
		letter-spacing: 3px;
	}
}

/* 手機：直排，由 js/menu.js 點 .rwd-icon 展開／收合 li */
@media only screen and (max-width: 768px){
	.header-menu{
		flex-direction: column;
		flex-wrap: nowrap;
		padding: 0;
	}
	.header-menu li{
		width: 100%;
		margin-top: 10px;
		padding: 10px 0;
		font-size: 20px;
		letter-spacing: 5px;
		border-right: 0;
	}
}

.back-header{
	width: 60px;
	height: 60px;
	border: 1px solid #FFF;
	background-color: rgba(0, 0, 0, 0.6);
	color: #FFF;
	display: none;
	position: fixed;
	bottom: 10%;
	right: 5%;
	border-radius: 50%;
	line-height: 60px;
	text-align: center;
	cursor: pointer;
}
