@charset "utf-8";

/* base */
@import url("./base.css");

/* Loader */
#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 50%;
    z-index: 9;
}

#loader:before {
    content: "";
    position: absolute;
    top: 0px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: loader_L 2s ease-in-out infinite;
}

#loader:after {
    content: "";
    position: absolute;
    top: 0px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: loader_R 2s ease-in-out infinite;
}

@keyframes loader_L {
    0% {
        left: -25px;
        background-color: rgba(0, 0, 0, 1);
    }

    50% {
        left: 0px;
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        left: -25px;
        background-color: rgba(0, 0, 0, 1);
    }
}

@keyframes loader_R {
    0% {
        right: -26px;
        background-color: rgba(0, 0, 0, 1);
    }

    50% {
        right: 0px;
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        right: -26px;
        background-color: rgba(0, 0, 0, 1);
    }
}

#wrap {
    width: 100%;
    min-width: 320px;
    margin: 0 auto;
    opacity: 0;
}

#wrap.on {
    opacity: 1;
}

/* KEY VISUAL */
#keyVisual {
    position: sticky;
    top: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

#keyVisual .logo {
    position: absolute;
    top: 50px;
    left: 50%;
    width: 220px;
    height: 80px;
    background-image: url('../img/logo.svg');
    background-size: auto 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 9;
}

/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    #keyVisual .logo {
        top: 25px;
        width: 134px;
        height: 50px;
    }
}

#keyVisual .logo[data-scroll="in"] {
    animation: logoShow 2s 1s forwards;
}

@keyframes logoShow {
    from {
        opacity: 0;
        filter: blur(10px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* 마스크 테두리 */
#keyVisual .visualMask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
    z-index: 1;
}

#keyVisual .visualMask[data-scroll="in"] {
    animation: maskBorderInset 2s 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes maskBorderInset {
    0% {
        box-shadow:
            inset 0 0 0 0 #fff,
            /* 상 */
            inset 0 0 0 0 #fff,
            /* 우 */
            inset 0 0 0 0 #fff,
            /* 하 */
            inset 0 0 0 0 #fff;
        /* 좌 */
    }

    50% {
        box-shadow:
            inset 0 180px 0 0 #fff,
            /* 상단 마스크 두께 */
            inset 0 0 0 0 #fff,
            /* 우측 마스크 두께 */
            inset 0 -60px 0 0 #fff,
            /* 하단 마스크 두께 */
            inset 0 0 0 0 #fff;
        /* 좌측 마스크 두께 */
    }

    100% {
        box-shadow:
            inset 0 180px 0 0 #fff,
            /* 상단 마스크 두께 */
            inset -60px 0 0 0 #fff,
            /* 우측 마스크 두께 */
            inset 0 -60px 0 0 #fff,
            /* 하단 마스크 두께 */
            inset 60px 0 0 0 #fff;
        /* 좌측 마스크 두께 */
    }
}

/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    @keyframes maskBorderInset {
        0% {
            box-shadow:
                inset 0 0 0 0 #fff,
                /* 상 */
                inset 0 0 0 0 #fff,
                /* 우 */
                inset 0 0 0 0 #fff,
                /* 하 */
                inset 0 0 0 0 #fff;
            /* 좌 */
        }

        50% {
            box-shadow:
                inset 0 100px 0 0 #fff,
                /* 상단 마스크 두께 */
                inset 0 0 0 0 #fff,
                /* 우측 마스크 두께 */
                inset 0 -20px 0 0 #fff,
                /* 하단 마스크 두께 */
                inset 0 0 0 0 #fff;
            /* 좌측 마스크 두께 */
        }

        100% {
            box-shadow:
                inset 0 100px 0 0 #fff,
                /* 상단 마스크 두께 */
                inset -20px 0 0 0 #fff,
                /* 우측 마스크 두께 */
                inset 0 -20px 0 0 #fff,
                /* 하단 마스크 두께 */
                inset 20px 0 0 0 #fff;
            /* 좌측 마스크 두께 */
        }
    }
}

#keyVisual .slogan {
    position: absolute;
    bottom: 8rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    z-index: 9;
}

#keyVisual .slogan h1 {
    font-family: "Noto Serif KR", serif;
    font-size: 3rem;
    color: #fff;
    font-weight: 600;
    perspective: 200px;
    transform-style: preserve-3d;
}

#keyVisual .slogan h1 .char {
    transition: all 1s 0.5s cubic-bezier(0.8, 0, 0.2, 1);
    transition-delay: calc(0.5s * var(--distance-percent));
    transform: scale(0.3) translateX(calc(1.5em * var(--distance-sine)));
    opacity: 0;
    filter: blur(10px);
}

#keyVisual .slogan h1[data-scroll="in"] .char {
    transition-delay: calc(0.5s + 0.5s * var(--distance-percent));
    transform: scale(1) translateX(0);
    opacity: 1;
    filter: blur(0);
}

#keyVisual .slogan h2 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    opacity: 0;
}

#keyVisual .slogan h2[data-scroll="in"] {
    animation: letterSpacing 2s 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes letterSpacing {
    0% {
        opacity: 0;
        letter-spacing: 2rem;
    }

    100% {
        opacity: 1;
        letter-spacing: normal;
    }
}

/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    #keyVisual .slogan {
        bottom: 4rem;
        padding: 0 3rem;
        text-align: center;
        gap: 1rem;
    }

    #keyVisual .slogan h1 {
        font-size: 2rem;
        line-height: 2rem;
    }

    #keyVisual .slogan h2 {
        font-size: 1.2rem;
        white-space: nowrap
    }
}

#keyVisual .visualSlider {
    width: 100%;
    overflow: hidden;
}

#keyVisual .visualSlider .visual {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: block;
}


/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    /*
    #keyVisual {
        position: relative;
        height: 100vh;
    }
    */

    #keyVisual .visualSlider {
        height: 100%;
    }

    #keyVisual .visual {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }
}

#keyVisual .visualSlider .visual:nth-of-type(1) {
    background-image: url('../img/keyvisual_01.jpg');
}

#keyVisual .visualSlider .visual:nth-of-type(2) {
    background-image: url('../img/keyvisual_02.jpg');
}

#keyVisual .visualSlider .visual.slide-animation {
    animation: fadezoom 5s 0s forwards;
}

@keyframes fadezoom {
    0% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

#keyVisual .visual_pager {
    position: absolute;
    bottom: 60px;
    width: 100%;
    height: 6px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#keyVisual .visual_pager li {
    position: relative;
    width: 200px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    display: inline-block;
    text-indent: -9999px;
    transition: all 0.5s ease;
    cursor: pointer;
}

#keyVisual .visual_pager li.slick-active {
    background: rgba(255, 255, 255, 1);
    transition: all 0.5s ease;
}

/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    #keyVisual .visual_pager {
        bottom: 20px;
        height: 3px;
        padding: 0 20px;
    }

    #keyVisual .visual_pager li {
        width: 50%;
    }
}

/* BRAND PHILOSOPHY */
/* 데스크탑 디바이스 (769px 이상) */
@media all and (min-width:769px) {
    #brandPhil {
        position: relative;
        width: 100%;
        min-height: 100vh;
        height: auto;
        padding: 5rem 0;
        background-color: #12284c;
        z-index: 1;
    }

    #brandPhil .scrollArea {
        position: relative;
        width: 100%;
        max-width: 1400px;
        min-height: 2550px;
        margin: 0 auto;
    }

    #brandPhil .scrollArea>div {
        opacity: 0;
        will-change: transform, opacity;
    }

    #brandPhil .scrollArea>div img {
        max-width: 800px;
        height: auto;
        border-radius: 1rem;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
    }

    #brandPhil .scroll_01 {
        position: absolute;
        top: 0;
        right: 0;
    }

    #brandPhil .scroll_02 {
        position: absolute;
        top: 560px;
        left: 3rem;
        text-align: center;
    }

    #brandPhil .scroll_03 {
        position: absolute;
        top: 800px;
        left: 0;
    }

    #brandPhil .scroll_04 {
        position: absolute;
        top: 1400px;
        left: 0;
        right: 0;
        width: max-content;
        margin: 0 auto;
    }

    #brandPhil .scroll_05 {
        position: absolute;
        top: 2450px;
        left: 0;
        right: 0;
        width: max-content;
        margin: 0 auto;
        text-align: center;
    }

    #brandPhil .scroll_01,
    #brandPhil .scroll_03,
    #brandPhil .scroll_04 {
        transform-origin: 50% 100%;
    }


    #brandPhil .scrollArea strong {
        font-size: 3rem;
        color: #fff;
        font-weight: 600;
    }

    #brandPhil .scrollArea strong .char {
        transition: all 0.8s cubic-bezier(0.8, 0, 0.2, 1);
        transition-delay: calc(0.05s * var(--char-index));
        transform: translateY(1rem);
        opacity: 0;
        filter: blur(10px);
    }

    #brandPhil .scrollArea strong[data-scroll="in"] .char {
        transition-delay: calc(0.05s * var(--char-index));
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }

    #brandPhil .scrollArea p {
        font-size: 1.5rem;
        color: #fff;
        font-weight: 500;
        margin-top: 1rem;
        opacity: 0;
        transition: all 2s 1s cubic-bezier(0.8, 0, 0.2, 1);
        transform: translateY(1rem);
    }

    #brandPhil .scrollArea p[data-scroll="in"] {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    #brandPhil {
        position: relative;
        z-index: 1;
        width: 100%;
        padding: 4rem 0;
        background-color: #12284c;
    }

    #brandPhil .scrollArea {
        position: relative;
        width: 100%;
        min-height: 0;
        padding: 0 1.25rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    #brandPhil .scrollArea>div {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        text-align: center;
    }

    #brandPhil .scrollArea>div img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 0.5rem;
    }

    #brandPhil .scrollArea strong {
        font-size: 2rem;
        color: #fff;
        font-weight: 600;
    }

    #brandPhil .scrollArea strong .char {
        transition: all 0.8s cubic-bezier(0.8, 0, 0.2, 1);
        transition-delay: calc(0.05s * var(--char-index));
        transform: translateY(1rem);
        opacity: 0;
        filter: blur(10px);
    }

    #brandPhil .scrollArea strong[data-scroll="in"] .char {
        transition-delay: calc(0.05s * var(--char-index));
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }

    #brandPhil .scrollArea p {
        font-size: 1rem;
        color: #fff;
        font-weight: 500;
        margin-top: 1rem;
        opacity: 0;
        transition: all 2s 1s cubic-bezier(0.8, 0, 0.2, 1);
        transform: translateY(1rem);
    }

    #brandPhil .scrollArea p[data-scroll="in"] {
        transform: translateY(0);
        opacity: 1;
    }
}

/* PRODUCTS */
#products {
    padding: 5rem 2rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#products h1 {
    font-size: 2rem;
    color: #000;
    font-weight: 700;
    white-space: nowrap; /* 줄바꿈 방지 */
    padding: 0 2rem;
    opacity: 0;
}

#products h1[data-scroll="in"] {
    opacity: 1;
}

#products h1[data-scroll="in"] .char {
    animation: blurIn 2s cubic-bezier(0.5, 0, 0, 0.9) forwards;
    opacity: 0;
}

#products .itemWrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0 0 0;
}

#products .itemBox {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

#products .itemBox .item {
    width: calc(50% - 1.5rem)
}

#products .itemBox .item[data-scroll] {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 1.5s ease, transform 1.5s ease;
    transition-delay: calc(var(--delay) * 0.3s);
}

#products .itemBox .item[data-scroll="in"] {
    opacity: 1;
    transform: translateY(0);
}

#products .itemBox .item img {
    width: 100%;
    height: auto;
}

#products .itemInfo {
    padding: 1.5rem 0;
}

#products .itemInfo dl {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

#products .itemInfo dt {
    font-size: 1.5rem;
    color: #000;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

#products .itemInfo dd {
    min-width: 80px;
    font-size: 1.1rem;
    color: #000;
    font-weight: 500;
    text-align: right;
}

#products .itemInfo p {
    min-height: 5rem;
    font-size: 1rem;
    color: #616161;
    font-weight: 400;
    word-break: keep-all;
    margin-top: 1rem;
    text-align: left;
}

/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    #products {
        padding: 3rem 1rem;
    }
    #products .itemBox {
        margin-top: 2rem;
        flex-direction: column;
    }

    #products .itemBox .item {
        width: 100%;
        padding: 0;
    }

    #products .itemInfo {
        padding: 1rem 0;
    }

    #products .itemInfo dl {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: normal;
    }

    #products .itemInfo dt {
        font-size: 1.3rem;
        color: #000;
        font-weight: 700;
        text-align: left;
    }

    #products .itemInfo dd {
        min-width: auto;
        font-size: 1rem;
        color: #000;
        font-weight: 500;
        margin-top: 0.5rem;
        text-align: right;
    }

    #products .itemInfo p {
        min-height: auto;
        font-size: 0.9rem;
        color: #616161;
        font-weight: 400;
        word-break: keep-all;
        margin-top: 1rem;
        text-align: left;
    }
}

/* MEDIA */
#media {
    width: 100%;
}

#media .video {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
    box-sizing: border-box;
}

#media .videoWrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 비율 유지 */
    overflow: hidden;
}

#media .videoWrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* BRAND */
#brandStory {
    position: relative;
    padding: 8rem 2rem;
    background-color: #f6f3e0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#brandStory:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/velore_pattern.svg");
    background-size: auto 160px;
    background-position: 50% 50%;
    opacity: 0.3;
    z-index: 0;
}

/* 내부 콘텐츠들이 배경 뒤로 숨지 않도록 z-index 부여 */
#brandStory>* {
    position: relative;
    z-index: 1;
}

#brandStory .logo {
    width: 270px;
    height: 100px;
    background-image: url('../img/logo.svg');
    background-size: auto 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

#brandStory .slogan {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

#brandStory .slogan strong {
    font-family: "Noto Serif KR", serif;
    font-size: 1.5rem;
    color: #12284c;
    font-weight: 500;
}

#brandStory .slogan p {
    font-family: "Noto Serif KR", serif;
    font-size: 1.15rem;
    color: #12284c;
    font-weight: 500;
}

#brandStory .explain {
    max-width: 1000px;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#brandStory .explain p {
    font-size: 1.2rem;
    color: #12284c;
    font-weight: 400;
    word-break: keep-all;
    text-align: center;
}

#brandStory .explain p[data-scroll] {
    transition: all 2s cubic-bezier(0.8, 0, 0.2, 1);
    transform: translateY(1rem);
    opacity: 0;
    filter: blur(10px);
}

#brandStory .explain p[data-scroll="in"] {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}

/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    #brandStory {
        padding: 3rem 1rem;
    }
    #brandStory .logo {
        width: 100%;
        height: 80px;
    }
    #brandStory .slogan {
        margin-top: 0.5rem;
        gap: 0.25rem;
    }

    #brandStory .slogan strong {
        font-size: 1.15rem;
    }

    #brandStory .slogan p {
        font-size: 0.9rem;
    }

    #brandStory .explain {
        margin-top: 3rem;
    }

    #brandStory .explain p {
        font-size: 1rem;
    }
}

/* INQUIRY */
#inquiry {
    padding: 5rem 2rem;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#inquiry h1 {
    font-size: 2rem;
    color: #000;
    font-weight: 700;
    white-space: nowrap; /* 줄바꿈 방지 */
    padding: 0 2rem;
    opacity: 0;
}

#inquiry h1[data-scroll="in"] {
    opacity: 1;
}

#inquiry h1[data-scroll="in"] .char {
    animation: blurIn 2s cubic-bezier(0.5, 0, 0, 0.9) forwards;
    opacity: 0;
}

@keyframes blurIn {
    from {
        padding: 0 1rem;
        opacity: 0;
        filter: blur(10px);
    }

    to {
        padding: 0;
        opacity: 1;
        filter: blur(0);
    }
}

/* 모바일 디바이스 (768px 이하) */
@media all and (max-width:768px) {
    #inquiry {
        padding: 3rem 1rem;
    }
}

/* FOOTER */
#footer {
    width: 100%;
    background-color: #121923;
}

#footer .inner {
    width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer .logo {
    width: 100%;
    height: 36px;
    margin: 0 auto;
    background-image: url('../img/flogo.svg');
    background-size: auto 100%;
    background-position: 50% 0;
    background-repeat: no-repeat;
    text-align: center;
}

#footer .inner ul {
    max-width: 1000px;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#footer .inner ul li {
    font-size: 1rem;
    color: #7e8692;
    font-weight: 400;
    word-break: keep-all;
    padding: 0.25rem 1rem;
}

/*
+----------------------------------------------------------+
+           Mobile Device Less than 768px          +
+----------------------------------------------------------+
*/
@media all and (max-width:768px) {
    #footer .logo {
        height: 26px;
    }

    #footer .inner ul {
        padding: 0 1rem;
        justify-content: flex-start;
    }

    #footer .inner ul li {
        font-size: 0.9rem;
    }
}