@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:wght@100&display=swap");
* {
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
}

ul,
ol,
li {
	list-style: none;
}

a {
	text-decoration: none;
	outline: 0;
}

main {
	width: 100%;
	height: 100vh;
	background: #333;
	display: flex; /*header와 section을 좌우배치하기 위해 flex 설정*/
}
main header {
	width: 20%;
	height: 100%;
	padding: 10vh 5vw;
	display: flex; 
	flex-wrap: wrap; 
	align-content: space-between; /*세로축은 상단 하단 양끝으로 콘텐츠를 배치*/
	justify-content: center; /*가로축은 가운대로 배치*/
	position: relative;
	z-index: 3; /*section요소와 aside팝업요소보다 위에 배치하기위해 3 지정*/  
}
main header h1 {
	font-size: 0px;
	color: #fff;
}
main header h1 i {
	font-size: 5vw;
	margin-bottom: 15px;
}
main header h1 span {
	font: normal 0.8vw/1 "arial";
}
main header address {
	font: normal 11px/1.2 "arial";
	color: #888;
}

main nav {
	position: absolute;
	top: 10vh;
	right: 5vw;
	z-index: 3; /*section요소와 aside팝업요소보다 위에 배치하기위해 3 지정*/ 
}
main nav ul {
	display: flex; /*자식 li요소를 좌우 배치되도록 설정*/
}
main nav ul li a {
	font-size: 18px;
	color: #bbb;
	margin-right: 30px;
}
main section {
	width: 80%;
	height: 100%;
	padding-top: 15vh;
	display: flex;
	position: relative;
	z-index: 1; /*aside팝업요소보다 아래 배치하기위해 1 지정*/ 
}
main section article {
	flex: 1; /*모든 article 요소의 너비를 동등하게 적용*/
	padding: 70px 40px 100px;
	position: relative;
	opacity: 0.6;
	z-index: 1;
	transition: opacity 1s, flex 1s;
	cursor: pointer;
}
main section article::before {
	content: "";
	display: block;
	width: 80%;
	height: 95%;
	position: absolute;
	background: #444;
	top: 0px;
	left: -200px; /*마우스 호버 전 article의 왼쪽 바깥쪽에 배치*/
	opacity: 0; /*마우스 호버 전 투명하게 숨김 처리*/ 
	transition: 1s;
}
main section article .inner {
	width: 100%;
	height: 100%;
	display: flex;
	flex-wrap: wrap;
	align-content: space-between; /*.txt와 figure 요소를 위 아래 끝에 배치*/
	position: relative; /*::bofore 요소 위쪽으로 배치되게 하기 위해 position 처리 */
}
main section article .inner .txt {
	width: 100%;
	transition: 0.5s; /*호버시 전환효과 처리 */
}
main section article .inner .txt h2 {
	font: normal 2vw/1 "Alegreya Sans SC";
	color: #fff;
	margin-bottom: 40px;
	padding-top: 70px;
	transition: 1s; /*호버시 전환효과 처리 */
}
main section article .inner .txt h2::after { /*h2요소 하단 꾸밈 효과*/
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	background: #777;
	margin-top: 20px;
	transition: 1.5s;
}
main section article .inner .txt p {
	font: 14px/1.4 "arial";
	color: #999;
}
main section article .inner figure {
	width: 100%;
	height: 15vh;
	background: #777;
	overflow: hidden;
	box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.3);
	filter: saturate(10%); /*영상박스의 채도를 낮춤*/
	transform-origin: left center; /*왼쪽 방향 기준으로 변형이 일어나도록 중심축 변경*/
	transition: 1s;
}
main section article .inner figure video {
	width: 100%;
	height: 100%;
	object-fit: cover; /*영상이 figure 영역안에 꽉 차도록 설정*/
	transform: scale(1.1); /*영상 가장자리의 여백을 숨기기위해 약간 확대*/
}

main section article:hover { /*article 요소에 호버시 변경 구문*/
	flex: 1.5; /*호버 된 요소만 1.5배 너비를 증가*/
	opacity: 1;
	z-index: 2;
}
main section article:hover::before { /*article 요소에 호버시 ::before 변경 구문*/
	left: 0px;
	opacity: 1;
}
main section article:hover .inner .txt {
	width: 75%;
}
main section article:hover .inner .txt h2 {
	font-size: 5vw;
	padding-top: 0px;
}
main section article:hover .inner .txt h2::after {
	width: 120px;
	background: orange;
}
main section article:hover .inner figure {
	height: 25vh;
	filter: saturate(120%);
	transform: translateY(3vh);
}


main aside {
	width: 100%;
	height: 100vh;
	background: #222;
	position: absolute;
	top: 0px;
	left: -100%; /*왼쪽 화면 바깥에 배치*/
	opacity: 0; /*투명도 0으로 비활성화*/
	z-index: 2; /*2로 설정하며 section은 덮고 h1과 nav는 aside 위쪽에 배치*/
	padding: 20vh 7vw 14vh 20vw;
	display: flex; 
	justify-content: space-between; /*자식 요소인 .txt와 figure를 좌우 양 끝에 배치 */
	transition: 1s; /*전환효과 설정*/
}
main aside.on { /*클래스 on이 붙으면*/
	opacity: 1;
	left: 0%; /*왼쪽 바깥에서 화면 안쪽으로 이동하도록 설정*/
}
main aside .txt {
	width: 25%;
	height: 100%;
}
main aside .txt h1 {
	font: normal 6vw/1 "Alegreya Sans SC";
	color: #ddd;
	margin-bottom: 20px;
}
main aside .txt p {
	font: 1.1vw/1.3 "arial";
	color: #666;
	margin-bottom: 60px;
}
main aside .txt span {
	cursor: pointer;
	color: orange;
}
main aside figure {
	width: 72%;
	height: 100%;
}
main aside figure video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}