@charset "UTF-8";

/* ============================================================
   웹폰트 (눈누 jsDelivr CDN)
   ============================================================ */
@font-face {
    font-family: 'ClipArtKorea';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2511-2@1.0/Clipartkorea-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'ClipArtKorea';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2511-2@1.0/Clipartkorea-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'NanumHuman';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2501-1@1.1/NanumHumanTTFLight.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'NanumHuman';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2501-1@1.1/NanumHumanTTFRegular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'NanumHuman';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2501-1@1.1/NanumHumanTTFBold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'NanumHuman';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2501-1@1.1/NanumHumanTTFExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

/* ============================================================
   디자인 토큰
   --u : 디자인 1px. PC(1920 시안)는 1600px 이하에서 비율 축소,
         모바일(767px 이하)은 750px 기준으로 환산
   ============================================================ */
:root {
    --u: min(1px, calc(100vw / 1600));

    --c-blue: #0154B5;
    --c-cta: #0064C8;
    --c-navy: #11345D;
    --c-ink: #222F3D;
    --c-sky: #66A5EF;
    --c-ocean: #4B96EE;
    --c-cyan: #52C8E9;
    --c-mint: #5AD5F5;
    --c-teal: #36CEC6;
    --c-purple: #8260E8;
    --c-orange: #FF754B;
    --c-coral: #FB6234;
    --c-amber: #FFAB4B;
    --c-text: #333333;
    --c-sub: #4D4948;
    --c-muted: #7A8594;
    --c-line: #C5C5C5;
    --c-error: #E5484D;

    --f-display: 'ClipArtKorea', 'NanumHuman', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --f-body: 'NanumHuman', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

@media (max-width: 767px) {
    :root {
        --u: calc(100vw / 750);
    }
}

/* ============================================================
   기본
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-text);
    background: #fff;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, fieldset {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

fieldset {
    padding: 0;
    border: 0;
    min-width: 0;
}

img {
    max-width: 100%;
    vertical-align: top;
}

a {
    color: inherit;
    text-decoration: none;
}

em {
    font-style: normal;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(1, 100, 200, .45);
    outline-offset: 2px;
}

.blind {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ============================================================
   버튼
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.btn:disabled {
    opacity: .55;
    cursor: default;
}

.btn--primary {
    background: var(--c-cta);
    color: #fff;
}

.btn--primary:not(:disabled):hover {
    background: var(--c-blue);
    box-shadow: 0 8px 20px rgba(1, 84, 181, .25);
}

.btn--line {
    background: #fff;
    border-color: #C9D8EA;
    color: var(--c-navy);
}

.btn--line:hover {
    border-color: var(--c-cta);
}

.btn--danger {
    background: #fff;
    border-color: #FFC3B0;
    color: var(--c-coral);
}

.btn--danger:hover {
    background: #FFF4F0;
    border-color: var(--c-coral);
}

/* ============================================================
   알림/확인 다이얼로그 (common.js)
   ============================================================ */
.dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 52, 93, .45);
    opacity: 0;
    transition: opacity .2s;
}

.dialog.is-open {
    opacity: 1;
}

.dialog__box {
    width: min(440px, 100%);
    padding: 40px 28px 24px;
    background: #fff;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(17, 52, 93, .25);
    transform: translateY(12px);
    transition: transform .2s;
}

.dialog.is-open .dialog__box {
    transform: none;
}

.dialog__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #E8F2FD;
    color: var(--c-cta);
    font-family: var(--f-display);
    font-size: 28px;
    font-weight: 700;
}

.dialog--confirm .dialog__icon {
    background: #FFEDE7;
    color: var(--c-coral);
}

.dialog__msg {
    font-size: 18px;
    line-height: 1.6;
    color: var(--c-text);
    white-space: pre-line;
}

.dialog__actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.dialog__actions .btn {
    flex: 1;
    padding: 0 16px;
}

/* ============================================================
   서브 페이지 (신청 확인/상세/수정/오류)
   ============================================================ */
.sub-body {
    background: #EFF7FB;
}

.sub-header {
    position: relative;
    background: var(--c-blue);
    color: #fff;
}

.sub-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    height: 84px;
    margin: 0 auto;
    padding: 0 24px;
}

.sub-header__logo img {
    display: block;
    width: 150px;
    height: auto;
}

.sub-header__home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .2s;
}

.sub-header__home:hover {
    background: rgba(255, 255, 255, .15);
}

.sub-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 110px;
}

.sub-title {
    text-align: center;
}

.sub-title__eyebrow {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--c-orange);
}

.sub-title h1 {
    margin-top: 6px;
    font-family: var(--f-display);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--c-navy);
}

.sub-title h1 + p {
    margin-top: 12px;
    font-size: 18px;
    color: #5B6776;
}

.sub-card {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 48px 56px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(17, 52, 93, .08);
}

.sub-card--wide {
    max-width: 1186px;
}

.sub-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 32px;
    font-size: 16px;
    color: var(--c-navy);
}

/* 알약 버튼 (랜딩 신청 영역의 '신청 확인·수정·취소'와 같은 모양) */
.sub-links a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 8px 26px;
    border: 2px solid var(--c-cta);
    border-radius: 999px;
    background: #fff;
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--c-cta);
    transition: background-color .2s, color .2s;
}

.sub-links a:hover {
    background: var(--c-cta);
    color: #fff;
}

@media (max-width: 767px) {
    .sub-header__inner {
        height: 64px;
        padding: 0 16px;
    }

    .sub-header__logo img {
        width: 118px;
    }

    .sub-header__home {
        padding: 7px 14px;
        font-size: 14px;
    }

    .sub-main {
        padding: 40px 16px 80px;
    }

    .sub-title__eyebrow {
        font-size: 14px;
    }

    .sub-title h1 {
        font-size: 30px;
    }

    .sub-title h1 + p {
        font-size: 15px;
    }

    .sub-card {
        margin-top: 28px;
        padding: 30px 20px;
        border-radius: 22px;
    }

    .sub-links {
        font-size: 14px;
    }

    .sub-links a {
        min-height: 44px;
        padding: 6px 20px;
        font-size: 15px;
    }
}

/* ============================================================
   푸터
   ============================================================ */
.site-footer {
    background: var(--c-navy);
    color: rgba(255, 255, 255, .72);
}

/* 함께하는 기관 CI */
.site-footer__partners {
    border-top: 1px solid #E3E8EE;
    background: #fff;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;
}

.partner-logos img {
    display: block;
    width: auto;
    height: 52px;
}

/* 씨너지 사업 워드마크: 옆 로고 속 한글 크기에 맞춤 */
.partner-logos__project img {
    height: 20px;
}

/* 한 줄에 다 안 들어가는 폭: 로고 두 개 아래 줄로 */
@media (max-width: 899px) {
    .partner-logos__project {
        display: flex;
        justify-content: center;
        order: 1;
        width: 100%;
    }
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.site-footer__links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__copy {
    width: 100%;
    font-size: 13px;
}

@media (max-width: 767px) {
    .partner-logos {
        gap: 14px 36px;
        padding: 22px 20px;
    }

    .partner-logos img {
        height: 40px;
    }

    .partner-logos__project img {
        height: 16px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 20px 40px;
    }

    .site-footer__links {
        font-size: 14px;
    }
}
