@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Nanum+Gothic:400,700|Nanum+Myeongjo');
@import url(https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@1.0/nanumsquare.css);
@viewport { width: device-width; }

/* 기본 스타일 초기화 */
* {
	margin: 0;
	padding: 0;
	font-family: 'NanumSquareNeoLight', sans-serif;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: inherit;
}

/* 전체 레이아웃 */
#wrap {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* 상단 이미지 */
.top_img {
	height: 550px;
	background: url(../img/main1.jpg) no-repeat center/cover;
	margin-top: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.top_text {
	font-size: 4.5rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.top_nav {
	width: 100%;
	background-color: #f5f5f5;
	border-bottom: 2px solid #d7d1d1;
}

/* 콘텐츠 박스 */
.contents_box {
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* 오른쪽 콘텐츠 영역 */
.right_box {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	padding: 0 20px;
}

/* 연혁 배경 이미지 영역 */
.company_history1,
.company_history2,
.company_history3,
.company_history4,
.company_history5 {
	width: 100%;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: contain;
}

/* 각각의 기본 최소 높이 지정 (PC 기준) */
.company_history1 { min-height: 400px; background-image: url(../img/History-0.jpg); }
.company_history2 { min-height: 450px; background-image: url(../img/History-1.jpg); }
.company_history3 { min-height: 700px; background-image: url(../img/History-2.jpg); }
.company_history4 { min-height: 450px; background-image: url(../img/History-3.jpg); }
.company_history5 { min-height: 700px; background-image: url(../img/History-4.jpg); }

/* 반응형 구현 */
@media screen and (max-width: 1500px){
	#wrap { height: auto; }
	.company_history1 { min-height: 1100px; }
	.company_history2 { min-height: 1000px; }
}

@media screen and (max-width: 1300px){
	#wrap { height: auto; }
	.company_history1 { min-height: 880px; }
	.company_history2 { min-height: 800px; }
}

@media screen and (max-width: 1100px){
	.company_history1 { min-height: 840px; }
	.company_history2 { min-height: 800px; }
}

@media screen and (max-width: 768px){
	#wrap {
		min-height: 100vh;
	}

	.top_text {
		font-size: 1.5rem;
	}

	.contents_box {
		flex-direction: column;
		overflow-x: hidden;
	}

	.company_history3,
	.company_history5 {
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center top;
		margin-bottom: 8px !important;     /* ✅ 간격 축소 */
		height: 300px !important;          /* ✅ 이미지 표시 위한 높이 지정 */
		min-height: unset !important;      /* ✅ 기존 높이 해제 */
		aspect-ratio: unset !important;    /* ✅ 고정 비율 해제 */
	}


	.company_history1,
	.company_history2,
	.company_history4 {
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center top;
		margin-bottom: 8px !important;     /* ✅ 간격 축소 */
		height: 150px !important;          /* ✅ 이미지 표시 위한 높이 지정 */
		min-height: unset !important;      /* ✅ 기존 높이 해제 */
		aspect-ratio: unset !important;    /* ✅ 고정 비율 해제 */
	}
}
