@charset "utf-8";

/* =========================================================
   시안1 : 참고 페이지와 같은 구성
   (제목 → 안내 띠 → 지원하기 버튼)
   헤더·푸터 스타일은 common.css (수정 금지)
   ========================================================= */
:root {
    --ink: #20264a;
    --navy: #1c2a7d;
    --blue: #2f49c9;
    --ice: #e3f2ff;
    --bg: #eef1f8;
    --font: "Pretendard GOV", "Malgun Gothic", sans-serif;
    --font-title: "Panel Title", "Pretendard GOV", "Malgun Gothic", sans-serif;
    --u: min(1vw, 24.45px);
}

html {
    scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    background: #fff;
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    word-break: keep-all;
}

main,
main *,
main *::before,
main *::after {
    box-sizing: border-box;
}

main:focus {
    outline: 0;
}

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link a {
    position: fixed;
    top: -100px;
    left: 8px;
    z-index: 10001;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.skip-link a:focus {
    top: 8px;
}

:focus-visible {
    outline: 3px solid #2f6fd6;
    outline-offset: 2px;
}

/* ---------- 제목 : 큰 화면은 시안 이미지와 같은 비율 ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2115 / 744;
    max-height: 860px;
    background: #1d2a7d url("../images/hero_bg.jpg") center bottom / cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 42% 70% at 50% 50%, rgba(20, 26, 100, 0.74), rgba(20, 26, 100, 0.62) 58%, transparent 100%);
}

.hero-copy {
    position: relative;
}

.hero-sub {
    font-size: calc(var(--u) * 2.2);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero-title {
    margin-top: calc(var(--u) * 1);
    color: #fff;
    font-family: var(--font-title);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.hero-title span {
    display: block;
}

.t-no {
    font-size: calc(var(--u) * 3.6);
}

.t-main {
    color: var(--ice);
    font-size: calc(var(--u) * 5.7);
}

.t-end {
    font-size: calc(var(--u) * 4.8);
}

.hero-period {
    display: inline-block;
    margin-top: calc(var(--u) * 1.5);
    padding: calc(var(--u) * 0.45) calc(var(--u) * 2.6);
    border-radius: 999px;
    background: var(--ice);
    color: #3650c8;
    font-size: calc(var(--u) * 2.05);
    font-weight: 500;
    white-space: nowrap;
}

.hero-period strong {
    color: #24389a;
    font-size: 1.36em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 화면이 좁아지면 글자는 위로, 노트북이 보이도록 배경을 오른쪽에 맞춤 */
@media (max-width: 1099px) {
    .hero {
        align-items: flex-start;
        aspect-ratio: auto;
        max-height: none;
        min-height: clamp(520px, 58vw, 640px);
        background-position: 100% bottom;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(20, 26, 100, 0.6), rgba(20, 26, 100, 0.25) 42%, transparent 56%);
    }

    .hero-copy {
        position: static;
        width: 100%;
        padding: 24px 16px 0;
    }

    .hero-sub,
    .hero-title {
        position: relative;
    }

    .hero-sub {
        font-size: clamp(16px, 2.9vw, 24px);
    }

    .hero-title {
        margin-top: 8px;
    }

    .t-no {
        font-size: clamp(28px, 5vw, 44px);
    }

    .t-main {
        font-size: clamp(38px, 8vw, 76px);
    }

    .t-end {
        font-size: clamp(32px, 6vw, 58px);
    }

    .hero-period {
        position: absolute;
        bottom: 26px;
        left: 50%;
        margin: 0;
        padding: 3px clamp(14px, 3vw, 28px);
        transform: translateX(-50%);
        font-size: clamp(13px, 2.3vw, 21px);
    }
}

/* 작은 화면 : 노트북 쪽만 자른 배경 사용 */
@media (max-width: 767px) {
    .hero {
        min-height: clamp(470px, 134vw, 640px);
        background-image: url("../images/hero_bg_m.jpg");
        background-position: 65% bottom;
    }

    .hero-copy {
        padding-top: 18px;
    }

    .hero-sub {
        font-size: clamp(14px, 4.3vw, 24px);
    }

    .t-no {
        font-size: clamp(24px, 8vw, 44px);
    }

    .t-main {
        font-size: clamp(36px, 12vw, 64px);
    }

    .t-end {
        font-size: clamp(30px, 10vw, 54px);
    }

    .hero-period {
        bottom: 10px;
        font-size: clamp(12.5px, 3.7vw, 20px);
    }

    .plus {
        display: none;
    }
}

/* ---------- 안내 띠 ---------- */
.info {
    position: relative;
    background: linear-gradient(120deg, #1c2a7d, #33389f 62%, #5a46b2);
    color: #fff;
}

.plus {
    position: absolute;
    top: -24px;
    left: 50%;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    border-radius: 50%;
    background:
        linear-gradient(#3650c8, #3650c8) center / 22px 4px no-repeat,
        linear-gradient(#3650c8, #3650c8) center / 4px 22px no-repeat,
        var(--ice);
    box-shadow: 0 4px 12px rgba(14, 20, 80, 0.35);
}

.info-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 8px 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.info-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 20px;
}

.info dt {
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--ice);
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.info dd {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
}

.info-row dd {
    padding-top: 3px;
}

.info dd.strong {
    font-size: 20px;
    font-weight: 700;
}

.info dd .note {
    font-size: 16px;
    font-weight: 400;
}

.info-block {
    margin-bottom: 20px;
}

.info-block dt {
    display: inline-block;
    padding: 5px 24px;
}

.info-block dd {
    margin-top: 10px;
    padding-left: 8px;
    font-size: 17px;
    font-weight: 400;
}

@media (max-width: 860px) {
    .info-inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 52px 16px 24px;
    }
}

@media (max-width: 520px) {
    .info-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .info-row dt {
        justify-self: start;
        min-width: 112px;
    }

    .info-row dd {
        padding: 0 0 0 8px;
    }

    .info dd.strong {
        font-size: clamp(16px, 4.6vw, 20px);
    }
}

/* ---------- 지원하기 버튼 : 누르면 네이버 폼으로 이동 ---------- */
.cta {
    padding: 56px 16px 64px;
    background: var(--bg);
    text-align: center;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 340px;
    min-height: 72px;
    padding: 12px 36px;
    border-radius: 10px;
    background: var(--blue);
    box-shadow: 0 10px 22px rgba(47, 73, 201, 0.32);
    color: #fff;
    font-size: 23px;
    font-weight: 700;
}

.btn-apply:hover {
    background: #243ab0;
}

.btn-apply svg {
    flex: none;
    width: 24px;
    height: 24px;
}

@media (max-width: 760px) {
    .cta {
        padding: 40px 16px 48px;
    }

    .btn-apply {
        width: 100%;
        max-width: 440px;
        min-width: 0;
        min-height: 64px;
        font-size: 21px;
    }
}

@media (forced-colors: active) {
    .hero::before {
        display: none;
    }
}
