/* =========================
   기본 공통 스타일
========================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', Arial, sans-serif;
  background: #fff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   고정 헤더
========================= */
.sticky-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* =========================
   PC 전용 상단 메뉴
========================= */
.pc-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 60px;
  gap: 60px;
}

.pc-top .logo {
  font-size: 22px;
  font-weight: bold;
  color: #222;
  margin-right: 200px;
}

.pc-top nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.pc-top nav ul li {
  position: relative;
}

.pc-top nav ul li a {
  color: #222;
  padding: 8px 12px;
  display: block;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pc-top nav ul li:hover > a {
  background: #ff6600;
  color: #fff;
}

/* 1차 드롭다운 */
.pc-top nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 3000; /* ✅ 스크롤 메뉴보다 무조건 위 */
}

.pc-top nav ul li:hover > ul {
  display: block;
}

.pc-top nav ul li ul li a {
  padding: 10px 15px;
  color: #333;
}

.pc-top nav ul li ul li:hover > a {
  background: #ff6600;
  color: #fff;
}

/* 2차 드롭다운 */
.pc-top nav ul li ul li ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 180px;
  z-index: 3000; /* ✅ 추가 */
}

.pc-top nav ul li ul li:hover > ul {
  display: block;
}

.pc-top nav ul li ul li ul li a {
  padding: 8px 15px;
  color: #333;
}

/* =========================
   스크롤 메뉴
========================= */
/* 스크롤 메뉴 */
.scroll-menu {
  position: sticky;
  top: 60px;
  z-index: 900;   /* ✅ 드롭다운보다 낮게 */
  background: #fff;
  border-bottom: 1px solid #eee;
}

.scroll-menu ul {
  margin: 0;
  padding: 10px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  overflow-x: auto;        /* 모바일에서 가로 스크롤 */
}

.scroll-menu ul li a {
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.scroll-menu ul li a:hover,
.scroll-menu ul li a.active {
  color: #fff;
  background: #ff6600;
}

/* =========================
   배너
========================= */
.top-banner img {
  width: 100%;
  display: block;
  border-bottom: 2px solid #ff6600;
}

/* =========================
   모바일 전용
========================= */
.mobile-header {
  background: #fff;
  color: #222;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: #fff;
  color: #222;
  padding: 8px 0;
  border-top: 2px solid #ff6600;
  z-index: 1000;
}

.mobile-bottom-nav a {
  color: #222;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.mobile-bottom-nav a:hover {
  color: #ff6600;
}

.mobile-modal {
  display: none;
  position: fixed;
  bottom: 50px;
  left: 0;
  width: 100%;
  max-height: 60%;
  background: #fff;
  z-index: 2000;
  overflow-y: auto;
  border-top: 2px solid #ff6600;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #ff6600;
  color: #fff;
}

.close-modal {
  cursor: pointer;
}

/* =========================
   푸터 스타일
========================= */
.site-footer {
  background: #f8f8f8;
  color: #555;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  line-height: 1.6;
  border-top: 2px solid #ff6600;
}

.site-footer a {
  color: #ff6600;
  font-weight: 500;
}

.site-footer a:hover {
  color: #222;
  text-decoration: underline;
}

.site-footer .footer-menu {
  margin-bottom: 10px;
}

.site-footer .footer-menu a {
  margin: 0 8px;
  display: inline-block;
}

.site-footer small {
  display: block;
  opacity: 0.8;
}

/* =========================
   반응형 처리
========================= */
@media (max-width:768px){
    .pc-top {display: none;}
    .scroll-menu ul {justify-content: flex-start;}
    .site-footer {display: none;}
}
@media (min-width:769px){
    .mobile-header, .mobile-bottom-nav {display: none;}
}
