/* ✅ HEADER 전체 영역 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ✅ 고정 헤더 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: white;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .inner {
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ✅ 로고 */
header .logo img {
  width: 280px;
  height: auto;
}

/* ✅ 오른쪽 영역 묶음 (메뉴 + 햄버거) */
.right-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ✅ 상단 메뉴 (ul.menu) */
.menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.menu li {
  position: relative;
}

.menu > li > a {
  display: block;
  padding: 12px 0;
  color: #111;
  text-decoration: none;
}

/* ✅ 드롭다운 서브메뉴 */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 140px;
  z-index: 100;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.menu li:hover .submenu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.submenu li a {
  padding: 8px 16px;
  display: block;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  text-align: left;
}

/* ✅ 상단배너 */
.top-banner-area {
  display: flex;
  justify-content: center;
  margin-top: 80px; /* header 높이만큼! */
  height: 200px;
  background: url("../image/top_banner_img1.jpg?v=1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.top-banner-area .inner {
  display: flex;
  align-items: center;
  height: 200px;
  text-align: center;
}

.top-banner-area .inner h2 {
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* ✅ 메인영역 */
.main-content {
  flex: 1;
  padding: 20px 20px 40px;
  box-sizing: border-box;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 767px) {
.main-content {padding:20px 5px;}
}