body {
  font-family: var(--pretendard);
  overflow-x: hidden;
}

header {
  width: 100%;
  position: relative;
}

#banner {
  top: 0;
  left: 0;
  padding-top: 100px;
  background: url("../img/1_main/banner_background.png") no-repeat center/cover;
  overflow-x: hidden;
}

/* (2) 배너 텍스트 */
.main_text {
  margin-top: 40px;
}

.main_title {
  font-size: 44px;
  font-weight: 700;
  color: var(--font_color_bright);
  letter-spacing: -1px;
  margin: 40px 0;
}

.main_text .info_text {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.main_text .info_text .info_title {
  width: 200px;
  font-size: 30px;
  font-weight: 500;
  color: #ededed;
}

.main_text .info_text .info_desc {
  font-size: 18px;
  font-weight: 400;
  color: var(--font_color_bright);
}

.main_text .info_text .arrow {
  position: absolute;
  right: 300px;
  animation: heartbeat 1.5s ease-in-out infinite both;
  cursor: pointer;
  border-radius: 50%;
}

.main_text .info_text .arrow:hover {
  box-shadow: 0 0 8px 2px #fff;
}

@keyframes heartbeat {
  from {
    transform: scale(1);
    transform-origin: center center;
    animation-timing-function: ease-out;
  }

  10% {
    transform: scale(0.91);
    animation-timing-function: ease-in;
  }

  17% {
    transform: scale(0.98);
    animation-timing-function: ease-out;
  }

  33% {
    transform: scale(0.87);
    animation-timing-function: ease-in;
  }

  45% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}

/* 탭박스 */
.main_text .tab_box {
  margin-top: 20px;
  margin-left: 190px;
}

.main_text .tab_top,
.main_text .tab_bottom {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.main_text .tab_box .tab {
  padding: 6px 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 30px;
  color: #e6e3e3;
  font-size: 14px;
}

.main_text .tab_box .tab:hover {
  background-color: var(--primary_dark1);
}

.main_text .tab_box .active {
  background: var(--primary_color);
}

/* (3) 배너 슬라이드 스타일 */
.banner_slide {
  width: 100%;
  margin-top: 50px;
  position: relative;
}

/* 포스터 이미지 */
.banner_slide .post_img {
  width: 100%;
  height: 100%;
}

.banner_slide .post_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 슬라이드 안 텍스트는 숨김 */
.banner_slide .post_text {
  display: none;
}

.banner_info {
  text-align: center;
  color: var(--font_color_bright);
  line-height: 1.4;
  margin-top: 10px;
  min-height: 60px;
  /* 슬라이드 변경 시 흔들림 방지 */
}

.banner_info .info_title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.banner_info .info_date,
.banner_info .info_place {
  font-size: 15px;
  opacity: 0.85;
}

/* JS 슬라이드 Swiper */
.swiper {
  overflow: visible;
}

.swiper-slide {
  transition: transform 0.3s ease;
}

/* wrapper 애니메이션 부드럽게 */
.banner_slide .swiper-wrapper {
  transition-timing-function: linear;
}

/* 각 슬라이드 카드 */
.banner_slide .swiper-slide {
  width: 300px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner_info {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.banner_info.show {
  opacity: 1;
}

.banner_slide .swiper-slide.swiper-slide-active {
  box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.3s 0.5s ease-in-out;
}


/* 배너 반응형 스타일 */
@media (max-width:1240px) and (min-width:768px) {
  .main_title {
    font-size: 36px;
    /* 원래 50px → 살짝 축소 */
  }

  .main_text .info_text .info_title {
    font-size: 26px;
    /* 34px → 26px */
    width: 160px;
    /* 가로폭도 조금 줄임 */
  }

  .main_text .info_text .info_desc {
    font-size: 16px;
    /* 20px → 16px */
  }

  .main_text .tab_box {
    display: none;
  }

  .main_text .info_text .arrow {
    right: 100px;
  }
}

@media (max-width:767px) {
  .main_text {
    text-align: center;
    margin-top: 20px;
  }

  .main_title {
    font-size: 24px;
    line-height: 1.4;
  }

  .main_text .info_text {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }

  .main_text .info_text .info_title {
    width: auto;
    font-size: 18px;
    margin-bottom: 6px;
  }

  .main_text .info_text .info_desc {
    font-size: 14px;
  }

  /* 탭 박스는 모바일에서 완전히 숨김 */
  .main_text .tab_box {
    display: none;
  }

  .main_text .info_text .arrow {
    right: 60px;
  }

  .main_text .info_text .arrow img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width:500px) {
  .main_text .info_text .arrow {
    top: 300px;
    z-index: 999;
  }
}


/* ★ 1. 공연통계 섹션 스타일 */
#count_info {
  height: 110vh;
  background: url("../img/1_main/sec1_background.png") no-repeat center/cover;
}

#count_info .wrap {
  height: 100%;
  position: relative;
}

#count_info input {
  display: none;
}

#count_info .top_box {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: space-between;
}

#count_info .top_box .right_btn {
  height: 56px;
  background-color: var(--secondary_dark);
  border-radius: 30px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

#count_info .top_box .right_btn .tabs {
  width: 270px;
  height: 100%;
  background-color: var(--primary_light1);
  border-radius: 15px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

#count_info .top_box .right_btn .tabs::after {
  content: '';
  width: 90px;
  height: 100%;
  background-color: var(--primary_light2);
  border-radius: 15px;
  position: absolute;
  left: 0;
  transition: left 0.3s;
}

#count_info .top_box .right_btn label {
  font-size: 20px;
  color: #797979;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

#count_info .top_box .right_btn .date {
  font-size: 20px;
  color: var(--font_color_bright);
  line-height: 56px;
  height: 100%;
  overflow-y: hidden;
  /* 세로만 잘라 */
  overflow-x: visible;
  /* 가로는 보이게 */
  margin: 0 30px;
  /* 좌우 여백도 조금 줄여주기 */
  white-space: nowrap;
  /* 한 줄 유지 */
}

#count_info .top_box .right_btn .date>div {
  transition: margin-top 1s;
}

#count_info .bottom_box {
  width: 100%;
  height: 450px;
  position: absolute;
  overflow: hidden;
}

#count_info .bottom_box .count_box {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  overflow: hidden;
  transition: 2s;
}

#count_info .bottom_box .count_box .item {
  width: 19%;
  flex-shrink: 0;
  border-radius: 20px;
  color: var(--font_color_bright);
  font-size: 20px;
  font-weight: 500;
  align-content: center;
  text-align: center;
  line-height: 1.8;
  position: relative;
}

#count_info .bottom_box .count_box .item_count span {
  font-size: 50px;
}

#count_info .bottom_box .count_box .material-symbols-outlined {
  font-size: 50px;
}

#count_info .bottom_box .count_box .item_percent {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

#count_info .bottom_box .count_box .item:nth-child(1) {
  height: 290px;
  background-color: var(--secondary_orange);
}

#count_info .bottom_box .count_box .item:nth-child(2) {
  height: 340px;
  background: url("../img/1_main/sec1_img_2.png") no-repeat;
}

#count_info .bottom_box .count_box .item:nth-child(3) {
  height: 400px;
  background: url("../img/1_main/sec1_img_1.png");
  background-size: cover;
}

#count_info .bottom_box .count_box .item:nth-child(4) {
  height: 320px;
  background-color: var(--primary_light3);
}

#count_info .bottom_box .count_box .item:nth-child(5) {
  height: 230px;
  background-color: var(--secondary_blue);
}

/* input checked style */
#count_info #tab1:checked~.top_box label[for="tab1"],
#count_info #tab2:checked~.top_box label[for="tab2"],
#count_info #tab3:checked~.top_box label[for="tab3"] {
  font-weight: 700;
  color: var(--font_color_bright);
}

#count_info #tab1:checked~.top_box .right_btn .tabs::after {
  left: 0;
}

#count_info #tab2:checked~.top_box .right_btn .tabs::after {
  left: 90px;
}

#count_info #tab3:checked~.top_box .right_btn .tabs::after {
  left: 180px;
}

#count_info #tab1:checked~.top_box .right_btn .date1 {
  margin-top: 0;
}

#count_info #tab2:checked~.top_box .right_btn .date1 {
  margin-top: -56px;
}

#count_info #tab3:checked~.top_box .right_btn .date1 {
  margin-top: -112px;
}

#count_info #tab1:checked~.bottom_box .count_box.tab1 {
  margin-top: 0;
}

#count_info #tab2:checked~.bottom_box .count_box.tab1 {
  margin-top: -450px;
}

#count_info #tab3:checked~.bottom_box .count_box.tab1 {
  margin-top: -900px;
}

#count_info #tab1:checked~.bottom_box .count_box:not(.tab1) {
  opacity: 0;
}

#count_info #tab2:checked~.bottom_box .count_box:not(.tab2) {
  opacity: 0;
}

#count_info #tab3:checked~.bottom_box .count_box:not(.tab3) {
  opacity: 0;
}

/* 공연통계 반응형 스타일 */
@media (max-width:1200px) {
  #count_info .bottom_box .count_box {
    height: 90%;
  }

  #count_info #tab2:checked~.bottom_box .count_box.tab1 {
    margin-top: -400px;
  }

  #count_info #tab3:checked~.bottom_box .count_box.tab1 {
    margin-top: -800px;
  }

  #count_info .top_box {
    height: 160px;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 10px;
  }

  #count_info .top_box .right_btn {
    width: 500px;
    align-items: flex-start;

  }

  #count_info .top_box .right_btn .date {
    font-size: 18px;
    margin: 0 24px;
  }

  #count_info .top_box .right_btn label,
  #count_info .top_box .right_btn .date {
    font-size: 16px;
  }

  #count_info .bottom_box .count_box .item {
    font-size: 16px;
  }

  #count_info .bottom_box .count_box .item_count span {
    font-size: 36px;
  }

  #count_info .bottom_box .count_box .item:nth-child(1) {
    height: 240px;
  }

  #count_info .bottom_box .count_box .item:nth-child(2) {
    height: 280px;
  }

  #count_info .bottom_box .count_box .item:nth-child(3) {
    height: 370px;
  }

  #count_info .bottom_box .count_box .item:nth-child(4) {
    height: 260px;
  }

  #count_info .bottom_box .count_box .item:nth-child(5) {
    height: 180px;
  }
}

@media (max-width:840px) {
  #count_info {
    height: auto;
    padding: 60px 0;
  }

  #count_info .top_box {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 10px;
  }

  #count_info .top_box .right_btn {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: none;
    padding: 0;
  }

  #count_info .top_box .right_btn .tabs {
    width: 100%;
    height: 48px;
    border-radius: 12px;
  }

  #count_info .top_box .right_btn label {
    font-size: 16px;
  }

  #count_info .top_box .right_btn .date {
    margin-top: 10px;
    font-size: 14px;
    display: none;
  }

  #count_info .bottom_box {
    position: static;
    height: auto;
    margin-top: 20px;
  }

  #count_info .top_box .right_btn .tabs::after {
    width: calc(100% / 3);
  }

  #count_info #tab2:checked~.top_box .right_btn .tabs::after {
    left: calc(100% / 3);
  }

  #count_info #tab3:checked~.top_box .right_btn .tabs::after {
    left: calc(100% * (2 / 3));
  }

  /* 모바일에서는 count_box를 모두 숨기고 선택된 것만 표시 */
  #count_info .bottom_box .count_box {
    display: none;
    /* 기본 숨김 */
    grid-template-columns: repeat(2, 1fr);
    /* 2열 구조 */
    gap: 14px;
    justify-items: center;
  }

  /* 각 input이 checked일 때 해당 count_box만 보이게 */
  #count_info #tab1:checked~.bottom_box .count_box.tab1 {
    display: grid;
  }

  #count_info #tab2:checked~.bottom_box .count_box.tab2 {
    display: grid;
  }

  #count_info #tab3:checked~.bottom_box .count_box.tab3 {
    display: grid;
  }

  #count_info .bottom_box .count_box .item {
    width: 100%;
    height: auto;
    padding: 20px 0;
    font-size: 14px;
    border-radius: 16px;
    text-align: center;
    line-height: 1.5;
  }

  #count_info .bottom_box .count_box .item_count span {
    font-size: 28px;
  }

  /* 높이값으로 지정돼 있던 부분 제거 */
  #count_info .bottom_box .count_box .item:nth-child(n) {
    height: 200px;
    background-size: cover;
  }

  /* 마지막 버튼은 한 줄 전체 차지 */
  #count_info .bottom_box .count_box .item:last-child {
    grid-column: 1 / 3;
    height: 100px;
  }

  /* 데스크톱용 margin-top 애니메이션 제거 */
  #count_info #tab1:checked~.bottom_box .count_box.tab1,
  #count_info #tab2:checked~.bottom_box .count_box.tab1,
  #count_info #tab3:checked~.bottom_box .count_box.tab1 {
    margin-top: 0;
  }
}


/* ★ 2.예매통계 섹션 스타일 */

#reservation {
  height: 100vh;
  overflow: hidden;
  background: url("../img/1_main/sec2_background.jpg") no-repeat center/cover;
  position: relative;
  padding: 100px 0 80px;
  color: var(--font_color_bright);
}

/* 텍스트는 위 레이어 */
#reservation .text_wrap {
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

#reservation .sub_title {
  color: var(--font_color_bright);
}

#reservation .title_desc {
  color: var(--font_color_bright);
}

#reservation .material-symbols-outlined {
  font-size: 40px;
  background-color: #a097f9;
  border-radius: 50%;
  margin-left: 30px;
}

#reservation .show_count {
  margin-top: 100px;
}

#reservation .body_title {
  font-weight: 300;
  font-size: 20px;
  margin-bottom: 20px;
}

#reservation .text_wrap .about_count {
  width: 100%;
  display: flex;
  align-items: center;
  font-size: 18px;
}

#reservation .text_wrap .about_count p {
  font-size: 20px;
}

#reservation .text_wrap .about_count img {
  width: 10px;
  height: 10px;
}

/* 그래프 영역 - PC에서는 배경처럼 크게 */
#reservation .graph {
  position: absolute;
  bottom: -10vh;
  /* 아래로 조금 내리기 */
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  max-width: none;
  margin-top: 0;
  z-index: 1;
}

#reservation .graph .pc_graph {
  width: 100%;
  height: auto;
  display: block;
}

/* #reservation .graph .m_graph {
  display: none;
} */

/* 선 애니메이션 */
#graph_path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.group_text {
  opacity: 0;
}

#group_text1 {
  animation: show 0.5s 1s ease forwards;
}

#group_text2 {
  animation: show 0.5s 1.5s ease forwards;
}

#group_text3 {
  animation: show 0.5s 2s ease forwards;
}

#group_text4 {
  animation: show 0.5s 2.5s ease forwards;
}

#group_text5 {
  animation: show 0.5s 3s ease forwards;
}

#group_text6 {
  animation: show 0.5s 3.5s ease forwards;
}

#group_text7 {
  animation: show 0.5s 4s ease forwards;
}

/* 반응형 */
@media (max-width:1280px) {
  #reservation .graph {
    overflow: hidden;
  }

  #reservation .graph .pc_graph {
    margin-top: 20%;
  }

  #reservation .graph .pc_graph g text {
    font-size: 30px;
  }
}

@media (max-width: 840px) {

  /* 섹션이 내용만큼 높이 */
  #reservation {
   display: none; 
}
}

/* ★ 3. 코피스 섹션 시작 */
#kopis {
  background: url("../img/1_main/sec3_background.jpg") no-repeat center/cover;
  overflow: visible;
}

#kopis .top_box {
  height: auto;
  display: flex;
  justify-content: start;
  gap: 100px;
}

#kopis .sub_title {
  margin-top: 0;
}

#kopis .about_text {
  width: 70%;
  font-size: 22px;
  color: #1c1c1c;
  margin-top: 30px;
  line-height: 1.6;
  margin-bottom: 30px;
}

#kopis .about_text span {
  font-weight: 600;
}

#kopis .more_view_btn {
  display: flex;
  justify-content: end;
  margin-right: 150px;
  font-size: 18px;
}

#kopis .top_text {
  margin-left: 50px;
  margin-bottom: 50px;
  font-size: 20px;
  margin-left: 100px;
}

#kopis .contents {
  width: 100%;
  padding: 40px;
  margin-right: 100px;
}

#kopis .items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

#kopis .item {
  width: clamp(250px, 25%, 365px);
  height: 234px;
  border-radius: 20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  padding: 2%;
  color: var(--font_color_bright);
}

#kopis .item .title {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 10px;
}

#kopis .item .count {
  display: flex;
}

#kopis .item .count div:nth-child(2) {
  margin-top: 40px;
  margin-left: 5px;
}

#kopis .item .count .number {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 700;
}

#kopis .item:nth-child(1) {
  background-image: url("../img/1_main/sec3_image_1.jpg");
}

#kopis .item:nth-child(2) {
  background-image: url("../img/1_main/sec3_image_2.jpg");
}

#kopis .item:nth-child(3) {
  background-image: url("../img/1_main/sec3_image_3.jpg");
}

#kopis .item:nth-child(4) {
  background-image: url("../img/1_main/sec3_image_4.jpg");
}

#kopis .item:nth-child(5) {
  background-image: url("../img/1_main/sec3_image_5.jpg");
}

#kopis .item:nth-child(6) {
  background-image: url("../img/1_main/sec3_image_6.jpg");
}

/* kopis 반응형 스타일 */
@media (max-width:1200px) {
  #kopis {
    padding-top: 50px;
  }

  #kopis .top_box {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  #kopis .item .count div:nth-child(2) {
    margin-top: 0;
    line-height: 60px;
  }
}

@media (max-width:860px) {
  #kopis .sub_title {
    margin-bottom: 0;
  }

  #kopis .about_text {
    width: 100%;
    text-align: center;
    font-size: 20px;
  }

  #kopis .about_text span {
    font-size: 20px;
    font-weight: 400;
  }

  #kopis .more_view_btn {
    margin-right: 0;
    text-align: center;
    justify-content: center;
  }

  #kopis .contents {
    padding: 40px 0;
  }

  #kopis .item {
    padding: 5%;
  }
}

@media (max-width:600px) {
  #kopis .items {
    gap: 12px;
  }

  #kopis .item {
    width: clamp(160px, 40%, 250px);
    height: 200px;
  }

  #kopis .item .title {
    font-size: 18px;
  }

  #kopis .item .count .number {
    font-size: clamp(20px, 5vw, 40px);
  }

  #kopis .item .count div:nth-child(2) {
    line-height: 30px;
  }
}


/* ★ 4. 공지사항 섹션  */
/* 버튼 스타일 */
#notice .notice_btn {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;
  font-size: 20px;
  color: #797979;
  margin-bottom: 30px;
}

#notice .circle_btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: #a097f9;
  color: var(--font_color_bright);
  display: flex;
  justify-content: center;
  align-items: center;
}

#notice .circle_btn span {
  font-size: 24px;
  font-weight: 700;
}

/* (1) 공지사항 */
#notice .contents {
  width: 100%;
}

#notice .item {
  width: 100%;
  font-size: 20px;
  font-weight: 300;
  color: #1c1c1c;
}

#notice input {
  display: none;
}

/* 라벨 */
#notice label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 110px;
  border-top: 1px solid #d6d6d6;
  border-bottom: 1px solid #d6d6d6;
  margin-bottom: 10px;
  padding: 0 30px;
  cursor: pointer;
  user-select: none;
  transition: background-color 1s;
}

#notice label .title {
  width: 100%;
  padding: 30px;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-right: 50px;
}

#notice label .arrow_down {
  transition: transform 0.5s;
}

#notice label .date {
  font-size: 18px;
  opacity: 0.5;
}

#notice .desc_text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s;
  transition: 1s;
}

#notice .desc_text img {
  width: 400px;
  height: 400px;
  object-fit: fill;
  margin-top: 50px;
}

#notice .desc_text p {
  padding: 50px;
  font-size: 18px;
  font-weight: 200;
  line-height: 2em;
}

/* 인풋 체크되었을 때 */
#notice input:checked~label {
  background-color: rgba(183, 183, 241, 0.5);
  font-weight: 500;
  border-bottom: none;
}

#notice input:checked~label .arrow_down {
  transform: rotate(180deg);
}

#notice input:checked~.desc_text {
  max-height: 1000px;
  background-color: rgba(226, 226, 235, 0.5);
}

/* 공지사항 반응형 스타일 */
@media(max-width:1200px) {
  #notice {
    padding-top: 50px;
  }

  #notice .top_box {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  #notice .text_btn {
    padding: 20px 50px;
    background-color: var(--primary_color);
    border-radius: 50px;
    color: #fff;
  }

  #notice .circle_btn {
    display: none;
  }
}

@media (max-width:650px) {
  #notice label {
    padding: 10px;
    height: auto;
    font-size: 18px;
  }
}

/* 모든 색션 스타일 끝 */
