/*
 * Mobile common — drawer / nav (M-FE-01, 2026-06-18)
 * 신규 클래스만 선언한다. style.css 전역 선언(.keyword_item, .btn_special 등)은 덮어쓰지 않는다.
 * 충돌 회피 검증: .mobile_menu / .menu_overlay 는 기존 모바일 CSS 0건.
 */

/* hamburger (header_wrap 우측 절대배치 — 기존 .fnc_menu_wrap 대체) */
.header_wrap .btn_open {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border: none;
  background: url(../images/common/ico_menu.svg) no-repeat center center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1100;
}
.header_wrap .btn_open span {
  display: none;
}
.header_wrap .btn_open:focus {
  outline: none;
}

/* overlay */
.menu_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.menu_overlay.active {
  opacity: 1;
  visibility: visible;
}

/* drawer panel */
.mobile_menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 460px;
  height: 100%;
  background-color: #000000;
  z-index: 1999;
  padding: 30px;
  display: flex;
  flex-direction: column;
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  pointer-events: none;
  transition: clip-path 0.2s ease-in-out, opacity 0.2s ease-in-out;
  will-change: clip-path, opacity;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile_menu.active {
  clip-path: inset(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile_menu .menu_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.mobile_menu .menu_header .logo {
  display: block;
  width: 120px;
  height: 40px;
  background: url(../images/common/logo_w.png) no-repeat center center;
  background-size: auto 18px;
  cursor: pointer;
}
.mobile_menu .btn_close {
  width: 40px;
  height: 40px;
  border: none;
  background: url(../images/common/ico_close_w.svg) no-repeat right center;
  cursor: pointer;
}
.mobile_menu .btn_close::before,
.mobile_menu .btn_close::after {
  content: none;
}
.mobile_menu .btn_close:focus {
  outline: none;
}

.mobile_menu .menu_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile_menu .menu_list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0 0 10px;
}
.mobile_menu .menu_list li > a {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.mobile_menu .menu_list li > a:hover,
.mobile_menu .menu_list li > a:focus,
.mobile_menu .menu_list li > a.is-active {
  color: #d0fd6b;
}

/* 서비스 소개 — 제목 + 하위 링크(회사 소개 · 요금제 소개) */
.mobile_menu .menu_list li.menu_group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile_menu .menu_group_title {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.mobile_menu .menu_sub {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.mobile_menu .menu_sub a {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.mobile_menu .menu_sub a:hover,
.mobile_menu .menu_sub a:focus,
.mobile_menu .menu_sub a.is-active {
  color: #d0fd6b;
}

.mobile_menu .menu_footer {
  margin-top: 40px;
  padding-bottom: 20px;
}
.mobile_menu .user_welcome {
  margin: 0 0 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.mobile_menu .auth_links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.mobile_menu .auth_links a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.mobile_menu .auth_links a:hover,
.mobile_menu .auth_links a:focus {
  color: #d0fd6b;
}
.mobile_menu .auth_links a.is-active {
  color: #d0fd6b;
  font-weight: 600;
}

/* drawer open 시 배경 스크롤 잠금 */
body.menu-open {
  overflow: hidden;
}
