@charset "utf-8";
/* [2026-11] 사이트 머리 (theme/basic/head.php · main_menu.php).
   main_header.css 가 a·li·div·p·span·button 에 line-height:1em·굵기 400 을 박으므로 클래스마다 직접 정한다.
   1101px 이상 = PC 메뉴 줄, 1100px 이하 = '메뉴' 단추 + 메뉴 판 */
:root {
  --sh-g: #007664;
  --sh-g-soft: #e6f2ef;
  --sh-ink: #1f2a33;
  --sh-text: #3a4650;
  --sh-mute: #5b6670;
  --sh-line: #e3e7ea;
  --sh-bg2: #f5f7f7;
}
.sh-in { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* 맨 위 옅은 띠 */
.sh-util { background: var(--sh-bg2); border-bottom: 1px solid var(--sh-line); }
.sh-util .sh-in { display: flex; justify-content: flex-end; align-items: center; gap: 18px; height: 34px; }
.sh-util a, .sh-util-name { font-size: 13px; line-height: 1.4; color: var(--sh-mute); text-decoration: none; }
.sh-util-name { font-weight: 500; color: var(--sh-ink); }
.sh-util a:hover { color: var(--sh-ink); text-decoration: underline; }

/* 메뉴 줄 */
.sh { position: relative; z-index: 999; background: #fff; border-bottom: 1px solid var(--sh-line); }
.sh-bar { display: flex; align-items: center; height: 80px; }
.sh-logo { flex: none; display: block; line-height: 0; }
.sh-logo img { display: block; width: auto; height: 34px; }
.sh-brand { flex: none; display: block; line-height: 0; }
.sh-brand img { display: block; width: auto; height: 34px; }
.sh-nav { flex: 1; display: flex; justify-content: center; height: 100%; min-width: 0; }
.sh-gnb { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.sh-item { position: relative; display: flex; align-items: center; height: 100%; line-height: 1; }
.sh-item.is-mega { position: static; }
.sh-top {
  position: relative; display: flex; align-items: center; height: 100%; padding: 0 16px;
  font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; color: var(--sh-ink); text-decoration: none; white-space: nowrap;
}
.sh-item.has-sub .sh-top { padding-right: 4px; }
.sh-top::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--sh-g); transform: scaleX(0); transition: transform .2s ease;
}
.sh-item.has-sub .sh-top::after { right: -22px; }
.sh-item:hover .sh-top, .sh-top:hover { color: var(--sh-g); }
.sh-item.is-on .sh-top { color: var(--sh-g); font-weight: 700; }
.sh-item.is-on .sh-top::after, .sh-item.is-open .sh-top::after { transform: scaleX(1); }
.sh-tog {
  display: grid; place-items: center; width: 26px; height: 32px; margin-right: 8px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: #8a949c; cursor: pointer; line-height: 0;
}
.sh-tog svg { transition: transform .2s ease; }
.sh-item.is-open .sh-tog { color: var(--sh-g); }
.sh-item.is-open .sh-tog svg { transform: rotate(180deg); }
.sh a:focus-visible, .sh button:focus-visible, .sh-drawer a:focus-visible, .sh-drawer button:focus-visible, .sh-util a:focus-visible {
  outline: 2px solid var(--sh-g); outline-offset: 2px; border-radius: 4px;
}

/* 하위 메뉴: 작은 판(캠퍼스) */
.sh-sub { display: none; }
.sh-item.is-open > .sh-sub { display: block; }
.sh-sub:not(.sh-mega) {
  position: absolute; top: 100%; left: 0; min-width: 180px; margin-top: 1px; padding: 8px;
  background: #fff; border: 1px solid var(--sh-line); border-radius: 0 0 12px 12px; box-shadow: 0 16px 32px rgba(31, 42, 51, .12);
}
.sh-list { margin: 0; padding: 0; list-style: none; }
.sh-list a {
  display: block; padding: 11px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--sh-text); text-decoration: none;
}
.sh-list a:hover { background: var(--sh-bg2); color: var(--sh-g); }
.sh-list a.is-on { color: var(--sh-g); font-weight: 700; }

/* 하위 메뉴: 넓은 판(제품정보) */
.sh-mega {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 1px;
  background: #fff; border-top: 1px solid var(--sh-line); box-shadow: 0 18px 40px rgba(31, 42, 51, .12);
}
.sh-mega-in { max-width: 1400px; margin: 0 auto; padding: 36px 40px 40px; display: grid; grid-template-columns: 240px repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.sh-mega-intro { align-self: stretch; padding-right: 24px; border-right: 1px solid var(--sh-line); }
.sh-mega-h { margin: 0 0 10px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--sh-ink); }
.sh-mega-d { margin: 0 0 22px; font-size: 14px; line-height: 1.65; color: var(--sh-mute); word-break: keep-all; }
.sh-mega-all { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--sh-g); text-decoration: none; }
.sh-mega-all span { font: inherit; line-height: inherit; color: inherit; }
.sh-mega-all:hover { text-decoration: underline; }
.sh-col-t {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--sh-ink);
  font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--sh-ink); text-decoration: none;
}
.sh-col-t span { font: inherit; line-height: inherit; color: inherit; }
.sh-col-t .sh-col-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--sh-g-soft); color: var(--sh-g); }
.sh-col-t:hover > span:last-child { color: var(--sh-g); }

/* 제품 묶음 (PC 판·휴대폰 판 공통) */
.sp-grp { margin-bottom: 16px; }
.sp-grp-t { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--sh-ink); text-decoration: none; }
.sp-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.sp-row-t { min-width: 88px; margin-right: 2px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--sh-mute); text-decoration: none; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sp-row .sp-chips { margin-bottom: 0; }
.sp-chip {
  display: inline-block; padding: 7px 11px; border-radius: 6px; background: var(--sh-bg2);
  font-size: 13.5px; font-weight: 400; line-height: 1.2; color: var(--sh-text); text-decoration: none;
}
.sp-grp-t:hover, .sp-row-t:hover { color: var(--sh-g); }
.sp-chip:hover { background: var(--sh-g-soft); color: var(--sh-g); }
.sp-grp-t.is-on, .sp-row-t.is-on { color: var(--sh-g); }
.sp-chip.is-on { background: var(--sh-g); color: #fff; font-weight: 700; }

/* '메뉴' 단추 (1100px 이하에서만) */
.sh-mbtn {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 52px; height: 48px; padding: 0; border: 0; background: none; color: var(--sh-ink); cursor: pointer;
}
.sh-mbtn-t { font-size: 11px; font-weight: 500; line-height: 1; color: inherit; }

/* 검색 단추 (PC 는 메뉴 줄 오른쪽, 1100px 이하는 '메뉴' 단추 옆) */
.sh-sbtn {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 52px; height: 48px; margin: 0 20px 0 8px; color: var(--sh-ink); text-decoration: none;
}
.sh-sbtn:hover, .sh-sbtn[aria-current] { color: var(--sh-g); }
.sh-sbtn:focus-visible { outline: 2px solid var(--sh-g); outline-offset: 2px; }

/* 메뉴 판 */
.sh-drawer {
  position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .25s ease;
}
.sh-drawer[hidden] { display: none; }
.sh-drawer.is-open { transform: none; }
html.sh-lock, html.sh-lock body { overflow: hidden; }
.sh-dr-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--sh-line); }
.sh-dr-top .sh-logo img { height: 26px; }
.sh-dr-top .sh-mbtn { display: flex; }
.sh-dr-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 32px; }
.sh-user { margin: 16px 20px; padding: 16px; border-radius: 12px; background: var(--sh-bg2); }
.sh-user-name { margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--sh-ink); }
.sh-user-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-user-btns a {
  display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 8px; background: #fff; border: 1px solid var(--sh-line);
  font-size: 14px; font-weight: 500; line-height: 1; color: var(--sh-ink); text-decoration: none;
}
.sh-user-btns a.is-main { background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; font-weight: 700; }
.sh-mnav { margin: 0; padding: 0; list-style: none; }
.sh-mnav > li { margin: 0 20px; border-bottom: 1px solid var(--sh-line); }
.sh-mrow {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0; border: 0; background: none;
  font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--sh-ink); text-align: left; text-decoration: none; cursor: pointer;
}
.sh-mnav > li.is-on > .sh-mrow { color: var(--sh-g); font-weight: 700; }
.sh-acc svg { flex: none; width: 16px; height: 16px; color: #8a949c; transition: transform .2s ease; }
.sh-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.sh-msub { padding: 0 0 12px; }
.sh-mlink {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 0 0 14px; border: 0; border-left: 2px solid var(--sh-line); background: none;
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--sh-text); text-align: left; text-decoration: none; cursor: pointer;
}
.sh-mlink.is-on { color: var(--sh-g); font-weight: 700; border-left-color: var(--sh-g); }
.sh-mprod { margin: 4px 0 8px 16px; padding: 12px 14px 6px; border-radius: 10px; background: var(--sh-bg2); }
.sh-mprod .sp-chip { background: #fff; }
.sh-mprod-all { display: inline-block; margin-bottom: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--sh-g); text-decoration: none; }
.sh-msns { display: flex; justify-content: center; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.sh-msns a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sh-bg2); line-height: 0; }
.sh-msns img { width: 22px; height: 22px; filter: brightness(0); opacity: .55; } /* 아이콘 파일이 검은 띠용 흰색이라 어둡게 */
.sh-drawer:focus { outline: none; }

@media (max-width: 1280px) {
  .sh-in, .sh-mega-in { padding-left: 24px; padding-right: 24px; }
  .sh-top { padding: 0 12px; }
  .sh-top::after { left: 12px; right: 12px; }
  .sh-logo img, .sh-brand img { height: 30px; }
  .sh-mega-in { grid-template-columns: 200px repeat(3, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 1100px) {
  .sh-util, .sh-nav, .sh-brand { display: none; }
  #hd { position: sticky; top: 0; z-index: 999; }
  .sh-bar { height: 60px; justify-content: space-between; padding-left: 20px; padding-right: 8px; }
  .sh-bar .sh-logo img { height: 26px; }
  .sh-bar .sh-mbtn { display: flex; }
  .sh-bar .sh-sbtn { margin: 0 0 0 auto; }
}
@media (min-width: 1101px) {
  .sh-drawer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-top::after, .sh-tog svg, .sh-drawer, .sh-acc svg { transition: none; }
}
