@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root { --main-color: #159b6b; }
* { box-sizing: border-box; }
html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
    width: 100%; margin: 0; overflow-x: hidden; color: #252b28;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body, h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1492px, calc(100% - 48px)); margin: 0 auto; }
#scrollTopBtn {
    position: fixed;
    right: 40px;
    bottom: max(40px, env(safe-area-inset-bottom));
    z-index: 400;
    display: grid;
    width: 56px;
    height: 56px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: #31c690;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.92);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease;
}

#scrollTopBtn i {
    font-size: 20px;
    line-height: 1;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#scrollTopBtn.visible:hover {
    background: #28b484;
    transform: translateY(-3px);
}

#scrollTopBtn.visible:active {
    transform: translateY(0) scale(.96);
}

#scrollTopBtn:focus-visible {
    outline: 3px solid rgba(49, 198, 144, .32);
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .container { width: calc(100% - 32px); }

    #scrollTopBtn {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 48px;
        height: 48px;
    }

    #scrollTopBtn i {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #scrollTopBtn {
        transition: none;
    }
}
