/* ===== Mobile Slide Menu ===== */
.hidden_bg {
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%;
  height: 100dvh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999999;
  transition: opacity 0.35s ease;
}
.hidden_bg.on {
  opacity: 1;
  pointer-events: auto;
}
.hidden_menu {
  position: fixed;
  top: 0;
  right: 0;
  min-width: 280px;
  max-width: 400px;
  width: 88%;
  background: #fff;
  height: 100dvh;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hidden_bg.on .hidden_menu {
  transform: translateX(0%);
}
.hidden_menu::-webkit-scrollbar {
  display: none;
}

/* -- Top bar (close button) -- */
.hidden_top_bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.6rem 2rem;
  flex-shrink: 0;
}
.close_menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}
.close_menu:hover {
  background: #e5e7eb;
}
.close_menu span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
}
.close_menu span:first-child {
  transform: rotate(45deg);
}
.close_menu span:last-child {
  transform: rotate(-45deg);
}

/* -- Hidden top (scrollable gnb area) -- */
.hidden_top {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hidden_top::-webkit-scrollbar {
  display: none;
}

/* -- GNB list -- */
.hidden_gnb {
  font-size: 1.5rem;
  padding: 0 0.8rem 2rem;
}
.hidden_gnb > li {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}
.hidden_gnb > li:not(:last-child) {
  margin-bottom: 2px;
}
.hidden_gnb > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.7rem;
  padding: 1.4rem 1.6rem;
  font-weight: 600;
  color: #1f2937;
  gap: 8px;
  border-radius: 12px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  position: relative;
}
.hidden_gnb > li > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
}
.hidden_gnb > li > a.on::after {
  transform: rotate(-135deg);
  border-color: #154385;
}
.hidden_gnb > li > a:active {
  background: #f9fafb;
}
.hidden_gnb > li > a.on {
  font-weight: 700;
  color: #154385;
  background: #f0f5ff;
}

/* Hidden GNB — 내과센터 · 건강검진센터 (초록 계열, li.im) */
.hidden_gnb > li.im > a {
  color: #1e4a28;
}
.hidden_gnb > li.im > a::after {
  border-color: #86b892;
}
.hidden_gnb > li.im > a.on {
  color: #256b2a;
  background: #e8f5ea;
}
.hidden_gnb > li.im > a.on::after {
  border-color: #358739;
}
.hidden_gnb > li.im > a:active {
  background: #ecf4ee;
}
.hidden_gnb > li.im .top_0 {
  background: #f4fbf5;
}
.hidden_gnb > li.im .top_0 > li > a {
  border-bottom-color: #e3efe4;
}
.hidden_gnb > li.im .top_0 > li > a::before {
  background: #a8d4ae;
}
.hidden_gnb > li.im .top_0 > li > a:active {
  color: #256b2a;
}
.hidden_gnb > li.im .top_0 > li > a:active::before {
  background: #358739;
}

/* -- Sub menu (accordion) -- */
.hidden_gnb .top_0 {
  display: none;
  background: #f8fafc;
  padding: 0.6rem 1.6rem 1.4rem 2.4rem;
  margin: 0 0.4rem 0.4rem;
  border-radius: 0 0 12px 12px;
}
.hidden_gnb .top_0 > li > a {
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  color: #4b5563;
  font-size: 1.5rem;
  transition: color 0.2s ease;
  border-bottom: 1px solid #f1f3f5;
  gap: 0.8rem;
}
.hidden_gnb .top_0 > li > a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.hidden_gnb .top_0 > li:last-of-type > a {
  border-bottom: none;
}
.hidden_gnb .top_0 > li > a:active {
  color: #154385;
}
.hidden_gnb .top_0 > li > a:active::before {
  background: #154385;
}
.hidden_gnb .top_0 > li > ul {
  padding-left: 10px;
  padding-bottom: 10px;
  font-size: 0.9em;
}
.hidden_gnb .top_0 > li > ul > li:not(:last-child) {
  margin-bottom: 0.5rem;
}
.gnb-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 4px;
}
.gnb-plus-icon svg {
  display: block;
}
.hidden_gnb .on .top_0 {
  display: block;
}

/* -- Bottom area (time table) -- */
.hidden_bottom {
  background: linear-gradient(135deg, #0a2142 0%, #132f5a 100%);
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  padding: 2rem 2.4rem;
  flex-shrink: 0;
}
.hidden_bottom > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.hidden_bottom .call {
  width: 13px;
  margin-right: 5px;
}
.hidden_bottom a {
  color: rgb(52, 62, 71);
  font-weight: bold;
  font-size: 2rem;
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}
.hidden_bottom .time_table {
  font-size: 1.4rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}
.hidden_bottom .time_table ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hidden_bottom .time_table li {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
}
.hidden_bottom .time_table li:not(:last-child) {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hidden_bottom .time_table b {
  width: 80px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 1.3rem;
}
.hidden_bottom .time_table span {
  font-weight: 400;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.85);
}
.hidden_bottom .time_table p {
  margin-top: 1.2rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}
/* header */
.header_container {
  width: 100%;
  height: 80px;
}
header {
  /* height: 100px; */
  width: 100%;
  font-size: 20px;
  font-weight: 500;
  position: fixed;
  transition: all 0.5s ease;
  z-index: 100;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.02);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid #d4d4d4;
  transition:
    height 0.4s ease,
    opacity 0.4s ease;
  overflow: hidden;
}
.logo-wrap.hide {
  height: 0;
  opacity: 0;
}
.h_logo {
  max-width: 330px;
  line-height: 0;
}

header .gnb > li > a {
  color: #757575;
}
header .gnb > li.im > a {
  color: #333;
}
header .gnb:hover > li > a {
  color: #004eb1;
}
header .gnb:hover > li.im > a {
  color: #358739;
}

header .h_left {
  height: 100%;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  gap: 5rem;
}
header .header_inner {
  margin: 0 auto;
  /* max-width: 1520px; */
  width: 95%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header_menu {
  display: flex;
}
.header_menu .gnb {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}
.header_menu .gnb > li {
  width: 100%;
}
.header_menu .gnb > li > a {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  width: 100%;
  text-align: center;
  line-height: 80px;
  padding: 0 40px;
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease;
}
.header_menu .gnb > li > a img {
  width: 30px;
  height: 30px;
  line-height: 0px;
}

/* 1뎁스 hover — 뮤트 럭셔리 톤(잉크·슬레이트 쉬머) */
@keyframes gnb_trendy_shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.header_menu .gnb > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  width: calc(100% - 16px);
  max-width: 100%;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  /* 채도 낮춘 네이비~스틸 — 형광 블루 제거 */
  background: linear-gradient(
    90deg,
    #9aa8b8,
    #5c6f84,
    #3d5266,
    #2a3f56,
    #4a5f73,
    #9aa8b8
  );
  background-size: 300% 100%;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 14px rgba(42, 63, 86, 0.28),
    0 2px 10px rgba(26, 40, 58, 0.18);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1),
    opacity 0.35s ease;
}

.header_menu .gnb > li:hover > a::before {
  transform: scaleX(1);
  opacity: 1;
  animation: gnb_trendy_shine 3.4s linear infinite;
}

.header_menu .gnb > li:hover > a {
  color: #1e3a52;
  text-shadow: none;
}

header .gnb > li.im > a::before {
  /* 딥 포레스트·세이지 — 원색 그린 대신 톤다운 */
  background: linear-gradient(
    90deg,
    #8fa396,
    #5d7364,
    #3d5245,
    #2c3f35,
    #4a5f52,
    #8fa396
  );
  background-size: 300% 100%;
  box-shadow:
    0 0 14px rgba(44, 63, 53, 0.26),
    0 2px 10px rgba(30, 45, 38, 0.18);
}

header .gnb > li.im:hover > a {
  color: #2a3d32;
  text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .header_menu .gnb > li:hover > a::before {
    animation: none;
  }
  .header_menu .gnb > li > a::before {
    background: linear-gradient(90deg, #4a5f73, #2a3f56, #4a5f73);
    background-size: 100% 100%;
  }
  header .gnb > li.im > a::before {
    background: linear-gradient(90deg, #4a5f52, #2c3f35, #4a5f52);
    background-size: 100% 100%;
  }
}
.menu_left_deco {
  aspect-ratio: 3/2;
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 100px;
  left: 0;
}
/* 1뎁스 hover 동그라미 이벤트 */
/* .header_menu .gnb > li > a::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c0e0ff;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s;
}
.header_menu .gnb > li:hover > a::before {
  transform: translate(-50%, -50%) scale(1);
}
.header_menu .gnb > li:hover > a {
  color: #c0e0ff;
} */

/*  */
.header_menu .gnb > li {
  height: 100%;
}

.header_menu .gnb > li:hover .gnb_2depth_wrap {
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15) inset;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
}
.header_menu .gnb > li > .gnb_2depth_wrap {
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15) inset;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 80px;
  background: #f2f6fc;
  width: 100%;
  left: 0;

  display: flex;
  transition: top 0.4s ease;
}
.header_menu .gnb > li.im > .gnb_2depth_wrap {
  background: #f3f9f3;
}
/* logo-wrap 접혀 있을 때 2depth 드롭다운 위치 */
header:has(.logo-wrap.hide) .header_menu .gnb > li > .gnb_2depth_wrap {
  top: 60px;
}
.depth_2_left {
  width: 50%;
  /* max-width: 600px; */
}
.depth_2_left {
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15) inset;
  background: #fff url(../img/depth_2_left_bg_blue.png) no-repeat top left 20% /
    520px;
}
.header_menu .gnb > li.im > .gnb_2depth_wrap .depth_2_left {
  background: #fff url(../img/depth_2_left_bg_green.png) no-repeat top left
    20% / 520px;
}
.header_logo_wrap {
  max-width: 212px;
}
.depth_2_left_cover {
  max-width: 580px;
  margin-left: auto;
  margin-right: 75px;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 50px;
  padding: 35px 0;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.depth_2_left_cover > div {
  width: 100%;
}
.depth_2_left_l {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  max-width: 220px;
}
.h_telnum {
  background: rgba(7, 59, 132, 0.6);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  padding: 10px 15px;
  letter-spacing: 0.025em;
  text-align: center;
}
.h_telnum img {
  width: 1.2em;
}
.depth_2_tit {
  background: #004eb1;
  padding: 3px 20px 3px 12px;
  border-radius: 30px;
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.depth_2_tit::before {
  content: "";
  width: 1.5em;
  aspect-ratio: 1/1;
  background: url("../img/depth_2_tit-icon1.png") no-repeat center center /
    contain;
}
.depth_2_left_r.im .depth_2_tit {
  background: #358739;
}
.depth_2_left_r.im .depth_2_tit::before {
  background: url("../img/depth_2_tit-icon2.png") no-repeat center center /
    contain;
}

.gnb_2depth_wrap ol li {
  /* font-family: "Pretendard Variable"; */
  color: #2a2e33;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 0.7rem;
  padding-left: 20px;
  position: relative;
}

.gnb_2depth_wrap ol li::before {
  content: "";
  width: 5px;
  aspect-ratio: 1/1;
  background: #004eb1;
  border-radius: 50%;
  display: block;
  margin-right: 10px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.gnb_2depth_wrap .depth_2_left_r.im ol li::before {
  background: #358739;
}
.gnb_2depth_wrap ol li span {
  font-weight: 600;
  width: 85px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  color: #004eb1;
}
.gnb_2depth_wrap .depth_2_left_r.im ol li span {
  width: 65px;
  color: #358739;
}
.gnb_2depth_wrap ol li span.lunch {
  color: #333 !important;
  font-weight: 400;
}
.gnb_2depth_wrap ol li b {
  color: #00316e;
  font-weight: 600;
}
.gnb_2depth_wrap .depth_2_left_r.im ol li b {
  color: #144d00;
  font-weight: 600;
}
.gnb_2depth_wrap ol + div {
  font-size: 14px;
  color: rgba(42, 46, 51, 0.7);
  font-weight: 400;
}

/*  */
.header_menu .gnb_2depth_wrap .depth_2_right {
  padding: 50px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.header_menu .gnb_2depth_wrap .depth_2_right ul {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}
.header_menu .gnb_2depth_wrap .depth_2_right .grid {
  grid-template-columns: repeat(2, 1fr);
}
.header_menu .gnb_2depth_wrap .depth_2_right a {
  cursor: pointer;
  display: block;
  min-width: 180px;
}
.header_menu .gnb_2depth_wrap ul li:not(:last-of-type) {
  margin-bottom: 0;
}
.header_menu .gnb_2depth_wrap ul li {
  font-weight: 400;
  color: #666;
  font-size: 18px;
}
.header_menu .gnb_2depth_wrap ul li:hover {
  color: #333;
  font-weight: 600;
}

/* depth_3 */
.depth_3_wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-height: 400px;
}
.depth_3_wrap li {
  min-width: 200px;
}

.h_right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
header .h_q_icon {
  display: flex;
  gap: 1rem;
  align-items: center;
  line-height: 0;
}
header .h_q_icon img {
  max-width: 50px;
}
header .h_q_icon .h_call {
  display: flex;
  align-items: center;
  gap: 1rem;
}
header .h_q_icon .h_call_txt {
  line-height: 1;
}
header .h_q_icon .h_call_txt i {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.5rem;
}
header .h_q_icon .h_call_txt b {
  font-size: 2.4rem;
  display: block;
  color: #003686;
}
header .open_menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  gap: 6px;
  padding: 0;
  transition: background 0.2s ease;
}
header .open_menu:active {
  background: rgba(0, 0, 0, 0.04);
}
header .open_menu span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1f2937;
  border-radius: 2px;
  transition: all 0.3s ease;
}
header .open_menu span:nth-child(2) {
  width: 16px;
}

@media (min-width: 0px) and (max-width: 1920px) {
  .header_menu {
    width: 60%;
  }
  .header_menu .gnb > li > a {
    padding: 0 20px;
  }
}

@media (min-width: 0px) and (max-width: 1520px) {
  .header_container {
    height: 65px;
  }
  .h_logo {
    max-width: 210px;
  }
  header .header_inner {
    height: 65px;
  }
  .header_menu .gnb > li > .gnb_2depth_wrap {
    top: 65px;
  }
  .header_menu .gnb > li > a {
    padding: 0 10px;
  }
  .header_menu .gnb {
    height: 65px;
  }
  .hidden_gnb > li > a img {
    width: 24px;
  }
  .header_menu .gnb_2depth_wrap .depth_2_right {
    padding: 60px;
    padding-bottom: 0;
  }
  .header_menu .gnb > li > .gnb_2depth_wrap {
    background-size: 28%;
  }
  .depth_2_left_l {
    max-width: 240px;
  }
  .h_telnum {
    font-size: 22px;
  }
  .depth_2_left_cover {
    gap: 40px;
    width: 90%;
    margin-left: 5%;
  }
  .hidden_menu .time_table::before,
  .hidden_menu .time_table::after {
    display: none;
  }
}

@media (min-width: 0px) and (max-width: 1280px) {
  .logo-wrap {
    justify-content: space-between;
    padding: 0 20px;
  }
  .h_logo {
    filter: none;
  }
  .header_inner .header_menu .gnb {
    display: none !important;
  }
  header .h_q_icon img {
    max-width: 40px;
  }
  .header_menu {
    display: none !important;
  }
  header .open_menu {
    display: flex !important;
  }
  .h_right {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
  }
  header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
  header .gnb > li > a {
    color: #000;
  }
  header .login_icon,
  header .h_logo {
    max-width: 230px;
  }
  header.scroll,
  header:hover {
    background: #ffffff;
  }
  header .header_inner {
    padding: 0 0.4rem;
  }
}

@media (min-width: 0px) and (max-width: 900px) {
  .h_call_txt {
    display: none;
  }
  .hidden_menu {
    width: 92%;
    max-width: 380px;
  }
}
@media (min-width: 0px) and (max-width: 500px) {
  .h_logo {
    width: 220px;
  }
  .h_right {
    margin-right: 0.5rem;
    gap: 0.8rem;
  }
  .hidden_gnb > li > a {
    font-size: 1.6rem;
    padding: 1.2rem 1.4rem;
  }
  .hidden_bottom {
    padding: 1.8rem 2rem;
  }
  .hidden_bottom .time_table {
    font-size: 1.3rem;
  }
  .hidden_bottom .time_table b {
    font-size: 1.2rem;
  }
  .hidden_bottom .time_table span {
    font-size: 1.25rem;
  }
}
@media (min-width: 0px) and (max-width: 350px) {
  header .h_q_icon {
    display: none;
  }
  .hidden_gnb > li > a {
    font-size: 1.5rem;
    padding: 1.1rem 1.2rem;
  }
}
