@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url("./fonts/SpoqaHanSansNeo-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url("./fonts/SpoqaHanSansNeo-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url("./fonts/SpoqaHanSansNeo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url("./fonts/SpoqaHanSansNeo-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url("./fonts/SpoqaHanSansNeo-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeX Gyre Adventor';
    src: url("./fonts/texgyreadventor-regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeX Gyre Adventor';
    src: url("./fonts/texgyreadventor-italic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TeX Gyre Adventor';
    src: url("./fonts/texgyreadventor-bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TeX Gyre Adventor';
    src: url("./fonts/texgyreadventor-bolditalic.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --std: calc(16px * 1.5);
    --max: 1280px;
    --half: calc((100% - var(--max)) / 2);
    --note: 180px;
    --header: calc(var(--std) * 5.0);
    --big: 1.25rem;
    --medium: 1.125rem;
    --basic: 1rem;
    --small: 0.8rem;
    --kColor1: rgb(255, 250, 240);
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    line-height: 1;
    list-style-type: none;
    text-transform: none;
    text-decoration: none;
    word-break: keep-all;
    font-family: 'TeX Gyre Adventor', 'Spoqa Han Sans Neo', sans-serif;
    color: inherit;
}

body {
    overflow-x: hidden;
}

html {
    font-size: 16px;
    background-color: rgb(255, 255, 255);
}

#app {
    opacity: 0;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#app.active {
    -webkit-animation-name: fadeIn;
            animation-name: fadeIn;
    -webkit-animation-duration: 1s;
            animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
}

#main-header {
    padding: calc(var(--std) * 1.0) calc((100% - var(--max)) / 2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    z-index: 100;
}

#home {
    width: auto;
}

#home > img {
    width: auto;
    height: calc(var(--std) * 3.0);
}

#main-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    height: calc(var(--std) * 1.0);
    gap: calc(var(--std) * 5.0);
    font-size: var(--big);
}

.item-menu > a:hover {
    border-bottom: 2px dashed rgb(255, 0, 0);
}

#toggle-menu {
    display: none;
}

#toggle-lang {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: calc(var(--std) * 1.0);
}

#toggle-lang > button {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: none;
    background-color: transparent;
    font-size: var(--big);
    width: calc(var(--std) * 1.0);
    height: calc(var(--std) * 1.0);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    border-radius: 100%;
    cursor: pointer;
}

#toggle-lang > button:hover, #toggle-lang > button.active {
    border: 2px dashed rgb(255, 0, 0);
}

#app.index #main-content {
    position: fixed;
    top: var(--header);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header));
}

#banner, .item-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#about {
    padding: calc(var(--std) * 1.0) var(--half);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    background-color: rgb(255, 255, 255);
}

#about > div {
    width: 100%;
    max-width: 640px;
}

#about p {
    font-size: var(--big);
}

p a:hover {
    border-bottom: 2px dashed rgba(255, 0, 0);
}

.item-banner:not(:first-child) > .bg {
    opacity: 0;
}

.item-banner > .bg {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center center;
       object-position: center center;
}

.item-banner > .caption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: calc(var(--std) * 1.0);
    font-size: var(--basic);
    color: rgb(255, 255, 255);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity var(--fade, 1s) ease-in-out, visibility 0s linear var(--fade, 1s);
    transition: opacity var(--fade, 1s) ease-in-out, visibility 0s linear var(--fade, 1s);
}

.item-banner.active > .caption {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity var(--fade, 1s) ease-in-out;
    transition: opacity var(--fade, 1s) ease-in-out;
}

#main-footer {
    padding: calc(var(--std) * 1.0);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    font-size: var(--basic);
    color: rgb(255, 255, 255);
    z-index: 10;
}

#main-footer a {
    border-bottom: 2px dashed rgba(255, 0, 0, 0);
}

#main-footer a:hover {
    border-bottom: 2px dashed rgb(255, 0, 0);
}

#avatars {
    padding: calc(var(--std) * 1.0) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    overflow: hidden;
    z-index: 0;
}

#avatars > img {
    width: 160px;
    height: auto;
}

#notice {
    position: fixed;
    top: -100%;
    left: 0;
    width: var(--note);
    -webkit-filter: drop-shadow(0px 8px 4px rgba(0, 0, 0, 0.1));
            filter: drop-shadow(0px 8px 4px rgba(0, 0, 0, 0.1));
}

#notice > .line {
    top: calc(var(--std) * 5.0 * (-1));
    position: relative;
    width: 100%;
    height: calc(var(--std) * 6.0);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

#notice > .line::after {
    content: "";
    width: 2px;
    height: calc(100% + var(--std) * (5.0 + 1.5));
    background-color: rgb(255, 0, 0);
    z-index: 50;
}

#notice > .memo {
    position: relative;
    padding-top: calc(var(--std) * 4.0);
    width: 100%;
    background-color: rgb(220, 220, 210);
    -webkit-mask-image: radial-gradient(circle at 50% calc(var(--std) * 1.5), transparent calc(var(--std) * 0.5 - 0.5px), #000 calc(var(--std) * 0.5 + 0.5px));
    mask-image: radial-gradient(circle at 50% calc(var(--std) * 1.5), transparent calc(var(--std) * 0.5 - 0.5px), #000 calc(var(--std) * 0.5 + 0.5px));
}

#notice > .memo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("./pulp.png");
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: -1;
}

#notice > .memo > .content {
    display: none;
    padding: calc(var(--std) * 1.0);
    width: 100%;
    height: calc(var(--note) * (4 / 3));
    font-size: var(--medium);
    color: rgb(50, 50, 50);
    overflow-y: auto;
}

#notice > .memo > .content.active {
    display: block;
}

#notice > .memo > .content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
}

.ko, .en, .ja {
    display: none;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

html.fading .ko,
html.fading .en,
html.fading .ja {
    opacity: 0;
}

html:lang(ko) .ko,
html:lang(en) .en,
html:lang(ja) .ja {
    display: block;
}

.ko p, .common p {
    line-height: 1.7;
}

.en p {
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: anywhere;
    -ms-hyphens: auto;
        hyphens: auto;
}

.ja p {
    line-height: 1.7;
    word-break: normal;
    line-break: strict;
}

#grids, .grid {
    position: fixed;
    z-index: 9999;
}

#grids {
    display: none;
}

#grids.active {
    display: block;
}

.grid:nth-child(1) {
    top: calc(var(--std) * 1.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(2) {
    bottom: calc(var(--std) * 1.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(3) {
    top: 0;
    left: calc(var(--std) * 1.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(4) {
    top: 0;
    right: calc(var(--std) * 1.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(5) {
    top: 0;
    left: calc((100% - var(--max)) / 2);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(6) {
    top: 0;
    right: calc((100% - var(--max)) / 2);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(7) {
    top: calc(var(--std) * 2.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(8) {
    top: calc(var(--std) * 3.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(9) {
    top: calc(var(--std) * 4.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(10) {
    top: calc(var(--std) * 5.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(11) {
    top: calc(var(--std) * 6.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

@media screen and (max-width: 1328px) {
    :root {
        --max: calc(100% - var(--std) * 2.0);
        --half: calc((100% - var(--max)) / 2);
    }
}

@media screen and (max-width: 1024px) {
    #main-menu {
        gap: calc(var(--std) * 3.0);
    }
}

@media screen and (max-width: 768px), (hover: none) {
    #notice {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header: calc(var(--std) * 3.0);
        --big: 1.125rem;
        --medium: 1rem;
    }

    #main-header {
        padding: calc(var(--std) * 0.5) calc((100% - var(--max)) / 2);
        height: var(--header);
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr calc(var(--std) * 0.5) auto calc(var(--std) * 0.5) auto;
        grid-template-columns: 1fr auto auto;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-column-gap: calc(var(--std) * 0.5);
           -moz-column-gap: calc(var(--std) * 0.5);
                column-gap: calc(var(--std) * 0.5);
    }

    #home {
        -ms-grid-column-align: start;
            justify-self: start;
    }

    #home > img {
        height: calc(var(--std) * 2.0);
    }

    #toggle-lang {
        -ms-grid-column: 2;
        grid-column: 2;
    }

    #toggle-menu {
        -ms-grid-column: 3;
        grid-column: 3;
        -webkit-appearance: none;
           -moz-appearance: none;
                appearance: none;
        border: 2px dashed rgba(255, 0, 0, 0);
        background-color: transparent;
        width: var(--std);
        height: var(--std);
        padding: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        gap: 6px;
        border-radius: 100%;
        cursor: pointer;
    }

    #toggle-menu > span {
        display: block;
        width: 14px;
        height: 2px;
        background-color: rgb(0, 0, 0);
        -webkit-transition: -webkit-transform 0.3s ease;
        transition: -webkit-transform 0.3s ease;
        transition: transform 0.3s ease;
        transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    }

    #toggle-menu[aria-expanded="true"] {
        border-color: rgb(255, 0, 0);
    }

    #toggle-menu[aria-expanded="true"] > span:nth-child(1) {
        -webkit-transform: translateY(4px) rotate(45deg);
            -ms-transform: translateY(4px) rotate(45deg);
                transform: translateY(4px) rotate(45deg);
    }

    #toggle-menu[aria-expanded="true"] > span:nth-child(2) {
        -webkit-transform: translateY(-4px) rotate(-45deg);
            -ms-transform: translateY(-4px) rotate(-45deg);
                transform: translateY(-4px) rotate(-45deg);
    }

    #main-menu {
        padding: calc(var(--std) * 1.0) calc((100% - var(--max)) / 2) calc(var(--std) * 1.5);
        position: fixed;
        top: var(--header);
        left: 0;
        width: 100%;
        height: auto;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
        -webkit-box-pack: start;
            -ms-flex-pack: start;
                justify-content: flex-start;
        gap: calc(var(--std) * 1.0);
        background-color: rgba(255, 255, 255, 0.96);
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translateY(-8px);
            -ms-transform: translateY(-8px);
                transform: translateY(-8px);
        -webkit-transition: opacity 0.3s ease, visibility 0s linear 0.3s, -webkit-transform 0.3s ease;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s, -webkit-transform 0.3s ease;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s, -webkit-transform 0.3s ease;
    }

    #main-header.open > #main-menu {
        opacity: 1;
        visibility: visible;
        -webkit-transform: none;
            -ms-transform: none;
                transform: none;
        -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
        transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition: opacity 0.3s ease, transform 0.3s ease, -webkit-transform 0.3s ease;
    }

    .item-menu > a {
        display: inline-block;
    }

    #avatars {
        padding: calc(var(--std) * 0.5) 0;
    }

    #avatars > img {
        width: 90px;
    }

    .item-banner > .caption {
        top: 0;
        bottom: auto;
        padding: calc(var(--std) * 1.0);
        max-width: 100%;
        font-size: var(--small);
    }

    #main-footer {
        padding: calc(var(--std) * 1.0);
        font-size: var(--small);
    }

    #about {
        padding: calc(var(--std) * 1.0) var(--half);
    }
}

#idle {
    position: fixed;
    inset: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    z-index: 6000;
}

#idle.active {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.8s ease;
    transition: opacity 0.8s ease;
}

#idle > svg {
    width: calc(100vmin - var(--std) * 2.0);
    height: calc(100vmin - var(--std) * 2.0);
    overflow: visible;
}

#idle .face {
    fill: none;
    stroke: rgb(255, 0, 0);
    stroke-width: 1.5px;
    stroke-linejoin: miter;
    vector-effect: non-scaling-stroke;
}

#idle .hand {
    stroke: rgb(255, 0, 0);
    stroke-linecap: butt;
}

#idle .hour {
    stroke-width: 5;
}

#idle .minute {
    stroke-width: 3.5;
}

#idle .second {
    stroke-width: 1;
}