@charset "UTF-8";
/* 푸터 — 검정 배경, 하단에 대형 DANARO 워드마크
   ⚠️ 글은 흐름으로 쌓는다 (2026-10-19). 전에는 전부 absolute + top 이었고 높이도 800 으로 박혀 있었다.
      시안의 top 은 "앞 요소와의 간격"으로 환산해 margin 으로 넣었다 — 1920 에서 시안과 같은 자리에 선다.
      높이를 박지 않으니 워드마크가 폭을 따라 줄면 푸터도 같이 짧아진다. */

.footer {
    background: #000;
    overflow: hidden;
    color: var(--white);
}

/* PC 시안 PC_footer(69:475) 1920×800
   1행: 고객센터(80~194) | 링크(80) + SNS 아이콘(152)
   이후 회사명 224 · 회사정보 257 · 저작권 360 · 워드마크 487.7 (높이 256.58 → 744.28) */
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 80px 0 55.72px;
}

/* 고객센터 — 17 + 16 + 33 + 6 + 42 = 114
   ⚠️ 폭을 시안(112)으로 박지 않는다. 시간 문구가 112 에 꼭 맞아서 글꼴이 조금만 넓어도
      세 줄이 되고, 이제 흐름이라 그만큼 아래가 전부 밀린다. 줄은 <br> 로 끊어 두었다. */
.footer-cs { white-space: nowrap; }
.footer-cs-title { font-size: 14px; font-weight: 700; line-height: 17px; }
.footer-cs-tel   { margin-top: 16px; font-size: 22px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.footer-cs-time  { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #ddd; }

/* 우측 — 링크와 SNS 아이콘을 오른쪽 끝에 맞춰 세운다 */
.footer-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.footer-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    line-height: 17px;
    white-space: nowrap;
}
.footer-links a,
.footer-sns a { transition: opacity .2s ease; }
.footer-links a:hover,
.footer-sns a:hover { opacity: .7; }

/* SNS 아이콘 24 × 3, 간격 24 — 링크 아래끝 97 에서 152 까지 55 */
.footer-sns {
    display: flex;
    gap: 24px;
    margin-top: 55px;
}
.footer-sns a,
.footer-sns img { display: block; width: 24px; height: 24px; }

/* 사업자 정보 — 고객센터 아래끝 194 → 회사명 224 */
.footer-company { grid-column: 1 / -1; margin-top: 30px; }
.footer-company-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
}
.footer-company-text {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #ddd;
}
.footer-company-text a { text-decoration: none; }

/* 회사정보 아래끝 320 → 저작권 360 */
.footer-copyright {
    grid-column: 1 / -1;
    margin-top: 40px;
    font-size: 13px;
    line-height: 20px;
    color: var(--muted);
}

/* 하단 대형 워드마크 — 콘텐츠 폭(1680)에 꽉 차게. 저작권 아래끝 380 → 487.7 */
.footer-wordmark {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    height: auto;
    margin-top: 107.7px;
}

/* ============================================================
   모바일 (≤768) — 시안 MO_footer(155:931) 390 × 755
   순서가 PC 와 다르다: 링크 50 · 고객센터 170 · 회사 326 · SNS 568 · 저작권 622 · 워드마크 678.62
   ⚠️ 2026-10-19 SNS 아이콘이 회사정보와 저작권 사이에 끼어 735 → 755 로 길어졌다.
   .footer-side 를 풀어서 링크와 아이콘을 각자 자리로 보내고 order 로 줄을 세운다.
   ============================================================ */
/* 모바일 전용 줄바꿈은 common.css 의 .br-mo 규칙을 쓴다 */

@media (max-width: 768px) {
    .footer-company-text .sep--pc { display: none; }

    .footer-inner {
        grid-template-columns: 100%;
        /* 좌우 20 은 common.css 의 .inner 모바일 값과 같다 — 위 PC padding 이 덮어쓰므로 다시 적는다 */
        padding: 50px 20px 18.34px;
    }
    .footer-side { display: contents; }

    /* 링크 — 맨 위, 세로 나열 (25 + 20 + 25 = 70 → 120) */
    .footer-links {
        order: 1;
        flex-direction: column;
        gap: 20px;
        line-height: 25px;
    }

    /* 고객센터 — 링크 아래끝 120 → 170 */
    .footer-cs { order: 2; margin-top: 50px; }
    .footer-cs-title { line-height: 25px; }
    .footer-cs-tel   { margin-top: 12px; }
    .footer-cs-time  { margin-top: 6px; line-height: 25px; }

    /* 회사 — 고객센터 아래끝 296 → 326, 회사명 25 + 12 → 회사정보 */
    .footer-company { order: 3; }
    .footer-company-title { line-height: 25px; }
    .footer-company-text  { margin-top: 12px; line-height: 25px; }

    /* SNS — 회사정보 아래끝 538 → 568, 간격 20 */
    .footer-sns { order: 4; gap: 20px; margin-top: 30px; }

    /* 저작권 — 아이콘 아래끝 592 → 622 */
    .footer-copyright { order: 5; margin-top: 30px; }

    /* 워드마크 — 저작권 아래끝 642 → 678.62, 화면 양끝에서 5 씩 들어간 380 폭 */
    .footer-wordmark {
        order: 6;
        width: calc(100% + 30px);
        max-width: none;  /* common.css 의 img max-width:100% 에 걸려 350 으로 줄어든다 */
        margin: 36.62px -15px 0;
    }
}
