header {
    height: 6rem;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 7777;
    background: blue;
}
header .header {
    width: 1080px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header h1 a {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
}
header #menuBtn {
    width: 40px;
}
header #menuBtn img {
    width: 100%;
}

nav {
    background-color: #fff;
    display: flex;
    flex-flow: column nowrap;
    width: 30%;
    height: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
}
nav button {
    font-size: 20px;
    padding: 20px 0;
    width: 100%;
    background: blue;
    color: #fff;
}
nav a {
    font-size: 20px;
    padding: 20px;
}

main {
    max-width: 1080px;
    margin: 20px auto;
}
main .list {
    display: flex;
    flex-flow: column nowrap;
    gap: 40px;
}
main .list a {
    display: flex;
    gap: 20px;
}
main .list a .image {
    width: 20%;
    height: 100%;
    background: skyblue;
}
main .list a .text {
    width: 80%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
}
main .list a .text .category {
    font-size: 14px;
    color: skyblue;
}
main .list a .text h2 {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}
main .list a .text pre {
    line-height: 1.4;
    white-space: pre-wrap; /* 줄바꿈을 처리 */
    overflow: hidden; /* 넘치는 내용 숨기기 */
    height: 2.8em; /* 2줄에 맞는 높이 설정 (line-height * 2) */
}
main .list a .text .date {
    font-size: 14px;
    color: gray;
}

main .content h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    padding: 20px 0;
    margin-bottom: 20px;
}
main .content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}
main .content pre {
    line-height: 1.8;
    margin-bottom: 100px;
}

@media only screen and (max-width: 1080px) {
    header {
        padding: 0 2rem;
    }
    header h1 a {
        font-size: 2.4rem;
    }
    header #menuBtn {
        width: 2rem;
    }
    nav {
        width: 60%;
    }
    nav a h2 {
        font-size: 1.6rem;
    }
    main {
        padding: 2rem;
    }
    main .list .text h2 {
        font-size: 2.4rem;
    }
    main .list .text pre {
        font-size: 1.6rem;
    }
    main .content h2 {
        font-size: 2.4rem;
    }
    main .content h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    main .content pre {
        font-size: 1.6rem;
        margin-bottom: 4rem;
    }
}