/* =================================
   사용자 페이지 공통 스타일
================================= */

:root {
    --user-primary: #2459a6;
    --user-text: #222;
    --user-muted: #777;
    --user-border: #e5e7eb;
    --user-bg: #f7f8fa;
    --user-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    color: var(--user-text);
    background: #fff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Malgun Gothic",
        "맑은 고딕",
        "Noto Sans KR",
        sans-serif;

    font-size: 15px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--user-primary);
}


/* =================================
   Header
================================= */

.user-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--user-border);
}

.user-header__inner,
.user-nav,
.user-footer__inner {

    width: min(
        var(--user-width),
        calc(100% - 40px)
    );

    margin: 0 auto;
}

.user-header__inner {

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* 로고 */

.user-logo {

    color: var(--user-primary);

    font-size: 27px;
    font-weight: 800;

    letter-spacing: -1px;
}


/* 로그인 / 회원가입 */

.user-header__account {

    display: flex;
    align-items: center;

    gap: 22px;

    color: #555;
    font-size: 14px;
}


/* =================================
   Navigation
================================= */

.user-nav-wrap {
    border-top: 1px solid #f0f1f3;
}

.user-nav {

    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 36px;

    font-weight: 600;
}

.user-nav a:hover,
.user-header__account a:hover {
    color: var(--user-primary);
}


/* =================================
   Main
================================= */

.user-main {

    width: min(
        var(--user-width),
        calc(100% - 40px)
    );

    min-height: 520px;

    margin: 32px auto 64px;
}


/* 페이지 제목 */

.user-page-title {

    margin: 0 0 24px;

    font-size: 26px;
    font-weight: 700;
}


/* =================================
   Footer
================================= */

.user-footer {

    border-top: 1px solid var(--user-border);

    background: var(--user-bg);

    color: var(--user-muted);

    font-size: 13px;
}

.user-footer__inner {
    padding: 28px 0 32px;
}

.user-footer__logo {

    margin-bottom: 8px;

    color: var(--user-primary);

    font-size: 18px;
    font-weight: 800;
}

.user-footer__links {

    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    margin-bottom: 10px;
}

.user-footer p {
    margin: 0;
}


/* =================================
   Mobile
================================= */

@media (max-width: 640px) {

    .user-header__inner,
    .user-nav,
    .user-footer__inner,
    .user-main {

        width: calc(100% - 28px);
    }

    .user-header__inner {
        min-height: 64px;
    }

    .user-logo {
        font-size: 23px;
    }

    .user-header__account {

        gap: 12px;

        font-size: 13px;
    }

    .user-nav {

        min-height: 44px;

        gap: 24px;

        font-size: 14px;
    }

    .user-main {
        margin-top: 24px;
    }

    .user-page-title {
        font-size: 22px;
    }

}

/* =================================
   Responsive Header
================================= */

.user-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--user-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.user-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 4px auto;
    background: var(--user-text);
    transition: 0.2s;
}

.user-mobile-account {
    display: none;
}


/* =================================
   Tablet
================================= */

@media (max-width: 768px) {

    .user-header__inner,
    .user-nav,
    .user-footer__inner,
    .user-main {
        width: calc(100% - 32px);
    }

    .user-header__inner {
        min-height: 64px;
    }

    .user-logo {
        font-size: 23px;
    }

    .user-header__account {
        gap: 14px;
        font-size: 13px;
    }

    .user-main {
        margin-top: 24px;
        margin-bottom: 40px;
    }

    .user-page-title {
        font-size: 23px;
    }
}


/* =================================
   Mobile Navigation
================================= */

@media (max-width: 640px) {

    .user-header__inner {
        min-height: 60px;
    }

    .user-header__account {
        display: none;
    }

    .user-menu-toggle {
        display: block;
    }

    .user-nav-wrap {
        display: none;
        border-top: 1px solid var(--user-border);
        background: #fff;
    }

    .user-nav-wrap.is-open {
        display: block;
    }

    .user-nav {
        width: 100%;
        min-height: auto;
        padding: 8px 16px 16px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .user-nav > a {
        display: block;
        padding: 13px 4px;
        border-bottom: 1px solid #f0f1f3;
        font-size: 15px;
    }

    .user-mobile-account {
        display: flex;
        flex-direction: column;
        padding-top: 8px;
    }

    .user-mobile-account a {
        display: block;
        padding: 11px 4px;
        color: var(--user-muted);
        font-size: 14px;
    }

    .user-main {
        width: calc(100% - 28px);
        margin-top: 20px;
        margin-bottom: 36px;
    }

    .user-page-title {
        margin-bottom: 18px;
        font-size: 21px;
    }

    .user-footer__inner {
        width: calc(100% - 28px);
        padding: 22px 0;
    }

    .user-footer__links {
        gap: 12px;
    }
}


/* =================================
   Small Mobile
================================= */

@media (max-width: 380px) {

    .user-main {
        width: calc(100% - 24px);
    }

    .user-logo {
        font-size: 21px;
    }

    body {
        font-size: 14px;
    }
}



/************************************* edit_shin_261111 **********************************/

/* 폰트 */
.font-noto {
    font-family: 'Noto Sans KR', sans-serif !important;
}

@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/fonts/NotoSansKR/NotoSansKR-Black.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/NotoSansKR/NotoSansKR-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/NotoSansKR/NotoSansKR-Regular.woff2') format('woff2');
}

/* 헤더 로고 */
.header__logo-group {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    gap: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.header__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff5e53 0%, #ef2b21 50%, #b74444 100%);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -4px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.header__logo-icon span {
    transform: skewX(-6deg);
}

.header__logo-text {
    display: block;
    min-width: 0;
}

.header__title {
    display: block;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: normal;
    white-space: nowrap;
}

.header__subtitle {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

.header__logo-group:hover {
    text-decoration: none;
}

.header__logo-group:hover .header__title {
    color: #0f172a;
}

.header__logo-group:hover .header__subtitle {
    color: #64748b;
}

/* ============================================
   FOOTER - PC 상시노출 / 모바일 아코디언
============================================ */
.user-footer {
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    border: 0;
    border-top: 1px solid #e3e3e3;
    color: #666;
    font-size: 12px;
    line-height: 1.45;
}
.user-footer .user-footer__inner,
.user-footer .user-footer__bottom-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}
.user-footer .user-footer__inner { padding: 18px 0 0; }

/* 상단 메뉴 */
.user-footer .user-footer__links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0 0 15px;
    border-bottom: 1px solid #e3e3e3;
}
.user-footer .user-footer__links a {
    color: #444;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}
.user-footer .user-footer__links a:nth-child(2) {
    color: #171717;
    font-weight: 700;
}
/* 마우스가 있는 PC 환경에서만 은은한 hover */
@media (hover: hover) and (pointer: fine) {
    .user-footer .user-footer__links a:hover {
        color: #888;
    }
}

/* 사업자정보 */
.user-footer .user-footer__main {
    display: block;
    margin: 0;
    padding: 15px 0 16px;
}
.user-footer .user-footer__logo,
.user-footer .user-footer__customer { display: none; }
.user-footer .user-footer__company-title {
    margin: 0 0 7px;
    color: #191919;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.35px;
}
.user-footer .user-footer__info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.user-footer .user-footer__info li {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    overflow-wrap: anywhere;
}
.user-footer .user-footer__info li:not(:last-child)::after {
    content: '|';
    display: inline-block;
    margin-left: 10px;
    color: #ccc;
}

/* PC 전용 정보: details 상태와 무관하게 항상 출력 */
.user-footer .user-footer__company-pc { display: block; }
.user-footer details.user-footer__details { display: none; }

/* 하단: 선 중복 없이 회사정보 하단에만 구분선 */
.user-footer .user-footer__bottom {
    background: transparent;
    border: 0;
}
.user-footer .user-footer__bottom-inner {
    display: block;
    padding: 13px 0 19px;
    border-top: 1px solid #e3e3e3;
}
.user-footer .user-footer__bottom-inner p {
    margin: 0;
    color: #858585;
    font-size: 11px;
    line-height: 1.45;
    text-align: left;
}
.user-footer .user-footer__bottom-inner p + p { margin-top: 7px; }

/* 태블릿 및 모바일: 아코디언 */
@media (max-width: 768px) {
    .user-footer .user-footer__inner,
    .user-footer .user-footer__bottom-inner {
        width: calc(100% - 32px);
    }
    .user-footer .user-footer__inner { padding-top: 14px; }
    .user-footer .user-footer__links {
        justify-content: center;
        gap: 6px 15px;
        padding-bottom: 12px;
    }
    .user-footer .user-footer__main { padding: 15px 0; }

    .user-footer .user-footer__company-pc { display: none; }
    .user-footer details.user-footer__details {
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
    }
    .user-footer .user-footer__details summary {
        display: inline-flex;
        align-items: center;
        gap: 15px;
        max-width: 100%;
        margin: 0;
        padding: 0;
        color: #191919;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: -0.4px;
        list-style: none;
        cursor: pointer;
    }
    .user-footer .user-footer__details summary::-webkit-details-marker { display: none; }
    .user-footer .user-footer__details summary::marker { content: ''; }
    .user-footer .user-footer__details summary::after {
        content: '';
        flex: 0 0 8px;
        width: 8px;
        height: 8px;
        margin-top: -4px;
        border-right: 1.5px solid #222;
        border-bottom: 1.5px solid #222;
        transform: rotate(45deg);
    }
    .user-footer .user-footer__details[open] summary::after {
        margin-top: 4px;
        transform: rotate(225deg);
    }
    .user-footer .user-footer__detail-content { padding: 8px 0 0; }
    .user-footer .user-footer__info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    .user-footer .user-footer__info li {
        font-size: 11px;
        line-height: 1.4;
    }
    .user-footer .user-footer__info li::after { display: none !important; }
    .user-footer .user-footer__bottom-inner {
        padding: 11px 0 16px;
    }
    .user-footer .user-footer__bottom-inner p {
        font-size: 10.5px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
    .user-footer .user-footer__bottom-inner p + p { margin-top: 5px; }
    .user-footer .user-footer__links a { font-size: 11px; }
    .user-footer {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
}
@media (max-width: 380px) {
    .user-footer .user-footer__inner,
    .user-footer .user-footer__bottom-inner {
        width: calc(100% - 28px);
    }
    .user-footer .user-footer__links { gap: 7px 10px; }
    .user-footer .user-footer__links a { font-size: 10.5px; }
    .user-footer .user-footer__details summary { font-size: 12.5px; }
    .user-footer .user-footer__info li { font-size: 10.5px; }
}

/* 아래는 이전 헤더의 반응형 수정값을 유지 */
@media (max-width: 768px) {
    .header__logo-group { gap: 10px; }
    .header__title { font-size: 18px; }
}
@media (max-width: 640px) {
    .user-header__inner { gap: 10px; }
    .header__logo-group { gap: 8px; }
    .header__logo-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 18px;
    }
    .header__title {
        font-size: clamp(13px, 3.9vw, 18px);
        letter-spacing: -0.5px;
    }
    .header__subtitle { font-size: 10px; font-weight: 400; }
}
@media (max-width: 380px) {
    .user-header__inner { gap: 6px; }
    .header__logo-group { gap: 6px; }
    .header__logo-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 16px;
    }
    .header__title { font-size: 12px; }
    .header__subtitle { font-size: 9px; }
}
