ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}
img { border: 0; }
a { text-decoration: none; }

/* 공통 */
#submn {
  position: relative;
  width: 100%;
  bottom: 0;
  left: 0;
  clear: both;
  height: 76px;
  text-align: center;
}

#submn ul {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 16pt;
  padding: 0;
  display: inline-block;
}

#submn li {
  float: left;
  vertical-align: middle;
  line-height: 76px;
  height: 76px;
  margin-left: -2px !important;
  padding: 0;
  margin: 0;
  border: 0 solid transparent;
  transition: all 0.2s ease-in-out;
}

/* ✅ PC: 반투명 배경 적용 */
@media (min-width: 768px) {
  #submn li {
    background-color: rgba(6, 42, 62, 0.85);
  }
  #submn li.on,
  #submn li.on:hover {
    background-color: rgba(0, 83, 129, 0.9);
    border: 0 solid rgba(0, 83, 129, 0.9);
  }
  #submn li:hover {
    cursor: pointer;
    background-color: rgba(6, 42, 62, 0.9);
    border: 0 solid rgba(0, 83, 129, 0.9);
  }
  #submn li:hover + li {
    border-left-color: rgba(0, 83, 129, 0.9);
  }
}

/* ✅ 모바일: 불투명 유지 */
@media (max-width: 767.98px) {
  #submn {
    position: relative;
    float: left;
    width: 100%;
    height: 40px;
    margin-top: 0;
    margin-left: 0;
  }

  #submn li {
    background-color: #062a3e;
  }
  #submn li.on,
  #submn li.on:hover {
    background-color: #005381;
    border: 0 solid #005381;
  }
  #submn li:hover {
    background-color: #062a3e;
  }
  #submn li:hover + li {
    border-left-color: #005381;
  }
}

/* 링크 공통 스타일 */
#submn a {
  display: inline-block;
  width: 100%;
  height: 100%;
  font-size: 15pt;
  color: #eeeeee;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}
#submn a:hover {
  color: #ffffff;
  text-decoration: underline;
}
#submn li.on a,
#submn li.on a:hover,
#submn li:hover a {
  color: #ffffff !important;
}

/* 열 분할 (공통) */
#submn ul.col-2 li { width: 49.99999%; }
#submn ul.col-3 li { width: 33.33333%; }
#submn ul.col-4 li { width: 25%; }
#submn ul.col-5 li { width: 20%; }
#submn ul.col-6 li { width: 16.666666%; }
#submn ul.col-7 li { width: 14.28%; }
#submn ul.col-8 li { width: 12%; }
#submn ul.col-9 li { width: 11.1%; }
#submn ul.col-10 li { width: 9.9%;  }
/* ✅ 모바일에서 행 분할 대응 */
@media all and (max-width: 767.98px) {
  #submn ul.col-2 li { width: calc(50% + 1px); }
  #submn ul.col-3 li { width: calc(33.33333% + 1px); }
  #submn ul.col-4 li { width: calc(33.33333% + 1px); }
  #submn ul.col-4 li:nth-child(4) { width: 100%; border-top: 0; }
  #submn ul.col-5 li { width: calc(33.33333% + 1px); }
  #submn ul.col-5 li:nth-child(4),
  #submn ul.col-5 li:nth-child(5) { width: calc(50% + 1px); border-top: 0; }
  #submn ul.col-6 li { width: calc(33.33333% + 1px); }
  #submn ul.col-6 li:nth-child(4),
  #submn ul.col-6 li:nth-child(5),
  #submn ul.col-6 li:nth-child(6) { border-top: 0; }
  #submn ul.col-7 li,
  #submn ul.col-8 li,
  #submn ul.col-9 li {
    width: calc(25% + 1px);
    letter-spacing: -0.8pt;
  }
  #submn ul.col-10 li {
    width: calc(20% + 1px);
    letter-spacing: -0.8pt;
  }


  #submn ul.col-7 li:nth-child(n+5),
  #submn ul.col-8 li:nth-child(n+5),
  #submn ul.col-9 li:nth-child(n+4) {
    border-top: 0;
  }
    #submn ul.col-10 li:nth-child(n+4) {
    border-top: 0;
  }
}
@media all and (max-width: 767.98px) {
  #submn {
    height: 45px; /* ✅ 메뉴 전체 높이 축소 */
  }

  #submn li {
    height: 45px;        /* ✅ 메뉴 항목 높이 축소 */
    line-height: 45px;   /* ✅ 텍스트 정렬 유지 */
  }

  #submn a {
    font-size: 16px;     /* ✅ 텍스트 크기 축소 */
  }
}