/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* =========================
   BODY / BACKGROUND
========================= */
body {
  font-family: 'S-Core Dream', sans-serif;
  background: url('../img/bg.png') no-repeat center top / cover;
  background-color: #ffffff;

  display: flex;          /* 수정 */
  flex-direction: column;
  min-height: 100vh;      /* 수정 */
}

@media (max-width: 768px) {
  body {
    background: #ffffff;   /* 수정 (모바일은 흰 배경만) */
  }
}


/* =========================
   PC / MOBILE VISIBILITY
========================= */
.pc-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .pc-only { display: none; }
  .mobile-only { display: block; }
}

/* =========================
   HEADER
========================= */
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 8px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-right {
  display: flex;
  gap: 6px;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
}

/* 모바일 헤더 */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 6px 6px;
    justify-content: flex-start;
  }

  .header-left {
    display: flex;
    align-items: center;
  }
  

  .header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main-title {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* =========================
   NAVIGATION
========================= */
.gnb {
  margin-top: 6px;
}

/* PC */
.gnb ul {
  max-width: 1280px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.gnb li a {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #000;
  padding: 6px 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.gnb li a:hover {
  color: #003a8f;
}

/* 모바일 */
@media (max-width: 768px) {
  .gnb {
    display: none;
    background: rgba(255,255,255,0.95);
  }

  .gnb.active {
    display: block;
  }

  .gnb ul {
    flex-direction: column;
    padding: 10px;
  }

  .gnb li a {
    font-size: 17px;
    display: block;
    padding: 10px 0;
  }
}

/* =========================
   MAIN SLIDER (INDEX ONLY)
========================= */
.main-slider {
  max-width: 1280px;
  margin: 40px auto 60px;
  padding: 0 10px;
  position: relative;
  overflow: hidden;
}

.main-slider-track {
  position: relative;
}

.main-slide {
  width: 100%;
  display: none;
}

.main-slide.active {
  display: block;
}

/* 화살표 */
.main-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(151, 151, 151, 0.55);
  border: none;

  width: 35px;
  height: 35px;
  border-radius: 30px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.main-arrow::before {
  color: #fff;
  font-size: 26px;
  line-height: 1;
  position: relative;
  top: -1px;
}

.main-arrow.prev::before {
  content: "‹";
}

.main-arrow.next::before {
  content: "›";
}

.main-arrow.prev { left: 20px; }
.main-arrow.next { right: 20px; }

.main-arrow:hover {
  background: rgba(0,0,0,0.75);
}

/* 모바일 */
@media (max-width: 768px) {
  .main-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
}

/* =========================
   하단 카드 링크
========================= */
.main-links {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 10px;
  display: flex;
  gap: 24px;
}

/* 카드 전체 */
.link-box {
  flex: 1;
  border-radius: 35px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition:
    transform 0.35s cubic-bezier(.25,1.4,.4,1),
    box-shadow 0.35s ease;
}

/* 카드 이미지 */
.link-box img {
  width: 100%;
  display: block;
}

/* 띠용 */
.link-box:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}

/* 모바일 카드 */
@media (max-width: 768px) {
  .main-links {
    flex-direction: column;
    gap: 18px;
  }

  .link-box {
    border-radius: 16px;
  }
}

/* =========================
   FOOTER
========================= */
.site-footer {
  margin-top: auto;
  padding: 36px 0;
  background: #f7f7f7;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #777;
}

.footer-left span {
  line-height: 1.4;
}

.footer-right {
  display: flex;
  gap: 10px;
}

/* 모바일 푸터 */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
  }
}

/* =========================
   SUB PAGE
========================= */
.sub-body {
  max-width: 1280px;
  margin: 40px auto 80px;
  padding: 0 10px;
  display: flex;
  gap: 40px;
}

/* 왼쪽 영역 */
.sub-main {
  width: 900px;
}

/* 슬라이드 */
.slider-wrap {
  position: relative;
  width: 900px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 15px;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slider img.active {
  display: block;
}

/* 화살표 */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 32px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  padding-bottom: 5px;
}

.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }

.arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* 설명 */
.slide-desc {
  margin-top: 25px;
  width: 900px;
  background: #ffffff;
  border-radius: 15px;
  border: 1px solid #d3d3d3;
  padding: 20px 23px;
}

.desc-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.desc-text {
  font-size: 15px;
  line-height: 1.6;
  color: #424242;
}

/* 오른쪽 사이드 */
.sub-side {
  width: 300px;
}

.side-title {
  font-size: 18px;
  font-weight: 700;
  color: #0a2a66;
 }


.side-line {
  width: 300px;
  height: 2px;
  background: #ddd;
  margin: 15px 0 12px;
}

.side-menu {
  list-style: none;
  padding: 0;
  overflow: hidden;
}

.side-menu li {
  font-size: 14px;
  padding: 3px 0;
  line-height: 1.4;
}

.side-menu li a {
  color: #424242;
  text-decoration: none;
  display: block;
}

.side-menu a.active {
  font-weight: 700;
  color: #0a2a66;
}

.side-menu li a:hover {
  color: #0a2a66;
}

/* =========================
   SUB PAGE MOBILE
========================= */
@media (max-width: 768px) {

  .sub-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px auto 0;
    padding: 0 10px;
  }

  .sub-main {
    order: 0;
    width: 100%;
  }

  .slider-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .arrow {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .mobile-images {
    display: flex;
    flex-direction: column;
  }

  .mobile-images img {
    width: 100%;
    display: block;
  }

  .slide-desc {
    width: 100%;
    border-radius: 14px;
    padding: 16px;
    margin-top: -5px;
  }

  .sub-side {
    order: -1;
    width: 100%;
  }

  .side-title {
    font-size: 20px;
    cursor: pointer;
  }


   .side-title::after {
    content: "▼";           /* 화살표 표시 */
    float: right;           /* 오른쪽 정렬 */
    color: #888;            /* 회색 */
    transition: transform 0.3s;
  }

  /* 메뉴 펼쳐졌을 때 화살표 회전 */
  .side-title.active::after {
    transform: rotate(-180deg);
  }



  .side-line {
    width: 100%;
  }

  .side-menu {
    max-height: 0;
    overflow: hidden;
  }

  .side-menu.active {
    max-height: 600px;
  }

  .side-menu a.active {
    font-weight: 700;
    color: #4184ff;
  }

  .side-menu li {
    padding: 4px 0;
    font-size: 15px;
  }

  .site-footer {
    margin-top: 24px;
    padding: 24px 0;
  }

  .main-slider {
    margin: 20px 10px 20px 10px;
    padding: 0;
  }

  .main-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }


}