@font-face {
    font-family: 'SchoolSafetyChalkboardEraser';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimChilpanjiugaeTTF-L.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'SchoolSafetyChalkboardEraser';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimChilpanjiugaeTTF-B.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    font-family: 'SchoolSafetyChalkboardEraser';
    color: #3e2723;
    background: #fff9f0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: url(img/bg_sky.jpg) no-repeat center center/cover;
}

.hero-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud {
    position: absolute;
}

.cloud-1 {
    width: 300px;
    height: 150px;
    top: 38%;
    left: 10%;
    opacity: 0.6;
    background: url(img/cloud1.png) no-repeat center center/contain;
}

.cloud-2 {
    width: 270px;
    height: 130px;
    top: 25%;
    right: 15%;
    opacity: 0.6;
    background: url(img/cloud2.png) no-repeat center center/contain;
}

.cloud-3 {
    width: 340px;
    height: 190px;
    top: 55%;
    left: 55%;
    opacity: 0.5;
    background: url(img/cloud3.png) no-repeat center center/contain;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 0 6px black;
}

.hero-title {
    font-family: 'Pretendard';
    font-size: clamp(34px, 5.5vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-block: 16px;
    opacity: 0;
}

.hero-title em {
    font-style: normal;
    color: #ffe37c;
    position: relative;
    text-shadow: 0 0 6px black;
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    z-index: 2;
    animation: bounceArrow 1s infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.sect2 {
    min-height: 250vh;
    padding: 0;
    background-color: #7bb6ee;
    position: relative;
}

.sect2-pin {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url(img/bg_desk.jpg) no-repeat center top/cover;
}

.memo {
    position: absolute;
    width: min(65vw, 400px);
    padding: 36px 32px;
    border-radius: 3px;
    border: 10px solid #fff;
    text-align: center;
    font-size: clamp(24px, 3vw, 28px);
    line-height: 1.8;
    box-shadow: 0 3px 20px rgba(100, 80, 60, 0.1);
    transform-origin: center center;
}

.memo:nth-child(1) {
    background: #fff8ee;
    transform: rotate(-4deg) scale(0.9);
    opacity: 0;
    z-index: 3;
}

.memo:nth-child(2) {
    background: #f0f5ee;
    transform: rotate(3deg) scale(0.9);
    opacity: 0;
    z-index: 2;
}

.memo:nth-child(3) {
    background: #eef0f5;
    transform: rotate(-1deg) scale(0.9);
    opacity: 0;
    z-index: 1;
}

.memo-tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 60px;
    height: 20px;
    background: rgba(245, 220, 150, 0.5);
    border-radius: 2px;
}

.report_container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    color: #333;
}

.report_wrap {
    padding: 1rem;
    background: #ffffff;
    border-radius: 15px;
    max-width: 320px;
    height: 320px;
    word-break: keep-all;
    text-wrap-style: balance;
}

.report_wrap h2 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    color: #242424;
}

#sect3 {
    background: #fff;
    perspective: 1000px;
}

#sect3:before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #eee;
    mix-blend-mode: multiply;
}

.card-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-text {
    font-size: 24px;
    background: #dafaca;
    border-radius: 8px;
}

.mincard {
    background: #fff;
    padding: 20px 32px;
    border-radius: 12px;
    border: 4px solid #eee;
}

.report-card {
    position: absolute;
    width: 200px;
    height: 290px;
    background-size: cover;
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
}

.report-card:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #ffffffc0;
}

.sect_pt {
    color: #23ab79;
    font-weight: 700;
}

.report1 { background-image: url("img/report1.jpg"); }
.report2 { background-image: url("img/report2.jpg"); }
.report3 { background-image: url("img/report3.jpg"); }
.report4 { background-image: url("img/report4.jpg"); }
.report5 { background-image: url("img/report5.jpg"); }
.report6 { background-image: url("img/report6.jpg"); }
.report7 { background-image: url("img/report7.jpg"); }
.report8 { background-image: url("img/report8.jpg"); }

.page-slot {
    position: absolute;
    top: 50%;
    height: 320px;
    margin-top: -160px;
    border-radius: 15px;
    overflow: hidden;
}

#pageBlankLeft {
    left: 50%;
    transform: translateX(-100%);
    width: calc(50% - 22.5px);
    max-width: 380px;
    height: 380px;
    background: url('img/bg_page_1.gif') center/cover no-repeat;
    z-index: 5;
    box-shadow: #3838388a 0 0 16px 0px;
}

#pageBlankRight {
    left: calc(50% + 2.5px);
    width: calc(50% - 22.5px);
    max-width: 380px;
    height: 380px;
    background: url('img/bg_page_6.jpg') center/cover no-repeat;
    z-index: 5;
    box-shadow: #3838388a 0 0 16px 0px;
}

.card-text-wrap {
    position: absolute;
    left: calc(50% + 2.5px);
    top: 50%;
    margin-top: -160px;
    width: calc(50% - 22.5px);
    max-width: 380px;
    height: 380px;
    transform-origin: 0% 50%;
    transform-style: preserve-3d;
}

.page-front {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    background-color: #fff;
    background: url(img/bg_ornament.png) no-repeat center center / cover;
    border-radius: 15px;
    box-shadow: #3838388a 0 0 16px 0px;
    overflow: hidden;
}

.page-front.report_wrap {
    max-width: none;
    width: 100%;
    height: 100%;
}

.page-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: #3838388a 0 0 16px 0px;
}

.sect3 {
    position: relative;
    background: url(img/bg_sky_only.jpg) no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(28px, 4vw, 39px);
    font-weight: 700;
    line-height: 1.2;
    color: #222;
    padding-top: 100px;
    text-align: center;
}

.sect3_p2,
.sect3_p3,
.sect3_p4 {
    margin-top: 80px;
}

.sect3_p2 .dreams {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

p.sect3_p4 {
    font-size: clamp(28px, 3vw, 50px);
}

.sect3_pt {
    position: relative;
    display: inline-block;
}

.sect3_pt-orig {
    display: inline-block;
}

.sect3_pt-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 105%;
    height: 100%;
    color: white;
    background: #f77ee3;
    white-space: nowrap;
    border-radius: 10px;
    padding: 0 4px;
    clip-path: inset(-4px 100% -4px 0%);
}

.sect3_pt.on .sect3_pt-orig {
    opacity: 0;
}

.charactsml {
    width: 130px;
}

.goodmom {
    line-height: 0;
}

.section4 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}

.bg-1 {
    background-image: url("img/temp1.jpg");
    opacity: 1;
}

.bg-2 {
    background-image: url("img/temp2.jpg");
}

.bg-3 {
    background-image: url("img/temp3.jpg");
}

.bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.section4-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
}

.row {
    perspective: 1000px;
    margin: 12px 0;
    height: 80px;
}

.cube-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(-46px);
}

.face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-weight: 300;
    letter-spacing: -.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.face-1 { transform: rotateX(0deg) translateZ(46px); }
.face-2 { transform: rotateX(-90deg) translateZ(46px); }
.face-3 { transform: rotateX(-180deg) translateZ(46px); }

.highlight {
    display: inline-block;
    padding: 10px 30px 12px;
    min-width: 450px;
    border-radius: 8px;
    line-height: 4rem;
    font-size: 4rem;
    font-weight: 700;
}

.highlight.red { background-color: #061492; }
.highlight.coblue { background-color: #00b050; }
.highlight.pink { background-color: #bd39a1; }

.sect_5 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(img/bg_sky2.jpg) no-repeat center center/cover;
    padding: 80px 20px;
    overflow: hidden;
    font-size: clamp(24px, 2vw, 40px);
}

.sect_5-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.sect_5-content h2,
.cta h2 {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 700;
    color: #0e8187;
    margin-bottom: 40px;
    opacity: 0;
    font-family: 'Pretendard';
}

.sect_5-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.sect_5-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(-40px);
}

.sect_5-step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sect_5-step span {
    font-size: 16px;
    color: #5d4037;
}

.sect_5-arrow {
    font-size: 24px;
    color: #8d6e63;
    opacity: 0;
}

.sect_5-desc {
    font-size: clamp(24px, 2.2vw, 35px);
    line-height: 1.5;
    color: #000;
    opacity: 0;
    word-break: keep-all !important;
    text-wrap-style: balance !important;
    text-align: center;
    width: 90%;
    margin: 0 auto;
    transform: translateY(50px);
}

.sect_5-desc strong {
    color: #e71292;
    font-weight: 700;
}

.tree-container {
    position: relative;
    width: 200px;
    height: 280px;
    margin: 50px auto 0;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 0px;
    background: url(img/tree_1.png) no-repeat center center;
    background-size: cover;
}

.tree-crown {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 202px;
    height: 200px;
    background: url(img/tree_2.png) no-repeat center center;
    background-size: cover;
    opacity: 0;
}

.tree-fruit {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
}

.tree-fruit:nth-child(1) { background: #ff8a65; top: 50px; left: 60px; }
.tree-fruit:nth-child(2) { background: #ffd54f; top: 85px; right: 70px; }
.tree-fruit:nth-child(3) { background: #ef5350; top: 107px; left: 39px; }
.tree-fruit:nth-child(4) { background: #f4a460; bottom: 56px; right: 40px; }

.tree-ground {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 180px;
    height: 20px;
    background: #e6c8c8;
    border-radius: 50%;
}

.sect6 {
    position: relative;
    height: 100vh;
    background-image: url('img/bg_sky.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    overflow: hidden;
}

.content {
    text-align: center;
    color: white;
    max-width: 80%;
    font-family: 'Pretendard';
    font-weight: 600;
    text-shadow: 0 0 4px black;
    word-break: keep-all;
    text-wrap-style: balance;
}

.line {
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.3;
    margin: 12px 0;
    opacity: 0;
}

.cta {
    margin-top: 30px;
    padding: 14px 32px;
    font-size: 1.5rem;
    background-color: #23ab79;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    position: relative;
    z-index: 100;
}

.ctaphoto {
    background: #ffffff;
    position: absolute;
    border-radius: 10px;
    border: 5px solid #fff;
    opacity: 0;
    top: 50%;
    left: 50%;
    max-width: 240px;
    text-align: center;
}

.ctaphoto img {
    width: 100%;
}

#ctaPhotoRing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#ctaPhotoRing .cta {
    pointer-events: auto;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    background: #3e2723;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.mydreams {
    width: 230px;
    height: 340px;
}

@media screen and (max-width: 512px) {
    #maincharacters { width: 90%; }
    .mydreams {
        width: 100%;
        height: auto;
    }

    .section4-wrapper { font-size: 1.9rem; }
    .row { height: 64px; }
    .cube { transform: translateZ(-34px); }

    /* 책 내용 모바일에 맞게 조정 */
    .card-text-wrap {
        left: 0;
        width: 100%;
    }
    #pageBlankLeft {
        display: none;
    }
    #pageBlankRight {
        left: 0;
        width: 100%;
    }
    /* 책 내용 모바일에 맞게 조정 끝 */

    p.sect3_p1, p.sect3_p3, p.sect3_p4, .sect_5-desc {
        word-break: keep-all;
        text-wrap-style: balance;
    }

    .face-1 { transform: rotateX(0deg) translateZ(38px); }
    .face-2 { transform: rotateX(-90deg) translateZ(38px); }
    .face-3 { transform: rotateX(-180deg) translateZ(38px); }
    .highlight { padding: 6px 20px 8px; font-size: 3.2rem; }
    .ctaphoto { max-width: 140px !important; }
}

