@charset "UTF-8";

html,
body {
  height: 100%;
}

body.fixed {
  overflow-y: hidden;
}

.main {
  width: 100%;
  height: 100%;
  padding-top: 70px;
  display: flex;
}
.login_main {
  width: 100%;
  height: 100%;
  display: flex;
}

#wrap {
  width: 100%;
  min-height: 100%;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1314px;
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 101;
  background-color: #0d1731;
  transition: 0.35s;
}
.header .header__inner {
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .header__inner .right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header .header__inner .right .line {
  border: 0;
  background: #3d455a;
  width: 2px;
  height: 14px;
}
.header .header__inner .right .header_lnb {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-weight: 400;
  font-size: 16px;
}
.header .header__inner .right .header_lnb img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  overflow: hidden;
  display: inline-block;
  margin-right: 8px;
}
.header .header__inner .right .header_lnb .num {
  margin-left: 4px;
  height: 20px;
  line-height: 20px;
  background-color: #d73333;
  border-radius: 99px;
  padding: 0 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
}
.header .header__inner .right .header_lnb_mypage {
  display: flex;
  align-items: center;
}
.header .header__inner .right .header_lnb_mypage img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  overflow: hidden;
  display: inline-block;
  margin-right: 8px;
}
.header .header__inner .right .header_lnb_mypage h6 {
  color: #0af58f;
  font-weight: 400;
  font-size: 16px;
}
.header .header__inner .right .header_mypage_wrap {
  position: relative;
}
.header .header__inner .right .header_lnb_mypage .arr_down {
  width: 20px;
  height: 20px;
  background: url(../images/icon/icon_header_arrow_down.svg) no-repeat center center / contain;
  margin-left: 4px;
}
.header .header__inner .right .header_mypage_wrap .mypage_list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border-radius: 4px;
  text-align: center;
  display: none;
}
.header .header__inner .right .header_mypage_wrap.active .mypage_list {
  display: block;
}

.header .header__inner .right .header_mypage_wrap.active .header_lnb_mypage .arr_down {
  rotate: 180deg;
}
.header .header__inner .right .header_mypage_wrap .mypage_list li .list--item {
  height: 27px;
  line-height: 27px;
  color: #151515;
  font-weight: 400;
  font-size: 15px;
  border-radius: 4px;
  width: 100%;
  display: inline-block;
}

.header .header__inner .right .header_mypage_wrap .mypage_list li .list--item:hover {
  background: #e7e8ea;
}
.header .header__inner .left {
  max-width: 921px;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 130px;
  display: flex;
}
.header .header__inner .left .logo_wrap {
  display: inline-block;
  width: 106px;
}
.header .header__inner .left .logo_wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header .header__inner .left .search--area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}
.header .header__inner .left .header_search {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header .header__inner .left .gap8 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header .header__inner .left .header_search h6 {
  color: #0af58f;
  font-weight: 600;
  font-size: 16px;
}
.header .header__inner .left .header-search {
  width: 38px;
  height: 38px;
  background: #09df82;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header .header__inner .left .header-search::after {
  width: 20px;
  background: url(../images/icon/icon_search_bl.svg) no-repeat center center/contain;
  height: 20px;
  content: "";
  display: inline-block;
}
.header .header__inner .left .ranking__area {
  flex-shrink: 0;
}
.header .header__inner .left .search_ranking {
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.header .header__inner .left .search_ranking h4 {
  padding-left: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}
.header .header__inner .left .search_ranking .ranking_txt {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
.header .header__inner .left .search_ranking .ranking_txt .num {
  flex: 0 0 22px;
  width: 22px;
  height: 18px;
  line-height: 18px;
  background: #e7e8ea;
  border-radius: 2px;
  text-align: center;
  color: #0d1731;
  font-weight: 700;
  font-size: 12px;
}
.header .header__inner .left .search_ranking .ranking_txt h6 {
  flex: 0 0 150px;
  width: 150px;
  min-width: 0;
  color: #ffffff;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header .header__inner .left .search_ranking .ranking_txt .ranking {
  flex-shrink: 0;
}
.ranking {
  display: flex;
  gap: 2px;
  align-items: center;
  min-width: 30px;
}
.ranking span {
  font-weight: 400;
  font-size: 14px;
  width: 18px;
  text-align: center;
}
.ranking.up {
  color: #d73333;
}
.ranking.down {
  color: #0070ff;
}
.ranking::before {
  content: "";
  width: 10px;
  height: 8px;
  flex-shrink: 0;
}
.ranking.up::before {
  background: url(../images/icon/icon_up.svg) no-repeat center center/contain;
}
.ranking.down::before {
  background: url(../images/icon/icon_down.svg) no-repeat center center/contain;
}
.ranking.unchanged::before {
  background: url(../images/icon/icon_Unchanged.svg) no-repeat center center/contain;
}
.ranking__area {
  position: relative;
}
.ranking_layer {
  position: absolute;
  top: 0; /* 위치는 상황에 맞게 */
  left: 0;
  width: 215px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 20px 0 #0000000d, 0 3px 15px 0 #0000000a;
  padding: 16px;
  display: none;
  z-index: 100;
  padding: 12px 8px;
}

.ranking_layer.active {
  display: block;
}
.ranking_layer h5 {
  padding: 0 4px;
  color: #0d1731;
  font-weight: 700;
  font-size: 15px;
  line-height: 130%;
  margin-bottom: 10px;
}
.ranking_layer ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ranking_layer ul li {
  height: 27px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
}
.ranking_layer ul li:hover {
  background: #e7e8ea;
}
.ranking_layer ul li .rank {
  margin-right: 8px;
  color: #0d1731;
  font-weight: 700;
  font-size: 14px;
}
.ranking_layer ul li .ranking {
  margin-left: 16px;
}
.ranking_layer ul li h6 {
  width: 100%;
  color: #151515;
  font-weight: 400;
  font-size: 15px;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-word;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.side_lnb {
  background: #1c3062;
  width: 240px;
  min-height: calc(100vh - 70px);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side_lnb .btn-lnb {
  height: 48px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 400;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  position: relative;
  transition: 0.2s;
}
.side_lnb .btn-lnb:hover:not(.active) {
  opacity: 0.7;
}
.side_lnb .btn-lnb.type-btn::after {
  content: "";
  width: 12px;
  height: 6.5px;
  background: url(../images/icon/icon_arrow_down.svg) no-repeat center center/contain;
  display: inline-block;
  position: absolute;
  right: 24px;
}
.side_lnb .btn-lnb.active.type-btn::after {
  background: url(../images/icon/icon_arrow_down_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.active {
  background: #151515;
  color: #0af58f;
  font-weight: 600;
}

.side_lnb .btn-lnb::before {
  content: "";
  width: 24px;
  height: 24px;
  display: inline-block;
}
.side_lnb .btn-lnb.lnb01::before {
  background: url(../images/icon/lnb01.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb01.active::before {
  background: url(../images/icon/lnb01_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb02::before {
  background: url(../images/icon/lnb02.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb02.active::before {
  background: url(../images/icon/lnb02_active.svg) no-repeat center center/contain;
}

.side_lnb .btn-lnb.lnb03::before {
  background: url(../images/icon/lnb03.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb03.active::before {
  background: url(../images/icon/lnb03_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb04::before {
  background: url(../images/icon/lnb04.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb04.active::before {
  background: url(../images/icon/lnb04_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb05::before {
  background: url(../images/icon/lnb05.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb05.active::before {
  background: url(../images/icon/lnb05_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb06::before {
  background: url(../images/icon/lnb06.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb06.active::before {
  background: url(../images/icon/lnb06_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb07::before {
  background: url(../images/icon/lnb07.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb07.active::before {
  background: url(../images/icon/lnb07_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb08::before {
  background: url(../images/icon/lnb08.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb08.active::before {
  background: url(../images/icon/lnb08_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb09::before {
  background: url(../images/icon/lnb09.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb09.active::before {
  background: url(../images/icon/lnb09_active.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb10::before {
  background: url(../images/icon/lnb10.svg) no-repeat center center/contain;
}
.side_lnb .btn-lnb.lnb10.active::before {
  background: url(../images/icon/lnb10_active.svg) no-repeat center center/contain;
}
.side_lnb .lnb__list {
  padding: 8px 0;
  background: #06153b;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side_lnb .lnb__list a {
  height: 39px;
  line-height: 39px;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  padding: 0 24px;
  transition: 0.2s;
}
.side_lnb .lnb__list a:hover {
  color: #b9bfce;
}

.side_lnb .lnb__list a.active {
  color: #0af58f;
  font-weight: 600;
}

/* Header — Mobile (Figma Menu Bar) */
.header .header__inner--mo {
  display: none;
}

.header_mo_left {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.header_mo_logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.header_mo_logo img {
  width: 85px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.header_mo_nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
}

.header_mo_nav_link {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.header_mo_nav_link--active {
  color: #0af58f;
}

.header_mo_nav_divider {
  width: 2px;
  height: 14px;
  background: #3d455a;
  flex-shrink: 0;
}

.header_mo_btn_logout {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header_mo_btn_logout img {
  width: 20px;
  height: 20px;
  display: block;
}

@media screen and (max-width: 768px) {
  .header:has(.header__inner--mo) {
    height: 60px;
  }

  .header:has(.header__inner--mo) .header__inner--desktop {
    display: none;
  }

  .header:has(.header__inner--mo) .header__inner--mo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 100%;
  }
}
