/* html과 body를 전체 높이로 설정 */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

html,
body {
	height: 100%;
	margin: 0;
}

main {
	flex: 1;
	/* 남은 공간을 모두 차지 */
}

/* 전체 페이지를 감싸는 wrapper: min-height를 100vh로 하여 viewport 전체를 채우고 flex 컬럼 이용 */
.wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* 본문 영역: 남은 공간을 모두 채움 */
.main-content {
	flex: 1;
}

/* Footer 스타일 - position 고정 제거, 문서 흐름에 따라 배치 */
footer {
	background-color: #333;
	color: #fff;
	padding: 10px 0;
	/* 기본 수직 패딩 */
	font-size: 0.9em;
}

/* footer 내부 컨테이너: Flexbox로 3 영역 배치 */
.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 왼쪽 영역 - 링크 목록 */
.footer-left ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-left li {
	display: inline-block;
	margin-right: 10px;
}

.footer-left li:last-child {
	margin-right: 0;
}

.footer-left a {
	color: #fff;
	text-decoration: none;
}

/* 중앙 영역 - 연락처 정보 */
.footer-center p {
	margin: 2px 0;
	text-align: center;
}

/* 오른쪽 영역 - 소셜 아이콘 */
.footer-right a {
	margin-left: 10px;
	 display: flex;
	 flex-direction: column;
  align-items: center; /* 수직 가운데 정렬 */
  gap: 8px; /* 이미지와 글자 사이 간격 */
  text-decoration: none;
  color: inherit;
}
.footer-right img {
	width: 28px;
	height: 28px;
}

/* PC 환경: 화면 너비 768px 이상일 때 */
@media (min-width: 768px) {
	.footer-container {
		padding: 0 50px;
	}

	.footer-left li {
		margin-right: 20px;
	}
}

/* 모바일 환경: 화면 너비 768px 이하 — 높이와 폰트 크기를 축소 */
@media (max-width: 768px) {
	footer {
		padding: 5px 0;
		font-size: 0.7em;
	}

	.footer-container {
		padding: 0 5px;
	}

	.footer-left li {
		display: block;
		margin-right: 10px;
	}

	.footer-right img {
		width: 24px;
		height: 24px;
	}
}