@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Gowun+Dodum&display=swap');
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

/*셋팅*/
#eighteen-continue {
    color: #273E06;
    font-family: "Pretendard Variable", serif;
    font-weight: 500;
    font-style: normal;
    position: relative;
    background-image: url("../img/eighteen-continue/ec_bg_noise.png");
    background-repeat: repeat;
    background-position: center;
    scroll-behavior: smooth;
    box-sizing: border-box;

}


#ec-donate-fix {
    position: fixed;
    top: 120px;
    right: 64px;
    width: 160px;
    z-index: 9999;
    /*box-shadow: 8px 8px 0 0 rgba(200, 200, 200, 0.5);*/
    transition: 0.3s all;
    /*opacity: 0;*/
}

#ec-donate-fix > img {
    transition: 0.3s all;
}

#ec-donate-fix > img:hover {
    box-shadow: 8px 8px 0 0 rgba(200, 200, 200, 0.5);
}

/* scrolldown 화살표*/
#ec-scrolldown-arrow {
    transition: 0.3s all;
}

.ec-only-mobile {
    display: none;
}

.ec-only-web {
    display: inline-block;
}

/* primary-header*/
.ec-primary-header {
    display: flex;
    justify-content: space-between;
    padding: 24px;
    background-color: white;
    position: sticky;
    /*position: fixed;*/
    top: 0;
    z-index: 99999;
}

.ec-primary-header__left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ec-primary-header__right {
    display: flex;
    align-items: center;
}

.ec-primary-header__spacer {
    display: inline-block;
    width: 72px;
}

/* top & bottom-hero*/
.ec-hero {
    background-color: #B6C43A;
    display: flex;
    position: relative;
    background-position-y: 100%;
    background-repeat: no-repeat;
    background-size: contain;
}


.ec-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: absolute;
    top: 40%;
    left: 20%;
    transform: translate(-40%, -20%);
}

.ec-hero-top {
    background-image: url("../img/eighteen-continue/ec_1.png");
    background-position-x: 80%;
}

.ec-hero-bottom {
    background-image: url("../img/eighteen-continue/ec_c4_3.png");
    background-position-x: 100%;
}

.ec-hero__headline {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -1px;
    text-wrap: nowrap;
}

.ec-hero__square {
    border: 8px solid #273e06;
    padding: 10px 24px;
}

.ec-hero__desc {
    font-size: 24px;
    font-weight: 700;
}

.ec-hero__headline--bottom {
    line-height: 130%;
}

.ec-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}


.ec-hero-scroll > p {
    font-size: 15px;
    font-weight: 700;
}

.ec-hero-scroll > svg {
    width: 20px;
}

/* chapter common*/
.ec-chapter {
    padding: 88px 24px;
    opacity: 0;
    transition: 1s all ease;
}

.ec-chapter-header {
    font-family: "Gowun Batang", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 96px;
}

.ec-chapter__no {
    font-size: 32px;
}

.ec-chapter__title-group {
    position: relative;
    width: fit-content;

}

.ec-chapter__title {
    display: inline-block;
    font-size: 64px;
    font-weight: bolder;
    z-index: 2;
}

.ec-chapter__title-underline {
    height: 16px;
    width: 100%;
    background-color: #B6C43A;
    opacity: 0.3;
    position: absolute;
    bottom: 16px;
}

.ec-body {
    font-size: 24px;
    font-family: "Gowun Batang", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 64px;
}

.ec-body__serif--bold {
    font-weight: bold;
}

.ec-body__serif--large {
    font-size: 40px;
    font-weight: bold;
}

.ec-img-shadow {
    box-shadow: 8px 8px 0 0 rgba(182, 196, 58, 0.3);
}

/* chpater 2*/
#ec-chapter-2 {
    background-color: #f2f2f2;
    transition: 2s all;
}

/* chapter 3*/

#ec-chapter-3 {
    padding: 88px 0;
}

#ec-scroll-effect {
    position: sticky;
    top: 0;
    width: 100%;
}


#ec-fadein-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#ec-fadein-group > .ec-body__serif--large {
    background-color: black;
    color: white;
    width: fit-content;
    margin: auto;
    padding: 0 16px;
}

#ec-gomingout {
    position: fixed;
    bottom: 49px;
    right: 0;
    z-index: 51;
    background-color: black;
    color: white;
    padding: 2px 4px;
    transition: 0.3s all;
}

/*chapter -4 */
#ec-chapter-4 {
    padding-bottom: 88px;
}

/*common-1*/
.ec-common {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
    /*max-width: 1400px;*/
    justify-content: center;
    margin: auto;
}

.ec-common-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.ec-common-header__sans {
    font-family: "Pretendard Variable", sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
}

.ec-common-header__sans > span {
    color: #b6c43a;
}

.ec-common-header__sans--normal {
    font-family: "Pretendard Variable", sans-serif;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

#ec-huh-banner-small{
    display: none;
}

.ec-common-img {
    width: 100%;
    max-width: 960px;
    margin: auto;
}

.ec-common-header__sans--box {
    border: 8px solid #b6c43a;
    padding: 4px 24px;
    margin-bottom: 32px;
}

#ec-business {
    background-color: #f9f9f9;
}

.ec-business-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 1400px;
}

.ec-business-list__item {
    padding: 32px;
    background-color: white;
    border-radius: 4px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.ec-business-list__item > img {
    margin-bottom: 16px;
}

.ec-business__item__title {
    font-weight: 700;
    font-family: "Pretendard Variable", sans-serif;
    margin-bottom: 24px;
}

.ec-business__item__body {
    font-family: "Pretendard Variable", sans-serif;
    font-weight: 400;
    font-size: 20px;
}

.ec-common-btn {
    display: flex;
    align-items: center;
    padding: 16px 64px;
    border: 1px solid forestgreen;
    width: fit-content;
    margin: auto;
    color: #273E06;
    gap: 8px;
    font-weight: 500;
    font-size: 20px;
    background-color: white;
    transition: 0.3s all;
    cursor: pointer;
}


.ec-common-btn:hover {
    background-color: forestgreen;
    color: white;
}

.ec-common-btn > svg {
    width: 24px;
}

.ec-common-btn:hover > svg {
    stroke: white;
}

.ec-common-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 56px;
}

.ec-common-btn--regular {
    background-color: #273e06;
    color: white;
}

.ec-common-btn--single {
    background-color: forestgreen;
    color: white;
}

.ec-common-btn--regular:hover, .ec-common-btn--single:hover {
    background-color: white;
    color: #273e06;
}

#ec-youtube {
    width: 100%;
    max-width: 960px;
    height: auto;
    aspect-ratio: 16 / 9;
}


/*인스타툰*/
.ec-instatoon > .ec-common-header__sans--normal {
    padding: 24px 0;
    margin-bottom: 16px;
}

.ec-instatoon {
    width: 100%;
    max-width: 960px;
}

.swiper-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    position: relative;
}

.swiper-container p {
    text-align: center;
    margin-bottom: 8px;
    color: #888;
}

.ec-instatoon-item img {
    width: 100%;
    height: auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

/* 화살표 스타일링 */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;

    z-index: 10;
    cursor: pointer;
    transform: translateY(-50%);
}

.swiper-button-next::after, .swiper-button-prev::after {
    content: '';
    color: forestgreen;
    width: 32px;
    height: 32px;
}

.swiper-button-next {
    right: 10px; /* 오른쪽 화살표 위치 */
}

.swiper-button-prev {
    left: 10px; /* 왼쪽 화살표 위치 */
}

/* 화살표 비활성화 시 스타일 (Swiper가 자동으로 추가) */
.swiper-button-disabled {
    opacity: 0.35; /* 비활성화된 상태일 때 투명도 */
    cursor: not-allowed;
}

.ec-one-badge {
    display: flex;
    background-color: #f5f5f5;
    padding: 24px;
    width: 100%;
    max-width: 960px;
    gap: 32px;
    align-items: center;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 8px;
}

#ec-to-top {
    background-color: white;
    border-top: 1px solid #000;
    text-align: center;
    padding: 16px;
    cursor: pointer;
    transition: 0.3s all;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
}

#ec-to-top:hover {
    background-color: rgba(182, 196, 58, 0.2);
}

#ec-to-top-arrow {
    width: 20px;
    transform: translateY(-1px);
}


/* media-query max-width 1920*/

@media (max-width: 1920px) {
    .ec-hero {
        background-size: auto 90%;
    }

    .ec-hero__square {
        border: 8px solid #273e06;
        padding: 4px 16px;
    }

    .ec-hero__headline {
        font-size: 56px;
    }
}

@media (max-width: 1536px) {

    #ec-donate-fix {
        position: fixed;
        top: 120px;
        right: 64px;
        width: 128px;
        z-index: 9999;
        /*box-shadow: 8px 8px 0 0 rgba(200, 200, 200, 0.5);*/
        transition: 0.3s all;
        opacity: 0;
    }


    .ec-hero__square {
        border: 8px solid #273e06;
        padding: 4px 16px;
    }

    .ec-hero__headline {
        font-size: 48px;
    }

    .ec-hero__headline--bottom {
        line-height: 140%;
    }

    .ec-hero__desc--bottom {
        font-size: 20px;
    }

    .ec-hero__desc {
        font-size: 20px;
    }

}

@media (max-width: 1440px) {
    .ec-primary-header__left .ec-primary-header__sans {
        display: none;
    }

    .ec-hero__headline {
        font-size: 48px;
    }

}

@media (max-width: 1280px) {
    .ec-hero-content {
        top: 15%;
        left: 15%;
        transform: translate(-15%, -15%);
    }

    #ec-fadein-group > .ec-body__serif--large {
        font-size: 28px;
    }

    #ec-effect-img {
        /*transition: 2s all;*/
    }


}

@media (max-width: 1024px) {


    .ec-hero-top {
        background-size: auto 65%;
    }

    .ec-hero-bottom {
        background-size: auto 50%;
    }

    #ec-fadein-group > .ec-body__serif--large {
        font-size: 22px;
    }

    #ec-effect-img {
        /*transition: 2s all;*/
    }


}

@media (max-width: 768px) {
    .ec-primary-header {
        display: flex;
        justify-content: space-between;
        padding: 24px;

    }

    #ec-huh-banner-small{
        display: block;
    }

    #ec-huh-banner{
        display: none;
    }

    .ec-chapter__title {
        font-size: 40px;
    }

    .ec-hero__headline {
        font-size: 40px;
    }

    .ec-body__serif--large {
        font-size: 32px;
    }

    .ec-body__serif {
        font-size: 20px;
    }

    #ec-fadein-group > p {
        font-size: 20px;
    }

    #ec-chapter-4 > div.ec-body > p > span {
        font-size: 24px;
    }

    .ec-common-header__sans {
        font-size: 32px;
    }

    .ec-common-header__sans--normal {
        font-size: 20px;
    }

    .ec-business-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .ec-business__item__body {
        font-size: 18px;
    }

    #ec-fadein-group > .ec-body__serif--large {
        font-size: 20px;
    }


}

@media (max-width: 430px) {

    .ec-primary-header__logo {
        width: 104px;
    }

    #ec-gomingout {
        font-size: 14px;
        text-align: center;
    }

    #ec-donate-mobile {
        display: block;
        background-color: forestgreen;
        color: white;
        text-align: center;
        padding: 12px 0;
        font-size: 16px;
        font-weight: 700;
        z-index: 999;
        opacity: 0;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        transition: 0.5s all;
    }


    #ec-donate-fix {
        display: none;
    }

    .ec-chapter {
        padding: 40px 24px;
    }

    #ec-chapter-3 {
        padding: 40px 0;
    }

    .ec-primary-header__right .ec-primary-header__sans {
        font-size: 13px;
    }

    .ec-body {
        gap: 32px;
    }

    .ec-only-mobile {
        display: inline-block;
    }

    .ec-only-web {
        display: none;
    }

    .ec-chapter-header {
        margin-bottom: 16px;
    }

    .ec-primary-header__spacer {
        width: 32px;
    }

    .ec-hero-top {
        background-size: auto 60%;
    }

    .ec-hero-bottom {
        background-size: auto 35%;
    }

    .ec-hero__headline {
        font-size: 24px;
    }

    .ec-business-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .ec-common-header__sans {
        font-size: 24px;
    }

    .ec-body__serif {
        font-size: 18px;
    }

    .ec-body__serif--large {
        font-size: 24px;
    }

    .ec-common-btn {
        padding: 12px 40px;
    }

    .ec-common-btn--regular {
        font-size: 15px;
        padding: 12px 24px;
    }

    .ec-common-btn--single {
        font-size: 15px;
        padding: 12px 24px;
    }

    .ec-one-badge {
        flex-direction: column;

        .ec-business__item__body {
            font-size: 16px;
            text-align: center;
            word-break: keep-all;
        }
    }


    #ec-fadein-group {
        width: 100%;
    }

    #ec-fadein-group > .ec-body__serif--large {
        font-size: 18px;
    }

    .ec-hero__square {
        border: 4px solid #273e06;
        padding: 2px 8px;
    }

}

@media (max-width: 414px) {
    .ec-hero-top {
        background-size: auto 60%;
    }


    .ec-hero__headline {
        font-size: 24px;
    }

    .ec-hero-content {
        top: 18%;
        left: 18%;
        transform: translate(-18%, -10%);
    }

}

@media (max-width: 375px) {

    .ec-hero__headline {
        font-size: 24px;
    }

}