/* ===== 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;
}

/* -- 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 {
  background: none;
  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 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);
}
.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: 80px;
  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: rgba(52, 56, 60, 1);
  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: 253px;
  line-height: 0;
  filter: invert(100%) sepia(100%) saturate(0) hue-rotate(200deg)
    brightness(200%) contrast(201%);
}

header .gnb > li > a {
  color: #fff;
}

header .h_left {
  height: 100%;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  gap: 5rem;
}
header .header_inner {
  margin: 0 auto;
  height: 100%;
  width: 95%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header_menu {
  display: flex;
  width: 50%;
}
.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 30px;
}
.header_menu .gnb > li > a img {
  width: 30px;
  height: 30px;
  line-height: 0px;
}
/* 1뎁스 hover: 상단 중앙 동그라미 */
.header_menu .gnb > li > a::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.2);
  transform: scale(0);
  transform-origin: center center;
  transition: transform 250ms ease-in-out;
  pointer-events: none;
}

.header_menu .gnb > li:hover > a::before {
  transform: scale(1);
}
.menu_left_deco {
  aspect-ratio: 3/2;
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 100px;
  left: 0;
}
/*  */
.header_menu .gnb > li {
  height: 100%;
}

.header_menu .gnb > li:hover .gnb_2depth_wrap {
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
}
.header_menu .gnb > li > .gnb_2depth_wrap {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 80px;
  background: #fff;
  width: 100%;
  left: 0;

  display: flex;
  transition: top 0.4s ease;
}
/* 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 {
  position: relative;
  background: #edf2f9;
}
.depth_2_left::before {
  content: "";
  display: block;
  width: 30%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: url("../img/depth_2_left-bg-left.png") no-repeat 0% 100% / contain;
  pointer-events: none;
}
.depth_2_left::after {
  content: "";
  display: block;
  width: 100%;
  height: 60%;
  position: absolute;
  right: 0;
  bottom: 0;
  background: url("../img/depth_2_left-bg-right.png") no-repeat 100% 100% /
    contain;
  pointer-events: none;
}

.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 {
  color: rgba(93, 128, 177, 0.6);
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.depth_2_tit img {
  max-width: 1em;
}
.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;
}
.gnb_2depth_wrap ol li span {
  font-weight: 600;
  width: 75px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  color: #154385;
}
.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: #7b8591;
  font-size: 18px;
}
.header_menu .gnb_2depth_wrap ul li:hover {
  color: #004277;
  font-weight: 700;
  & svg > path {
    fill: #004277;
  }
}
/* 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 {
    height: 65px;
  }
  .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: 180px;
  }
  .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;
  }
}
