/** FONT **/
@font-face {font-family: PT; src: url(../fonts/PretendardVariable.woff2); font-weight: 45 920; font-style: normal; font-display: swap;}
@font-face {font-family: MM; src: url(../fonts/myanmar-mn.woff2); font-weight: 400; font-style: normal; font-display: swap;}
/* NM : 메인 비주얼 / 인트로 문구 (나눔명조) */
@font-face {font-family: NM; src: url(../fonts/NanumMyeongjo-Regular.woff2); font-weight: 400; font-style: normal; font-display: swap;}
@font-face {font-family: NM; src: url(../fonts/NanumMyeongjo-Bold.woff2); font-weight: 700; font-style: normal; font-display: swap;}
/* JO : 시안 Futura PT(연혁 연도) 대체 + Scroll Down */
@font-face {font-family: JO; src: url(../fonts/Jost-Medium.woff2); font-weight: 500; font-style: normal; font-display: swap;}

/** COLOR **/
:root{
    --gold : #ABA000;
    --black : #000;
    --gray : #717171;
    --line : rgba(0,0,0,0.19);
    --ease : cubic-bezier(.4,0,.3,1);
    /* 고급 감속 : 부드럽게 시작 → 끝을 길고 조용하게 (섹션 진입 / 등장 모션) */
    --ease-lux : cubic-bezier(.22,1,.36,1);
    /* 묵직한 이동 : 천천히 출발 → 길게 감속 (큰 위치 이동, 휙 움직이지 않게) */
    --ease-heavy : cubic-bezier(.45,0,.2,1);
}

/** RESET **/
*, *::before, *::after{margin : 0;padding : 0; box-sizing: border-box;}
html{-webkit-text-size-adjust:100%; font-size: 62.5%;}
body{line-height:1; font-family: PT; font-size: 1.6rem; color:#000;}
ul, ol, li{list-style: none;}
a{text-decoration: none; color : inherit}
img, picture, svg, video, canvas{display: block;max-width: 100%;}
button, input, textarea, select{font:inherit; color:inherit; border:none; background:none; outline:none;}
button{cursor:pointer;}
table{border-collapse:collapse; border-spacing:0;}
/** RESET END **/


/* HEADER
 * - 고정(fixed : 스크롤과 관계없이 화면 위에 고정되어야 해서 불가피) / 로고 · 메뉴 · 로그인 · 햄버거 한 줄 (flex)
 * - 기본 : 흰색 (어두운 배경) / .dark : 컬러 로고 + 검은 글자 (밝은 배경, main.js 섹션 data-header)
 * - 인트로 중 숨김 → html.intro-done 이 되면 위에서 내려오며 등장 */
.header{position : fixed; left : 0; top : 0; z-index: 1000; display: flex; align-items: center; width : 100%; height : 13rem; padding : 0 8rem; color : #fff;
    opacity: 0; transform: translateY(-100%); transition : opacity 1s var(--ease), transform 1.2s var(--ease), color .5s var(--ease);
}
html.intro-done .header{opacity: 1; transform: none;}
/* 숨김 (푸터 진입 시 main.js) : 위로 빠지며 사라짐 */
html.intro-done .header.hide{opacity: 0; transform: translateY(-100%);}
/* 로고 / 로그인 아이콘 : 흰색(::before) + 컬러·검은색(::after) 을 겹쳐두고 opacity 로 교차 전환 (.5s) */
.header-logo{margin-right: auto;
    /* 숨김 텍스트(로고명)가 grid 칸을 나눠 갖지 않도록 : 이미지 칸 100% / 나머지 칸 0 */
    a{display: grid; grid-template-rows: 100%; grid-auto-rows: 0; width : 14.01rem; height : 4.15rem; overflow: hidden; font-size: 0; color : transparent;}
    a::before, a::after{content : ''; grid-area : 1 / 1; background: url(../images/common/logo-white.svg) no-repeat center / contain; transition : opacity .5s var(--ease);}
    a::after{background-image: url(../images/common/logo-color.svg); opacity: 0;}
}
/* 메뉴 간격 : 시안(언론보도/소식) 기준 6.2rem */
.header-nav ul{display: flex; gap : 6.2rem;}
.header-nav a{display: block; font-size: 1.8rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; transition : opacity .4s var(--ease);
    &:hover{opacity: .6;}
}
/* 로그인 : 아이콘(png, 헤더 색에 따라 흰색 / 검은색) + 글자 */
.header-login{display: flex; align-items: center; gap : .7rem; margin-left: 5.1rem; font-size: 1.5rem; font-weight: 500; line-height: 1;}
.header-login-icon{display: grid; width : 1.69rem; height : 1.51rem;
    &::before, &::after{content : ''; grid-area : 1 / 1; background: url(../images/common/icon-login-white.png) no-repeat center / contain; transition : opacity .5s var(--ease);}
    &::after{background-image: url(../images/common/icon-login-black.png); opacity: 0;}
}
/* 햄버거 : 3줄 (가운데 짧게 오른쪽 정렬) */
.hamburger{display: flex; flex-direction: column; align-items: flex-end; gap : .8rem; margin-left: 3.2rem; padding : .4rem 0;
    span{display: block; width : 2.8rem; height : 1px; background: currentColor; transition : width .5s var(--ease);}
    span:nth-child(2){width : 1.8rem;}
    &:hover span:nth-child(2){width : 2.8rem;}
}
.header.dark{color : #000;
    .header-logo a::before, .header-login-icon::before{opacity: 0;}
    .header-logo a::after, .header-login-icon::after{opacity: 1;}
}

/* 퀵메뉴 + 하단이동 (메인 비주얼 안 우하단 : grid 한 칸에 겹쳐 오른쪽 아래 정렬)
 * 메인02(.main-visual.is-final, main.js) 가 되면 아래에서 올라오며 등장 / 원 버튼은 위에서부터 차례로 */
.quick{grid-area : 1 / 1; justify-self: end; align-self: end; z-index: 2; display: flex; flex-direction: column; align-items: center; gap : 2.7rem; margin : 0 7.8rem 3.4rem 0; color : #fff;
    opacity: 0; transform: translateY(3rem); pointer-events: none; transition : opacity .6s var(--ease), transform .8s var(--ease);
}
.quick-list{display: flex; flex-direction: column; gap : .7rem;
    li{opacity: 0; transform: translateY(2rem); transition : opacity .5s var(--ease), transform .6s var(--ease);}
}
.main-visual.is-final .quick{opacity: 1; transform: none; pointer-events: auto; transition : opacity 1s .4s var(--ease), transform 1.2s .4s var(--ease);
    li{opacity: 1; transform: none; transition : opacity 1s calc(.6s + var(--i) * .12s) var(--ease), transform 1.2s calc(.6s + var(--i) * .12s) var(--ease-lux);}
    li:nth-child(1){--i : 0;}
    li:nth-child(2){--i : 1;}
    li:nth-child(3){--i : 2;}
}
/* QUICK 열기 / 닫기 (main.js) : 처음에는 열린 상태(시안)
 * 닫힘(.is-close) : 계약정보 조회 / 1:1문의가 QUICK 버튼 쪽으로 내려가며 작아지고 사라짐 (아래 버튼부터 차례로)
 * 한 번 누른 뒤(.is-toggled)에는 등장 지연 없이 빠르게 열고 닫음 */
.main-visual.is-final .quick.is-toggled li:not(:last-child){transition : opacity .5s calc((1 - var(--i)) * .07s) var(--ease), transform .7s calc((1 - var(--i)) * .07s) var(--ease-lux);}
/* QUICK 은 항상 맨 위 (transform 이 없는 QUICK 이 transform 중인 위 버튼들 아래에 그려지지 않게) */
.quick-list li:last-child{position : relative; z-index: 1;}
.main-visual.is-final .quick.is-close li:not(:last-child){opacity: 0; transform: translateY(calc((2 - var(--i)) * 7.7rem)) scale(.6); pointer-events: none;}
/* 원 버튼 공통 : 7rem / 아이콘 + 글자 (hover 확대 없음) */
.quick-item, .quick-btn{display: flex; flex-direction: column; align-items: center; justify-content: center; width : 7rem; height : 7rem; border-radius: 50%; line-height: 1; text-align: center;}
.quick-item{gap : .5rem; padding-top: .2rem; font-family: PT; font-size: 1.2rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color : #fff;
    i{background: no-repeat center / contain;}
    &.contract{background: #000;
        i{width : 1.77rem; height : 2.1rem; background-image: url(../images/common/icon-contract.png);}
    }
    &.inquiry{background: #ABA000;
        i{width : 2.03rem; height : 1.93rem; background-image: url(../images/common/icon-inquiry.png);}
    }
}
/* QUICK : 꺾쇠 아이콘 = 열림 ∨(접기) / 닫힘 ∧(펼치기)
 * hover : 배경이 살짝 진해지고 꺾쇠가 누를 방향으로 살짝 움직임 (클릭 유도) */
.quick-btn{gap : .8rem; background: #F0F0F0; font-family: JO; font-size: 1.4rem; font-weight: 500; color : #000; transition : background-color .4s var(--ease);
    &::before{content : ''; width : .8rem; height : .8rem; margin-top: -.4rem; border : solid #000; border-width : 0 1px 1px 0; transform: rotate(45deg); transition : transform .6s var(--ease);}
    &:hover{background-color : #E2E2E2;}
    &:hover::before{transform: translateY(.3rem) rotate(45deg);}
}
.quick.is-close .quick-btn{
    &::before{margin : 0 0 -.4rem; transform: rotate(-135deg);}
    &:hover::before{transform: translateY(-.3rem) rotate(-135deg);}
}
/* 하단이동 : 원을 따라 도는 ScrollDown 글자 + 가운데 아래 화살표 */
.scroll-down{display: grid; place-items: center; width : 14.5rem; height : 14.5rem; color : inherit; transition : opacity .6s var(--ease), visibility .6s;
    & > *{grid-area : 1 / 1;}
}
.scroll-down-arrow{width : 1.2rem; height : 4.6rem; overflow: visible; animation : scroll-arrow 2.4s var(--ease) infinite;
    path{fill : none; stroke : currentColor; stroke-width : 1;}
}
.scroll-down-txt{width : 100%; height : 100%; overflow: visible; animation : scroll-rotate 24s linear infinite;
    text{font-family: MM; font-size: 1.1rem; letter-spacing: 0.18em; fill : currentColor;}
}
@keyframes scroll-rotate {
    to{transform: rotate(360deg);}
}
/* 화살표 : 위에서 아래로 살짝 내려갔다 사라짐 */
@keyframes scroll-arrow {
    0%{transform: translateY(-.6rem); opacity: 0;}
    30%, 70%{opacity: 1;}
    100%{transform: translateY(.8rem); opacity: 0;}
}


/* FOOTER (모션 없음)
 * - 상단 : 왼쪽 정보(로고 / 주소 / 카피라이트) + 오른쪽 고객센터 (grid 2칸)
 * - 하단 : 구분선 아래 약관 링크 + 유튜브 바로가기 */
/* 푸터 섹션 : 높이가 소수점(예 450.5px)이 되면 fullpage 정수 이동과 어긋나 화면 맨 아래에 흰 줄(0.5px)이 보임
 * → 섹션도 같은 색 + 아래로 2px 그림자로 덮음 */
.main-footer{background: #151515; box-shadow: 0 2px 0 #151515;}
.footer{padding : 0 10.8rem 10rem; background: #151515; color : #fff; font-weight: 500;}
.footer a{transition : color .4s var(--ease), opacity .4s var(--ease);}
.footer-inner{display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-top: 5.7rem; border-bottom : 1px solid rgba(255,255,255,0.098); padding-bottom: 2.2rem;}
.footer-logo{margin-top: 2.1rem;
    img{width : 15.73rem;}
}
.footer-addr{display: flex; align-items: center; margin-top: 3.6rem; font-size: 1.4rem; line-height: 1; letter-spacing: -0.06em;
    li + li::before{content : ''; display: inline-block; width : 1px; height : 1rem; margin : 0 1.5rem; background: #AAA; vertical-align: -.05em;}
}
.footer-copy{margin-top: 2.4rem; font-size: 1.4rem; line-height: 2.6rem; color : #AAA;}

.footer-cs{display: grid; justify-items: start;}
/* TOP : 원형 + 위 화살표 (화살표 선이 원 아래로 이어짐) */
.footer-top{justify-self: end; width : 4.1rem; height : 7.4rem; background: url(../images/common/icon-top.png) no-repeat center top / contain; transition : transform .4s var(--ease);
    &:hover{transform: translateY(-.5rem);}
}
.footer-cs-tit{margin-top: 5.6rem; font-size: 1.4rem; line-height: 1; letter-spacing: -0.06em; color : #AAA;}
.footer-cs-tel{margin-top: 1rem; font-family: JO; font-size: 3.7rem; font-weight: 500; line-height: 1;}

.footer-bottom{display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 4.4rem;}
.footer-policy{display: flex; gap : 4rem; font-size: 2rem; line-height: 1; letter-spacing: -0.06em; color : #AAA;
    li.on, a:hover{color : #fff;}
}
.footer-youtube{display: flex; align-items: center; gap : 1rem; font-size: 1.4rem; letter-spacing: -0.06em; color : #AAA;
    &::before{content : ''; width : 3.55rem; height : 3.55rem; background: url(../images/common/icon-youtube.png) no-repeat center / contain;}
    &:hover{color : #fff;}
}
.footer-youtube-txt{display: flex; align-items: center; justify-content: space-between; width : 15.7rem; padding-bottom: .4rem; border-bottom : 1px solid rgba(255,255,255,0.26);
    &::after{content : ''; width : 1.8rem; height : 1.8rem; background: url(../images/common/icon-arrow.png) no-repeat center / contain;}
}


/**/
.moView{display : none !important;}

@media(max-width : 1600px){
    html{font-size: 50%;}
}

/* TABLET / MOBILE : 반응형 작업 시 상세 조정 */
@media(max-width : 1200px){
    html{font-size: 62.5%;}
    body{word-break: keep-all; overflow-wrap: break-word;}
    .moView{display : block !important;}
    .pcView{display : none !important;}
}
