
:root {
  --headerH: 90px;
}

#section-nav {
  position: fixed;
  top:50%;
  left: 40px;
  transform: translateY(-50%);
  width:22px;
  z-index: 10;
  display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 24px 0;
}

#section-nav li a {
  display: flex;
    flex-wrap: nowrap;
    align-items: center;
    writing-mode: vertical-rl;
    gap: 0 15px;
}

#section-nav li a p {
    display:none;
}

#section-nav .marker {
  position: relative;
  width: 10px;
  height: 10px;
  display:block;
  background-color: rgba(255,255,255,0.25);
  border-radius: 50%;
  z-index: 12;
  transition: all 0.3s ease-in;
}

#section-nav li:hover .marker,
#section-nav li.active .marker {
background-color:#fff;
}

#section-nav li.active a p {
    display:block;
}

#section-nav li.active .marker::before {
  content:'';
  display:block;
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.12);
  z-index: 11;
  transition: all 0.3s ease-in;

}

#section-nav li.active a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
}

#section-nav.color-dotted li a{
    color:#444;
}

#section-nav.color-dotted .marker {
      background-color: rgba(68, 68, 68, 0.25);
}
#section-nav.color-dotted li:hover .marker,
#section-nav.color-dotted li.active .marker {
    background-color: #444;
}

#section-nav.color-dotted .active .marker::before  {
      background-color: #444;
      opacity: 0.12;
}

.section {
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }


.visual-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.visual-slider .slick-list,
.visual-slider .slick-track {
    height: 100vh !important; /* !important가 필요할 수 있습니다 */
}
.visual-slider .slide-item {
    /* 기존 반응형 높이(padding-bottom) 제거 */
    /* height: 0; */
    /* padding-bottom: 41.66%; */

    /* 100vh로 높이 설정 */
    height: 100vh; 

    /* 기존 스타일 제거/수정 */
    border-radius: 0; /* 전체 화면이므로 둥근 모서리 제거 */
    margin: 0;        /* 슬라이드 간 여백 제거 */

    /* 배경 이미지 공통 스타일 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    filter: blur(3px);
}

  #slide1-1 { 
    background-image: url('/img/main/slide_bg_1.jpg'); 
  }
  #slide1-2 { 
    background-image: url('/img/main/slide_bg_2.jpg'); 
  }
  #slide1-3 { 
    background-image: url('/img/main/slide_bg_3.jpg'); 
  }

.custom-slide-nav {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 20px;
    font-size: 18px;
    font-family: 'Outfit', sans-serif;
    font-weight:500;
    color:#fff;
            backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); /* Safari 호환성 */
}

.custom-slide-nav .nav-arrow {
    background: none;
    border: none;
    opacity: 0.5;
    height:20px;
    transition: opacity 0.2s ease;
}

.custom-slide-nav .nav-arrow:hover {
    opacity: 1;
}

.custom-slide-nav .slide-numbers {
    display: flex;
    align-items: center;
    gap: 5px 13.5px;
    font-size:12px;
    color: rgba(255,255,255,0.5);
}

.custom-slide-nav .slide-numbers span {
  width: 24px;
  height:24px;
  text-align: center;
  font-size: 18px;
  color: rgba(255,255,255,1);
}

.fp-controlArrow {
    display: none !important;
}
.fp-slidesNav {
    display: none !important;
}

.slogan {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 100%;
    max-width:1200px;
}

.slogan span {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;;
    color:#fff;
    font-size :8rem;
}

.text-mask {
    overflow: hidden;
    display: block; 
}

.slogan .smoothUp {
    display: block;
    transform: translateY(100%);
    opacity: 0;
}

.slogan .up {
    display: block;
    transform: translateY(110%);
    opacity: 0;
}

@keyframes maskReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes simpleSlideUp {
    from {
        transform: translateY(50%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slogan.animate-text .smoothUp {
    animation: maskReveal 0.5s ease-out 0.3s forwards;
}

.slogan.animate-text .up {
    animation: simpleSlideUp 0.5s ease-out 0.9s forwards;
}


.scroll-notice {
    position:absolute;
    bottom:48px;
    right: 40px;
    z-index: 5;
    --rowH: 80px;
    --rimitH: 100px;
}

.scroll-notice > a:hover .stylized-shape {
  animation: stretch-down 1s ease-in-out infinite;
}

.scroll-notice span {
    display:block;
    font-family: 'Outfit',sans-serif;
    font-size: 16px;
    font-weight: 500;
    color:#fff;
    line-height: 1.3;
    writing-mode: vertical-rl;
    padding-bottom: 8px;
}

.scroll-notice .stylized-shape {
  width: 2px;
  height: 80px;
  background-color: #fff;
  border-radius: 6px;
  position: relative;
  bottom: 0;
  left: 10px; /* 또는 right: 0 등, 부모 기준의 가로 위치 */
}

.scroll-notice .stylized-shape::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #fff;
  border-radius: 6px;
  height: 14px; 
  top: inherit; 
  bottom: 11px;
  left: 12px;
  transform-origin: bottom left;
  transform: rotate(224deg);
}

@keyframes stretch-down {
  0%, 100% {
    /* 시작과 끝: 원래 높이 */
    height: var(--rowH);
  }
  50% {
    /* 중간: 10px 늘어난 높이 */
    height: var(--rimitH);
  }
}

@media screen and (max-width: 960px) {
    .scroll-notice {
        bottom: 25px;
        right: 15px;
        --rowH: 60px;
        --rimitH: 80px;
    }
    .scroll-notice span {
        font-size: 14px;
    }

    .scroll-notice .stylized-shape {
        height: 60px;
    }

}

@media screen and (max-width: 720px) {
    .scroll-notice {
        display:none;
    }
}

/* fp custom */
#fp-nav li:hover .fp-tooltip {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#fp-nav li a.active ~ .fp-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes ken-burns-zoom {
    from {
        transform: scale(1.05);
        filter: blur(3px);
    }
    to {
        transform: scale(1.1);
        filter: blur(0);
    }
}

.fp-section#visual .slide-item {
    transition: transform 0.7s ease-out;
}

.fp-section#visual .slide-item.slick-active {
    animation: ken-burns-zoom 6s ease-out 2s forwards;
}

/* product */
.ani-box {
  position: relative;
  height:100vh;
}

#product .ani-box .w1560,
#rnd .ani-box .w1560,
#contact .ani-box .w1560{
  padding-top: var(--headerH);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

#news .ani-box .w1560 {
    padding-top: 49px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

#product .ani-bg {
    width: 100%;
    height: 100%; 
    position: relative; /* ::before 요소의 위치 기준 */
    overflow: hidden; /* ::before 요소가 밖으로 나가지 않도록 함 */
}

#product .ani-bg:before {
    content: '';
    position: absolute;
    bottom: 0; 
    right: 0;
    width: 100%;
    height: 0%; 
    background: url("/img/main/main-product-bg.svg") no-repeat bottom right;
    background-size: 720px; 
    transition: all 0.4s ease-in;
}

#product .ani-bg.ani-on:before {
    height: 100%;
}

#rnd .ani-bg {
    width: 100%;
    height: 100%; 
    background: url("/img/main/main-rnd-bg.jpg") no-repeat center center / cover; 
}

#news .ani-bg {
    width: 100%;
    height: 100%; 
    background: url("/img/main/main-news-bg.jpg") no-repeat center center / cover; 
}

.ani-contents {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.ani-contents .left > span {
    display: block;
    font-size: 28px;
    color:#8DC63F;
    font-weight: 500;
    font-family: 'Outfit',sans-serif;
    line-height: 1.3;
    margin-bottom: 2.8rem;
}

.ani-contents .left > div.point-txt {
    font-size:60px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    color:#1b1b1b;
    opacity: 0;
    transition: all 0.3s ease-in;
    transform: translateY(110%);
}

.ani-contents .left > div.point-txt:first-of-type {
    margin-bottom: .6rem;
}

#product .ani-contents .left.ani-on > div.point-txt:first-of-type,
#rnd .ani-contents .left.ani-on > div.point-txt:first-of-type,
#news .ani-contents .left.ani-on > div.point-txt:first-of-type,
#contact .ani-contents .left.ani-on > div.point-txt:first-of-type{
    animation: simpleSlideUp 0.4s ease-out 0.2s forwards;
}

#product .ani-contents .left.ani-on > div.point-txt:not(:first-of-type),
#contact .ani-contents .left.ani-on > div.point-txt:not(:first-of-type){
    animation: simpleSlideUp 0.4s ease-out 0.7s forwards;
}



.ani-contents .left > p {
    display:block;
    margin:4.0rem 0 8.0rem;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    color:#444;
    letter-spacing: -0.2px;
}

.buttons a{
    display:flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0 20px;
    width: 218px;
    height: 60px;
    border: 2px solid #DDE5F4;
    background-color:#fff;
    border-radius: 999px;
    font-size: 18px;
    color:#1b1b1b;
    font-weight: 600;
    font-family: 'Outfit',sans-serif;
    transition: all 0.3s ease-in-out;
}

.buttons a:hover {
    border-color:#54B9CB;
    background-color:#54B9CB;
    color:#fff;
}

.buttons a .ico {
    width:16px;
    height:16px;
    position:relative;
    z-index: 1;
    transform: rotate(0);
    transition: all 0.3s ease-in-out;
}

.buttons a .ico span {
    position: absolute;
    display:block;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    transition: all 0.3s ease-in-out;
}

.buttons a .ico span:first-child {
    width:4px;
    height: 16px;
    background-color:#54B9CB;
    transition: all 0.3s ease-in-out;
    z-index: 2;
}

.buttons a .ico span:last-child {
    width:16px;
    height: 4px;
    background-color:#3960AD;
    transition: all 0.3s ease-in-out;
    z-index: 3;
}

.buttons a:hover .ico {
    transform: rotate(90deg);
}

.buttons a:hover .ico span:first-child {
    background-color: rgba(255,255,255,0.5);
}
.buttons a:hover .ico span:last-child {
    background-color: rgba(255,255,255,1);
}

#product .ani-contents {
    gap: 14.2rem;
}

#product .ani-contents .left {
    padding-top:69px;
}

#rnd .ani-contents .left {
    padding-top:37px;
    flex: calc(100% - 660px);
    padding-right: 12.0rem;
}

/* product */

#product .ani-contents .right .itemWrap {
    position:relative;
    z-index: 1;
}

#product .ani-contents .right .itemWrap img {
    display:block;
    opacity: 0;
    transform: translateY(10%);
}

#product .ani-contents .right .itemName {
    position: absolute;
    width: 0;
    left: 370px;
    bottom:267px;
    z-index: 2;
    border-top: 1px solid rgba(57,96,173, 0.25);
    display:flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    transition: width 0.6s 1s ease;
}

#product .ani-contents .right .itemName p {
    padding-top:20px;
    display: block;
    font-size: 24px;
    color:#3960AD;
    font-weight: 500;
    font-family: 'Outfit',sans-serif;
    line-height: 1.3;
    margin-right: 20px;
    opacity: 0;
    transition: opacity 0.6s 1.7s ease;
}

#product .right.ani-on .itemWrap img{
    animation: simpleSlideUp2 0.6s 0.5s ease-out forwards;
}

#product .right.ani-on .itemName {
    width:240px;
}

#product .right.ani-on .itemName p{
    opacity: 1;
}

@keyframes simpleSlideUp2 {
    from {
        transform: translateY(10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* about */
#intro{
	--size: 50px;
}
#intro{ width: 100%; height: 100%; position: absolute; top:0; left:0; z-index: 1000;  }
#intro .mask{ 
    position: relative;
	width: 100%;
	height: 100%;
	background: #8DC63F;
	mask: url("/img/main/clover.svg") no-repeat center center / var(--size), linear-gradient(#8DC63F 0 0);
	-webkit-mask: url("/img/main/clover.svg") no-repeat center center / var(--size), linear-gradient(#8DC63F 0 0);
	mask-size: 0, 100%;
	-webkitmask-size: 0, 100%;
	mask-composite: exclude;
    z-index: 3;
}
#intro h1{ width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; position: absolute; top: 0; left: 0; opacity: 0;}
#intro h1 svg{ animation: introLogo 1s 1s both; }


#intro.on {
animation: introVisiblity 2s 3s ease forwards
}

#intro.on .mask {
    animation: introBg .3s 0.5s ease-out forwards , introMask 5.5s 2s ease-out forwards;
}

@media screen and (max-width:720px) {
    #intro.on .mask {
        animation: introBg .3s 0.5s ease-out forwards , introMask 3s 2s ease-out forwards;
    }
}

#intro .text {
    position: absolute; 
    top:50%; 
    left:50%;  
    transform: translate(-50%,-50%);
    z-index: 4;
}

#intro .text p {
    display:block;
    font-size:80px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.2px;
    color: rgba(255,255,255,0.5);
    opacity: 0;
    transform: translateY(110%);
}

#intro .text span {
    display:inline-block;
    color: rgba(255,255,255,1);
}

#intro.on .text p {
    animation: simpleSlideUp 0.6s 0.5s ease-out forwards, introLogo 0.6s 2s ease-out forwards;
}

@keyframes introBg{
	to { background-color: #009444; }
}

@keyframes introLogo{
	0%{ opacity: 1; }
	100%{ opacity: 0; }
}

@keyframes introVisiblity{
	to { visibility: hidden; }
}

@keyframes introMask{
	100%{
		mask-size: 400vw;
		-webkit-mask-size: 400vw;
	}
}

#about .backup-cont {
    position:relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display:flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    background: url('/img/main/main-about-bg.jpg') no-repeat center center / cover;
    background-color:rgba(0,0,0,0.5);
}

#about .backup-cont:after {
    content:'';
    display:block;
    width:100%;
    height:100%;
    position: absolute;
    top:0;
    left:0;
    background-color:rgba(0,0,0,1);
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in;
}

#about .backup-cont.animation-end:after {
    opacity: 0.6;
    visibility: visible;
}


#about .backup-cont .text {
    position: relative;
    width: 100%;
    min-height: 420px;
    display:flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 4;
    margin-top:90px;
}

#about .backup-cont .text > * {
    color:#fff;
    text-align: center;
    opacity: 0; 
    position: absolute;
    bottom: 0;
    transition: bottom 0.8s ease-out, 
    opacity 0.8s ease-out, 
    transform 0.8s ease-out;
}

#about .backup-cont .text strong {
    transform: translateY(0);
}

#about .backup-cont .text p,
#about .backup-cont .text .buttons {
    transform: translateY(100px); 
}

#about .backup-cont .text strong {
    display:block;
    font-size: 60px;
    line-height: 1.4;
    letter-spacing: -0.2px;
    font-weight: 500;
}

#about .backup-cont .text strong span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

#about .backup-cont .text p {
    font-size:20px;
    font-weight: 300;
    line-height: 1.6;
}

#about .backup-cont .buttons a{
    background-color: transparent;
    border-color:#fff;
    color:#fff;
}

#about .backup-cont .buttons a .ico span:first-child{
    background-color: #fff;
}

#about .backup-cont .buttons a .ico span:last-child  {
    background-color: #fff;
    opacity: 0.5;
}

#about .backup-cont .buttons a:hover {
    background-color:#fff;
    color:#1b1b1b;
}

#about .backup-cont .buttons a:hover .ico span:first-child {
    background-color: #8DC63F;
}

#about .backup-cont .buttons a:hover .ico span:last-child {
    background-color: #009444;
}

/* rnd */

#rnd .ani-contents .left .rnd-count {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap:0 60px;
    
}

#rnd .ani-contents .left .rnd-count > div {
min-width:15.8rem;
}

#rnd .ani-contents .left .rnd-count > div strong {
    display: block;
    font-size: 32px;
    color:#3960AD;
    font-weight: 600;
    font-family: 'Outfit',sans-serif;
    line-height: 1.3;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}

#rnd .ani-contents .left .rnd-count > div > span {
    display: block;
    font-size: 18px;
    color:#aab1c7;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.slot-counter {
    display: flex;
    justify-content: flex-start;
    font-size: 120px;
    color:#1b1b1b;
    font-weight: 600;
    font-family: 'Outfit',sans-serif;
    line-height: 1.3;
}

.slot-counter .insertNumber {
    display:none;
    opacity: 0;
    visibility: hidden;
}

.reel-container {
    height: 1em; /* 폰트마다 적절한 line-height(1.1em)를 줍니다 */
    line-height: 1em;
    overflow: hidden;
}

.reel {
    transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.reel span {
    display: block; /* 숫자가 세로로 쌓이도록 함 */
    height: 1em;
}

#rnd .ani-contents .right .rnd-box {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#rnd .ani-contents .right .box-line {
    width:100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    
}

.rnd-item {
    position:relative;
    z-index: 1;
        border-radius: 24px;
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s ease-in-out;
}

.rnd-item .item-effect{
    position: absolute;
    z-index: 2;
    display: block;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(57, 96, 173, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-in-out;
}

.rnd-item .item-effect::after {
    content:'';
    position:absolute;
    z-index: 3;
    display: block;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: linear-gradient(180deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.rnd-item .item-bg{
    width: 320px;
    height: 320px;
}

.rnd-item .item-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size:cover !important;
    transform-origin: center center;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.rnd-item .item-info{
    position:absolute;
    z-index: 4;
    left: 40px;
    bottom: 40px;
}

.rnd-item .item-info span {
    display:block;
    font-size: 24px;
    font-weight: 600;
    color:#fff;
    line-height: 1.3;
    letter-spacing: -0.2px;
    margin-top: 12px;
}

.rnd-item .item-info i {
    display:block;
    width:64px;
    height: 64px;
    opacity: 0;
    visibility: hidden;
    background-size: cover !important;
    transition: all .3s ease-in-out;
}

#rd-item1 .item-bg::after{
    background: url('/img/main/main-rnd-1.jpg') no-repeat center center  ;
}
#rd-item1 .item-info i {
    background: url('/img/main/main-rnd-icon1.svg') no-repeat center center ;
}
#rd-item2 .item-bg::after{
    background: url('/img/main/main-rnd-2.jpg') no-repeat center center;
}
#rd-item2 .item-info i {
    background: url('/img/main/main-rnd-icon2.svg') no-repeat center center ;
}
#rd-item3 .item-bg::after{
    background: url('/img/main/main-rnd-3.jpg') no-repeat center center;
}
#rd-item3 .item-info i {
    background: url('/img/main/main-rnd-icon3.svg') no-repeat center center  ;
}

#rd-item1:hover,
#rd-item3:hover{
    border-top-left-radius: 160px;
}

#rd-item2:hover{
    border-bottom-right-radius: 160px;
}

#rnd .ani-contents .rnd-item:hover .item-effect {
    opacity: 1;
    visibility: visible;
}

#rnd .ani-contents .rnd-item:hover .item-bg:after {
    transform: scale(1.2);
}

#rnd .ani-contents .rnd-item:hover .item-info i  {
    opacity: 1;
    visibility: visible;
}

/* news */

#news .ani-contents {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 62px 0;
}

#news .ani-contents > div {
    width:100%;
    flex: 100%;
}


/* 네비게이션 버튼 */
.slider-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap:0 10px;
}

.slider-nav button {
    width:60px;
    height:60px;
    border-radius: 50%;
    border:2px solid #e1e1e1;
    background:transparent;
    box-shadow: none;
    padding:0;
    margin:0;
    transition: all .3s ease-in;
}

.slider-nav button i {
    display: inline-block;
    width:22px;
    height: 100%;
}

.slider-nav button.prev-btn i {
    background: url('/img/main/chevron-left.png') no-repeat center center / contain;
}

.slider-nav button.next-btn i {
    background: url('/img/main/chevron-right.png') no-repeat center center / contain;
}

.slider-nav button:hover {
    background:#8DC63F;
    border-color:#8DC63F;
}

.slider-nav button.prev-btn:hover i {
    background: url('/img/main/chevron-left-on.png') no-repeat center center / contain;
}

.slider-nav button.next-btn:hover i {
    background: url('/img/main/chevron-right-on.png') no-repeat center center / contain;
}

#news .slider-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0 252px;
}

#news .flex-card-wrap {
    flex:100%;
    width:100%;
    position: relative;
}

#news .card-viewport {
    width: 1700px;
    position: relative;
    height: 360px;
    overflow: hidden;
}
    
.card {
    width: 380px;
    position: absolute;
    inset: 0 auto 0 0; 
    padding-right: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease-in-out;
    pointer-events: auto; 
}

.card[style*="opacity: 0"] {
    pointer-events: none;
}

.card:hover .card-content {
    background-color:#3960AD;
    border-color:#3960AD;
    animation: squash-flip 0.3s ease;
    transition: background-color 0.3s ease, color 0.3s ease; /* transition 분리 */
}

@keyframes squash-flip {
    0% {
        transform: scaleX(1); /* 100% 너비 */
    }
    50% {
        transform: scaleX(0.05); /* 40% 너비 (중앙 기준) */
    }
    100% {
        transform: scaleX(1); /* 100% 너비 */
    }
}

.card:hover .card-content .card-title strong,
.card:hover .card-content .card-desc p,
.card:hover .card-content .card-date {
    color:#fff;
}

.card-content {
    width:100%;
    height: 100%;
    border: 2px solid #D0E3E5;
    border-radius: 24px;
    background-color:#fff;
    overflow: hidden;
    padding: 40px;
    display:flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transform-origin: center;
    transition: all .3s ease;
}

.card-content > a {
    display:block;
    width:100%;
    height:100%;
    display:flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.card-content > a > div {
    width: 100%;
}

.card-content > a > div:last-of-type {
    margin-top: auto;
}

.card-content .card-title{
    text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom:20px;
}

.card-content .card-title strong {
    font-size: 22px;
    font-weight: 500;
    color:#1b1b1b;
    letter-spacing: -0.2px;
    line-height:1.6;
     transition: all .3s ease;
}

.card-content .card-desc{
    text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-bottom:40px;
}

.card-content .card-desc p {
    font-size: 18px;
    font-weight: 300;
    color:#444;
    letter-spacing: -0.2px;
    line-height:1.6;
    transition: all .3s ease;
}

.card-content .card-date {
    text-align:right;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color:#54B9CB;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height:1.3;
    transition: all .3s ease;
}

/* contact */

#contact .ani-bg {
    width:100%;
    height: 100vh;
    background: linear-gradient(180deg,#F3FBFD 0%, #DFEFF2 100%);
}

#contact .ani-contents {
    gap: 0 94px;
}

#contact .ani-contents > div {
    flex:50%;
}

 #contact .ani-contents > div.left {
    padding-top: 85px;
 }

#contact .ani-contents .left .buttons a {
    background-color:rgba(255,255,255,0.66);
    font-family: 'Pretendard';
    border:0;
    color:#1b1b1b;
}

.ani-contents .left .buttons a .ico {
    width:24px;
    height:24px;
}

#contact .ani-contents .left .buttons a .ico i {
    display:inline-block;
    width:24px;
    height:100%;
    background: url('/img/main/download.svg') no-repeat center center / cover;
}

#contact .ani-contents .left .buttons a:hover .ico {
    transform: rotate(0deg);
}

#contact .ani-contents .left .buttons:hover a {
    background-color:#fff;
    color:#1b1b1b;
}

#contact .ani-contents .contact-option {
    margin-top: 40px;
    display:flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}
#contact .ani-contents .contact-option .agree-wrap {
    display:flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0 12px;
}
#contact .ani-contents .contact-option .agree-wrap .view-policy button {
    display: block;
    text-align: center;
    border-radius: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    height: 32px;
    line-height: 32px;
    box-shadow: none;
    width: 72px;
    border:0;
    background-color:#D0E3E5;
    color:#657476;
}

#contact .ani-contents .contact-option .buttons button{
    display: block;
    text-align: center;
    border-radius: 40px;
    padding: 17.5px 10px;
    border: 2px solid #DDE5F4;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: none;
    width: 280px;
}


/* media query 1700px */

@media screen and (max-width:1700px) {
    
:root {
  --headerH: 60px;
}
    #product .ani-box .w1560, #rnd .ani-box .w1560, #contact .ani-box .w1560,
    #news .ani-box .w1560 {
        max-width: 1400px;
    }

    .ani-contents .left > div.point-txt {
        font-size: 40px;
    }

    .ani-contents .left > p {
        font-size: 16px;
    }

    .buttons a {
        width: 180px;
        font-size:16px;
        height: 45px;
    }

    #intro .text p {
        font-size: 60px;
    }

    #product .ani-contents .right .itemWrap img{
        display:inline-block;
        width:342px;
        height: 100%;
    }

    #product .ani-contents .right .itemName {
        left: 256px;
        bottom: 140px;
    }

    #product .ani-bg:before {
        background-size: 640px;
    }

    #about .backup-cont .text {
        min-height: 350px;
    }


    #about .backup-cont .text strong {
        font-size: 40px;
    }

    #about .backup-cont .text p {
        font-size: 18px;
    }


    #rnd .ani-contents .left .rnd-count > div strong {
        font-size: 28px;
    }

    #rnd .ani-contents .left .rnd-count > div > span {
        font-size: 16px;
    }

    .slot-counter {
        font-size: 90px;
    }

    .rnd-item .item-bg {
        width: 240px;
        height: 240px;
    }

    #news .card-viewport {
        height: 280px;
    }

    .ani-contents .left .buttons a .ico {
        width: 20px;
        height: 20px;
    }

    #contact .ani-contents .left .buttons a .ico i {
        width:20px;
    }

    .card {
        width:280px;
    }

    .card-content {
        padding: 15px;
    }

    .card-content .card-title strong {
        font-size: 18px;
    }

    .card-content .card-desc p {
        font-size: 16px;
    }

    .grid-form .form input, .grid-form .form select {
        height: 50px;
    }

    .grid-form .form .captcha button {
        width: 50px;
        height: 50px;
    }

    .grid-form .form .captcha figure {
        height: 50px;
    }

    .grid-form .form .captcha figure img {
        width: 100%;
    }

    .grid-form .agree label span {
        font-size: 15px;
    }

    #contact .ani-contents .contact-option .buttons button {
        width: 170px;
        font-size: 16px;
        padding: 12.5px 10px;
    }
}

@media screen and (max-width: 1450px) {
    #product .ani-box .w1560, #rnd .ani-box .w1560, #contact .ani-box .w1560, #news .ani-box .w1560 {
        max-width: 1260px;
    }
}

@media screen and (max-width: 1300px) {
    #product .ani-box .w1560, #rnd .ani-box .w1560, #contact .ani-box .w1560, #news .ani-box .w1560 {
        max-width: 1260px;
    }

    #section-nav {
        left: 20px;
    }

    .custom-slide-nav {
        padding: 12px;
    }

    #product .ani-contents {
        gap: 10.2rem;
    }.ani-contents .left > p {
        margin: 3rem 0 5rem;
    }
}

@media screen and (max-width: 1230px) {
    #product .ani-box .w1560, #rnd .ani-box .w1560, #contact .ani-box .w1560, #news .ani-box .w1560 {
        max-width: 1100px;
        padding: 0 60px;
    } 

    #rnd .ani-contents .left {
        flex: calc(100% - 500px)
    }

    .rnd-item .item-bg {
        width: 200px;
        height: 200px;
    }

    .ani-contents .left > span {
        font-size: 22px;
    }

    .ani-contents .left > div.point-txt {
        font-size: 32px;
    }

    .ani-contents .left > p {
        font-size: 14px;
    }

    .buttons a {
        width: 160px;
        font-size: 14px;
        height: 40px;
    }
    .buttons a .ico span:first-child {
        height: 14px;
    }

    .buttons a .ico span:last-child {
        width: 14px;
    }

    #product .ani-contents .right .itemWrap img {
        width: 300px;
    }
    #product .ani-contents .right .itemName {
        left: 230px;
        bottom: 100px;
    }

    #product .right.ani-on .itemName {
        width: 195px;
    }

    #product .ani-contents .right .itemName p {
        font-size: 20px;
        margin-right: 15px;
        padding-top: 15px;
    }

    #rnd .ani-contents .left .rnd-count > div strong {
        font-size: 24px;
    }

    .slot-counter {
        font-size: 70px;
    }
}


@media screen and (max-width: 1000px) {
    .fp-section {
        pointer-events:auto !important;
        /* overflow:visible !important; */
        height:auto !important;
    }
    html, body {
        overflow:auto !important;
    }
    .section { height:auto !important; }
	.section .fp-tableCell,
	.section .fp-scrollable { height:auto !important; }
	
	.fp-section, .fp-tableCell{height:auto !important;}
	.iScrollIndicator,
	.fp-scrollable { height:auto !important; }
	.iScrollVerticalScrollbar { display:none !important; } 

    #fullpage { overflow:hidden; height:auto !important; }

    .ani-box,
    .fp-tableCell {
        height: 100% !important;
    }

    .visual-slider {
        height: 100%;
    }

    .visual-slider .slick-list, .visual-slider .slick-track {
        max-height: 500px !important;
        height: 100% !important;
    }
    .visual-slider {
        position: relative;
    }

    .visual-slider .slide-item {
        height: 500px;
    }

    .w1820  {
        position: relative;
        padding: 0 60px;
        top: 0;
        left: 0;
        transform: none;
    }

    .ani-contents {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px 0;
    }

    #contact .ani-contents {
        gap: 20px 0;
    }

    .ani-contents .left{
        width:100%;
    }

    .ani-contents .left > p br{
        display: none;
    }

    #product .ani-box .w1560, #rnd .ani-box .w1560, #contact .ani-box .w1560, #news .ani-box .w1560{
        position: relative;
        padding: var(--headerH) 60px;
        top: 0;
        left: 0;
        transform: none;
    }  

    #product .ani-bg,
    #rnd .ani-bg,
    #news .ani-bg,
    #contact .ani-bg {
        position: absolute;
        height: 100%;
    } 
    #product .ani-bg:before {
        
        background: url(http://finecem.webmoa21.co.kr/img/main/main-product-bg.svg) no-repeat bottom center;
    }
    #product .ani-contents .left {
        padding: 0;
    }

    #product .ani-contents .right .itemWrap img {
        width: 280px;
    }

    #intro .text p {
        font-size: 48px;
    }

    #about .backup-cont .text strong {
        font-size: 30px;
    }

    #about .backup-cont .text p {
        font-size: 15px;
    }

    #about .backup-cont .text {
        padding: 0 60px;
    }

    #rnd .ani-contents .left {
        padding:0;
    }

    #rnd .ani-bg,
    #news .ani-bg {
        background-position: top center;
        background-size: contain;
    }

    #rnd .ani-contents .right {
        width: 100%;
    }

    #rnd .ani-contents .right .box-line {
        justify-content: flex-start;
    }

    .rnd-item .item-info {
        left:20px;
        bottom: 20px;
    }

    .rnd-item .item-info span {
        font-size: 18px;
        margin-top:6px;
    }

    .rnd-item .item-info i {
        width:32px;
        height:32px;
    }

    #news .ani-contents {
        gap: 40px 0;
    }

    .slider-nav button {
        width: 45px;
        height: 45px;
    }

    .slider-nav button i {
        width: 16px;
    }

    #news .slider-container {
        gap: 0 60px;
    }

    .card-content .card-title strong {
        font-size: 16px;
    }

    .card-content .card-desc p {
        font-size: 14px;
    }

    .card-content .card-date {
        font-size: 13px;
    }

    #news .card-viewport {
        height: 240px;
    }

    .card {
        width:240px;
    }

    #about .backup-cont {
        padding-bottom: 20px;
    }

    #about .backup-cont .text {
        min-height: 340px;
        padding-bottom: 20px;
    }

    #contact .ani-contents > div {
        width:100%;
        flex:100%;
    }

    #contact .ani-contents > div.left {
        padding-top:0;
    }
}


@media screen and (max-width: 720px) {
    #section-nav {
        display: none;
    }

    .w1820 {
        padding: 0 20px;
    }

    #product .ani-box .w1560, #rnd .ani-box .w1560, #contact .ani-box .w1560, #news .ani-box .w1560 {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* visual */
    .slogan span {
        font-size: 26px;
    }

    .slogan span {
        font-size: 26px;
    }

    .ani-contents .left > span {
        font-size: 20px;
    }

    .ani-contents .left > div.point-txt {
        font-size:28px;
    }

    .ani-contents .left > p {
        margin: 14px 0 20px;
    }

    #product .ani-contents .right .itemWrap img {
        width: 194px;
    }

    #product .right.ani-on .itemName {
        width: 120px;
        left: 145px;
        bottom: 50px;
    }

    #product .ani-contents .right .itemName p {
        font-size: 14px;
        margin-right:10px;
        padding-top: 10px;
    }

    #intro .text {
        width:100%;
        text-align: center;
    }

    #intro .text p {
        font-size: 28px;
    }

    #about .backup-cont .text {
        padding:0 20px;
        min-height: 400px;
        margin-top: 0;
    }

    #about .backup-cont .text strong {
        font-size: 18px;
    }

    #about .backup-cont .text p {
        font-size: 14px;
        padding:0 20px;
    }

    #rnd .ani-contents .left .rnd-count {
        gap: 0 25px;
    }

    #rnd .ani-contents .left .rnd-count > div strong {
        font-size: 20px;
    }

    .slot-counter {
        font-size: 50px;
    }

    #rnd .ani-contents .right .box-line {
        display:block;
    }

    #rd-item2 {
        margin-bottom: 20px;
    }

    #news .slider-container {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        gap: 30px 0;
    }

    #contact .ani-contents .contact-option {
        margin-top: 20px;
        flex-wrap: wrap;
        gap: 15px 0;
    }

    .grid-form .form .captcha button {
        width: 40px;
    }

}