/* 사이트 푸터 전용 스타일시트 */
/* ===== Footer ===== */
.site-footer {
    padding: 40px 0 44px;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}
.site-footer__inner {
    min-height: 0;
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: start;
    gap: 40px 48px;
}
.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.site-footer__logo {
    flex-shrink: 0;
}
.site-footer__logo-img {
    display: block;
    height: 100px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(0.85);
}
.site-footer__aside {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 24px;
    padding-top: 25px;
    flex-shrink: 0;
}
.site-footer__sponsors-list {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}
.site-footer__sponsors-item {
    line-height: 0;
}
.site-footer__sponsor-link {
    display: block;
}
.site-footer__sponsor-link:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 6px;
}
.site-footer__sponsor-img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    object-position: right center;
}
.site-footer__sponsor-img--mcst {
    height: 46px;
}
.site-footer__sponsor-img--kofice {
    height: 42px;
}
.site-footer__body {
    min-width: 0;
    padding-top: 25px;
}
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-bottom: 14px;
}
.site-footer__nav-link {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}
.site-footer__nav-link:hover {
    color: var(--color-white);
}
.site-footer__nav-link--bold {
    font-weight: 700;
    color: var(--color-white);
}
.site-footer__contact {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
}
.site-footer__email {
    display: inline-block;
    white-space: nowrap;
}
.site-footer__copy {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== 페이지 최상단 이동(TOP) =====
   헤더의 LOGIN 버튼과 같은 흰 원형 + 그림자로 흰 본문·푸터 위에서 구분하고, 테두리 자리의 링이 페이지 진행률을 보여 준다.
   헤더(1000)·메뉴·모달보다 아래에 둔다. */
.back-to-top {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 900;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 6px 20px rgba(17, 17, 17, 0.16);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background-color 0.2s ease, color 0.2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s, background-color 0.2s ease, color 0.2s ease;
}
.back-to-top__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* 12시 방향에서 시계 방향으로 차오르게 돌린다. */
    transform: rotate(-90deg);
    pointer-events: none;
}
.back-to-top__track,
.back-to-top__progress {
    fill: none;
    stroke-width: 2.5;
}
.back-to-top__track {
    stroke: rgba(17, 17, 17, 0.12);
}
.back-to-top__progress {
    stroke: var(--color-blue);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}
.back-to-top:hover .back-to-top__track {
    stroke: rgba(255, 255, 255, 0.24);
}
.back-to-top:hover .back-to-top__progress {
    stroke: var(--color-blue-light);
}
.back-to-top .bi {
    font-size: 17px;
    line-height: 1;
}
.back-to-top__label {
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
}
.back-to-top:hover {
    background: var(--color-black);
    color: var(--color-white);
}
.back-to-top:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}
/* 모바일 메뉴·대화상자가 열려 있으면 가리지 않게 숨긴다. */
body.is-nav-open .back-to-top,
body.is-dialog-open .back-to-top {
    visibility: hidden;
    opacity: 0;
}
@media (max-width: 500px) {
    .back-to-top {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top.is-visible {
        transform: none;
        transition: none;
    }
}
