/*
    메인페이지에서만 호출
    메인에 필요한 다른 css를 부름
*/
@import url(default.css);
@import url(common.css);
@import url(fonts.css);
@import url(layout.css);

.visual{
    overflow-x: hidden; /* 가로 스크롤바 허용 안함 */
    position: relative; /* ctrl_wrap 정렬의 기준 */
}
.visual .popup_wrap .popup{
    margin: 0;
}
.visual .popup_wrap .popup .item{
    height: clamp(500px, 65vw,650px);
    background: url(../images/main/visual01.jpg) no-repeat center center / cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.visual .popup_wrap .popup .item.bg2{
    background-image: url(../images/main/visual02.jpg);
}
.visual .popup_wrap .popup .item.bg3{
    background-image: url(../images/main/visual03.jpg);
}
.visual .popup_wrap .popup .item p{
    margin: 0 0 clamp(95px, 14vw, 141px) 0;
    font-size: clamp(30px, 6vw, 60px);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
}
.visual .popup_wrap .popup .slick-dots{
    position: absolute; /* popup을 기준으로 정렬 */
    bottom: 48px;
    left: calc(50%  -  (var(--wrapper-w)  /  2)); /* absolute는 반드시 left 또는 right 있어야함 */
    width: auto;
    display: flex;
    gap: 0 6px;
}
.visual .popup_wrap .popup .slick-dots li{
    width: auto;
    height: auto;
    margin: 0;
}
.visual .popup_wrap .popup .slick-dots li button{
    width: 15px;
    height: 7px;
    padding: 0;
    border-radius: 5px;
    background: rgba(255,255,255,0.6);
}
.visual .popup_wrap .popup .slick-dots li.slick-active button{
    width: 78px;
    background: #fff;
}
.visual .popup_wrap .popup .slick-dots li button::before{
    display: none;
}
.visual .ctrl_wrap{
    position: absolute; /* visual을 기준으로 정렬 */
    left: calc(50%  -  (var(--wrapper-w)  /  2)  +  132px);
    bottom: 37px;
}
.visual .ctrl_wrap button{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2  );
    background-position: center center;
    background-repeat: no-repeat;
}
.visual .ctrl_wrap button.stop{
    background-image: var(--icon-stop);
}
.visual .ctrl_wrap button.play{
    display: none;
    background-image: var(--icon-play);
}
@media screen and (max-width:1500px){
    .visual .popup_wrap .popup .slick-dots{
        left: var(--wrapper-margin);
    }
    .visual .ctrl_wrap{
        left: calc(var(--wrapper-margin)  +  132px);
    }
}/*@media*/
@media screen and (max-width:768px){
    .visual .popup_wrap .popup .item p br{
        display: none; /* 줄바꿈 삭제 */
    }
}/*@media*/


.find {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: clamp(106px, 15vw, 156px) 0 clamp(72px, 12vw, 120px) 0;
    overflow-x: hidden;
}

.find h2 {
    font-size: var(--font-size-tit);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    text-align: center;
}

.find .tab_list {
    margin: clamp(38px, 5vw, 54px) 0 clamp(18px, 5vw, 36px) 0;
    overflow-x: hidden;
}

.find .tab_list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    justify-content: center;
}

.find .tab_list ul li button {
    padding: 0.417em 1.75em;
    font-size: var(--font-size-subtit);
    font-weight: var(--font-weight-bold);
    color: var(--color-w80);
    border-radius: 100px;
}
.find .tab_list ul li.animal.active button {
    background-color: var(--color-sub2);
    color: var(--color-white);
}
.find .tab_list ul li.people.active button {
    background-color: var(--color-sub1);
    color: var(--color-white);
}

.find .tab_conts .tab_item {
    display: none;
}
.find .tab_conts .tab_item.active {
    display: block;
}

.find .tab_conts .tab_item .tab_conts_list_wrap {
    width: calc(100% + var(--gap)); /* slick은 각 항목 사이 여백을 설정 불가 */
}

.find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item {
    margin: 0 var(--gap) 0 0;
    width: 240px;
}

.find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item .photo {
    overflow: hidden;
    height: 446px;
    border-radius: 20px;
}
.find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item:hover .photo img {
    transform: scale3d(1.125, 1.125, 1);
}

.find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item ul {
    margin: 16px 0 0 10px;
}

.find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item ul li {
    display: flex;
    line-height: 1.8;
}

.find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item ul li strong {
    width: 4em;
    color: var(--color-w80);
}

.find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item ul li span {
    width: calc(100% - 4em);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.find .tab_conts .tab_item .slick-prev,
.find .tab_conts .tab_item .slick-next {
    top: 37%;
    width: 37px;
    height: 37px;
    background-color: var(--color-sub2);
    background-image: var(--icon-arrow-w);
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 10;
    transform: translate(0);
    border-radius: 50%;
}
.find .tab_conts .tab_item.people .slick-prev,
.find .tab_conts .tab_item.people .slick-next {
    background-color: var(--color-sub1);
}
.find .tab_conts .tab_item .slick-prev {
    left: -19px;
    transform: rotate(180deg);
}
.find .tab_conts .tab_item .slick-next {
    right: calc(var(--gap) - 20px);
}
.find .tab_conts .tab_item .slick-prev::before,
.find .tab_conts .tab_item .slick-next::before {
    display: none;
}

@media screen and (max-width:768px) {
        .find .tab_list ul {
            gap: 0 15px;
        }

        .find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item .photo {
            height: 313px;
            border-radius: 10px;
        }

        .find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item ul {
            margin: 9px 0 0 0;
        }

        .find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item ul li strong {
            display: none;
        }

        .find .tab_conts .tab_item .tab_conts_list_wrap .tab_conts_list .item ul li span {
            width: 100%;
        }

        .find .tab_conts .tab_item .slick-prev,
        .find .tab_conts .tab_item .slick-next {
            display: none;
        }
} /* @media screen and (max-width:768px) */


.message {
    height: 200vh;
}

.message .inner {
    height: calc(100vh - var(--header-h));
    display: flex; /* inner 안의 p를 정 가운데로 */
    justify-content: center;
    align-items: center;
    position: sticky;
    top: var(--header-h);
}

.message p {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: min(60px, 6vw);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    position: relative; /* img 정렬 기준 */
}

.message strong {
    color: var(--color-light-gray);
    position: relative; /* span 정렬 기준 */
}

.message strong span {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    color: var(--color-main);
}

.message p img {
    position: absolute;
    transition: top 0.3s, bottom 0.3s, left 0.3s, right 0.3s;
}
.message p img.sun {
    right: -30%;
    top: -40%;
    width: 31%;
    animation: up_down 3s ease-in-out 0s infinite;
}
.message p img.cat {
    right: -35%;
    bottom: -40%;
    width: 27%;
    animation: swing 3s ease-in-out 0s infinite;
}
.message p img.fish {
    right: -10%;
    bottom: -48%;
    width: 12%;
    animation: swing 3s ease-in-out 0s infinite;
}
.message p img.dog {
    left: -30%;
    bottom: -40%;
    width: 22%;
    animation: left_right 3s ease-in-out 0s infinite;
}
.message p img.pot {
    left: -15%;
    top: -15%;
    width: 10%;
    animation: swing 3s ease-in-out 0s infinite;
}

@keyframes up_down {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes swing {
    0% {
        transform: rotate(3deg);
    }
    50% {
        transform: rotate(-3deg);
    }
    100% {
        transform: rotate(3deg);
    }
}

@keyframes left_right {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-3%);
    }
    100% {
        transform: translateX(0);
    }
}

@media screen and (max-width:1500px) {
                .message p img.sun {
                    right: -20%;
                }
                .message p img.cat {
                    right: -15%;
                }
                .message p img.fish {
                    right: 5%;
                }
                .message p img.dog {
                    left: -15%;
                }
                .message p img.pot {
                    left: -5%;
                }
} /* @media screen and (max-width:1500px) */

@media screen and (max-width:1280px) {
                .message p img.sun {
                    right: -4%;
                    top: -45%;
                }
                .message p img.cat {
                    right: 7%;
                    bottom: -63%;
                }
                .message p img.fish {
                    right: 32%;
                    bottom: -72%;
                }
                .message p img.dog {
                    left: -6%;
                    bottom: -57%;
                }
                .message p img.pot {
                    left: 4%;
                }
} /* @media screen and (max-width:1280px) */

@media screen and (max-width:768px) {
                .message p img.sun {
                    top: -70%;
                }
                .message p img.cat {
                    right: 7%;
                    bottom: -92%;
                }
                .message p img.fish {
                    right: 32%;
                    bottom: -101%;
                }
                .message p img.dog {
                    bottom: -73%;
                }
                .message p img.pot {
                    top: -22%;
                }
} /* @media screen and (max-width:768px) */

.adopt {
    padding: clamp(106px, 16vw, 162px) 0 clamp(159px, 30vw, 304px) 0;
    background-color: var(--color-main);
    color: var(--color-white);
    text-align: center;
    position: relative; /* .rolling_wrap 정렬 기준 */
}

.adopt h2 {
    font-size: var(--font-size-tit);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    margin: 0 0 clamp(29px, 4vw, 48px) 0;
}

.adopt .list_item {
    width: clamp(240px, 34vw, 342px);
    /* margin: 0 calc(var(--gap) / 2); */
    transform: scale3d(0.92, 0.92, 1);
    opacity: 0.8;
    transition: transform 0.1s, opacity 0.1s;
}
.adopt .list_item.slick-center {
    transform: scale3d(1, 1, 1);
    opacity: 1;
}

.adopt .list_item a {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.adopt .list_item a .photo {
    overflow: hidden;
    border-radius: 50%;
}

.adopt .list_item a .photo img {
    width: 100%;
}

.adopt .list_item a strong {
    position: relative;
    z-index: 1;
    display: block;
    background-color: var(--color-sub2);
    color: var(--color-white);
    padding: 0 20px;
    border-radius: 100px;
    margin: -15px 0 11px 0;
}
.adopt .list_item a strong.tmp {
    background-color: var(--color-sub1);
}

.adopt .list_item a span {
    display: block;
}

.adopt .rolling_wrap {
    position: absolute;
    left: 0;
    bottom: clamp(18px, 2vw, 22px);
    font-size: clamp(50px, 10vw, 100px);
    font-weight: var(--font-weight-bold);
    color: var(--color-w20);
    white-space: nowrap;
    width: 100%; /* 가로 스크롤바 제거 */
    height: 1.5em;
    overflow-x: hidden;
}

.adopt .rolling_wrap .rolling {
    position: absolute; 
    /* 글자의 길이대로 너비를 인식할 요소가 필요
    absolute를 주고 너비를 안 주면 글자의 너비만큼 너비를 설정
    가로 스크롤바가 안 생기게 위에서 width: 100%;overflow-x: hidden;으로 감쌈 */
    left: 0;
    bottom: 0;
    /* transform: translateX(-50%); */
    animation: adopt_roll 30s linear 0s infinite;
}

@keyframes adopt_roll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media screen and (max-width:768px) {
                .adopt .list_wrap {
                    margin: 0 var(--gap);
                }

                .adopt .list_item {
                    transform: scale3d(1, 1, 1);
                    opacity: 1;
                    margin: 0 var(--gap) 0 0;
                }
                
                .adopt .list_item a .photo {
                    border-radius: 10px;
                }
                .adopt .list_item a strong {
                    margin: -12px 0 7px 0;
                }
} /* @media screen and (max-width:768px) */


.review {
    margin: clamp(110px, 18vw, 189px) 0 clamp(95px, 12vw, 120px) 0;
}

.review .wrapper {
    position: relative;
}

.review .list_wrap {
    width: calc(100% + var(--gap));
}

.review h2 {
    font-size: var(--font-size-tit);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    color: var(--font-color-tit);
    margin: 0 0 clamp(20px, 5vw, 50px) 0;
    padding: 0 0 9px 0;
    border-bottom: 1px solid #ededed;

}


.review .list_item {
    width: clamp(240px, 34vw, 342px);
    margin: 0 var(--gap) 0 0;
}

.review .list_item a {
    display: block;
}

.review .list_item a .photo {
    overflow: hidden;
    height: clamp(240px, 34vw, 342px);
}

.review .list_item a .photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.review .list_item a h3 {
    font-size: var(--font-size-subtit);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    color: var(--font-color-tit);
    margin: clamp(20px, 2vw, 28px) 0 clamp(10px, 10vw, 11px) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review .list_item a p {
    line-height: var(--line-height-default);
    height: calc(var(--line-height-default) * 2em);
    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.review .more {
    position: absolute;
    right: 0;
    top: 0;
}

.review .more a {
    display: flex;
    align-items: center;
    gap: 0 12px;
    padding-right: 22px;
    position: relative; /* ::after 정렬 기준 */
}
.review .more a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 15px;
    height: 15px;
    background-image: var(--icon-more);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%);
}

.review .more a strong {
    font-size: var(--font-size-tit);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tit);
    color: #014CA9;
}

@media screen and (max-width:768px) {
                .review h2 {
                    padding: 0;
                    border-bottom: none;
                }

                .review .more a {
                    width: 28px;
                    height: 28px;
                    border: 1px solid var(--font-color-default);
                    border-radius: 50%;
                    padding-right: 0;
                }
                .review .more a::after {
                    right: 50%;
                    width: 11px;
                    height: 11px;
                    transform: translate(50%, -50%);
                }

                .review .more a strong,
                .review .more a span {
                    display: none;
                }
} /* @media screen and (max-width:768px) */
