@font-face {
    font-family: 'Pretendard Variable';
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
    src: local('Pretendard Variable'), url('../fonts/PretendardVariable.woff2') format('woff2-variations');
}

:root {
    --main-font-size: 1.5rem;
    --main-font-weight: 450;
    --main-line-height: 2.3rem;
}

* {
    box-sizing: border-box;
    word-break: keep-all;
    word-wrap: break-word;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    font-family: 'Pretendard Variable', sans-serif;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

html {
    font-size: 18px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

hr {
    border: 0;
    height: 1px;
    background-color: black;
}

header {
    display: none;
    justify-content: space-between;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 600;
    padding: 0 1rem;
    width: 100%;
    height: 5rem;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    background-color: white;
    border-bottom: 1px solid black;
}

header #button-menu {
    cursor: pointer;
}

main {
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid black;
}

nav li, article, aside li {
    font-size: var(--main-font-size);
    font-weight: var(--main-font-weight);
    line-height: var(--main-line-height);
}

nav {
    width: 40%;
}

nav li {
    border-bottom: 1px solid black;
    padding: 0.5rem 1rem;
}

nav li.main-list {
    font-weight: 730;
}

nav li.sub-list {
    padding-left: 2rem;
}

nav li.sub-list.now {
    border: 0.4rem solid black;
    padding-left: 1.6rem;
}

nav li.main-list.now {
    border: 0.4rem solid black;
    padding-left: 0.6rem;
}

nav .not-yet {
    color: #999;
    background-color: #fafafa;
}

article {
    width: 50%;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    padding: 1.5rem 1.8rem;
    white-space: pre-wrap;
    display: block;
}

article .right {
    text-align: right;
}

article h1 {
    font-size: 3rem;
    line-height: 4rem;
    font-weight: 800;
}

article .small {
    display: inline-block;
    font-size: 1.2rem;
    padding: 0 0.2rem;
}

article .footnote {
    position: relative;
    bottom: 0.3em; /* 원하는 값으로 조정 */
    padding-left: 0.1em;
    font-size: smaller;
    color: blue;
    font-weight: 600;
}

article .footnote-list {
    font-size: 1.3rem;
    line-height: 2rem;
}

article .footnote-list a {
    color: blue;
    font-weight: 600;
}

article .indent {
    padding-left: 2rem;
}

article .inner-box {
    border: 1px solid black;
    padding: 1em;
    font-size: 0.95em
}

aside {
    width: 10%;
}

aside ul {
    width: 100%;
    height: 100%;
    position: relative;
}

aside li {
    text-align: center;
    padding: 2rem 0.5rem;
    border-bottom: 1px solid black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

aside li.indicator {
    padding: 1rem 0.5rem;
}

aside li i {
    padding-right: 0.3rem;
}

aside li.move-top {
    width: 100%;
    border-top: 1px solid white;
    position: absolute;
    left: 0;
    bottom: 0;
}

@media screen and (min-width: 1801px) {
    html {
        font-size: 18px;
    }
}

@media screen and (min-width: 1401px) and (max-width: 1800px) {
    html {
        font-size: 16px;
    }
}

@media screen and (min-width: 1001px) and (max-width: 1400px) {
    html {
        font-size: 14px;
    }
}

@media screen and (max-width: 1000px) {
    html {
        font-size: 12px;
    }

    nav {
        width: 30%;
    }

    article {
        width: 55%;
        padding: 1.5rem;
    }

    aside {
        width: 15%;
    }
}

@media screen and (max-width: 700px) and (orientation: portrait) {
    :focus {
        outline: none;
    }

    :target {
        padding-top: 5rem; /* 헤더의 높이 */
        margin-top: -5rem;
    }

    header {
        display: flex;
    }

    main {
        padding-top: 5rem;
        border-width: 0;
    }

    nav {
        width: 70%;
        display: none;
        border-right: 1px solid black;
    }

    article {
        width: 100%;
        border-width: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    aside {
        width: 30%;
        display: none;
    }
}