
/* sc1 ============================================== */
.sc1 {
  position: relative;
  /* background: var(--brandColor); */
  z-index: 1;
}
.hidden {
  display: none;
}
.sc1 ul{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}
.sc1 ul li{
  margin: 0 auto;
}
.sc1 ul li a{
  text-align: center;
}
.sc1 ul li .img_wrap{
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
}
.sc1 ul li h3{
  margin-top: 15px;
  font-size: 17px;
  font-weight: 600;
}

/* 더보기 */
.sc1 button{
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 60px auto 0;
  font-size: 17px;
  font-weight: 600;
}
.sc1 button span{
  position: relative;
  padding-left: 35px;
}
.sc1 .btn_more span::before, .sc1 .btn_fold span::before{
  content: '';
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
}
.sc1 .btn_more span::before{
  background: url(../img/btn_plus.svg) no-repeat center/contain;
}
.sc1 .btn_fold span::before{
  background: url(../img/btn_arrowup.svg) no-repeat center/contain;
}



/* group_ad ============================================== */
.group_ad{
  background: var(--brandColor3);
  border-radius: 170px 0 0 0;
}


/* sc_module (sc2 & sc3) ============================================== */
.sc_module ul{
  display: flex;
  gap: 15px;
}
.sc_module ul li{
  position: relative;
  flex: 1;
}
.sc_module ul li a{
  width: 100%;
}
.sc_module ul li .img_wrap{
  width: 100%;
  height: 180px;
}
.sc_module ul li .txt_box{
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #ddd;
}
.sc_module ul li .txt_box h3{
  margin-bottom: 15px;
  font-size: 17px;
  font-weight: 600;
}
.sc_module ul li .txt_box .txt{
  font-size: 14px;
  color: #444;
}
.sc_module ul li .txt_box .date{
  margin-bottom: 6px;
}

.sc3 ul li::before {
  content: '진행중';
  position: absolute;
  top: 10px;
  left: 15px;
  padding: 5px 10px;
  font-size: 14px;
  background: var(--brandColor);
  color: #fff;
  border-radius: 20px;
}



/* 공지사항 & 회원누적순위 ============================================== */
.flex_wrap{
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.sc4{
  flex: 1;
}
.sc5{
  width: 40%;
}
.sc4 table, .sc5 .col_top{
  height: 350px;
}


/* 공지사항 ============================================== */
.sc4 table tr td:nth-child(1){width: 52px; text-align: center;}
.sc4 table tr td:nth-child(2){flex: 1;}
.sc4 table tr td:nth-child(3){width: 75px; text-align: center;}

.sc4 table{
  height: 350px;
}
.sc4 table tbody {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.sc4 table tr {
  flex: 1;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
}
.sc4 table tr:nth-child(1) {
  border-top: 2px solid #bbb;
}
.sc4 table tr:last-child {
  border-bottom: 2px solid #bbb;
}
.sc4 table tr .cate span{
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brandColor);
  background: #fff7ee;
  border: 1px solid var(--brandColor);
  border-radius: 20px;
}
.sc4 table tr .title{
  line-height: 45px;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.sc4 table tr .title a{
  width: 100%;
}
.sc4 table tr .date{
  font-size: 14px;
  color: #888;
}


/* 회원누적순위 ============================================== */
.sc5 ul{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sc5 ul li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.sc5 ul li .rank{
  display: flex;
  gap: 30px;
  font-size: 17px;
  font-weight: 500;
}
.sc5 ul li .rank em{
  font-weight: 700;
}
.sc5 ul li:nth-child(1){
  padding: 30px 20px;
  background: var(--brandColor2);
  color: #fff;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
.sc5 ul li:nth-child(1) .rank em{
  font-size: 20px;
}
.sc5 ul li .point{
  font-size: 17px;
  font-weight: 600;
}




/* 팝업 ============================================== */
.group_popup{
  position: fixed; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.5); 
  z-index: 9999; 
  display: none;
}
.group_popup .popup_area{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute; 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%);
  width: 600px; 
  height: 500px; 
  background: #eee; 
  border-radius: 15px;
  overflow: hidden;
}
.group_popup .popup_area img{
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group_popup .popup_area .close_wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-top: 1px solid #ddd;
}
.group_popup .popup_area .close_wrap .btn_close{
  font-weight: 600;
}

/* 체크박스 스타일 */
.group_popup input[type=checkbox] {
  display: none;
}
.group_popup .close_box{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--formColor) ;
  border-radius: 30px;
}
.group_popup .close_box label{
  position: relative;
  padding-left: 30px;
  color: #888;
  cursor: pointer;
}
.group_popup .close_box label::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 50%;
}
.group_popup input[type=checkbox]:checked + label::before{
  border: 0;
  background: url(../img/check.svg) var(--brandColor2) no-repeat center/contain;
}

.none_scroll{
  overflow: hidden;
  scrollbar-gutter: stable;
}



/* 1350 ~ 1024 */
@media (max-width: 1350px) {
  .group_ad {
    border-radius: 100px 0 0 0;
  }
}

/* 1023 ~ 960 */
@media (max-width: 1023px) {
}

/* 959 ~ 768 */
@media (max-width: 959px) {
  .sc1 ul {
    grid-template-columns: repeat(4, 1fr);
  }

  .sc_module ul{
    grid-template-columns: repeat(3, 1fr);
  }
  .sc_module ul li:last-child{
    display: none;
  }
}

/* 767 ~ 587 */
@media (max-width: 767px) {
  .sc1 ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .sc1 ul li h3 {
    font-size: 15px;
    font-weight: 500;
  }
  .sc1 button{
    font-size: 16px;
  }
  .sc1 button span {
    padding-left: 30px;
  }
  .sc1 .btn_more span::before, .sc1 .btn_fold span::before {
    width: 18px;
    height: 18px;
  }


  .sc_module ul{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .sc_module ul li:last-child{
    display: block;
  }
  .sc_module ul li .img_wrap {
    width: 100%;
    height: 170px;
  }
  .sc_module ul li .txt_box h3 {
    font-size: 16px;
  }


  .flex_wrap{
    flex-direction: column;
    gap: 0;
  }
  .sc5 {
    width: 100%;
  }
}

/* 586 ~ 431 */
@media (max-width: 586px) {
  .sc1 ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .sc1 ul li .img_wrap {
    width: 135px;
    height: 135px;
  }
  .sc1 button {
    margin: 35px auto 0;
  }

  .group_ad {
    border-radius: 70px 0 0 0;
  }
  .sc_module ul {
    gap: 10px;
  }
  .sc_module ul li .img_wrap {
    width: 100%;
    height: 160px;
  }
  .sc_module ul li .txt_box h3 {
    font-size: 15px;
  }

  .sc3 ul li::before {
    top: 10px;
    left: 10px;
    font-size: 12px;
  }

  .sc4 table {
    height: 290px;
  }
  .sc4 table tr .title{
    font-size: 15px;
  }
  .sc4 table tr .date{
    font-size: 13px;
  }
  .sc4 table tr .cate span{
    padding: 3px 7px;
    font-size: 11px;
  }
  

  .sc4 table, .sc5 .col_top {
    height: 285px;
  }
  .sc5 ul li {
    padding: 15px 20px;
  }
  .sc5 ul li:nth-child(1) {
    padding: 20px 20px;
  }
}

/* 430 ~ 360 */
@media (max-width: 430px) {
  .group_ad {
    border-radius: 0;
  }
  .sc_module ul {
    grid-template-columns: repeat(1, 1fr);
  }
  .sc_module ul li .img_wrap {
    width: 100%;
    height: 200px;
  }

  .sc5 ul li .rank {
    gap: 20px;
    font-size: 15px;
  }
  .sc5 ul li:nth-child(1) .rank em {
    font-size: 17px;
  }
  .sc5 ul li .point {
    font-size: 15px;
  }
}