@charset "UTF-8";

/*!

    YDITS Site

    Copyright (C) よね/Yone

*/

:root {
    --header-height: 3.5rem;
    --font-size: 14px;
    --body-background-color: #fff;
    --font-weight: 400;
    --font-family: "Local Noto Sans JP", "Noto Sans JP", sans-serif;
    --color: #222;

    --origin-alert-height: 4rem;

    /* z-index */
    --header--z-index: 10;
    --header-menu-button--z-index: 20;
    --origin-alert--z-index: 100;

    scroll-behavior: smooth;
    font-weight: var(--font-weight);
    font-size: var(--font-size);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--body-background-color);
    font-weight: var(--font-weight);
    font-family: var(--font-family);
    color: var(--color);

    & * {
        margin: 0;
        padding: 0;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 1rem;
    font-weight: var(--font-weight);
}

/* header */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--header--z-index);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: var(--header-height);
    box-shadow: #80808080 0px 0px 2px 2px;

    background-color: #202020ff;
    color: #ffffff;

    user-select: none;

}

.header-logo {
    display: flex;
    flex-direction: row;
    align-items: center;

    margin-left: 1rem;
    height: 100%;

    padding: 0 1rem;
    text-decoration: none;

    &:hover {
        background-color: #ffffff40;
    }
}

.header-logo__img {
    height: 2rem;
}

.header-menu-button {
    position: fixed;
    bottom: 2em;
    right: 2em;

    display: none;
    align-items: center;
    justify-content: center;

    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;

    /* background-color: #e0e0ff; */
    background-color: #ffffffff;
    box-shadow: #80808080 0px 0px 2px 2px;

    z-index: var(--header-menu-button--z-index);
    cursor: pointer;
    user-select: none;

    &>.header-menu-button__icon--close {
        display: none;
    }

    &.opened {
        & .header-menu-button__icon--open {
            display: none;
        }

        & .header-menu-button__icon--close {
            display: block;
        }
    }

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

.header-menu-button__icon {
    font-size: 2em;
    color: #010101;
}

.header-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;

    margin-right: 1em;
    height: 100%;

    @media (max-width: 768px) {
        position: fixed;
        top: 0;
        left: 100%;

        width: 100vw;

        overflow: auto;
        background-color: #101010;
        z-index: 1;

        transition: all .3s;
    }

    &.active {
        @media (max-width: 768px) {
            left: 0%;
            display: flex;
        }
    }

    &>ul {
        display: flex;
        flex-direction: row;
        align-items: center;

        height: 100%;

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

    &>ul>li {
        display: flex;
        justify-content: center;
        align-items: center;

        margin: 0 1em;

        height: 80%;
        width: 8em;
        border-radius: .5em;

        @media (max-width: 768px) {
            margin-bottom: 2em;
            width: 80%;
            height: 3em;

            background-color: #ffffff;
        }

        &:hover {
            background-color: #fff4;

            @media (max-width: 768px) {
                background-color: #8888;
            }
        }

        &>a {
            display: flex;
            justify-content: center;
            align-items: center;

            width: 100%;
            height: 100%;

            color: #ffffffff;
            text-decoration: none;

            @media (max-width: 768px) {
                color: #202020ff;
            }
        }
    }
}

.header__content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: 100%;
    max-width: 1024px;
}

/* main */

main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) * 2);
}

/* footer */

footer {
    background-color: #222;
    color: #fff;
    user-select: none;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    height: 100%;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    height: 100%;
    padding: 2rem 0;
    text-align: center;
}

.footer-logo__img {
    height: 6rem;
    margin-bottom: 2rem;

    @media (max-width: 768px) {
        height: 4em;
    }
}

.footer__language-selector {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 5em;

    background-color: #303030ff;
}

.footer__language-selector__open {
    margin-top: .1em;
    margin-right: .3em;
}

/* material-symbols-outlined */

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* origin-alert */

.origin-alert {
    display: flex;

    position: fixed;
    z-index: var(--origin-alert--z-index);
    bottom: 0;
    left: 0;
    right: 0;

    box-sizing: border-box;
    width: 100dvw;
    height: var(--origin-alert-height);

    flex-direction: row;
    justify-content: center;
    align-items: center;

    padding: 0.5rem 1rem;
    gap: 1rem;
    background-color: #222c;
    font-size: 1rem;
    color: #fff;
}

.origin-alert__close-button {
    position: relative;
    border: none;
    border-radius: 100lvw;

    padding: 0.5rem;
    background-color: #eee;
    color: #222;

    cursor: pointer;

    &:hover {
        &::after {
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 100lvw;
            background-color: #0001;
            content: "";
        }
    }

    &:active {
        &::after {
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 100lvw;
            background-color: #0004;
            content: "";
        }
    }
}

/* link-button */

.link-button {
    display: inline-block;
    border-radius: calc((2rem + 24px) / 2);
    padding: 1rem 1.5rem;
    background-color: #404040ff;
    font-size: 1rem;
    color: #ffffffff;
    text-decoration: none;

    transition: all .5s;
    user-select: none;

    &:hover {
        background-color: #f0f0f0ff;
        color: #202020ff;
        cursor: pointer;
    }

    &>.wrapper {
        display: flex;
        align-items: center;
    }
}

/* link-inline */

.link-inline {
    color: #40b080ff;
    text-decoration: none;
    cursor: pointer;

    &:hover {
        text-decoration: underline;
    }
}

/* language-selector */

.language-selector {
    border: #808080ff solid 2px;
}