@charset "utf-8";
@import url("../../font/s-core-dream.css");


/* 변수 정의 */
:root {
    --primary: #14355a;
    --bg-color: #ffffff;
    --text-dark: #222;
    --shadow: rgba(0, 0, 0, 0.08);
    --radius: 0.5rem;
    --transition: 0.3s ease;
    --font-main: "s-core-dream-regular", sans-serif !important;
}

/* 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    scroll-behavior: smooth;
}

ul,
li {
    list-style: none;
}


a {
    text-decoration: none;
    color: inherit;
}

a:active {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
    text-decoration: none;
}


/* 메인 컨텐츠 - 모든 페이지 통일 */
main {
    width: 100vw;
    overflow-x: hidden;
    padding-top: 70px; /* 헤더 높이와 일치 */
    min-height: calc(100vh - 70px);
}

/* 인덱스 페이지는 스크롤 가능 */
body.index-page {
    overflow: auto;
}

/* 공통 섹션 스타일 */
.simple-section {
    margin: 4rem auto;
}

.simple-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}
.desktop-only,
.mobile-only {
  display: none;
}

.hero-section {
    background-color: black;
    height: calc(100vh - 8vh);
    background-image: url('/images/index/main.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  

/* 장점 리스트 */
.advantage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.adv-item {
    flex: 1 1 300px;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 0 10px var(--shadow);
}

.adv-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.adv-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 멤버십/이벤트 */
.membership-cta {
    max-width: 1280px;
    margin: 6rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.membership-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.button-group button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: background var(--transition)  transform 0.2s;
}

.button-group button:hover {
    transform: scale(1.05);
    background: #14355a;
}

/* 이벤트 */
.event-ul {
    padding: 0;
}

.event-ul li {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.event-title {
    font-weight: 500;
}

.event-tag {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 0.3rem;
}

/* 슬라이더 */
.main-slider {
    max-width: 1280px;
    margin: 4rem auto;
}

#slider-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 3rem 0 2rem;
    font-weight: bold;
}

.swiper-slide img {
    width: 80%;
    box-shadow: 0 0 10px var(--shadow);
}

/* 지점 섹션 스타일 */
.branch-box {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.branch-box summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.branch-detail {
    margin-top: 1rem;
}

.branch-detail img {
    width: 100%;
    max-width: 400px;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.small-section {
    max-width: 960px;
    margin: 4rem auto;
    padding: 0 1rem;
}



.membership-box {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 3rem 2rem;
    background-color: #c0cbda;
    /* 💡 강조 레이어 추가 */
    border-radius: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: left;
    color: var(--text-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header .section-title {
    margin-bottom: 0;
    flex: 1;
}

#add-channel-button {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

#add-channel-button:hover {
    transform: scale(1.05);
}

#add-channel-button img {
    height: 50px;
    width: auto;
}

.membership-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.membership-card,
.event-card {
    flex: 1 1 400px;
    min-height: 260px;
    /* 💡 균형 조절 */
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 💡 내용 수직 중앙 정렬 */
}

.membership-card h3,
.event-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.button-group {
    margin-top: 2rem;
}

.button-group button {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: 0.4rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.button-group button:hover {
    background: #e04444;
}

/* 이벤트 리스트 */
.event-ul {
    margin-top: 1rem;
}

.event-ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.event-tag {
    font-size: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-weight: 500;
}



  
  #scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    display: none;
    background-color: #0b3460ad;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
  }
  #scrollToTopBtn:hover {
    background-color: #14355a;
  }
  
  

  


/* 반응형 개선 */
@media (max-width: 768px) {
    main {
        padding-top: 70px;  /* header 높이와 일치 */
        min-height: calc(100vh - 70px);
    }

    .hero-section {
        height: calc(100vh - 70px);
        background-image: url('/images/index/main-mobile.png');
        background-size: cover;
        background-position: center top;
    }

    .main-image {
        height: auto;
        min-height: 80vh;
        object-fit: cover;
    }

    .advantage-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .membership-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header .section-title {
        margin-bottom: 0;
    }

    #add-channel-button {
        margin-left: 0;
        align-self: flex-end;
    }

    #add-channel-button img {
        height: 45px;
    }

    .main-slider {
        padding: 0 1rem;
    }

    .swiper-slide img {
        width: 80%;
        max-width: 100%;
        margin: auto;
    }

    .map-area {
        flex-direction: column;
        padding: 0 1rem;
    }

    .branch-detail img {
        max-width: 100%;
    }

    .membership-box {
        padding: 2rem 1rem;
        margin: 3rem 1rem;
    }

    .section-title {
        white-space: nowrap;
        font-size: 1.4rem;
    }

    .membership-card,
    .event-card {
        min-height: auto;
        padding: 1rem;
        flex: 1 1 10px;


    }


    .button-group {
        margin-top: 1.5rem;
    }

    .button-group button {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .event-ul li {

        align-items: flex-start;
    }

    .event-tag {
        margin-top: 0.25rem;
    }

    .adv-item {
        flex: 1 1 auto;
        /* 최소 300px → 자동 크기로 변경 */
        padding: 0.8rem 1rem;
        /* padding 축소 */
        font-size: 0.85rem;
        /* 텍스트 작게 */
        box-shadow: 0 0 5px var(--shadow);
    }

    .adv-title {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .adv-desc {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .advantage-list {
        gap: 1rem;
        /* 카드 간 간격도 줄임 */
    }

    .membership-grid {
        flex-direction: column;
    }

    .membership-box {
        padding: 2rem 1rem;
    }

      .mobile-only {
        display: block;
      }
      
      
      html[lang="en"] .section-title {
        white-space: normal;
        word-break: keep-all;
        line-height: 1.3;
      }
      
      
      
}



.map-area {
    display: flex;
}

.scroll-offset {
    scroll-margin-top: 90px; /* 더 간단한 최신 방식 (CSS만으로 해결) */
}

#frame5{
    width:40%;
    margin-left:20%;
}

h2{
    margin-bottom: 3rem;
}

.custom-swiper-btn {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease;
  }

  .custom-swiper-btn::after {
    font-size: 20px;
    font-weight: bold;
  }

  .swiper-button-prev {
    position: fixed;
    left: -2.5%;
  }

  .swiper-button-next {
    position: fixed;
    right: -2.5%;
  }

  .custom-swiper-btn:hover {
    background: rgba(0, 0, 0, 0.6);
  }
  
  .swiper{
    margin: 0 1rem;
  }

  @media (max-width: 768px) {
    .custom-swiper-btn {
        top:70%;
        background:none;
        color:#0078ff;
      width: 30px;
      height: 30px;
    }
    .custom-swiper-btn::after {
      font-size: 16px;
    }
    .swiper-button-prev {
        position: fixed;
        left: 0%;
    }

    .swiper-button-next {
        position: fixed;
        right: 0%;
    }
    
    
  }