@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Roboto&display=swap');
@font-face {
    font-family: 'Butler';
    src: url('../fonts/Butler.eot');
    /* IE9 Compat Modes */
    src: url('../fonts/Butler.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/Butler.woff') format('woff'), /* Modern Browsers */
    url('../fonts/Butler.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/Butler.svg') format('svg');
    /* Legacy iOS */
}

.frame {
    top: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    z-index: 1000;
    background: #f0f0f0;
    width: 100%;
    display: flex;
    text-transform: uppercase;
}

.frame__title {
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.frame__links {
    margin: 0.5rem 0;
}

.frame__links a {
    border-bottom: 1px solid currentColor;
    transition: 0.2s border-color;
}

.frame__links a:hover,
.frame__links a:focus {
    border-color: transparent;
}

.frame__links a:not(:last-child) {
    margin-right: 1rem;
}

.frame__button {
    word-spacing: 0.75rem;
    color: var(--color-link);
    margin-left: auto;
}

.menu {
    padding: 10rem 0 20vh 0;
    width: 90vw;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: right;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    counter-reset: menucounter;
}

.menu_title {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    text-align: left;
    letter-spacing: .2em;
    margin-bottom: 30px;
    padding-left: 25vw;
    justify-content: initial;
}

.menu__item {
    flex: none;
    display: flex;
    justify-content: flex-end;
    position: relative;
    padding-left: 5rem;
}

.menu__item::before {
    counter-increment: menucounter;
    content: counters(menucounter, ".", decimal-leading-zero);
    font-family: 'Roboto', sans-serif;
    position: absolute;
    left: 0;
    border-left: 3px solid #fff;
    color: #fff;
    top: 20%;
    height: 60%;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    line-height: 1;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-1rem);
    transition: transform 0.3s, opacity 0.3s;
}

.menu__item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.menu__item-text {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    display: block;
    overflow: hidden;
    font-size: 6vw;
}

.menu__item-textinner {
    display: block;
    font-family: Butler, serif;
    font-weight: 300;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    opacity: 0;
}

.menu__item-textinner>.word {
    line-height: 1;
}

.js .menu__item-textinner {
    transform: translateY(100%);
}

.menu__item-sub {
    display: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
    align-items: center;
    position: relative;
    margin-left: 2rem;
    padding-left: 3rem;
    opacity: 0;
    transform: translateX(-1rem);
    transition: transform 0.3s, opacity 0.3s;
}

.menu__item:hover .menu__item-sub {
    opacity: 1;
    transform: translateX(0);
}

.menu__item-sub::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    width: 1px;
    height: 70%;
    background: #fff;
    transform-origin: 0 100%;
    transform: rotate(22.5deg) scale3d(1, 0, 1);
    transition: transform 0.3s;
}

.menu__item:hover .menu__item-sub::before {
    transform: rotate(22.5deg) scale3d(1, 1, 1);
}

.hover-reveal {
    position: absolute;
    z-index: -1;
    width: 220px;
    height: 320px;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
}

.hover-reveal__inner {
    overflow: hidden;
}

.hover-reveal__inner,
.hover-reveal__img {
    width: 100%;
    height: 100%;
    position: relative;
}

.hover-reveal__img {
    background-size: cover;
    background-position: 50% 50%;
}

.body_fix .menu_title {
    animation: fadeUp 1s ease-in-out 0s 1 forwards;
}

.body_fix .menu__item:first-of-type .menu__item-textinner {
    animation: fadeUp 1s ease-in-out .05s 1 forwards;
}

.body_fix .menu__item:nth-of-type(2) .menu__item-textinner {
    animation: fadeUp 1s ease-in-out .1s 1 forwards;
}

.body_fix .menu__item:nth-of-type(3) .menu__item-textinner {
    animation: fadeUp 1s ease-in-out .15s 1 forwards;
}

.body_fix .menu__item:nth-of-type(4) .menu__item-textinner {
    animation: fadeUp 1s ease-in-out .2s 1 forwards;
}

.body_fix .menu__item:nth-of-type(5) .menu__item-textinner {
    animation: fadeUp 1s ease-in-out .25s 1 forwards;
}

@keyframes fadeUp {
    0% {
        transform: skew(0deg, 8deg);
        opacity: 0;
    }
    100% {
        transform: skew(0deg, 0deg);
        opacity: 1;
    }
}

.body_fix .menu_title .word .char {
    animation: fadeUp_char 1s ease-in-out 0s 1 forwards;
}

.body_fix .menu__item:first-of-type .menu__item-textinner .word .char {
    animation: fadeUp_char 1s ease-in-out .05s 1 forwards;
}

.body_fix .menu__item:nth-of-type(2) .menu__item-textinner .word .char {
    animation: fadeUp_char 1s ease-in-out .1s 1 forwards;
}

.body_fix .menu__item:nth-of-type(3) .menu__item-textinner .word .char {
    animation: fadeUp_char 1s ease-in-out .15s 1 forwards;
}

.body_fix .menu__item:nth-of-type(4) .menu__item-textinner .word .char {
    animation: fadeUp_char 1s ease-in-out .2s 1 forwards;
}

.body_fix .menu__item:nth-of-type(5) .menu__item-textinner .word .char {
    animation: fadeUp_char 1s ease-in-out .25s 1 forwards;
}

@keyframes fadeUp_char {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media screen and (min-width: 53em) {
    .frame {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        background: none;
        height: 50vh;
        pointer-events: none;
        padding-bottom: 0;
    }
    .frame__links a:not(:last-child) {
        margin-right: 0;
    }
    .frame__links {
        margin: 0.5rem 0 2rem;
        justify-self: start;
    }
    .frame__links a {
        margin-left: 0.5rem;
        pointer-events: auto;
    }
    .frame__button {
        cursor: not-allowed;
        pointer-events: auto;
        margin-top: auto;
        transform: translateY(50%);
    }
    .menu {
        padding-top: 20vh;
    }
    .menu__item {
        padding-left: 25vw;
        justify-content: initial;
    }
    .menu__item-text {
        padding: 1vh 0;
        font-size: 4vw;
    }
    .menu__item-sub {
        display: flex;
    }
}

@media screen and (max-width:768px) {
    .menu {
        width: 100%;
    }
    .menu_title {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    .menu__item {
        justify-content: flex-start;
        padding-left: 3rem;
        padding-bottom: 2em;
    }
    .menu__item::before {
        border: none;
    position: relative;
    font-size: 12px;
    height: auto;
    padding-right: 2rem;
    opacity: 0;
    transform: translateX(0);
    transition: transform 0.3s, opacity 0.3s;
    }
    .menu__item-text {
        font-size: 8vw;
    }
    .menu__item-sub {
        display: block;
        position: absolute;
        top: 3.5rem;
        font-size: 10px;
        opacity: 0;
    }
    .hover-reveal {
        flex: none;
        display: flex;
        position: relative;
        padding-left: 3rem;
        padding-bottom: 2em;
    }
    .hover-reveal {
        display: none;
    }
    .menu__item:hover::before,
    .menu__item:hover .menu__item-textinner {
        color: #fff;
    }
    .body_fix .menu__item:first-of-type::before,
    .body_fix .menu__item:first-of-type .menu__item-sub {
        animation: fadeUp 1s ease-in-out .05s 1 forwards;
    }
    .body_fix .menu__item:nth-of-type(2)::before,
    .body_fix .menu__item:nth-of-type(2) .menu__item-sub {
        animation: fadeUp 1s ease-in-out .1s 1 forwards;
    }
    .body_fix .menu__item:nth-of-type(3)::before,
    .body_fix .menu__item:nth-of-type(3) .menu__item-sub {
        animation: fadeUp 1s ease-in-out .15s 1 forwards;
    }
    .body_fix .menu__item:nth-of-type(4)::before,
    .body_fix .menu__item:nth-of-type(4) .menu__item-sub {
        animation: fadeUp 1s ease-in-out .2s 1 forwards;
    }
    .body_fix .menu__item:nth-of-type(5)::before,
    .body_fix .menu__item:nth-of-type(5) .menu__item-sub {
        animation: fadeUp 1s ease-in-out .25s 1 forwards;
    }
    .body_fix .menu__item:first-of-type .menu__item-sub .word .char {
        animation: fadeUp_char 1s ease-in-out .05s 1 forwards;
    }
    .body_fix .menu__item:nth-of-type(2) .menu__item-sub .word .char {
        animation: fadeUp_char 1s ease-in-out .1s 1 forwards;
    }
    .body_fix .menu__item:nth-of-type(3) .menu__item-sub .word .char {
        animation: fadeUp_char 1s ease-in-out .15s 1 forwards;
    }
    .body_fix .menu__item:nth-of-type(4) .menu__item-sub .word .char {
        animation: fadeUp_char 1s ease-in-out .2s 1 forwards;
    }
    .body_fix .menu__item:nth-of-type(5) .menu__item-sub .word .char {
        animation: fadeUp_char 1s ease-in-out .25s 1 forwards;
    }
}