/* ====================================
   [1. 공통 변수 및 초기화]
==================================== */
:root {
  --header-bg: #ffffff;
  --signal: #b91d2b;
  --ink: #111518;
  --line: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul, ol, li {
  list-style: none;
}

/* ====================================
   [2. PC 헤더 & 네비게이션]
==================================== */
.site-header {
  background-color: var(--header-bg);
  height: 75px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo img {
  max-height: 42px;
  width: auto;
  display: block;
}

.brand-banner-text {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--line);
  padding-left: 14px;
}

.banner-top-line {
  font-family: 'Noto Serif KR', serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.banner-main-line {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.banner-sub-line {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: #64748b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 26px 0;
  display: block;
  transition: color 0.2s ease;
}

.nav-item.active > a {
  color: var(--ink) !important;
  font-weight: 700;
}

.nav-item:hover > a {
  color: var(--signal) !important;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 140px;
  border-radius: 4px;
  overflow: hidden;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #333333;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f8fafc;
  color: var(--signal);
}

/* ====================================
   [3. 모바일 헤더 & 드로어 메뉴]
==================================== */
.m-site-header {
  display: none;
  background: #ffffff;
  padding: 12px 20px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.m-brand-logo img {
  max-height: 36px;
  width: auto;
  display: block;
}

.m-menu-btn {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.side-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}

.side-menu-overlay.is-active {
  display: block;
}

.side-menu-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #ffffff;
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.side-menu-drawer.is-open {
  right: 0 !important;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #111518;
  color: #ffffff;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.drawer-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.m-cate-group {
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

.m-cate-title a {
  font-size: 15px;
  font-weight: 700;
  color: var(--signal);
  text-decoration: none;
}

.m-sub-nav {
  list-style: none;
  padding: 10px 0 0 10px;
  margin: 0;
}

.m-sub-nav li {
  margin-bottom: 8px;
}

.m-sub-nav li a {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
}

.drawer-quick-contact {
  padding: 16px 20px;
  background: #faf9f6;
  border-top: 1px solid var(--line);
}

.drawer-quick-contact a {
  display: block;
  background-color: var(--signal);
  color: #ffffff !important;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(185, 29, 43, 0.25);
}

/* ====================================
   [4. 서브 히어로 배너 (높이 240px)]
==================================== */
.sub-hero {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: #111518;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sub-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sub-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}

.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
}

.sub-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}

.sub-hero-tag {
  display: inline-block;
  font-family: 'Noto Serif KR', serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid #d72828;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
}

.sub-hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* ====================================
   [5. 120px 슬림 사이드바]
==================================== */
aside.sticky-edge-sidebar {
  position: sticky;
  top: 90px;
  width: 152px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  z-index: 100;
}

.sidebar-header {
  background: linear-gradient(180deg, #202833 0%, #171d27 100%);
  color: #ffffff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  padding: 13px 10px;
  border-bottom: 2px solid rgba(164, 108, 92, 0.95);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-category-group {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.9));
}

.sidebar-category-title {
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f7fb 100%);
  padding: 10px 12px 9px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1f2937;
  border-left: 3px solid rgba(164, 108, 92, 0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-menu li:first-child {
  border-top: none;
}

.sidebar-menu li a {
  display: block;
  padding: 9px 12px 9px 14px;
  color: #2f3d4d;
  text-decoration: none;
  font-size: 11.8px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.02em;
  border-left: 2px solid transparent;
}

.sidebar-menu li a:hover {
  background: rgba(148, 163, 184, 0.06);
  color: #1f2937;
  border-left-color: rgba(164, 108, 92, 0.75);
}

.sidebar-menu li.active a {
  color: #503c38;
  font-weight: 700;
  background: rgba(164, 108, 92, 0.06);
  border-left-color: rgba(164, 108, 92, 0.9);
}

.sidebar-quick-contact {
  background: linear-gradient(180deg, #8c675d 0%, #6d4b43 100%);
  text-align: center;
  padding: 12px 8px;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.sidebar-quick-contact:hover {
  background: linear-gradient(180deg, #98736d 0%, #765249 100%);
}

.sidebar-quick-contact a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.sidebar-quick-contact a:hover {
  transform: translateY(-1px);
}

.sidebar-quick-contact .qc-title {
  font-size: 8.8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.sidebar-quick-contact .qc-sub {
  font-size: 12px;
  font-weight: 700;
}

/* ====================================
   [6. 공통 푸터]
==================================== */
footer.site-footer {
  background-color: #111518;
  color: #a0aec0;
  font-size: 13px;
  width: 100%;
  clear: both;
}

footer.site-footer .footer-nav-bar {
  border-bottom: 1px solid #2d3748;
  padding: 16px 0;
}

footer.site-footer .footer-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}

footer.site-footer .footer-nav-inner a,
footer.site-footer .footer-nav-inner a:visited {
  color: #e2e8f0;
  text-decoration: none;
}

footer.site-footer .footer-nav-inner a:hover {
  color: var(--signal);
}

footer.site-footer .footer-nav-inner .divider {
  color: #4a5568;
}

footer.site-footer .footer-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

footer.site-footer .footer-info-text {
  line-height: 1.8;
  margin-bottom: 12px;
  color: #a0a6b0;
  word-break: keep-all;
}

footer.site-footer .footer-info-text .sep {
  margin: 0 8px;
  color: #4a5568;
}

footer.site-footer .footer-copyright {
  color: #718096;
  font-size: 12px;
}

/* ====================================
   [7. 반응형 미디어 쿼리]
==================================== */
@media screen and (max-width: 1024px) {
  .site-header {
    display: none !important;
  }
  .m-site-header {
    display: flex !important;
  }
  .main-layout {
    flex-direction: column;
  }
  aside.sticky-edge-sidebar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
}

@media screen and (max-width: 820px) {
  .brand-banner-text {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .sub-hero-content {
    padding: 0 20px;
  }
}