@font-face {
    font-family: "M-L-I";
    src: url("./font/M-L-I.otf") format("opentype");
}

@font-face {
    font-family: "M-R";
    src: url("./font/M-R.otf") format("opentype");
}

@font-face {
    font-family: "M-R-I";
    src: url("./font/M-R-I.otf") format("opentype");
}

@font-face {
    font-family: "M-M";
    src: url("./font/M-M.otf") format("opentype");
}

@font-face {
    font-family: "M-M-I";
    src: url("./font/M-M-I.otf") format("opentype");
}

@font-face {
    font-family: "M-B";
    src: url("./font/M-B.otf") format("opentype");
}

@font-face {
    font-family: "M-H";
    src: url("./font/M-H.otf") format("opentype");
}

@font-face {
    font-family: "G-L";
    src: url("./font/G-L.otf") format("opentype");
    /* ascent-override: 90%; */
}

@font-face {
    font-family: "G-R";
    src: url("./font/G-R.otf") format("opentype");
    /* ascent-override: 90%; */
}

@font-face {
    font-family: "G-M";
    src: url("./font/G-M.otf") format("opentype");
    /* ascent-override: 90%; */
}

@font-face {
    font-family: "MS-B";
    src: url("./font/MS-B.otf") format("opentype");
}

:root {

    --base-font-size: 16px;
    --base-font: 16;

    /* High Contrast */
    --Golden-Ratio: 1.618;
    --Perfect-Fifth: 1.500;
    --Augmented-Fourth: 1.414;

    /* Medium Contrast */
    --Perfect-Fourth: 1.333;
    --Major-Third: 1.250;
    --Minor-Third: 1.200;

    /* Low Contrast */
    --Major-Second: 1.125;
    --Minor-Second: 1.067;

    /* Desktop */
    --T-base: calc(32/var(--base-font)*1rem);
    --ST-base: calc((24/var(--base-font))*1rem);
    --H-base: calc((28/var(--base-font))*1rem);
    --SH-base: calc((20/var(--base-font))*1rem);
    --B-base: calc((16/var(--base-font))*1rem);
    --C-base: calc((12/var(--base-font))*1rem);

    /* 1. Title */
    --title-3xl: calc(var(--T-base)* var(--Golden-Ratio)*var(--Golden-Ratio)*var(--Golden-Ratio)*var(--Golden-Ratio)*var(--Golden-Ratio));
    --title-2xl: calc(var(--T-base)* var(--Golden-Ratio)*var(--Golden-Ratio)*var(--Golden-Ratio)*var(--Golden-Ratio));
    --title-xl: calc(var(--T-base)* var(--Golden-Ratio)*var(--Golden-Ratio)*var(--Golden-Ratio));
    --title-lg: calc(var(--T-base)* var(--Golden-Ratio)*var(--Golden-Ratio));
    --title-md: calc(var(--T-base)* var(--Golden-Ratio));
    --title-rg: calc(var(--T-base));

    /* 2. Sub-Title */
    --sub-title-lg: calc(var(--ST-base)*var(--Major-Third)*var(--Major-Third));
    --sub-title-md: calc(var(--ST-base)*var(--Major-Third));
    --sub-title-rg: calc(var(--ST-base));

    /* 3. Heading */
    --heading-lg: calc(var(--H-base)*var(--Golden-Ratio)*var(--Golden-Ratio));
    --heading-md: calc(var(--H-base)*var(--Golden-Ratio));
    --heading-rg: calc(var(--H-base));

    /* 4. Sub-Heading */
    --sub-heading-lg: calc(var(--SH-base)*var(--Major-Third)*var(--Major-Third));
    --sub-heading-md: calc(var(--SH-base)*var(--Major-Third));
    --sub-heading-rg: calc(var(--SH-base));

    /* 5. Body */
    --body-lg: calc(var(--B-base)*var(--Major-Second)*var(--Major-Second));
    --body-md: calc(var(--B-base)*var(--Major-Second));
    --body-rg: calc(var(--B-base));

    /* 6. Caption */
    --caption-lg: calc(var(--C-base)*var(--Major-Second)*var(--Major-Second));
    --caption-md: calc(var(--C-base)*var(--Major-Second));
    --caption-rg: calc(var(--C-base));

    /* Line Height */
    --line-height-title-md: 1.3;
    --line-height-title-rg: 1.2;
    --line-height--sub-title-rg: 1.3;
    --line-height-heading-rg: 1.2;
    --line-height-sub-heading-rg: 1.3;
    --line-height-body-md: 1.6;
    --line-height-body-rg: 1.5;
    --line-height-caption-rg: 1.4;

    /* white */
    --white-1: #fdfdfd;
    --white-3: #fbfbfb;
    --white-5: #f9f9f9;
    --white-8: #f6f6f6;
    --white-13: #f1f1f1;
    --white-21: #e9e9e9;
    --white-34: #dcdcdc;
    --white-55: #c7c7c7;

    /* grey-white */
    --grey-white-1: #828282;
    --grey-white-3: #848484;
    --grey-white-5: #868686;
    --grey-white-8: #898989;
    --grey-white-13: #8e8e8e;
    --grey-white-21: #969696;
    --grey-white-34: #a3a3a3;
    --grey-white-55: #b8b8b8;

    /* grey-black */
    --grey-black-1: #7d7d7d;
    --grey-black-3: #7b7b7b;
    --grey-black-5: #797979;
    --grey-black-8: #767676;
    --grey-black-13: #717171;
    --grey-black-21: #696969;
    --grey-black-34: #5C5C5C;
    --grey-black-55: #474747;

    /* black */
    --black-1: #020202;
    --black-3: #040404;
    --black-5: #060606;
    --black-8: #090909;
    --black-13: #0e0e0e;
    --black-21: #161616;
    --black-34: #232323;
    --black-55: #383838;

    --brand-color-1: #49A7C6;

}

* {
    margin: 0;
    padding: 0;
    user-select: none;
    box-sizing: border-box;
    max-width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.loading1 {

    width: 100%;
    min-height: 100%;
    background-color: var(--black-34);
    position: fixed;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.percentage {

    color: var(--white-55);
    font-family: "M-M", sans-serif;
    font-size: 2.312rem;
    letter-spacing: 0.03rem;
}

.loading1.hideLoading1 {
    /* animation: hideLoading 1000ms cubic-bezier(1, 0, 0, 1) 0ms forwards; */
    animation: 800ms cubic-bezier(.25, 1, .30, 1) hideLoading forwards;
}

.loading2 {
    width: 100%;
    min-height: 100%;
    background-color: var(--black-34);
    position: fixed;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loading2 .logo {
    width: 4.187rem;
    height: 4.187rem;
}

.loading2.hideLoading2 {
    animation: hideLoading 300ms cubic-bezier(1, 0, 0, 1) forwards;
}

@keyframes hideLoading {
    0% {
        /* clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0); */
        clip-path: circle(100%);
    }

    /* 25%{
        opacity: 1;
    } */

    100% {
        /* clip-path: polygon(0 0, 0 0, 100% 0, 100% 0); */
        clip-path: circle(0%);
        /* clip-path: polygon(50% 100%, 50% 100%, 50% 0, 50% 0); */
        opacity: 0;
        display: none;
    }

}

html,
body,
head {
    background-color: var(--white-8);
    margin: 0;
    padding: 0;
    user-select: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    max-width: 100%;
    width: 100%;
    display: block !important;
    position: relative;
}

p,
a,
use,
svg {
    padding: 0;
    margin: 0;
    display: flex;
    text-decoration: none;
}

svg {
    display: flex !important;
}

img {
    padding: 0;
    margin: 0;
    width: 100%;
    height: auto;
    display: flex;
    /* opacity: 0; */
    border: 0;
    border: none;
    outline: none;
    /* opacity: 0; */
    /* filter: url(./roau.svg#blur); */
}

.light-background {
    background-color: var(--white-3);
}


.load-image-opacity {
    animation: load-image-opacity 1000ms ease-in-out forwards;
}

@keyframes load-image-opacity {

    to {
        opacity: 1;
    }
}


#top-nav {
    /* background-color: rgba(241, 241, 241,0.95); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 10;
    max-width: 100%;

    /* transition: all 500ms ease;
    transform: translateY(-125%);
    opacity: 0; */

    /* padding: 1rem 8%; */
    /* background: transparent; */
    /* border-bottom: 2px solid rgba(255, 255, 255, .2); */
}

#top-nav.show-nav {
    opacity: 1;
    transform: translateY(0);
}

.inner-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 12%;
    width: 100%;
    height: 100%;
    height: 5rem;
    /* background-color: var(--white-8); */

    /* border-radius: 0.75rem; */
    /* background: rgba(241, 241, 241,0.75);
    backdrop-filter: blur(10px); */
    /* box-shadow: 0px 0px 4px rgba(35, 35, 35, 0.25); */
}

.nav-stroke {
    padding: 0 8%;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-stroke>div {
    border-bottom: 1px solid var(--white-55);
    width: 100%;
    height: 1px;
}

#top-nav>a {
    text-decoration: none;
}

.logo {
    width: 3.25rem;
}

.my-logo {
    --logo-color-1: var(--black-34);
    --logo-color-2: var(--white-1);
}

.web-menu {
    display: flex;
    /* position: absolute;
    right: 6%; */
    gap: 4rem;

    /* background: rgba(241, 241, 241,0.75);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    border-radius: 2.5rem; */
    /* width: 25%; */
}

.web-menu a {
    text-transform: uppercase;
    color: var(--grey-black-1);
    text-decoration: none;
    font-family: "G-M", sans-serif;
    font-size: var(--body-rg);
    letter-spacing: 0.1rem;
    line-height: var(--line-height-body-rg);
    /* padding: 0.75rem 1.5rem; */
    /* border: solid transparent 1px; */
    /* width: 8rem; */
    /* border-radius: 0.5rem; */
    justify-content: center;
    /* transition: all 500ms ease; */
    /* border: solid 1px var(--grey-black-1); */
}

/* .menu-contact{
    color: var(--white-21)!important;
    background-color: var(--black-55);
    border: solid 1px var(--grey-black-1);
    border-radius: 0.5rem;
} */

.mobile-menu {
    background-color: var(--white-8);
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    position: absolute;
    top: 0;
    /* padding: 12rem 0 0 0; */
    /* padding-left: 9%; */
    z-index: -1;
    transform: translateY(-110%);
}

.mobile-menu>div {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
}

.mobile-menu.mobile-menu-entry {
    animation: mobile-menu-entry 500ms cubic-bezier(1, 0, 0, 1) forwards;
}

@keyframes mobile-menu-entry {

    to {
        transform: translateY(0);
    }
}

.mobile-menu.mobile-menu-exit {
    animation: mobile-menu-exit 300ms cubic-bezier(1, 0, 0, 1);
}

@keyframes mobile-menu-exit {

    from {
        transform: translateX(0);
    }

}

.mobile-menu a {
    color: var(--grey-black-1);
    font-family: "M-B", serif;
    font-size: var(--heading-lg);
    letter-spacing: 0.05rem;
    line-height: var(--line-height-heading-rg);
    text-decoration: none;
    width: fit-content;
    cursor: pointer;
    text-transform: uppercase;
    transform: translateY(50%);
    opacity: 0;
}

.mobile-menu.mobile-menu-entry a.mobile-menu-animation {
    animation: mobile-menu-animation 500ms 100ms ease-in-out forwards;
}

@keyframes mobile-menu-animation {

    to {
        opacity: 1;
        transform: translateY(0%);
    }
}

/* .web-menu-highlight {
    color: var(--black-34) !important;
} */

/* .mobile-menu-highlight {
    color: var(--grey-black-1) !important;
} */


.menu-icon {
    height: 3.25rem;
    /* position: absolute;
    right: 6%; */
    width: 3.25rem;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 500ms ease;
    cursor: pointer;
    z-index: 2;
}

@media(hover:hover) {
    .menu-icon:hover .bar11 {
        animation: wipe4 500ms cubic-bezier(.25, 1, .30, 1) 300ms;
    }

    .menu-icon:hover .bar22 {
        animation: wipe4 500ms cubic-bezier(.25, 1, .30, 1);
    }

    /* .web-menu a:hover {
        color: var(--black-34);
    } */
}

.bar1 {
    width: 3.25rem;
    height: 0.2rem;
    display: block;
    background-color: var(--brand-color-1);
    border-radius: 8rem;
    position: absolute;
    transform: translateY(-0.5rem);
    transition: all 300ms ease;
}

.bar2 {
    width: 3.25rem;
    height: 0.2rem;
    display: block;
    background-color: var(--brand-color-1);
    border-radius: 8rem;
    position: absolute;
    transform: translateY(0.5rem);
    transition: all 300ms ease;
}

.menu-icon.open .bar1 {
    width: 2.5rem;
    background-color: var(--brand-color-1);
    transform: rotate(45deg);

}

.menu-icon.open .bar2 {
    width: 2.5rem;
    background-color: var(--brand-color-1);
    transform: rotate(-45deg);

}

@keyframes wipe1 {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes wipe2 {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes wipe3 {
    from {
        clip-path: inset(100% 0 0 0);
        opacity: 1;
    }

    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes wipe4 {
    0% {
        clip-path: inset(0 0 0 100%);
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.bar11 {
    background-color: var(--black-34);
    border-radius: 8rem;
    width: 100%;
    height: 100%;
    animation: wipe1 1000ms cubic-bezier(.25, 1, .30, 1) 00ms;
}

.bar22 {
    background-color: var(--black-34);
    border-radius: 8rem;
    width: 100%;
    height: 100%;
    animation: wipe1 1000ms cubic-bezier(.25, 1, .30, 1) 300ms;
}

.menu-icon.open .bar11 {
    background-color: var(--black-34);
    animation: wipe2 1000ms cubic-bezier(.25, 1, .30, 1) 00ms;

}

.menu-icon.open .bar22 {
    background-color: var(--black-34);
    animation: wipe2 1000ms cubic-bezier(.25, 1, .30, 1) 300ms
}


/* ---------landing--------- */

#landing {
    height: 100.1vh;
    max-width: 100%;
    transition: scroll 1000ms ease;
    background-color: var(--white-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-color: transparent; */
    /* margin-top: 5rem; */
    position: relative;
    overflow: hidden;

}

#landing .intro {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    top: 61.8%;
    transform: translateY(-50%);
    /* width: 100%; */
    padding: 0 4%;
}

#intro-1 {

    text-transform: uppercase;
    font-family: "M-B", serif;
    line-height: var(--line-height-title-rg);
    color: var(--brand-color-1);
    font-size: var(--title-md);
    /* paint-order: stroke fill; */
    /* color: var(--black-34); */
    /* -webkit-text-stroke: 1px #EBEBEB; */
    opacity: 0;
    transition: all 100ms linear;
    text-align: center;
    text-indent: -0.5rem;
    /* padding: 0 1rem; */

    /* animation: animate 3s linear infinite; */
    /* overflow: clip;
    background: linear-gradient(90deg, var(--white-8), var(--black-1), var(--white-8));
    background-repeat: no-repeat;
    background-size: 80%;
    
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgba(73, 167, 198, 0.75); */
    /* transition: all 500ms linear; */
}


#intro-2 {
    text-transform: uppercase;
    font-family: "M-B", serif;
    letter-spacing: 0.3rem;
    font-size: var(--title-lg);
    /* -webkit-text-stroke: 1px var(--grey-white-1); */
    /* -webkit-text-fill-color: transparent; */
    paint-order: stroke fill;
    color: var(--grey-black-34);
    /* color: var(--black-55); */
    opacity: 0;
    text-align: center;
    line-height: var(--line-height-title-rg);
    /* position: relative; */
}

#intro-3 {
    /* line-height: 1; */
    /* color: var(--white-8); */
    color: var(--black-55);
    font-family: "M-R-I", serif;
    font-size: var(--body-md);
    line-height: var(--line-height-body-md);
    letter-spacing: 0.025rem;
    /* text-shadow: 0.5px 0.5px rgba(0, 0, 0, 0.25); */
    /* margin: 1rem 0; */
    text-align: center;
    opacity: 0;
    transform: translateY(25%);
}

#intro-3[data-intro3="active"] {
    opacity: 1;
    transform: translateY(0);
    transition: all 800ms ease;
}

.intro-2-modify {
    animation: intro-left 600ms ease-in-out forwards;
}

@keyframes animate-intro-2 {
    0% {
        background-position: -500%;
    }

    100% {
        background-position: 500%;
    }
}

.intro-1-modify {
    animation: intro-right 600ms ease-in-out forwards, animate-intro-2 3000ms linear infinite;
}

@keyframes intro-right {
    from {
        transform: translateX(-25%);
    }

    to {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes intro-left {
    from {
        transform: translateX(25%);
    }

    to {
        transform: translateX(0%);
        opacity: 1;
    }
}



/*----------------------------------*/
.explore-button-container {
    margin: 3rem 0;
    width: fit-content;
    height: fit-content;
    background-color: var(--black-34);
    position: relative;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(50%);
}

.explore-button {

    padding: 0.75rem 2.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: var(--black-34);
    text-transform: uppercase;
    border: 1px solid var(--black-34);
    font-family: "G-R", sans-serif;
    font-size: var(--body-rg);
    line-height: var(--line-height-body-rg);
    letter-spacing: 0.1rem;
    /* color: var(--black-34); */
    color: var(--white-34);

    /* text-decoration: underline 1px solid;
    text-decoration-thickness: 2px; 
    text-underline-offset: 5px; */
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    overflow: clip;
    background: linear-gradient(90deg, rgba(35, 35, 35, 1), rgba(56, 56, 56, 1), rgba(35, 35, 35, 1));
    background-repeat: no-repeat;
    background-size: 75%;
    background-position: -300%;
    /* background-position: center; */
    /* -webkit-background-clip:border-box; */
    /* background-clip:border-box; */
    animation: explore-button 3000ms linear 300ms infinite;
    /* -webkit-text-fill-color: rgba(73, 167, 198, 0.75); */


}

@keyframes explore-button {
    0% {
        background-position: -300%;
        /* Start of gradient */
    }

    100% {
        background-position: 400%;
        /* End of gradient */
    }
}

.explore-button-container[data-explore-button="active"] {
    opacity: 1;
    transform: translateY(0);
    transition: all 800ms ease;
}

.explore-button:active {
    background-color: var(--white-8);
    color: var(--black-34);
    animation: none;
    transition: all 300ms ease;

}


.scrollIconContainer {

    position: relative;
    width: 1rem;
    height: 1rem;
    animation: move-arrow 1600ms ease-in-out 300ms infinite;
}

.scrollIcon {
    width: 2.312rem;
    height: 2.312rem;
    border: 2px solid var(--white-55);
    border-radius: 50%;
    opacity: 0;
    display: none;
}

.scrollArrow {
    width: 0.75rem;
    height: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    border-left: 2px solid var(--grey-black-1);
    border-bottom: 2px solid var(--grey-black-1);
    transform-origin: 15% 35%;
    transform: rotate(225deg);
}

@keyframes move-arrow {

    0%,
    100% {
        transform: translate(0rem);
    }

    50% {
        transform: translate(0.25rem);
    }
}

@media (hover: hover) {
    .explore-button:hover {
        background-color: var(--white-8);
        color: var(--black-34);
        transition: all 300ms ease;
    }

    .explore-button:hover .scrollIconContainer {
        animation: none;
    }

    .explore-button:hover {
        animation: none;
        background: var(--white-8);
        background-position: -300%;
    }
}



.nihongo {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    /* opacity: 0; */
    /* z-index: 1; */
    /* background-color: orange; */
    /* opacity: 0; */
}

#nihongo {
    font-family: "MS-B", sans-serif;
    /* writing-mode: vertical-rl; */
    color: #e9e9e9;
    font-size: var(--title-2xl);
    -webkit-text-stroke: 0.5px var(--white-34);
    -webkit-text-fill-color: transparent;
    position: absolute;
    left: 50%;
    top: 50%;
    /* text-overflow: ellipsis; */
    white-space: nowrap;
    display: inline-block;
    transform: translate(-50%, -50%);
    /* bottom: 6rem; */
    line-height: 1.1;
    clip-path: inset(0 0 100% 0);
    paint-order: stroke fill;
    /* opacity: 0.1; */
}

#aigo {

    font-family: "MS-B", sans-serif;
    /* writing-mode: vertical-rl; */
    /* color: var(--white-13); */
    font-size: var(--title-3xl);
    -webkit-text-stroke: 1.25px var(--white-21);
    -webkit-text-fill-color: transparent;
    position: absolute;
    left: 50%;
    top: 50%;
    /* text-overflow: ellipsis; */
    white-space: nowrap;
    display: inline-block;
    transform: translate(-50%, -50%);
    /* bottom: 6rem; */
    line-height: 0.9;
    /* clip-path: inset(0 0 100% 0); */
    paint-order: stroke fill;
    /* opacity: 0.1; */

}

@keyframes circle-in-center {
    to {
        clip-path: circle(49%);
    }
}

.nihongo-modify {
    animation: 1000ms nihongo-clip 300ms cubic-bezier(.25, 1, .30, 1) forwards;
}

@keyframes nihongo-clip {
    to {
        clip-path: inset(0 0 0 0);
    }
}


/*----------------------------------*/

#section2 {
    height: 100vh;
    background-color: var(--black-55);
}















.post-landing {
    z-index: 1;
    /* background-color: var(--white-13); */
    /* background: linear-gradient(0deg, rgba(233, 233, 233,0), var(--white-21) 99%, rgba(233, 233, 233,0) ); */
    position: absolute;
}

/*----------------------------------*/

#work {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white-8);
    padding: 8rem 12%;
    gap: 2rem;
    min-height: 100.1vh;
}

.each-work {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    padding: 4rem 0rem;
    /* transform: translateY(8%); */
    /* scale: 0.9; */
    transform-origin: bottom;
    /* transition: all 1000ms ease; */

}

.load-work-up {
    animation: load-work-up 1000ms ease-in-out forwards;
}

@keyframes load-work-up {
    to {
        transform: translateY(0);
        scale: 1;
    }
}

.load-work-down {
    animation: load-work-down 1000ms ease-in-out forwards;
}

@keyframes load-work-down {
    from {
        transform: translateY(0);
        scale: 1;
    }
}

.work-link {
    height: 35rem;
    border-radius: 0.5rem;
    overflow: clip;
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* transform: translateY(8%); */
}

.work-link:focus,
.work-link:active {
    outline: none;
}


.thumbnail {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.each-work img {
    transition: all 300ms ease;
}

.each-work a {
    transition: all 300ms ease;
}

@media(hover:hover) {
    .each-work a:hover {
        /* scale: 1.005; */
        transform-origin: bottom;
        /* transform: translateY(-0.5%); */
        box-shadow: 0px 2px 8px rgba(35, 35, 35, 0.5);
        transition: all 300ms ease;
    }

    /* .each-work a:hover img {
    scale: 1.02;
    transition: all 300ms ease;
    } */
}


.work-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1% 0 1%;
}

.work-title {
    display: flex;
    flex-direction: column;
}

.work-title p:nth-child(1) {
    color: var(--black-34);
    font-family: "M-M", serif;
    font-size: var(--heading-rg);
    line-height: var(--line-height-heading-rg);
    text-transform: uppercase;
    clip-path: inset(100% 0 0 0);
    letter-spacing: 0.05rem;
}

.work-title p:nth-child(2) {
    color: var(--grey-black-1);
    font-family: "M-R-I", serif;
    font-size: var(--sub-heading-rg);
    line-height: var(--line-height-sub-heading-rg);
    clip-path: inset(100% 0 0 0);
    /* padding-bottom: 0.75rem; */
}

.display-info {
    animation: display-info 1000ms cubic-bezier(.5, 0, .5, 1) forwards;
}

@keyframes display-info {
    to {
        clip-path: inset(0 0 0 0);
    }
}

.work-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.work-tag>p {
    border: 1px solid var(--grey-black-1);
    border-radius: 1rem;
    padding: 0.25rem 0.5rem;
    font-family: "M-R-I", sans-serif;
    font-size: var(--caption-md);
    text-transform: lowercase;
    color: var(--grey-black-1);
}

.work-underline {
    border-bottom: 1px solid var(--white-55);
    width: 100%;
    /* padding: 2rem 0; */
}

/*--------*/

.filter-bar {
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 2rem;
    background-color: none;
    transition: all 300ms ease;
    padding: 0 8%;
}

.filter-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;

    /* border: 1px solid var(--grey-black-1); */
    border-radius: 4rem;
    box-shadow: 0px 0px 16px rgba(35, 35, 35, 0.5);
    padding: 0.5rem 0.75rem;

    /* background-color: var(--white-8); */
    background: rgba(241, 241, 241, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* background: linear-gradient(90deg, var(--white-1),rgba(0, 0, 0,0.1), rgba(255, 255, 255,0.25),rgba(0, 0, 0,0.1), var(--white-1)); */
    /* background-size: 500%; */
    /* background-position: center; */
    gap: 1rem;
    scale: 0;
    opacity: 0;
    transform-origin: bottom;
}

.filter-bar-container>ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    width: 100%;
    border-radius: 4rem;
    transition: all 300ms ease;

    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.filter-bar-container>ul>a {
    color: var(--black-34);
    font-family: "G-R", sans-serif;
    font-size: var(--body-rg);
    line-height: var(--line-height-body-rg);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    border-radius: 4rem;
    transition: all 300ms ease;

    scroll-snap-align: center;
}

.filter-bar-container>ul>a[data-filter="active"] {
    color: var(--white-34);
    background-color: var(--black-34);
    transition: all 300ms ease;
}

.filter-bar-container2 {

    border-radius: 50%;
    position: relative;
    min-width: 2.75rem;
    height: 2.75rem;
    /* box-shadow: 0px 0px 16px rgba(35, 35, 35, 0.25); */
    /* padding: 0.25rem 0.25rem; */
    /* background-color: rgba(2, 2, 2, 0.1); */
    /* background: rgba(241, 241, 241, 0.75); */
    /* backdrop-filter: blur(10px); */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barIcon {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--black-34);
    border-radius: 50%;
    position: absolute;
}

.barArrow {
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 40%;
    border-left: 1px solid var(--black-34);
    border-top: 1px solid var(--black-34);
    transform: rotate(45deg);
}

.filter-bar-container2[data-work-bar-scroll="active"] .barArrow {
    animation: work-bar-scroll 300ms ease;
}

@keyframes work-bar-scroll {
    0% {
        top: 55%;
    }

    100% {
        top: 35%;
    }
}

@media (hover: hover) {
    .filter-bar-container>ul>a:not([data-filter="active"]):hover {
        background-color: rgba(2, 2, 2, 0.1);
    }

    .filter-bar-container2:hover {
        box-shadow: 0px 0px 8px rgba(35, 35, 35, 0.25);
    }

    .filter-bar-container2:hover .barArrow {
        top: 35%;
        transition: all 100ms ease;
    }
}

.filter-bar-container2:active {
    box-shadow: 0px 0px 8px rgba(35, 35, 35, 0.25);
}

.filter-bar-container[data-work-bar="true"] {
    animation: show-work-bar 600ms ease forwards;
}

@keyframes show-work-bar {

    to {
        scale: 1;
        opacity: 1;
    }
}

/*----------------------------------------------*/

.filter-bar-container[data-filter-bar="true"] {
    animation: show-filter-bar 300ms ease forwards;
}

@keyframes show-filter-bar {
    to {
        scale: 1;
        opacity: 1;
    }
}

.filter-bar-container[data-filter-bar="false"] {
    animation: hide-filter-bar 300ms ease forwards;
}

@keyframes hide-filter-bar {
    from {
        scale: 1;
        opacity: 1;
    }

    to {
        scale: 0;
        opacity: 0;
    }
}

/*----------------------------------------------------*/

.hide-text {
    opacity: 0;
}

.text-reveal {
    animation: load-image-opacity 1000ms ease-in-out forwards;
}


/* CONTENT */

.content {
    background-color: var(--white-8);
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 12rem 12%;
}

.case-study {
    width: 100%;
    display: flex;
    gap: 2rem;
    flex-direction: column;
    /* padding: 12rem 0 8rem 0; */
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title p:nth-child(2) {
    color: var(--black-55);
    font-family: "M-M", serif;
    font-size: var(--heading-rg);
    text-transform: uppercase;
    /* line-height: 0.7; */
}

.heading {
    color: var(--black-55);
    font-family: "M-M", serif;
    font-size: var(--sub-heading-rg);
    line-height: var(--line-height-sub-heading-rg);
    /* text-decoration: underline 0.5px rgba(2, 2, 2,0.25);
    text-underline-offset: 2px; */
    text-transform: uppercase;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* justify-content: space-between; */
    /* align-items: end; */
}

.introduction {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* width: 61.8%; */

}

.sub-intro {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role {
    display: flex;
    gap: 25%;
    /* flex-direction: column; */
    /* align-items: end; */

    /* justify-content: space-between; */
    /* width: fit-content; */
}

.sub-role {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* align-items: end; */

}

.sub-role p:nth-child(2) {
    color: var(--black-34);
    font-family: "G-R", sans-serif;
    font-size: var(--body-rg);
    line-height: var(--line-height-body-rg);
}

.body {
    color: var(--black-34);
    font-family: "G-R", sans-serif;
    font-size: var(--body-rg);
    line-height: var(--line-height-body-rg);
}

.body-2 {
    color: var(--black-34);
    font-family: "G-R", sans-serif;
    font-size: var(--body-rg);
    line-height: var(--line-height-body-rg);
    text-align: left;
}

.container {
    /* padding: 3rem 0; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gap {
    gap: 0rem;
}

.explanation {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 2rem;
    padding: 4rem 16%;
}

.section-heading {
    color: var(--black-55);
    font-family: "M-R-I", serif;
    font-size: var(--sub-heading-rg);
    line-height: var(--line-height-sub-heading-rg);
    text-align: left;
}

.explanation ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.items {
    justify-self: center;
    width: 100%;
    height: 100%;
    /* transform: translateY(8%); */
    opacity: 0;
}

.items img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.load-image-up {
    animation: load-image-up 150ms linear forwards;
}

@keyframes load-image-up {

    to {
        /* transform: translateY(0); */
        opacity: 1;
    }
}

/* CONTACT */

.contact {
    height: 100.1vh;
    /* height: 100vh; */
    width: 100vw;
    background-color: var(--white-8);
    position: relative;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    /* justify-content: center; */
    overflow: hidden;
    padding: 0 12%;
}

.contact>div {
    /* z-index: 1; */
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; */
    gap: 1rem;
    align-items: center;
    /* justify-content: flex-start; */
    /* gap: 1rem; */
    /* position: absolute; */
    /* top: 50%; */
}

.hello-container {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: clip;
}

.dummy-hello {
    font-family: "M-M", serif;
    font-size: var(--title-md);
    line-height: var(--line-height-heading-rg);
    visibility: hidden;
}


.hello-1 {
    position: absolute;
    top: 0;
    color: var(--brand-color-1);
    font-family: "M-M", serif;
    font-size: var(--title-md);
    line-height: var(--line-height-heading-rg);
    transition: all 300ms ease;
    transform: translateY(0);
}

.hello-2 {
    position: absolute;
    top: 0;
    color: var(--brand-color-1);
    font-family: "MS-B", serif;
    font-size: var(--title-md);
    line-height: var(--line-height-heading-rg);
    letter-spacing: -0.25rem;
    /* transition: all 300ms ease; */
    transform: translateY(400%);
}

.hello-animation-1 {
    animation: hello1 4000ms ease-in-out infinite;
}

.hello-animation-2 {
    animation: hello2 4000ms ease-in-out infinite;
}

@keyframes hello1 {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-400%);
        visibility: hidden;
    }

    90% {
        transform: translateY(400%);
        visibility: hidden;
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes hello2 {

    0% {
        transform: translateY(400%);
    }

    40% {
        transform: translateY(400%);
    }

    50% {
        transform: translateY(0);
    }

    90% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-400%);
    }

}

.contact>div div:nth-child(2) p {
    color: var(--black-55);
    /* font-family: "M-L-I", sans-serif;
    font-size: var(--sub-heading-lg);
    line-height: var(--line-height--sub-heading-rg); 
    letter-spacing: 0.025rem;*/
    text-align: center;
    font-family: "M-M-I", serif;
    font-size: var(--sub-title-md);
    line-height: var(--line-height-heading-rg);
}

#email-button {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    /* display: none; */
}

.contact button {
    padding: 1rem 2.25rem;
    /* border: none; */
    border-radius: 0.5rem;
    /* background: transparent; */
    cursor: pointer;
    transition: all 300ms linear;
    min-width: 12rem;
}

.send {
    background-color: var(--black-34);
    border: 1px solid var(--black-34);
    font-family: "G-R", sans-serif;
    font-size: var(--body-rg);
    /* color: var(--black-34); */
    color: var(--white-34);
}

.copy {
    background-color: var(--white-8);
    border: 1px solid var(--black-34);
    font-family: "G-R", sans-serif;
    font-size: var(--body-rg);
    color: var(--black-34);
    /* text-transform: uppercase; */
    letter-spacing: 0.05rem;
    transition: all 300ms ease;
}

.copy:active {
    color: var(--white-34);
    background-color: var(--black-34);
}

.copy[data-copy-email="false"] {
    /* pointer-events: none;
    cursor: not-allowed; */
    transition: all 300ms ease;
    color: var(--white-34);
    background-color: var(--black-34);
}

.copy-email-right {
    animation: 300ms copy-email-right ease;
}

@keyframes copy-email-right {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}
.copy-email-left {
    animation: 300ms copy-email-left ease;
}

@keyframes copy-email-left {
    from {
        clip-path: inset(0 0 0 100%);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@media (hover: hover) {
    .menu-work:hover {
        color: var(--black-34);
        /* border: solid 1px var(--grey-black-1); */
    }

    .menu-contact:hover {
        color: var(--black-34);
        /* border: solid 1px var(--grey-black-1); */
    }

    .send:hover {
        transform: translateY(-10%);
        transition: all 300ms ease;
        /* box-shadow: 0px 2px 6px var(--black-21); */
    }

    .copy:hover {
        /* transform: translateY(-10%); */
        transition: all 300ms ease;
        color: var(--white-34);
        background-color: var(--black-34);
        /* box-shadow: 0px 2px 4px rgba(35, 35, 35, 0.5); */

    }
}

/* FOOTER */

footer {
    height: 4rem;
    width: 100vw;
    background-color: var(--black-34);
    /* position: relative; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rights {
    font-family: "G-L", sans-serif;
    font-size: var(--caption-lg);
    line-height: var(--line-height-caption-rg);
    color: var(--white-55);
    text-align: center;
}

.pad {
    padding-bottom: 1rem;
}


.hide {
    display: none;
}

.hideV {
    visibility: hidden;
}

.flow {
    overflow: hidden;
}

.flowY {
    overflow: hidden;
    /* padding-right: 0.5rem; */
}

.backgroundNone {
    background-color: transparent !important;
}


/* ::-webkit-scrollbar {
    width: 0.5rem;
    width: 0;
} 

::-webkit-scrollbar-thumb {
    background: var(--grey-black-1);
    border-radius: 0;
}

::-webkit-scrollbar-track {
    background: var(--white-55);
}
*/
@media (max-width: 1200px) {}

@media (max-width: 1024px) {}

@media (max-width:972px) {}

@media (max-width:800px) {}

@media (max-width: 768px) {

    html {
        font-size: 14px;
    }
    #intro-1 {
        padding: 0 16%;
    /* font-size: var(--title-rg); */

    }

    #nihongo {
        /* -webkit-text-stroke: 1px var(--white-21); */
        font-size: var(--title-lg);
        writing-mode: vertical-rl;
    }

    #aigo {
        writing-mode: vertical-rl;
        font-size: var(--title-2xl);
    }

    .web-menu {
        display: none;
    }

    .inner-nav {
        padding: 0 8%;
    }

    .nav-stroke {
        padding: 0 4%;
    }

    .menu-icon,
    .mobile-menu {
        display: flex;
    }

    #work {
        padding: 8rem 8%;
    }

    /* .scrollIconContainer {
        bottom: 8rem;
    } */
}

@media (max-width:620px) {}

@media (max-width: 480px) {
    html {
        font-size: 11px;
    }
    
    .items img {
        min-height: 15rem;
    }

    .each-work {
        padding: 2rem 0rem;
    }

    #work {
        padding: 8rem 4%;
    }

    .work-tag {
        height: 1.5rem;
    }

    .content {
        padding: 12rem 8%;
    }

    .explanation {
        padding: 4rem 4%;
    }

    .hover-bar {
        bottom: 3rem;
    }

}

@media (max-width: 320px) {
    html {
        font-size: 8px;
    }
}