* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: Arial, sans-serif;
	line-height: 1.6;
}
a {color:#3c3c3c;text-decoration: none;cursor:pointer}
a:hover, a:active,a:focus {text-decoration: none;}
header {
	text-align: center;
	padding: 1em 0;
}

nav ul {
	display: flex;
	justify-content: center;
	list-style: none;
	background-color: #f4f4f4;
	padding: 1em;
}
nav ul li {
	margin: 0 8px;
}
nav ul li a {
	text-decoration: none;
	color: #333;
}
nav ul li a:hover {
	color: #007bff;
	border-bottom: 2px solid #007bff;
	transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    nav ul li {
        margin: 0 16px; /* 기존 8px에서 16px로 확대 */
    }
    nav ul {
        padding: 1.5em; /* 메뉴 전체 패딩도 넉넉하게 */
    }
    nav ul li a {
        font-size: 1.1rem; /* 폰트도 약간 키울 수 있음 */
    }
}


#main_visual {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	height: 500px;
	text-align: center; /* 추가된 부분 */
}
#main_visual img {
	position: absolute;
	left: 0; /* 이미지가 중앙에서 시작되도록 설정 */
	right: 0; /* 우측 정렬 방지 */
	margin: auto; /* 수평 중앙 정렬 */
	width: 100%;
	height: 500px;
	object-fit: cover;
	transition: opacity 1s ease-in-out;
	opacity: 0;
}
#main_visual img.active {
	opacity: 1;
}
.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2em;
}
.content {
	padding: 1em;
	background: #fff;
}
.content h2,.content p {
	text-align: center;
	margin-bottom: 1em;
}
.projects {
	margin:0 auto;
	max-width:1280px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1em;
}
.project-card {
	border: 1px solid #ccc;
	border-radius: 8px;
	overflow: hidden;
	text-align: center;
}
.project-card img {
	width: 100%;
	height: auto;
}
.project-card h3 {
	padding: 1em;
	background: #f4f4f4;
}
footer {
	background: #333;
	color: #fff;
	padding: 2em 0;
}
.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em 2em;
	margin-bottom: 1em;
	background-color: #444;
	border-radius: 8px;
}
.footer-content .text-area {
	flex: 1;
	margin-right: 20px;
	color: #fff;
}
.footer-content .button-area {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}
.footer-content .button-area a {
	text-decoration: none;
	color: #333;
	background: #fff;
	padding: 10px 15px;
	border-radius: 5px;
	font-size: 14px;
}
.footer-logo {
	text-align: center;
	margin-top: 1em;
}
.bigfont {
	font-size:23px;
}

.sub_content {text-align:center; width:100%; max-width:1280px; margin:0 auto;}

/* 웅이 추가 2025-04-09 */

.menuarea ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1em;
}

.menuarea ul li {
  margin: 0 20px;
}

.menuarea ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  padding: 10px;
}

.menuarea ul li a.active {
  color: #ff3300;
}

.imagearea {
  margin-top: 30px;
  text-align: center;
}

.tabcontent img {
  display: block;
  margin: 0 auto 20px;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 10px;
}


/*게시판 리스트*/
.board_list {
	max-width: 1280px;
	margin: 20px auto;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	overflow-x: auto;
}
h2 {
	text-align: center;
	color: #333;
}
table {
	width: 100%;
	border-collapse: collapse;
}
th, td {
	padding: 10px;
	text-align: center;
	border: 1px solid #ddd;
}
th {
	background-color: #888;
	color: white;
}
tr:nth-child(even) {
	background-color: #e0e0e0;
}
.pagination {
	text-align: center;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
}
.pagination a {
	display: inline-block;
	padding: 8px 12px;
	background-color: #666;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	min-width: 40px;
	text-align: center;
}
.pagination a:hover {
	background-color: #444;
}
.write-btn {
	display: block;
	width: 120px;
	margin: 20px auto;
	padding: 10px;
	background-color: #666;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	font-size: 16px;
}
.write-btn:hover {
	background-color: #444;
}

/*게시판 읽기*/
.post-container {
	width: 100%;
	max-width: 1240px;

	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.post-title {
	text-align: center;
	color: white;
	background-color: #444;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
}
.post-content {
	padding: 15px;
	background-color: #fff;
	border-radius: 5px;
	min-height: 200px;
	margin-bottom: 20px;
	border: 1px solid #ddd;
}
.post-attachments {
	background-color: #f8f8f8;
	padding: 10px;
	border-radius: 5px;
	border: 1px solid #ddd;
	margin-bottom: 20px;
}
.post-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
}
.post-buttons button {
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	background-color: #666;
	color: white;
}
.post-buttons button:hover {
	background-color: #444;
}
@media (max-width: 768px) {
	.post-buttons {
		flex-direction: column;
		align-items: center;
	}
	.post-buttons button {
		width: 100%;
	}
	table {
		font-size: 12px;
	}
	.pagination {
		gap: 2px;
	}
	.pagination a {
		padding: 6px 10px;
		min-width: 30px;
	}
	.write-btn {
		font-size: 14px;
		padding: 8px;
	}
}

@media all and (max-width: 1280px) {
	.sub_content {
		text-align: center;
		width: 100%;
		max-width: 1280px;
		margin: 0 auto;
	}

	.sub_content img {
		width: 100%;
		height: auto; /* 비율 유지 */
		max-width: 1200px; /* 부모 요소보다 커지지 않도록 제한 */
	}
	.sub_content img.arrow {
		width: auto;
		max-width: none;	
	}
}