/* naonax\static\css\home\index.css */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    color: #18212f;
    background: #f5f7fb;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page-wrap {
    min-height: 100vh;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* 상단 헤더 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #dde4ef;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo {
    height: 28px;
    width: auto;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.top-nav a {
    font-size: 15px;
    font-weight: 700;
    color: #32445e;
}

.top-nav a:hover {
    color: #0f3b82;
}

/* 첫 화면 */
.hero-section {
    padding: 48px 0 22px;
}

.hero-box {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    border: 1px solid #dce4f0;
    border-radius: 28px;
    padding: 52px 48px;
    box-shadow: 0 18px 40px rgba(27, 46, 89, 0.06);
}

.hero-kicker {
    margin: 0 0 14px 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #476289;
}

.hero-box h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.25;
    color: #10233f;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.hero-desc {
    max-width: 760px;
    margin: 22px 0 0 0;
    font-size: 18px;
    color: #53657f;
    word-break: keep-all;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: #163d86;
    border: 1px solid #163d86;
}

.btn-primary:hover {
    background: #102f69;
    border-color: #102f69;
}

.btn-secondary {
    color: #234372;
    background: #ffffff;
    border: 1px solid #cfd9e8;
}

.btn-secondary:hover {
    background: #f3f7fc;
}

.hero-note {
    margin-top: 18px;
    font-size: 14px;
    color: #6b7c94;
}

/* 공통 섹션 */
.menu-section,
.quick-info-section,
.content-section {
    padding: 34px 0;
}

.section-head {
    margin-bottom: 22px;
    text-align: center;
}

.section-head-left {
    text-align: left;
}

.section-label {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #5473a1;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.35;
    color: #14233a;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.section-desc {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #60728c;
    word-break: keep-all;
}

/* 메뉴 카드 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.menu-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 10px 28px rgba(16, 35, 63, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    border-color: #b8c8df;
    box-shadow: 0 18px 34px rgba(16, 35, 63, 0.10);
}

.menu-card-primary {
    background: linear-gradient(135deg, #163d86 0%, #2858b0 100%);
    border-color: #163d86;
    color: #ffffff;
}

.menu-card-top {
    margin-bottom: 18px;
}

.menu-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.menu-badge-soft {
    background: #edf3fb;
    color: #46638f;
}

.menu-card h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.menu-card p {
    margin: 0;
    color: #5e7089;
    font-size: 15px;
    word-break: keep-all;
}

.menu-card-primary p {
    color: rgba(255, 255, 255, 0.90);
}

.menu-link-text {
    margin-top: auto;
    padding-top: 18px;
    font-size: 14px;
    font-weight: 800;
    color: #1f4f9d;
}

.menu-card-primary .menu-link-text {
    color: #ffffff;
}

/* 빠른 안내 */
.quick-info-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.info-panel {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(16, 35, 63, 0.05);
}

.guide-list {
    margin: 0;
    padding-left: 18px;
    color: #42556f;
}

.guide-list li + li {
    margin-top: 10px;
}

.panel-text {
    margin: 0;
    font-size: 15px;
    color: #4c607d;
    word-break: keep-all;
}

.panel-text + .panel-text {
    margin-top: 14px;
}

/* 내용 카드 */
.content-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(16, 35, 63, 0.05);
}

.content-card p {
    margin: 0;
    font-size: 16px;
    color: #495d79;
    word-break: keep-all;
}

.content-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 하단 */
.footer-section {
    margin-top: 22px;
    border-top: 1px solid #dde4ef;
    background: #ffffff;
}

.footer-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
    font-size: 14px;
    color: #71829a;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 14px;
    font-weight: 700;
    color: #314966;
}

.footer-link:hover {
    color: #163d86;
}

/* 반응형 */
@media (max-width: 1024px) {
    .quick-info-layout {
        grid-template-columns: 1fr;
    }

    .hero-box h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100%, calc(100% - 28px));
    }

    .header-inner {
        min-height: 66px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 12px 0;
    }

    .top-nav {
        gap: 14px;
    }

    .hero-section {
        padding-top: 24px;
    }

    .hero-box {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .hero-box h1 {
        font-size: 33px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        min-height: auto;
    }

    .footer-inner {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}
