@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&display=swap');

* {
	margin: 0;
    padding: 0;
    list-style: none;
}


html {
	height: 100%;
	width: 100%;
}

body {
	min-height: 100%;
	width: 100%;
	overflow-x: hidden;
	color: #000a16;
	font-family:'Noto Sans TC', sans-serif;
	font-size: 2.4vh;
	line-height: 3.6vh;
	background: linear-gradient(119deg, #aaa9ad 20%, transparent 75%) center center / 100% 100%, url("img/home1.jpg") right center / auto 100%;
	background-position: center;
	z-index: -999;
	cursor:pointer;
}

img {
	max-width: 45%; 
	position:fixed; 
	top:14vh; 
	right: 1vw; 
	z-index: -99;
}

article {
	font-size: 6vh;
	width: 100%;
	margin: 350px 50px;
	color: #fff;
}

.article {
	font-size: 6vh;
	width: 100%;
	word-break: break-word;
	overflow: none;
	margin: 100px 50px;
	color: #fff;
	height: 80vh;
	background-color: #ac05690f;
	background-position: f
}

.container {
	font-size: 6vh;
	width: 50%;
	word-break: break-word;
	overflow: none;
	margin: 100px 50px;
	color: #fff;
	height: 80vh;
	background-color: #ac05690f;
}

section {
	margin: 30px;
	font-size: 20px;
	max-width: 100%;
	word-break: break-word;
	transform: translate(0%, 0%);
	overflow: none;
}

h1, h2, h3, h4, h5, h6{
	font-family:'Noto Sans TC', sans-serif;
	margin: 0;
	padding: 0;
}

h1{
	font-size: 4.8vh;
	line-height: 2.2vh;
	margin: 1vh 12vw;
}

h2{  
	font-size: 35px;
	margin:0px 120px;
}

h3{
	font-size:25px;
	margin: 60px 120px;
}

h4{
	font-size:40px;
	margin: 30px 120px;
}

h5{
	font-size: 70px;
	width: 100%;
	border-bottom: 1px solid #fff;
	padding-bottom: 0.6em;
	margin: 30px 65px;
	margin-bottom: 0.5em;
}

h6{
	font-size:70px;
	border-bottom: 1px solid #fff;
	width: 600px;
	font-weight: 900;
	padding-bottom: 0.6em;
	margin: 0px 20px;
	color:#fff;
}

p{
	width: 80%;
	font-size:20px;
	margin: 40px 50px;
	transform: translate(10%, 0%);
	overflow: none;
	font-family: 'Nanum Myeongjo', serif;
}

p::first-letter{
	font-size: 30px;
	line-height: 20px;
	float: left;
	padding: 10px 5px 0 0;
}

.main {
	z-index: 999;
	position: fixed;
	top: 10px;
	left: 10px;
	display: flex;   /* 切換 */
	font-family: Poppins, sans-serif;
	font-size: 2.2vh;
	line-height: 3vh;
	color: #fff;
}

.main li > a{
	display: inline-block;
	vertical-align: middle;
	background-color: #323232;
	padding: 3px 15px;
	color: #fff;
	text-decoration: none;
	opacity: 0.6;
	transition: opacity 0.3s ease-out;
}

.sub {
	position:relative;
	width: 70px;
	left: 30%;
	margin: 0.3em;
	transition: height 5s ease-in;
	display: none;
}

.sub li a{
	width: 40px;
	box-sizing: 100px;
	height: 30px;
	margin: 1px;
	font-size: 14px;
	text-decoration: none;
	transition: height .5s ease-in;
}

.main :hover .sub{
	display: block;
	color: #fff;
}

.main li > a open {
	width: 12vw;
	padding: 2px 10px;
	border-left: 2px solid white;
	transition: width 0.5s ease-out;
}

.main li > a > span {
	transition: all 0.3s ease-out;
	color: aqua;
}

.main li > a > span.rotated {
	transform: rotate(45deg);
	color: red;
	transition: all 0.5s ease-out;
}

.main li > a:not(:first-child) {
	width: 0;
	overflow-x: hidden;
	white-space: nowrap;
	transition: width 0.3s ease-out;
}

.main li > a:first-child {
		padding: 2px 10px; 
}

.main li > a:visited {
	color: #fff;
}  

a, a:visited {
	color: #323232;
	text-decoration: underline;
}

@media screen and (max-width: 960px){
	*{
		margin: 0;
		padding: 0;
	}

	body{
		margin: 0;
		padding: 0;
	}

	img {
		max-width: 40%; 
		top:3vh; 
		left: 57%; 
		right: 3%;
	}
	
	article {
		width: 80%;
		margin: 320px 50px;
		color: #fff;
	}
	
	.article {
		width: 100%;
		word-break: break-word;
		overflow: none;
		margin: 100px 50px;
		color: #fff;
		height: 80vh;
		background-color: #ac05690f;
	}
	
	.container {
		width: 90%;
		left: 0%;
		right: 10%;
		margin: 100px 50px;
		color: #fff;
		height: 80vh;
		background-color: #ac05690f;
	}
	
	section {
		margin: 60px 150px;
		width: 100%;
		transform: translate(-23%, 0%);
	}
	
	h1, h2, h3, h4, h5, h6{
		font-family:'Noto Sans TC', sans-serif;
		margin: 0;
		padding: 0;
	}
	
	h1{
		font-size: 35px;
		line-height: 7.2vh;
		margin: -30px 70px;
	}
	
	h2{  
		font-size: 20px;
		margin:0px 100px;
	}
	
	h3{
		font-size:19px;
		margin: 50px 70px;
	}
	
	h4{
		font-size:40px;
		margin: 30px 70px;
		line-height: 5vh;
		overflow: hidden;
	}
	
	h5{
		font-size: 40px;
		width: 55%;
		border-bottom: 1px solid #fff;
		padding-bottom: 0.6em;
		margin: 30px 65px;
		margin-bottom: 0.5em;
	}
	
	h6{
		font-size:60px;
		border-bottom: 1px solid #fff;
		width: 400px;
		font-weight: 900;
		padding-bottom: 0.6em;
		margin: 0 20px;
		color:#fff;
	}
	
	p{
		width: 80%;
		left: 5%;
		right: 15%;
		font-size: 16px;
		overflow: auto;
		margin: 20px;
		font-family: 'Nanum Myeongjo', serif;
	}
	
	p::first-letter{
		font-size: 30px;
		line-height: 20px;
		float: left;
		padding: 10px 5px 0 0;
	}

	.main {
		z-index: 999;
		position: fixed;
		top: 10px;
		left: 10px;
		display: block;   /* 切換 */
		font-family: Poppins, sans-serif;
		font-size: 2.2vh;
		line-height: 3vh;
		color: #fff;
	}
	
	.main li > a{
		display: inline-block;
		vertical-align: middle;
		background-color: #323232;
		padding: 3px 15px;
		color: #fff;
		text-decoration: none;
		opacity: 0.6;
		transition: opacity 0.3s ease-out;
	}
	
	.sub {
		position:relative;
		width: 70px;
		left: 30%;
		margin: 0.3em;
		transition: height 5s ease-in;
		display: none;
	}
	
	.sub li a{
		width: 40px;
		box-sizing: 100px;
		height: 30px;
		margin: 1px;
		font-size: 14px;
		text-decoration: none;
		transition: height .5s ease-in;
	}
	
	.main li > a.open {
		width: 12vw;
		padding: 2px 10px;
		border-left: 2px solid white;
		transition: width 0.5s ease-out;
	}
	

	
	.main li > a:first-child {
			padding: 2px 10px; 
	}
	
}