@charset "UTF-8";

body{
  color: var(--color-main-text);
  -webkit-font-smoothing: antialiased;
}

/* 인트로 레이어 */
#intro-screen {
  position: fixed;
  top: 0; left: 0; 
  width: 100%;
  height: 100%;  /*구 브라우저*/
  height: 100dvh;  /*최신 브라우저*/
  background-color: var(--color-primary); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
  transition: opacity 0.5s ease-out; 
  color: var(--color-white);
  /* font-size: 1.5vw; */
  font-size: clamp(1.3rem, 2.4vw, 3rem);
}

#intro-screen > .intro-txt{
  font-weight: 400;
  animation: fadeIn 0.5s ease-out forwards;
  text-align: center;
}

#intro-screen > .logo-ani {
  position: absolute;
  bottom: 20px;
  animation: move 2s forwards;
}
#intro-screen > .logo-ani > img {
  width: clamp(100px, 8vw, 200px);
}



/* main banner 영역 */
.main-banner{
    width: 100%;
    height: 100%;
    top: 0px; left: 0;
    overflow: hidden;
}

/* 메인배너 스와이퍼-=--------- */
.mainSwiper {
    width: 100%;
    height: 100%;
}

.mainSwiper::part(bullet) {
    box-sizing: border-box;
    width: 30px;
    height: 3px;
    margin: 0 1px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.9);
}

/* ▽ 활성된 알 */
.mainSwiper::part(bullet-active) {
    height: 3px;
    background-color: rgb(255, 255, 255);
    width: 60px;
    border-radius: 0;
    transition: all 0.5s;
}

.mainSwiper .slide {
  width: 100%;
  height: 950px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ---------------------------------------- */

.mainSwiper .bg1{
  background-image: url(../images/index/m_banner_01.png);
}
.mainSwiper .bg2{
  background-image: url(../images/index/m_banner_02.png);
}
.mainSwiper .bg3{
  background-image: url(../images/index/m_banner_03.png);
}
.mainSwiper .bg4{
  background-image: url(../images/index/m_banner_04.jpg);
}


.mainSwiper .slide a{
  display: block;
  width: 100%;
  height: 100%;
}
.mainSwiper .slide .ban-txt{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}
.mainSwiper .slide .ban-txt{
  color: white;
}
.mainSwiper .slide .ban-txt h2{
  font-size: 24px;
  font-weight: 300;
}
.mainSwiper .slide .ban-txt img{
  width: 250px;
  margin-top: 30px;
}



/* brand-story */
.brand-story{
  width: 90%;
  margin: 150px auto 0;
  padding: 100px 120px;
  display: flex;
  justify-content: space-between;
}
.brand-txt{
  width: 45%;
  word-break: keep-all;
}
.brand-title .main-title{
  color: var(--color-primary);
  font-size: clamp(2.4rem, 2.4vw, 3rem);
  
}
.brand-title .sub-title{
  color: var(--color-sub-text);
  font-size: clamp(0.93rem, 2vw, 1.125rem);
  font-weight: 200;
}
.brand-desc{
  margin-top: 130px;
}
.brand-desc .main-desc{
  color: var(--color-secondary);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}
.brand-desc .sub-desc{
  color: var(--color-sub-text);
  font-size: clamp(1rem, 1.8vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  margin-top: 18px;
}

.brand-img{
  width: 55%;
  /* height: 500px; */
  position: relative;
  margin-left: 50px;
}
.brand-img img{
  width: 60%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translateX(-50%);
}
.brand-img .bg-area{
  width: 100%;
  height: 100%;
  background-image: url(../images/index/brand-img-03.png);
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
}

/* -----------------섹션타이틀 공통 -------------------*/
.sect-tit{
  color: var(--color-primary);
  font-size: clamp(2.4rem, 2.4vw, 3rem);
}
.sect-desc{
  color: var(--color-sub-text);
  font-size: clamp(1rem, 1.9vw, 1.125rem);
  font-weight: 300;
  margin-top: 8px;
}
/* ------------------------------------------------- */


/* our building */
.our-building{
  width: 100%;
  margin-top: 180px;
  overflow: hidden;
}
.build-tit{
  width: 100%;
  text-align: center;
}
/* ============================================================================
   [ROLLBACK] 기존 swiper 캐러셀 스타일 (쇼케이스 · 대형 + 8분할 구조로 교체하며 보관)
   복구 방법 : 아래 주석 블록을 살리고, [NEW] 표시 구간을 삭제
   같이 되돌려야 하는 파일
     - templates/index.html : [ROLLBACK] / [NEW] 표시 구간
     - static/js/index.js   : [ROLLBACK] / [NEW] 표시 구간
   ============================================================================
.buildings{
  margin-top: 80px;
  padding-bottom: 40px;
  overflow: hidden;
}
프로그레스바를 슬라이드 아래 여백으로 배치
.buildings::part(pagination){
  top: auto;
  bottom: -24px;
}
.buildings .building{
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  padding-bottom: 130px;
  box-sizing: border-box;
}
.buildings .building::after{
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0; left: 0;
  transition: all 0.4s;
}
.buildings .building:hover::after{
  background-color: rgba(0, 0, 0, 0.3);
}
.buildings .building1{
  background-image: url(../images/index/building-01.png);
}
.buildings .building2{
  background-image: url(../images/index/building-02.png);
}
.buildings .building3{
  background-image: url(../images/index/building-03.png);
}
.buildings .building4{
  background-image: url(../images/index/building-04.png);
}
building5~8 : 전용 이미지 준비 전까지 기존 이미지 재사용
.buildings .building5{
  background-image: url(../images/index/building-05.png);
}
.buildings .building6{
  background-image: url(../images/index/building-06.png);
}
.buildings .building7{
  background-image: url(../images/index/building-07.png);
}
.buildings .building8{
  background-image: url(../images/index/building-08.png);
}
.buildings .building .txt{
  height: 500px;
  text-align: center;
  color: var(--color-white);
  padding-top: 300px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
   ============================== [ROLLBACK] 끝 ==============================
   ※ 원본에 있던 주석 두 줄은 CSS 주석 중첩을 피하려고 기호(슬래시+별표)를 뺀 평문으로
     남겨둔 것. 복구 시 다시 주석 기호를 붙일 것.
   ========================================================================= */


/* ============================================================================
   [NEW] 건물 배경 이미지
   ----------------------------------------------------------------------------
   ※ 웹 · 태블릿 · 모바일이 모두 같은 파일을 쓴다. 교체할 때는 아래 8줄이 전부다.
   ※ 좌측 대형(.stage-layer)과 우측 썸네일(li.building)이 이 규칙을 공유한다.
   ※ 이미지 파일/번호 매핑은 기존 그대로 (7=압구정, 8=도산)
   ============================================================================ */
.our-building .building1{
  background-image: url(../images/index/building-01.png);
}
.our-building .building2{
  background-image: url(../images/index/building-02.png);
}
.our-building .building3{
  background-image: url(../images/index/building-03.png);
}
.our-building .building4{
  background-image: url(../images/index/building-04.png);
}
.our-building .building5{
  background-image: url(../images/index/building-05.png);
}
.our-building .building6{
  background-image: url(../images/index/building-06.png);
}
.our-building .building7{
  background-image: url(../images/index/building-07.png);
}
.our-building .building8{
  background-image: url(../images/index/building-08.png);
}

/* [NEW] 쇼케이스 레이아웃 : 좌측 대형 + 우측 8분할
   - margin-top 80px, padding-bottom 40px : 기존 .buildings 여백 승계
   - height : 기존 630px 고정 대신 clamp 로 화면 폭에 따라 확대 (최대 950px)
   - gap    : 기존 8px 에서 12px 로 넓혀 큰 화면에서의 여백감 확보 */
.showcase{
  margin-top: 80px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.60fr 1fr;
  gap: 12px;
  height: clamp(600px, 48vw, 950px);
}

/* 좌측 대형 스테이지 */
.stage{
  position: relative;
  overflow: hidden;
  background-color: var(--color-main-text);
}
.stage-layer{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  /* 사진을 화면에 꽉 채우고 가운데를 기준으로 잘라낸다.
     ※ 표시 영역이 가로로 길어 정사각형 사진은 위아래가 잘리므로,
        건물 전체를 보여주려면 가로로 넉넉한 사진을 쓰는 편이 좋다. */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  /* 확대 효과를 주면 그만큼 더 잘리므로 쓰지 않고 페이드만 준다 */
  transition: opacity 0.9s ease;
}
.stage-layer.on{
  opacity: 1;
}
/* 기존 .building::after 오버레이(rgba(0,0,0,0.6) → hover 0.3)를 대신하는 하단 그라디언트 */
.stage-shade{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* 건물명이 밝은 간판/외벽과 겹쳐도 읽히도록 하단을 충분히 어둡게 */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 22%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.08) 100%);
}
/* 건물명 + 버튼 묶음 : 시안과 같은 좌측 하단 정렬 (시안 44px → 요청대로 60px)
   높이가 바뀌어도 위치가 흔들리지 않도록 % 대신 픽셀 패딩으로 고정한다.
   모바일(767px 이하)에서는 아래 미디어쿼리에서 가운데 정렬로 되돌린다. */
.stage-txt{
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3;
  padding: 60px;
  text-align: left;
  color: var(--color-white);
}
.stage-txt h3{
  /* 기존 1.5rem 을 최소값으로 두고 큰 화면에서 확대 */
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  /* 밝은 외벽·간판 위에서도 읽히도록 넓은 그림자와 좁은 그림자를 겹쳐 준다 */
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.55);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
/* 건물명 전환 시 살짝 떠오르는 효과 (index.js 가 클래스를 잠깐 붙였다 뗀다) */
.stage-txt.is-changing h3{
  opacity: 0;
  transform: translateY(12px);
}

/* 현재 위치 표시 (01 / 08) : 좌측 텍스트와 같은 60px 라인에 맞춰 우측 하단 배치 */
.stage-count{
  position: absolute;
  right: 60px;
  bottom: 60px;
  z-index: 3;
  color: var(--color-white);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.stage-count em{
  font-style: normal;
  font-size: 1.375rem;
  font-weight: 700;
  margin-right: 6px;
}

/* 자동 전환 진행 표시 : 기존 swiper progressbar pagination 을 대신함 */
.stage-progress{
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 3px;
  z-index: 4;
  background-color: rgba(255, 255, 255, 0.22);
}
.stage-progress span{
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--color-white);
}

/* 우측 8분할 썸네일 (기본 2열) */
.bd-thumbs{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;   /* 컨테이너 높이를 행 수만큼 균등 분배 */
  gap: 12px;
}
/* 건물이 9개 이상으로 늘어나면 3열로 전환 (현재 8개 = 2열 4행, 9개부터 3열 3행)
   :has() 미지원 브라우저에서는 2열이 그대로 유지되어 레이아웃이 깨지지 않음 */
.bd-thumbs:has(.building:nth-child(9)){
  grid-template-columns: repeat(3, 1fr);
}
.bd-thumbs .building{
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;   /* 좌측 대형과 같은 구도 */
  cursor: pointer;
  transition: outline-color 0.4s ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
}
.bd-thumbs .building::after{
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);   /* 기존 오버레이 값 승계 */
  position: absolute;
  top: 0; left: 0;
  transition: all 0.4s;
  z-index: 1;
}
/* 마우스를 올린 칸 : 누를 수 있다는 표시만 한다. 좌측 대형은 클릭해야 바뀐다
   (밝기 변화는 기존 .building:hover::after 를 승계) */
.bd-thumbs .building:hover::after{
  background-color: rgba(0, 0, 0, 0.35);
}
/* 현재 좌측 대형에 표시 중인 칸 : 가장 밝게 + 흰 테두리로 표시
   (확대는 이웃 칸을 덮어 격자가 흐트러지므로 쓰지 않는다) */
.bd-thumbs .building.on{
  outline-color: var(--color-white);
}
.bd-thumbs .building.on::after{
  background-color: rgba(0, 0, 0, 0.12);
}
.bd-thumbs .building:focus-visible{
  outline-color: var(--color-white);
}
.bd-thumbs .building .txt{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  color: var(--color-white);
}
/* 썸네일 칸 크기에 맞춰 기존 1.5rem 대신 축소 적용 */
.bd-thumbs .building .txt h3{
  font-size: clamp(0.9375rem, 1.05vw, 1.25rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
/* 썸네일에는 버튼을 노출하지 않음 : 이동은 좌측 대형의 '자세히 보기' 로만 */
.bd-thumbs .building .view-more{
  display: none;
}

.building .txt h3{
  font-size: 1.5rem;
}
.building .txt .building-desc{
  font-size: 1rem;
  font-weight: 400;
  margin-top: 10px;
}
/* [NEW] .stage-txt .view-more 선택자 추가 : 좌측 대형의 버튼도 기존 버튼 디자인을 그대로 사용 */
.building .view-more,
.stage-txt .view-more{
  display: block;
  width: 200px;
  margin: 0 auto;
  border: 1px solid var(--color-white);
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 16px;
  padding: 15px 0;
  border-radius: 100px;
  color: var(--color-white);
  transition: all 0.4s;
}
.building .view-more:hover,
.stage-txt .view-more:hover{
  background-color: var(--color-white);
  color: var(--color-main-text);
}
/* [NEW] 좌측 대형의 버튼만 왼쪽에 붙인다 : 위 공통 규칙의 margin: 0 auto (가운데)를 해제
   ※ 공통 규칙보다 뒤에 있어야 적용된다 (명시도가 같아 순서로 결정됨) */
.stage-txt .view-more{
  margin: 0;
}


/* MEMBERSHIP BENEFITS */
.membership{
  width: 100%;
  margin-top: 250px;
}
.membership-tit{
  margin-left: 40px;
}
.benefits{
  width: 100%;
  display: flex;
  overflow: hidden;
  margin-top: 65px;
}
.benefits .benefit{
  width: calc(100% / 4 - 10px); 
  flex-shrink: 0;
  margin-right: 10px;
}
.benefits .benefit .benefit-img-area{
  background-color: var(--color-primary);
  transition: transform 0.3s;
}
.benefits .benefit .benefit-img-area img{
  width: 100%;
  opacity: 1;
  transition: all 0.3s;
}
.benefits .benefit:hover .benefit-img-area{
  transform: translateY(5px);
}
.benefits .benefit:hover .benefit-img-area img{
  opacity: 0.4;
}
.benefits .benefit .benefit-txt-area{
  margin-top: 20px;
  margin-left: 10px;
}
.benefits .benefit .benefit-txt-area h2{
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-main-text);
}
.benefits .benefit .benefit-txt-area p{
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--color-sub-text);
  font-weight: 400;
}



/* your rest영역 */

.rest{
  width: 100%;
  min-width: 0;
  margin-top: 200px;
  display: flex;
  justify-content: space-between;
}

.rest-bnr{
  position: relative;
  width: 38%;
  background-image: url(../images/index/rest-bnr.png);
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1 / 1.2;
  background-size: cover;
}
.rest-contents{
  width: 62%;
  min-width: 0;
  padding-left: 50px;
}

.rest-bnr .rs-bnr-txt-area{
  position: absolute;
  top: 35%; left: 50%;
  width: 100%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-white);
  padding: 0 20px;
}
.rs-bnr-txt-area em{
  font-size: clamp(2rem, 2.5vw, 3rem);
  font-weight: 200;
}
.rs-bnr-txt-area p{
  font-size: clamp(0.93rem, 1.3vw, 1.2rem);
  font-weight: 300;
  margin-top: 15px;
}
.rs-bnr-txt-area .reserv-btn{
  display: block;
  width: 200px;
  margin: 115px auto 0;
  border: 1px solid var(--color-white);
  border-radius: 100px;
  padding: 20px 0;
  color: var(--color-white);
  transition: all 0.4s;
}
.rs-bnr-txt-area .reserv-btn:hover{
  background-color: var(--color-white);
  color: var(--color-main-text);
} 

.rest-contents .swiper-rest{
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}
.rest-contents .swiper-rest .cont-slide .slide-img-area{
  flex-shrink: 0;
  height: 470px;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 30px;
  box-sizing: border-box;
  position: relative;
}

.rest-contents .swiper-rest .sd1 .slide-img-area{
  background-image: url(../images/index/rest-01.png);
}
.rest-contents .swiper-rest .sd2 .slide-img-area{
  background-image: url(../images/index/rest-02.png);
}
.rest-contents .swiper-rest .cont-slide .slide-txt-area{
  /* display: flex; */
  justify-content: space-between;
  padding-bottom: 40px;
}
/* 호버 이미지는 ::after로 위에 겹침 */
.rest-contents .swiper-rest .sd1 .slide-img-area::after,
.rest-contents .swiper-rest .sd2 .slide-img-area::after{
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.rest-contents .swiper-rest .sd1 .slide-img-area::after{
  background-image: url(../images/index/rest-01-hover.png);
}
.rest-contents .swiper-rest .sd2 .slide-img-area::after{
  background-image: url(../images/index/rest-02-hover.png);
}
.rest-contents .swiper-rest .cont-slide .slide-img-area:hover::after{
  opacity: 1;
}


.rest-contents .swiper-rest .cont-slide .slide-txt-area .slide-sub-tit{
  font-size: clamp(0.93rem, 1.2vw, 1.2rem);
  font-weight: 400;
  color: var(--color-primary);
}
.rest-contents .swiper-rest .cont-slide .slide-txt-area .slide-main-tit{
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  font-weight: 400;
  color: var(--color-main-text);
  margin-top: 10px;
}
.rest-contents .swiper-rest .cont-slide .slide-txt-area .slide-sub-desc{
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-sub-text);
  line-height: 1.6;
  padding-top: 30px;
}

.slide-title-text-wrap{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.reservation-btn {
  padding: 5px 25px;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  font-size: var(--fs-sm);
  transition: all 0.2s;
}
.reservation-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* Swiper Element 내부의 프로그레스바 위치 잡기 */
/* .swiper-rest::part(pagination) {
  position: absolute !important;
  top: auto ;
  bottom:0px;
  height: 3px; 
  box-sizing: border-box;
  margin-top: 50px;

} */




/* 회원가입배너 */
.join-banner{
  width: 100%;
  height: 300px;
  margin: 150px auto 0;
  background-image: url(../images/index/join-bg.png);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}
.join-banner .join-txt{
  text-align: center;
  height: 100%;
  padding-top: 100px;
  color: var(--color-white);
}
.join-banner .join-txt h3{
  font-size: 1.2rem;
  font-weight: 400;
}
.join-banner .join-txt .join-btn{
  width: 200px;
  margin: 50px auto 0;
  display: block;
  text-align: center;
  font-size: 16px;
  padding: 15px 0;
  border-radius: 100px;
  color: var(--color-white);
  transition: all 0.4s;
  border: 1px solid var(--color-white);
}
.join-banner .join-txt .join-btn:hover{
  background-color: var(--color-white);
  color: var(--color-main-text);
}



/* 1780px 이하 */
@media (max-width: 1780px) {

  .brand-story{
    width: 100%;
  }
  /* rest */
  .rest-contents .swiper-rest .cont-slide .slide-txt-area{
    display: block;
  }
}


/* 1135이하 */
@media (max-width: 1135px) {
  /* brand-story ------------------*/
  .brand-story{
    padding: 100px 60px;
  }


  /* [NEW] our buildings — 태블릿 : 대형이 위, 썸네일이 아래 4열 x 2행
     ※ 건물 이미지는 웹(PC)용 규칙을 그대로 사용한다.
        모바일 전용 이미지는 767px 이하 구간에만 선언되어 있으므로 여기서는 적용되지 않는다.
     ※ 높이를 픽셀로 고정하지 않고 16:9 비율로 두어 폭에 따라 자연스럽게 줄어들게 한다. */
  .showcase{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .stage{
    aspect-ratio: 16 / 9;
  }
  .stage-txt{
    padding: 40px;
  }
  .stage-count{
    right: 40px;
    bottom: 40px;
  }
  .bd-thumbs{
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    height: auto;
  }
  .bd-thumbs .building{
    aspect-ratio: 16 / 9;   /* 대형과 같은 비율로 맞춰 구도를 통일 */
  }


  /* membership benefits ------------------*/
  .benefits{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 65px auto 0;
  }
  .benefits .benefit{
    width: calc(100% / 2 - 5px); 
    margin-right: 0px;
  }
  .benefits .benefit1 , .benefits .benefit3{
    margin-right: 10px;
  }
  .benefits .benefit3 , .benefit4{
    margin-top: 30px;
  }
  .benefits .benefit .benefit-img-area{
    height: 300px;
  }
  .benefits .benefit .benefit-img-area img{
    height: 300px;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  .benefits .benefit .benefit-txt-area h2{
    font-size: 1.35rem;
  }
  .benefits .benefit .benefit-txt-area p{
    font-size: 0.975rem;
  }

  /* rest ------------------*/
  .rest-bnr{
    display: none;
  }
  .rest-contents{
    width: 100%;
    padding-left: 20px;
  }

    /* 회원가입배너 ------------------*/
  .join-banner{
    background-attachment: scroll;
    background-image: url(../images/index/join-bg.png);
  }
  .join-banner .join-txt h3{
    font-size: 0.975rem;
  }
}


@media (max-width: 767px) {
  /* main banner ------------------ */
  .main-banner{
    height: 700px;
  }
  .mainSwiper .slide .ban-txt{
    bottom: 30%;
    text-align: center;
    width: 95%;
  }
  .mainSwiper .slide .ban-txt h2{
    font-size: 20px;
  }
  .mainSwiper .slide .ban-txt img{
    width: 200px;
  }


/* -----------------섹션타이틀 공통 -------------------*/
.sect-tit{
  font-size: clamp(1.75rem, 2.4vw, 3rem);
}
.sect-desc{
  font-size: clamp(1rem, 1.9vw, 1.125rem);
}
/* ------------------------------------------------- */

/* brand-story ------------------*/

  .brand-story{
    width: 85%;
    display: flex;
    flex-direction: column-reverse;
    padding: 30px 0px;
    margin-top: 40px;
  }
  .brand-txt{
    width: 100%;
    margin: 0 auto;
  }
  .brand-title .main-title{
    font-size: clamp(1.75rem, 2.2vw, 3rem);
    
  }
  .brand-desc{
    margin-top: 30px;
  }
  .brand-img{
    width: 100%;
    height: 150px;
    margin-bottom: 30px;
    margin: 0 auto 30px;
  }
  .brand-img img{
    position: absolute;
    top: 50%; left: 50%;
    /* transform: translateX(-50%); */
  }


  /* our buildings ------------------*/
  .our-building{
    width: 85%;
    margin: 20px auto 0;
  }
  .build-tit{
    text-align: left;
  }
  /* ------------------------------------------------------------------------
     [ROLLBACK] 기존 swiper 캐러셀 모바일 스타일 (쇼케이스 구조로 교체하며 보관)
     ------------------------------------------------------------------------
  .buildings{
    margin-top: 30px;
  }
  .buildings .building{
    height: 330px;
    border-radius: 10px;
    overflow: hidden;
  }
  .buildings .building::after{
    height: 330px;
  }
  .buildings .building .txt{
    height: 190px;
    padding-top: 140px;
  }
     ============================ [ROLLBACK] 끝 ============================ */

  /* [NEW] 쇼케이스 : 세로 스택 (대형 위 + 썸네일 아래 2열)
     높이 330px / border-radius 10px 는 기존 모바일 .building 값을 그대로 승계 */
  .showcase{
    margin-top: 30px;
    padding-bottom: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 330px auto;
    height: auto;
    gap: 8px;
  }
  .stage{
    border-radius: 10px;
    aspect-ratio: auto;   /* 태블릿 구간의 16:9 해제 — 높이는 위 grid-template-rows 의 330px 사용 */
  }
  /* 모바일만 사진 위쪽을 기준으로 잡아 건물 상단부터 보이게 한다.
     (웹 · 태블릿은 위쪽 기본 규칙의 center 를 그대로 사용) */
  .stage-layer{
    background-position: top;
  }
  /* 모바일은 좌측 정렬이 아니라 기존대로 가운데 정렬을 유지하고,
     화면이 작아 웹의 60px 패딩은 과하므로 값을 줄인다 */
  .stage-txt{
    padding: 30px 0;
    text-align: center;
  }
  .stage-txt .view-more{
    margin: 0 auto;
  }
  .stage-txt h3{
    font-size: 1.25rem;
    margin-bottom: 15px;
  }
  .stage-count{
    right: 18px;
    bottom: 18px;
    font-size: 0.75rem;
  }
  .stage-count em{
    font-size: 1.125rem;
  }
  /* 모바일도 태블릿과 같은 4열 2행을 유지한다.
     건물이 9개 이상이 되면 위쪽 :has() 규칙이 우선해 3열이 된다.
     세로 스택이라 컨테이너 높이가 없으므로 칸 높이는 직접 지정한다 */
  .bd-thumbs{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    height: auto;
    gap: 6px;
  }
  .bd-thumbs .building{
    aspect-ratio: auto;
    height: 110px;
    border-radius: 10px;
    background-position: top;   /* 좌측 대형과 같은 기준 (모바일만 top) */
  }
  .bd-thumbs .building .txt{
    padding: 0 8px;
  }
  .bd-thumbs .building .txt h3{
    font-size: 0.9375rem;
  }

  .building .txt h3{
  font-size: 1.25rem;
  }
  .building .view-more,
  .stage-txt .view-more{
    width: 120px;
    font-size: 14px;
    padding: 10px 0;
  }


/* membership benefits ------------------*/
  .membership{
    width: 85%;
    margin: 50px auto 0;
  }
  .membership-tit{
    margin-left: 0px;
  }
  .benefits{
    margin-top: 0px;
    display: block;
  }
  .benefits .benefit{
    width: 100%; 
    margin-right: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
  }
  .benefits .benefit .benefit-img-area{
    border-radius: 10px;
    overflow: hidden;
  }




/* your rest ------------------*/
  .rest{
    width: 85%;
    margin: 50px auto 0;
  }
  .rest-contents .swiper-rest{
    margin-top: 30px;
  }
  .rest-contents{
    width: 100%;
    padding-left: 0px;
  }
  .rest-contents .swiper-rest .cont-slide .slide-img-area{
    border-radius: 10px;
  }
  .rest-contents .swiper-rest .cont-slide .slide-txt-area{
    padding-bottom: 20px;
  }
  .rest-contents .swiper-rest .cont-slide .slide-txt-area .slide-main-tit{
    font-weight: 600;
  }
  .rest-contents .swiper-rest .cont-slide .slide-txt-area .slide-sub-desc{
    line-height: 1.4;
    padding-top: 20px;
  }
  .rest-contents .swiper-rest .sd1 .slide-img-area::after,
  .rest-contents .swiper-rest .sd2 .slide-img-area::after{
    border-radius: 10px;
  }


  /* 회원가입배너 ------------------*/
  .join-banner{
    width: 85%;
    height: 400px;
    margin: 30px auto;
    border-radius: 10px;
    background-image: url(../images/index/join-bg.png);
  }
  .join-banner .join-txt{
    padding: 150px 20px 0;
  }
  .join-banner .join-txt h3{
    font-size: 0.975rem;
  }
  .join-banner .join-txt .join-btn{
    width: 120px;
    font-size: 14px;
    padding: 10px 0;
  }
}


@keyframes fadeIn {
  0% { 
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes move {
  0% { 
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px); 
    opacity: 1;
  }
}