@charset "utf-8";

@import url("reset.css");
@import url("form.css");
@import url("ui.css");
@import url("font.css");


:root {

    /* font style */
    --font-suit: "SUIT", sans-serif;
    --font-poppins: "Poppins", sans-serif;
    --font-myriad: 'Myriad Pro', sans-serif;
    --font-pretendard: "Pretendard", sans-serif;
    --font-montserrat: "Montserrat", sans-serif;
    --font-awesome: "FontAwesome";
    --font-linearicons: "Linearicons-Free";

    /* color style */
    --default_txt_color: #222;
    --point_color: #000;
    --second_color: #e5e5e5;
    --line_color: #e5e5e5;

    /* gnb nav style */
    --header_bg:rgba(0,0,0,.5);
    --header_bg_line:rgba(255,255,255,.1);
    --depth1_txt:rgba(255,255,255,1);
    --depth2_txt:rgba(255,255,255,1);
    --depth1_hover_txt:rgba(255,255,255,1);
    --depth2_hover_txt:rgba(255,255,255,1);
    --depth1_hover_bg:rgba(0,0,0,.5);
    --depth1_hover_round:0.3rem;
    --phone_txt:#fff;

    /* mobile nav style */
    --mobile_menu_bg:#232429;
    --mobile_depth1_txt:#fff;
    --mobile_depth2_txt:#fff;
    --hamburger_color:#fff;

    /* location nav style */
    --location_nav_bg:rgba(0,0,0, .5);
    --location_nav_menubg: rgba(73,73,73,.6);
    --location_nav_menuhover: rgba(73,73,73,.8);

    /* footer style */
    --footer_bg:#001241;
    --footer_txt:rgba(255,255,255,1);
    --footer_copy:rgba(255,255,255,0.3);
    --footer_comment:rgba(255,255,255,1);
    --footer_link:rgba(255,255,255,.5);
    --footer_link_hover:rgba(255,255,255,1);
    --gotop_bg:rgba(201,219,237,1);
    --gotop_txt:rgba(0,0,0,1);
}


/************************************************************** 
	    CSS 초기화
**************************************************************/
* {margin: 0; padding: 0; box-sizing: border-box;}
ol,ul,li { list-style:none; }

table {border-collapse: collapse;}

a:link { text-decoration: none; }
a:hover{ text-decoration: none; }
a:visited { text-decoration: none;}
a:active { text-decoration: none;}

html, body {  
  margin: 0;
  padding: 0;
  border: none; 
  color: var(--default_txt_color);
  font-weight: 300;
  font-style: normal;       
  background: #000;
  -webkit-text-size-adjust:none;  
  -webkit-font-smoothing: antialiased;   
  height: 100%;
  width: 100%;
}
body, button, h1, h2, h3, h4, h5, input, select, table, textarea {
  font-family: var(--font-pretendard);
  font-size: 16px;
  line-height: 1.2;  
}
* {box-sizing: border-box;}
a:link {color: inherit}
a:hover{color: var(--default_txt_color);}
a:visited {color: var(--default_txt_color);}
a:active {color: var(--default_txt_color);}
.txt-center {text-align: center;}
.txt-right {text-align: right;}

/* 스크롤바 설정 (다크 트랙 + 보이는 썸) */
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body::-webkit-scrollbar-thumb {
  background: #8a8a8a;
  border-radius: 8px;
}
body::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}
body::-webkit-scrollbar-track {
  background: #1a1a1a;
}
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #8a8a8a #1a1a1a;
}
[v-cloak] {display: none;}

.pc-only {display:block !important;}
.m-only,.mflex-only {display:none !important;}
@media screen and (max-width: 1024px) {
    .pc-only {display:none !important;}
    .m-only {display:block !important;}
    .mflex-only {display:flex !important;}
}


/* ==========================================================================
   프로젝트 공통 (퍼블리싱 가이드 Part A) – 더샵 퍼스트월드
   ========================================================================== */

/* ========== 변수 : 컬러·폰트 (A1) / 모션 (A7) / 단위 (A6·B3) ========== */
:root {
    /* 컬러 (Figma 기준) */
    --color-navy: #001942;        /* 메인 컬러, 밝은 배경의 헤더·버튼 */
    --color-black: #0b0e0f;       /* 어두운 섹션 배경, 밝은 섹션 글자 */
    --color-panel: #222222;       /* 브랜드 스토리 좌측 패널 */
    --color-deco: #323536;        /* LOCATION 대형 글자 */
    --color-line: #dfdfdf;        /* 버튼 테두리 */
    --color-footer-btn: #303030;  /* 푸터 TOP 버튼 */
    --color-gray: #707070;        /* 비활성 메뉴 글자 */

    /* 폰트 */
    --font-ko-title: "Arita Buri KR", "AritaBuriKR", serif;      /* 국문 제목 (SemiBold 600) */
    --font-en-title: "Gilda Display", serif;                      /* 영문 제목·메뉴 */
    --font-script: "Beau Rivage", cursive;                        /* 영문 필기체 */
    --font-number: "Times New Roman", Times, serif;               /* 단계 번호 (Android 대체) */
    --font-body: "Pretendard", sans-serif;                        /* 본문·버튼 */

    /* 모션 (A7) – CSS 전환은 여기 값만 사용 */
    --ease-main: cubic-bezier(0.65, 0, 0.35, 1);   /* 공통 이징 */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);    /* 요소 등장용 */
    --dur-content: 800ms;                          /* 요소 등장 속도 */
    --delay-step: 100ms;                           /* 요소 순차 등장 간격 */
    --dur-hover: 400ms;                            /* hover·상태 전환 기본 시간 */
    --roll-dur: 500ms;                             /* 호버 텍스트 롤·화살표 이동 시간 */
    --roll-ease: cubic-bezier(0.215, 0.61, 0.355, 1); /* 호버 텍스트 롤 이징 */
    --roll-stagger: 25ms;                          /* 글자별 순차 간격 */
    --arrow-dur: 900ms;                            /* 화살표 왕복 1회 시간 */
    --arrow-move: max(4px, calc(8 * var(--px)));   /* 화살표 이동 거리 */
    --lift-move: -3px;                             /* 이미지·아이콘 버튼 살짝 올림 */
    --dur-gnb: 900ms;                              /* 전체메뉴 패널 펼침 시간 */
    --dur-gnb-item: 700ms;                         /* 메뉴 항목 등장 시간 */

    /* 단위 : 시안 1px = var(--px). 길이는 calc(N * var(--px)). 테두리·선 굵기(border-width, 1px 선 height/width, outline)는 px 고정 */
    --px: calc(100vw / 1920);                      /* PC 시안(1920) 1px */
}
@media screen and (max-width: 1024px) {
    :root {
        --px: calc(100vw / 390);                   /* 모바일 시안(390) 1px, 화면 폭에 비례해 계속 확대 */
    }
}

/* ========== 메인 토큰 (Figma 1079:2651) ==========
   길이 = calc(N * var(--px)) (PC N=1920 시안 px, ≤1024 N=390 시안 px). 테두리·선 굵기는 px 고정(--line-width).
   섹션에서 한 번만 쓰는 값은 토큰에 넣지 않고 temp_main.css 섹션 블록에 둔다. */
:root {
    /* 색 : 배경 단계 */
    --color-bg-solid: #000;                    /* HERO 하단·VISION·COMMUNITY·CLOSING */
    /* --color-black: #0b0e0f (기존 재사용)       UNIT */
    --color-bg-dark: #161616;                  /* SCALE·LOCATION (푸터 배경과 같음) */
    --color-card: #fff;                        /* PREMIUM 카드 */
    --color-card-sub: #f0f0f0;                 /* PREMIUM 원형 이미지 바탕 */
    --color-sand: #eae5df;                     /* REGISTER 버튼 */
    /* 색 : 글자 */
    --color-text: #fff;
    --color-text-70: rgba(255, 255, 255, 0.7); /* 숫자 단위 */
    --color-text-gray: #808080;                /* 보조 문구·비활성 영문 대형 글자 */
    --color-text-soft: #d9d9d9;                /* View More */
    --color-text-dark: #000;                   /* 카드 글자 */
    --color-text-sand: #474747;                /* REGISTER 글자 */
    --color-gold: #c9a063;                     /* GRAND OPEN·문의 번호 */
    /* 선 (굵기 px 고정) */
    --line-width: 1px;
    --line-white: #fff;                        /* 세로 장식선 */
    --line-btn: rgba(255, 255, 255, 0.4);      /* 더보기 버튼 테두리 */
    --line-soft: rgba(255, 255, 255, 0.2);     /* CONTACT 정보 상하선 */
    --line-unit: #5e5e5e;                      /* View More 테두리 */
    /* 딤 */
    --dim-hero: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 50%, #000 100%);
    --dim-unit: rgba(0, 0, 0, 0.7);            /* 84OD 만 0.75 */

    /* 폰트 역할 */
    --font-en-display: "Marcellus", serif;                       /* 영문 대형 (시안 Telugu MN 대체, 푸터와 동일) */
    --font-num: "Figtree", "Euclid Circular A", "Pretendard", sans-serif;  /* 숫자·LOCATION 영문 (Euclid Circular A 대체: Figtree) */
    --font-ko-sans: "Noto Sans KR", "Pretendard", sans-serif;   /* 사업지명 로고 문구·PREMIUM 카드 */
    --font-en-serif: "Noto Serif", serif;                        /* PREMIUM 카드 영문 */
    /* 국문 제목 --font-ko-title, 본문 --font-body, 숫자 보조·View More --font-suit : 기존 재사용 */

    /* 글자 크기 (PC 시안) */
    --fs-min: 11px;
    --fs-label: calc(20 * var(--px));          /* 섹션 라벨 UNIT PLAN·COMMUNITY… */
    --fs-title: calc(24 * var(--px));          /* 섹션 국문 제목 */
    --fs-desc: calc(20 * var(--px));           /* 섹션 설명 (회색) */
    --fs-copy: calc(20 * var(--px));           /* HERO·VISION·CLOSING 문장 */
    --fs-display: calc(130 * var(--px));       /* 영문 대형 */
    --fs-num: calc(180 * var(--px));           /* 49·308·5·2.9 */
    --fs-num-unit: calc(40 * var(--px));
    --fs-stat-label: calc(30 * var(--px));     /* 최고 층수·약 */
    --fs-stat-desc: calc(20 * var(--px));
    --fs-stat-note: max(var(--fs-min), calc(16 * var(--px)));  /* (84OA…)·(예정) */
    --fs-card-title: calc(20 * var(--px));     /* 01 피트니스 */
    --fs-card-desc: calc(20 * var(--px));
    --fs-btn: max(var(--fs-min), calc(16 * var(--px)));
    --fs-caption: max(var(--fs-min), calc(13 * var(--px)));    /* 이미지컷 */

    /* 행간·자간 (단위 없음 / em) */
    --lh-none: 1;
    --lh-display: 1.1;     /* ONLY FOR RESIDENTS */
    --lh-heading: 1.2;     /* SCALE 대제목 */
    --lh-title: 1.3;       /* 로고 문구·카드 제목 */
    --lh-body: 1.5;        /* 카드 설명·MO 2줄 제목 */
    --ls-label: 0.2em;
    --ls-display: 0.05em;
    --ls-num: -0.04em;
    --ls-copy: -0.02em;    /* HERO 문장 */

    /* 레이아웃 */
    --gutter: calc(160 * var(--px));
    --content-w: calc(1600 * var(--px));
    --section-pt: calc(148 * var(--px));       /* 섹션 위 → 라벨 */
    --head-gap: calc(30 * var(--px));          /* 라벨 → 제목 */
    --head-desc-gap: calc(20 * var(--px));     /* 제목 → 설명 */
    --gap-s: calc(16 * var(--px));
    --gap-m: calc(20 * var(--px));
    --gap-l: calc(30 * var(--px));
    --gap-xl: calc(60 * var(--px));            /* PREMIUM 카드 사이 */

    /* 버튼·모서리 */
    --btn-h: calc(60 * var(--px));
    --btn-px: calc(30 * var(--px));
    --btn-gap: calc(19 * var(--px));
    --btn-lh: calc(30 * var(--px));
    --btn-radius: calc(30 * var(--px));
    --btn-icon-w: calc(25.34 * var(--px));
    --btn-icon-h: calc(9 * var(--px));
    --radius-card: calc(8 * var(--px));
    --radius-side: calc(15 * var(--px));       /* REGISTER 왼쪽 */
}
@media screen and (max-width: 1024px) {
    :root {
        --fs-label: calc(14 * var(--px));
        --fs-title: calc(18 * var(--px));
        --fs-desc: calc(15 * var(--px));
        --fs-copy: calc(15 * var(--px));
        --fs-display: calc(44 * var(--px));
        --fs-num: calc(99 * var(--px));
        --fs-num-unit: calc(22 * var(--px));
        --fs-stat-label: calc(16.5 * var(--px));
        --fs-stat-desc: calc(11 * var(--px));
        --fs-stat-note: calc(8.8 * var(--px));
        --fs-card-title: calc(14 * var(--px));
        --fs-card-desc: calc(13.5 * var(--px));
        --fs-btn: calc(12 * var(--px));
        --fs-caption: calc(9 * var(--px));

        --gutter: calc(24 * var(--px));
        --content-w: calc(342 * var(--px));
        --section-pt: calc(80 * var(--px));
        --head-gap: calc(18 * var(--px));
        --head-desc-gap: calc(20 * var(--px));
        --gap-s: calc(12 * var(--px));
        --gap-m: calc(15 * var(--px));
        --gap-l: calc(22.5 * var(--px));
        --gap-xl: calc(14 * var(--px));

        --btn-h: calc(45 * var(--px));
        --btn-px: calc(22.5 * var(--px));
        --btn-gap: calc(14.25 * var(--px));
        --btn-lh: calc(22.5 * var(--px));
        --btn-radius: calc(22.5 * var(--px));
        --btn-icon-w: calc(19 * var(--px));
        --btn-icon-h: calc(6.75 * var(--px));
        --radius-card: calc(5.44 * var(--px));
        --radius-side: calc(9 * var(--px));    /* 48×150 버튼 비례 추정 */
    }
}

/* ========== 아이콘 (.ico, 마스크 방식 · 색은 currentColor) ========== */
.ico {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask: var(--ico) no-repeat center / contain;
    mask: var(--ico) no-repeat center / contain;
}

.ico_arrow {
    --ico: url("../img/icon/arrow_right.svg");
}

.ico_arrow_top {
    --ico: url("../img/icon/arrow_top.svg");
}

.ico_plus {
    --ico: url("../img/icon/plus.svg");
}

.ico_register {
    --ico: url("../img/icon/register.svg");
}

/* ========== Lenis (부드러운 스크롤) ========== */
html.lenis,
html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ========== 숨김 제목 (A8) ========== */
.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ========== 한글 줄바꿈 / 이미지 기본 (A10) ========== */
.main_container {
    word-break: keep-all;
    overflow-wrap: break-word;
}
.main_container img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

/* ========== 모바일 컨텐츠 프레임 (1024 이하) ==========
   배경은 섹션에 absolute 로 두고, 내용만 .inner
   너비는 시안 390 × --px (화면 폭에 비례) */
@media screen and (max-width: 1024px) {
    .main_container .inner {
        position: relative;
        width: calc(var(--px) * 390);
        margin-right: auto;
        margin-left: auto;
    }
}

/* ========== 스크롤 등장 (data-reveal, B2-3) ==========
   html.js 일 때만 숨김 → JS 실패 시에도 콘텐츠 노출 */
.js [data-reveal] {
    opacity: 0;
    -webkit-transform: translateY(40px);
    transform: translateY(40px);
    -webkit-transition: opacity var(--dur-content) var(--ease-main), -webkit-transform var(--dur-content) var(--ease-main);
    transition: opacity var(--dur-content) var(--ease-main),
                transform var(--dur-content) var(--ease-main);
    -webkit-transition-delay: calc(var(--delay-step) * var(--i, 0));
    transition-delay: calc(var(--delay-step) * var(--i, 0));
}
.js [data-reveal].is-visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/* 움직임 줄이기 설정 사용자 : 등장 연출 없이 바로 표시 */
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
        -webkit-transition: none;
        transition: none;
    }
}

/* ========================================
   HOVER EFFECT (공통 호버 모션)
   - txt_roll : 문구가 글자 순서대로 위로 올라가고 같은 글자가 아래에서 채움 (글자 분리는 common.js)
   - arrow_move : 화살표만 있는 버튼, 화살표 방향으로 왕복
   - ico_arrow : 문구 + 화살표 링크 안의 화살표가 가리키는 방향으로 이동
   - hover_lift / hover_lift_icon : 이미지·아이콘 버튼 살짝 올림
   - 마우스 기기(hover:hover, pointer:fine)에서만, 동작 줄이기 설정이면 사용 안 함
======================================== */
.txt_roll .roll_wrap {
    display: inline-block;
    -webkit-clip-path: inset(0 -1em);
    clip-path: inset(0 -1em);
}

.txt_roll .roll_word {
    display: inline-block;
    white-space: nowrap;
}

.txt_roll .roll_char {
    position: relative;
    display: inline-block;
}

.txt_roll .roll_char::after {
    content: attr(data-c);
    position: absolute;
    top: 100%;
    left: 0;
}

@keyframes arrow_nudge {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: var(--arrow-move) 0;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .txt_roll .roll_char {
        transition: transform var(--roll-dur) var(--roll-ease) calc(var(--i, 0) * var(--roll-stagger));
    }

    :is(a, button, .txt_roll):is(:hover, :focus-visible) .roll_char {
        transform: translateY(-100%);
    }

    :is(a, button) > .ico_arrow {
        transition: translate var(--roll-dur) var(--roll-ease);
    }

    :is(a, button):is(:hover, :focus-visible) > .ico_arrow {
        translate: var(--arrow-move) 0;
    }

    .arrow_move:is(:hover, :focus-visible) > :is(img, .ico) {
        animation: arrow_nudge var(--arrow-dur) ease-in-out infinite;
    }

    .hover_lift,
    .hover_lift_icon .ico {
        transition: translate var(--roll-dur) var(--roll-ease);
    }

    .hover_lift:is(:hover, :focus-visible),
    .hover_lift_icon:is(:hover, :focus-visible) .ico {
        translate: 0 var(--lift-move);
    }
}
