html {
    font-size: 16px;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);

    @media (max-width: 768px) {
        font-size: 14px;
    }
}

ul {
    padding: 0;
}

li {
    list-style: none;
}

img {
    width: 100%;
}

a {
    color: var(--text-color);

    &:hover {
        color: var(--link-text-color);
    }
}

/*header*/

header {
    position: relative;
    width: 100vw;
    height: auto;
    overflow: hidden;
}

h1 {
    font-family: "Ubuntu Sans Mono", "Noto Sans JP", monospace, sans-serif;
    margin-bottom: 0;
}

h2 {
    font-family: "Ubuntu Sans Mono", "Noto Sans JP", sans-serif;
    color: var(--h-color);
}

.header-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    padding-bottom: 50px;

    div {
        width: 50%;

        @media (max-width: 768px) {
            width: 100%;
            padding: 0 20px;

            h1 {
                text-align: center;
            }
        }
    }

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }

}


img.icon {
    width: 20vw;
    min-width: 130px;
    border-radius: 50%;
    border: 10px solid #fff;
    margin-top: -7.5vw;
}

.bg {
    width: 100%;
    background-image: var(--header-img);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 3 / 1;
}

.site-info {
    max-width: 500px;
}

.site-url {
    margin: 0;
    font-size: 0.8em;

    @media (max-width: 768px) {
        text-align: center;
    }
}

/*nav*/

nav.menu {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-top: 1px solid;
    border-bottom: 1px solid;
    z-index: 9999;
    color: var(--link-color);

    ul {
        display: flex;
        justify-content: center;
        font-size: 1.2em;
        margin: 0;

        a {
            display: block;
            text-decoration: none;
            width: 100%;
            padding: 20px;
            color: var(--link-color);
        }
    }

    li.active a {
        font-weight: bold;
        color: var(--link-color-active);

        &:hover {
            color: var(--link-color-hover);
        }
    }
}


/*section*/

main {
    margin: 64px 20px;
}

section {
    max-width: 1000px;
    margin: 64px auto;

    @media (max-width: 768px) {
        max-width: 500px;
    }
}

section.info {
    display: flex;
    gap: 25px;

    @media (max-width: 768px) {
        flex-direction: column;
    }

    div {
        width: 50%;
        max-height: 400px;

        @media (max-width: 768px) {
            width: 100%;
        }
    }

    li {
        display: grid;
    }
}

.news-list {
    ul {
        display: grid;
        gap: 20px;
        max-height: 300px;
        overflow-y: scroll;
        padding: 15px;
    }
}

.news-date {
    font-size: 0.8em;
    color: var(--date-color);
    font-family: "Ubuntu Sans Mono", monospace;
}

.topic-wrap {
    a {
        text-decoration: none;
        color: var(--text-color);
    }
}


.topic-title {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 8px;
}


.topic-wrap {
    a {
        &:hover {
            opacity: 0.8;
        }
    }
}

.topic-img {
    display: block;
    width: auto;
    max-height: 280px;
    margin: 0 auto;
}


.about-img {
    width: 30%;
    min-width: 200px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

.about-name {
    text-align: center;
}

.about-text {
    width: 50%;
    margin: 0 auto;
    min-width: 300px;
}

.link-list {
    display: flex;
    gap: 25px;

    @media (max-width: 768px) {
        flex-direction: column;
    }

    div {
        width: 50%;

        @media (max-width: 768px) {
            width: 100%;
        }
    }
}

.link-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.link-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sns-icon {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 2em;
    margin-top: 0;
}

/*SNSアイコン*/
.fa-x-twitter {
    color: black;
}

.fa-bluesky {
    color: #0a7aff;
}

.fa-youtube {
    color: #FF0000;
}

.fa-instagram {
    color: black;
}

/*カスタムボタン*/
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.custom-link-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    max-width: 300px;
    border: 1px solid;
    border-radius: 5px;

    color: var(--button-text-color-active);
    background-color: var(--button-bg-color-active);
    text-decoration: none;

    transition: 0.2s ease;

    position: relative;
}

.custom-link-btn::after {
    position: absolute;
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f054";
    right: 20px;

    transition: 0.2s ease;
}

.custom-link-btn:hover {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
}

.custom-link-btn:hover::after {
    right: 15px;
}

/*illustration*/
.illustration-page {
    h1 {
        margin: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 3em;
        color: var(--header-text-color);
        z-index: 30;
        background-color: rgba(0, 0, 0, 0.2);
    }
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button.category-btn {
    border: 1px solid var(--button-border-color);
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    padding: 5px 20px;
    font-size: 0.8em;
}

button.category-btn.active {
    border: 1px solid var(--button-border-color-active);
    background-color: var(--button-bg-color-active);
    color: var(--button-text-color-active);
    padding: 5px 20px;
    font-size: 0.8em;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
    margin: 25px 0;
    justify-items: center;

    @media (max-width: 768px) {
        grid-template-columns: 1fr 1fr;
    }
}

.work-item {
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
}

.work-item.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.works-item-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: border-radius 0.4s ease, transform 0.4s ease;
}

.glightbox:hover .works-item-thumbnail {
    border-radius: 40px;
    transform: scale(0.95)
}

.gslide-image img {
    max-width: 90%;
}

/*comic*/
.comic-page {
    h1 {
        margin: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 3em;
        color: var(--header-text-color);
        z-index: 30;
        background-color: rgba(0, 0, 0, 0.2);
    }
}


/*footer*/
footer {
    background-color: var(--footer-color);
    padding: 20px;
    color: var(--footer-text-color);

    div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;

        p {
            margin: 0;
            font-size: 1.2em;
        }
    }

    .site-url {
        text-align: center;
    }
}

.banner {
    width: 140px;
}

.template {
    font-size: 0.7em;
    color: var(--text-color);

    a:hover {
        color: var(--text-color);
    }
}

p.site-url.url-display {
    width: 100%;
}


/*スクロールアニメーション*/
.fade-in {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 1s ease, filter 1s ease;
}

.fade-in.is-visible {
    opacity: 1;
    filter: blur(0);
}

/*ホバーアニメーション*/
.menu {
    a:hover {
        background-color: var(--link-bg-hover);
        color: var(--link-color-hover);
        transition: 0.2s ease;
    }
}

/*comicページ*/
.comic-info-wrap {
    display: grid;
    grid-template-columns: 300px auto;
    gap: 50px;
    align-items: center;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }

    .button-container {
        flex-direction: row;
    }
}

.comic-story {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 32px 0;

    .comic-item {
        width: 250px;

        img {
            width: 250px;
            height: 250px;
        }
    }
}