@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
*{margin: 0; padding: 0; font-family: 'Noto Sans KR','맑은 고딕', sans-serif; color: #333; box-sizing: border-box;}
html{
    scroll-behavior: smooth;
}
body {
    width: 100%;
    min-width: 320px;
    padding-top: 60px;
}
/* 네비게이션 */
header {
    width: 100%;
    height: 60px;
    background-color: white;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-radius: 0 0 30px 30px;
}
/* 로고 */
.logo img{
    width: 45px;
    height: 20px;
}
/* 햄버거 버튼 */
.hamburger {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    cursor: pointer;
    border: none;
}
/* 햄버거 선 */
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #EB2254;
    transition: 0.3s;
}
/* 메뉴 */
.menu {
    width: 100%;
    height: calc(100vh - 60px);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    position: fixed;
    top: 43px;
    left: 0;
    padding: 30px;
    right: 5px;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    background-color: white;
    text-align: right;
    z-index: 999;
}
.menu a{
    color: #787878;
    text-decoration: none;
    font-size: 30px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu a:nth-child(2) {
    color: #EB2254;
}
.menu a:last-child {
    margin-top: 20px;
}
/* 메뉴 활성화 */
.menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu.active a{
    opacity: 1;
    transform: translateX(0);
}
.menu.active a:nth-child(1) { transition-delay: 0.05s; }
.menu.active a:nth-child(2) { transition-delay: 0.10s; }
.menu.active a:nth-child(3) { transition-delay: 0.15s; }
.menu.active a:nth-child(4) { transition-delay: 0.20s; }
.menu.active a:nth-child(5) { transition-delay: 0.25s; }

/*첫 번째 선 */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
/* 두 번째 선 */
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
/* 세 번째 선 */
.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 프로젝트 메뉴 */
.project-nav {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    margin-top: 20px;
}
.project-nav a{
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 20px;
    border: 1px solid #EB2254;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.3s, color 0.3s;
    animation: fadeUp 0.5s ease both;
}
/* 탭 순차 등장 */
.project-nav a:nth-child(1) { animation-delay: 0.05s; }
.project-nav a:nth-child(2) { animation-delay: 0.15s; }
.project-nav a:nth-child(3) { animation-delay: 0.25s; }
.project-nav a:nth-child(4) { animation-delay: 0.35s; }

/* 호버/터치 피드백 */
.project-nav a:hover,
.project-nav a:active {
    background-color: #EB2254;
    color: white;
}
.editorial {
    background-color: #EB2254;
    color: white;
    border: none;
}
/* 교과목 설명 */
.content {
    width: 100%;
    height: 90px;
    text-align: center;
    margin-top: 25px;
}
.title {
    margin-bottom: 10px;
    font-size: clamp(22px, 6.5vw, 28px);
    animation: fadeUp 0.7s 0.3s ease both;
}
.text {
    font-size: clamp(9px, 2.7vw, 12px);
    animation: fadeUp 0.7s 0.45s ease both;
}

.work-list{
    width: 100%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.work-item {
    width: calc((100% - 20px) / 2);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}
.work-item.show {
    opacity: 1;
    transform: translateY(0);
}
.work-item a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #eee;
}
.work-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.work-item a::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #EB2254;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.work-item a:hover img,
.work-item a:active img {
    transform: scale(1.05);
}
.work-item a:hover::after,
.work-item a:active::after {
    opacity: 0.25;
}
.work-item p {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* 푸터 */
footer {
    width: 100%;
    height: auto;
    margin-top: 40px;
    padding: 20px;
}
.footer-top {
    border-bottom: 1px solid #EB2254;
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.footer-top h2 {
    font-size: clamp(15px, 4.5vw, 20px);
    letter-spacing: -2px;
}
.footer-logo img{
    width: 90px;
    height: 55px;
}
.footer-middle {
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid #EB2254;
    margin-bottom: 20px;
}
.Univ-name-KR {
    font-size: clamp(14px, 4vw, 16px);
    color: #EB2254;
    font-weight: 700;
}
.Univ-name-EN {
    font-size: clamp(13px, 3.7vw, 15px);
    color: #4b4b4b;
    margin-bottom: 5px;
}
.footer-bottom {
    width: 100%;
}
.copy {
    color: #4b4b4b;
    font-size: clamp(9px, 2.7vw, 12px);
    margin-bottom: 10px;
}
.copy-KR {
    color: #4b4b4b;
    font-size: clamp(10px, 2.8vw, 12px);
    margin-bottom: 5px;
}
.copy-EN {
    color: #4b4b4b;
    font-size: clamp(10px, 2.8vw, 12px);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .menu a, .work-list .work-item { opacity: 1; transform: none;}
}

/* ========================================
   태블릿: 768px ~ 1199px
======================================== */
@media screen and (min-width: 768px) and (max-width: 1199px) {

    body {
        padding-top: 76px;
    }

    /* 헤더 */
    header {
        height: 76px;
        padding: 0 40px;
        border-radius: 0 0 35px 35px;
    }

    .logo img {
        display: block;
        width: 65px;
        height: auto;
    }

    .hamburger {
        width: 44px;
        height: 44px;
        padding: 11px 6px;
    }

    .menu {
        top: 76px;
        right: 0;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        padding: 40px;
        gap: 28px;
        overflow-y: auto;
    }

    .menu a {
        font-size: clamp(30px, 3.5vw, 40px);
    }

    /* 프로젝트 분류 */
    .project-nav {
        height: auto;
        min-height: 60px;
        margin-top: 30px;
        padding: 0 40px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .project-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 18px;
        font-size: clamp(12px, 1.45vw, 16px);
        border-radius: 30px;
    }

    /* 교과목 설명 */
    .content {
        height: auto;
        margin-top: 45px;
        padding: 0 40px;
    }

    .title {
        font-size: clamp(30px, 3.8vw, 42px);
        line-height: 1.4;
        margin-bottom: 18px;
        word-break: keep-all;
    }

    .text {
        font-size: clamp(14px, 1.7vw, 18px);
        line-height: 1.9;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 작품 3열 */
    .work-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 36px 24px;
        padding: 0 40px;
        margin: 45px auto 0;
    }

    .work-item {
        width: 100%;
        min-width: 0;
        margin-top: 0;
    }

    .work-item a {
        border-radius: 14px;
    }

    .work-item img {
        width: 100%;
        height: auto;
    }

    .work-item p {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.6;
    }

    /* 푸터 */
    footer {
        margin-top: 70px;
        padding: 35px 40px;
    }

    .footer-top {
        align-items: center;
        gap: 24px;
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .footer-top h2 {
        font-size: clamp(24px, 3vw, 34px);
        line-height: 1.3;
        letter-spacing: -1px;
    }

    .footer-logo {
        flex-shrink: 0;
    }

    .footer-logo img {
        display: block;
        width: 120px;
        height: auto;
    }

    .footer-middle {
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .Univ-name-KR {
        font-size: 20px;
        line-height: 1.7;
    }

    .Univ-name-EN {
        font-size: 17px;
    }

    .copy,
    .copy-KR,
    .copy-EN {
        font-size: 12px;
        line-height: 1.8;
        overflow-wrap: break-word;
    }
}


/* ========================================
   데스크톱: 1200px 이상
======================================== */
@media screen and (min-width: 1200px) {

    body {
        padding-top: 88px;
    }

    /* 헤더 */
    header {
        height: 88px;
        padding: 0 clamp(50px, 5vw, 100px);
        border-radius: 0 0 36px 36px;
    }

    .logo img {
        display: block;
        width: 80px;
        height: auto;
    }

    .hamburger {
        display: none;
    }

    /* 가로 메뉴 */
    header .menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;

        display: flex;
        flex-direction: row;
        align-items: center;
        gap: clamp(24px, 3vw, 56px);

        opacity: 1;
        visibility: visible;
        transform: none;
        overflow: visible;

        background: transparent;
        text-align: left;
        transition: none;
    }

    header .menu a {
        margin: 0;
        font-size: clamp(16px, 1.2vw, 21px);
        font-weight: 600;
        opacity: 1;
        transform: none;
        transition: color 0.2s ease;
    }

    header .menu a:last-child {
        margin-top: 0;
    }

    header .menu a:hover,
    header .menu a:focus-visible {
        color: #EB2254;
    }

    /* 프로젝트 분류 */
    .project-nav {
        height: auto;
        min-height: 64px;
        margin-top: 40px;
        padding: 0 60px;
        justify-content: center;
        flex-wrap: wrap;
        gap: clamp(16px, 2vw, 32px);
    }

    .project-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 12px 26px;
        font-size: clamp(14px, 1vw, 18px);
        border-radius: 30px;
    }

    /* 교과목 설명 */
    .content {
        width: 100%;
        max-width: 1440px;
        height: auto;
        margin: 60px auto 0;
        padding: 0 60px;
    }

    .title {
        font-size: clamp(38px, 3vw, 54px);
        line-height: 1.4;
        margin-bottom: 22px;
        word-break: keep-all;
    }

    .text {
        font-size: clamp(17px, 1.2vw, 21px);
        line-height: 1.9;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* 작품 4열 */
    .work-list {
        width: 100%;
        max-width: 1680px;
        margin: 65px auto 0;
        padding: 0 60px;

        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        gap: 50px 32px;
    }

    .work-item {
        width: 100%;
        min-width: 0;
        margin-top: 0;
    }

    .work-item a {
        border-radius: 16px;
    }

    .work-item img {
        width: 100%;
        height: auto;
    }

    .work-item p {
        margin-top: 15px;
        font-size: 18px;
        line-height: 1.6;
    }

    /* 푸터 */
    footer {
        margin-top: 110px;
        padding: 50px clamp(60px, 6vw, 120px);
    }

    .footer-top {
        align-items: center;
        gap: 40px;
        padding-bottom: 35px;
        margin-bottom: 30px;
    }

    .footer-top h2 {
        font-size: clamp(30px, 2.6vw, 46px);
        line-height: 1.3;
        letter-spacing: -1px;
    }

    .footer-logo {
        flex-shrink: 0;
    }

    .footer-logo img {
        display: block;
        width: 160px;
        height: auto;
    }

    .footer-middle {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .Univ-name-KR {
        font-size: 23px;
        line-height: 1.7;
    }

    .Univ-name-EN {
        font-size: 19px;
    }

    .copy,
    .copy-KR,
    .copy-EN {
        font-size: 13px;
        line-height: 1.9;
        overflow-wrap: break-word;
    }
}