
:root {
	--bg-color: #fff;
	--text-color: #333;
	--primary-color: #0047AB;
	--header-bg: #fff;
	--header-shadow: rgba(0, 0, 0, 0.1);
	--section-bg: #f9f9f9;
	--footer-bg: #2c3e50;
	--footer-text: #fff;
	--footer-sub-text: #bdc3c7;
	--footer-border: rgba(255, 255, 255, 0.1);
}

body.dark-mode {
	--bg-color: #121212;
	--text-color: #e0e0e0;
	--primary-color: #4da6ff;
	--header-bg: #1e1e1e;
	--header-shadow: rgba(255, 255, 255, 0.1);
	--section-bg: #1c1c1c;
	--footer-bg: #0d0d0d;
	--footer-text: #e0e0e0;
	--footer-sub-text: #888;
	--footer-border: rgba(255, 255, 255, 0.2);
}

/* 다크 모드일 때 오버레이를 어둡게 변경 */
body.dark-mode section img {
	filter: brightness(0.8) contrast(1.1) grayscale(0.05);
	transition: filter 0.3s;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
}

body {
	color: var(--text-color);
	line-height: 1.6;
	background-color: var(--bg-color);
	transition: background-color 0.3s, color 0.3s;
}

a {
	text-decoration: none;
	color: inherit;
}

h1,h2,h3,h4 {
	word-break: auto-phrase;
}


.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 헤더 스타일 */
header {
	background-color: var(--header-bg);
	box-shadow: 0 2px 10px var(--header-shadow);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo {
	font-size: 24px;
	font-weight: bold;
	color: var(--primary-color);
}

.logo-link {
	display:block; width:160px; height:48px; text-indent:-9999px; overflow:hidden;
	background: url('../../assets/images/logo_black.png') no-repeat 0 center / contain;
}
body.dark-mode .logo-link {
	background: url('../../assets/images/logo_white.png') no-repeat 0 center / contain !important;
}

.nav-menu {
	display: flex;
	list-style: none;
	padding-right: 20px;
}

.nav-menu li {
	position: relative;
	margin-left: 30px;
}

.nav-menu > li > a {
	font-weight: 600;
	padding: 10px 0;
	display: block;
	color: var(--text-color);
}

.nav-menu li:hover > a {
	color: var(--primary-color);
}

.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: var(--header-bg);
	box-shadow: 0 5px 15px var(--header-shadow);
	width: 180px;
	padding: 10px 0;
	list-style: none;
	transition: background-color 0.3s;
}

.nav-menu li:hover .sub-menu {
	display: block;
}

.sub-menu li {
	margin: 0;
	padding: 0;
}

.sub-menu a {
	display: block;
	padding: 8px 20px;
	font-size: 14px;
	color: var(--text-color);
}

.sub-menu a:hover {
	background-color: var(--section-bg);
	color: var(--primary-color);
}

.right-aligned-icons-and-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 15px;
	flex-grow: 1; /* 왼쪽 로고를 제외한 나머지 공간을 차지하도록 설정 */
}

/* 다크 모드 토글 아이콘 */
.theme-toggle-icon {
	cursor: pointer;
	width: 24px;
	height: 24px;
	fill: var(--text-color);
	transition: fill 0.3s;
}

/* 컨텐츠 섹션 */
.section {
	padding: 50px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 40px;
}

.section-title h2 {
	font-size: 32px;
	color: var(--primary-color);
	margin-bottom: 15px;
}

.section-title p {
	color: var(--text-color);
}

.product-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.product-item {
	background-color: var(--header-bg);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px var(--header-shadow);
	transition: transform 0.3s, background-color 0.3s;
}

.product-item:hover {
	transform: translateY(-5px);
}

.product-img {
	height: 200px;
	background-color: var(--section-bg);
	background-size: cover;
	background-position: center;
	transition: background-color 0.3s;
}

.product-info {
	padding: 20px;
}

.product-info h3 {
	margin-bottom: 10px;
	font-size: 18px;
	color: var(--primary-color);
}

.product-info p {
	color: var(--text-color);
	font-size: 14px;
}

/* 푸터 */
footer {
	background-color: var(--footer-bg);
	color: var(--footer-text);
	padding: 50px 0 20px;
	transition: background-color 0.3s;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-bottom: 30px;
}

.footer-column h3 {
	font-size: 18px;
	margin-bottom: 20px;
	color: var(--footer-text);
}

.footer-column ul {
	list-style: none;
}

.footer-column ul li {
	margin-bottom: 10px;
}

.footer-column ul li a:hover {
	color: var(--primary-color);
}

.footer-bottom {
	border-top: 1px solid var(--footer-border);
	padding-top: 20px;
	text-align: center;
	font-size: 14px;
	color: var(--footer-sub-text);
}

/* 반응형 */
.mobile-menu-icon {
	display: none; /* 기본적으로는 숨김 */
	cursor: pointer;
	padding: 10px;
}

.mobile-menu-icon .bar {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	margin: 5px 0;
	transition: background-color 0.4s;
}

/* about.html */
.bg-gray {
    background-color: #f8f8f8;
}
body.dark-mode .bg-gray {
    background-color: var(--section-bg);
}
/* about.html */


.main-visual {
    height: calc(100vh - 78px);
	display: flex;
	align-items: center;
	justify-content: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9), 0 1px 1px rgba(0, 0, 0, 0.9);
}

.main-visual .main-title h1 {
	text-align: center;
	font-size: 42px;
	margin-bottom: 20px;
	color : #fff !important;
	/* color: var(--primary-color); */
}

.main-visual p {
	font-size: 18px;
    color : #fff !important;
	/* color: var(--text-color); */
	font-weight: bold;
	text-align:center;
}


@media (max-width: 992px) {
	.product-list {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.nav-menu {
		display: none; /* 모바일에서는 햄버거 메뉴로 변경 */
		flex-direction: column;
		position: absolute;
		top: 80px; /* 헤더 높이에 맞게 조정 */
		left: 0;
		width: 100%;
		background-color: var(--header-bg);
		box-shadow: 0 5px 15px var(--header-shadow);
		padding: 10px 20px;
		text-align: center;
	}
	
	.nav-menu.active {
		display: flex;
	}
	
	.nav-menu li {
		margin: 0;
		border-bottom: 1px solid var(--section-bg);
	}
	
	.nav-menu li:last-child {
		border-bottom: none;
	}
	
	.nav-menu > li > a {
		padding: 15px 0;
	}
	
	.sub-menu {
		position: static;
		width: 100%;
		box-shadow: none;
		padding: 0;
		display: none; /* 모바일에서 기본적으로 숨김 */
	}

	.nav-menu li.open .sub-menu {
		display: block; /* 'open' 클래스가 있을 때 서브메뉴 표시 */
	}
	
	.product-list {
		grid-template-columns: 1fr;
	}
	
	.footer-content {
		grid-template-columns: 1fr;
	}
	
	.mobile-menu-icon {
		display: block; /* 모바일에서만 보임 */
	}
	.nav-menu {
		display: none; /* 메뉴는 숨기고 아이콘만 보이도록 */
	}
}