@font-face {
    font-family: 'Ria';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-1@1.0/RiaSans-ExtraBold.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

::selection {
    background-color: #fafcff;
    color: #006CFF;
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-width: 320px;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #fafcff;
    scroll-behavior: smooth;
}

section{
    position: relative;
    max-width: 860px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

img{
    max-width: 860px;
    width: 100%;
    object-fit: contain;
}

/** 메인 **/

.main-alert{
    position: absolute;
    top: 5rem;
    animation: floatY2 1s infinite ease-in-out;
}

.main-title{
    position: absolute;
    top: 15.75rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

.main-counter{
    position: absolute;
    top: 35rem;
    width: 100%;
}

.main-counter > span{
    position: absolute;
    font-family: 'Ria';
    color: #FF8000;
    font-size: 6rem;
    font-weight: 800;
}

.main-counter > span:first-of-type{
    top: 7.5%;
    left: 33%;
}

.main-counter > span:last-of-type{
    top: 7.5%;
    left: 63%;
}

.main-badge{
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 20rem;
    height: 47rem;
}

.main-badge > img{
    position: absolute;
    width: 20rem;
    object-fit: contain;
}

.main-badge > img:first-of-type{
    top: 0;
}

.main-badge > img:nth-of-type(2){
    top: 28.5%;
}

.main-badge > img:last-of-type{
    bottom: 0;
}

/** 서비스 **/

.service-title{
    position: absolute;
    top: 5rem;
}

.services{
    position: absolute;
    top: 21.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

/** 경고 **/

.alert-title{
    position: absolute;
    top: 5.25rem;
}

.alert-notice{
    position: absolute;
    bottom: 0;
}

/** 프로세스 **/

.process-title{
    position: absolute;
    top: 7.2rem;
}

/** 착한환경 강점 **/

.merit-title{
    position: absolute;
    top: 13rem;
}

.merits{
    top: 35rem;
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

/** 후기 **/

.review-title{
    position: absolute;
    top: 6rem;
}

.swiper {
    position: absolute;
    top: 24rem;
    width: 100%;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    max-width: 760px;
    width: 100%;
    object-fit: contain;
    border-radius: 2rem;
    
    box-shadow: 0px 0.25rem 0.8rem #1010100D;
}

.reviewSwiper .swiper-slide {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.reviewSwiper .swiper-slide-active {
    opacity: 1;
}

.reviewSwiper .swiper-slide-active > img{
    box-shadow: 0px 0.4rem 1.5rem #FF800066;
}

.reviewSwiper .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    opacity: 0.75;
    background: #ccc;
    text-align: center;
}

.reviewSwiper .swiper-pagination-bullet-active {
    width: 1rem;
    height: 1rem;
    background: #FF8000;
    opacity: 1;
}

/** 아웃트로 **/

.outro-title{
    position: absolute;
    top: 10rem;
}

/** 플로팅 **/

.phone-cta{
    min-width: 320px;
    position: fixed;
    bottom: 2rem;
    max-width: 860px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.phone-cta > img{
    min-width: 320px;
    max-width: 860px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 0.5rem 1.5rem #3060FFCC);
}

.kakao-cta{
    position: fixed;
    bottom: 25%;
    right: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: floatY 1.5s infinite ease-in-out;
}

.kakao-cta > img{
    max-width: 192px;
    width: 100%;
    object-fit: contain;
}

.phone-call{
    max-width: 860px;
    width: 100%;
    height: 14rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-phone{
    background-color: #008EFA;
}

.alert-phone{
    background-color: #9B8FAE;
}

.merit-phone{
    background-color: #1045A0;
}

.outro-phone{
    background-color: #0B0339;
}

@keyframes floatY {
    0% {
        transform: translateY(4px);
    }
    40% {
        transform: translateY(-16px);
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    100% {
        transform: translateY(4px);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
}

@keyframes floatY2 {
    0% {
        transform: translateY(4px);
        animation-timing-function: ease-out;
    }
    50% {
        transform: translateY(0px);
        animation-timing-function: ease-in;
    }
    100% {
        transform: translateY(4px);
    }
}

@media screen and (max-width: 860px) {
    html{
        font-size: 1.86vw;
    }

    .kakao-cta{
        right: 3.33%;
        bottom: 14.5rem;
    }

    .kakao-cta > img{
        width: 12rem;
    }
}

@media screen and (max-width: 320px) {
    html{
        font-size: 5.95px;
    }
}
