@charset "UTF-8";

/* =========
common
=========*/
::selection {
    color: var(--primary-blue);
    background-color: yellow;
}

:root {
    --primary-black: #1A1A1A;
    --primary-blue:  #005CF8;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f4;
    color: var(--primary-black);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.4rem;
    position: relative;
}

img {
    max-width: 100%;
}

/* =========
header
=========*/
.header {
    padding: 30px 44px 0px 44px;
    display: flex;
    justify-content: space-between;
}

.ttl {
    width: 127px;
}

.logo {
    color: #1A1A1A;
    font-size: 2.6rem;
    font-style: normal;
    letter-spacing: 5.2px;
}

.logo__sub {
    font-size: 1.2rem;
    margin-top: 13px;
}

/* ナビゲーションアニメ */
.nav__list {
    display: flex;
    gap: 20px;
    font-size: 1.8rem;
}

.navcontainer {
    position: relative;
    width: 65px;
    height: 25px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
}

.text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s;
}

.text-1 {
    color: #949494;
}

.text-2 {
    color: var(--primary-black);
    transform: translateY(100%);
}

.navcontainer:hover .text-1 {
    transform: translateY(-100%);
}

.navcontainer:hover .text-2 {
    transform: translateY(0);
}

/* ナビゲーションポイント */

.point {
    border-bottom: 1px solid var(--primary-black); 
}

.nav-point {
    margin-top: 2px;
}

.hamburger_open {
    display: none;
}

.hamburger {
    display: none;
}

/* +++++++++++++
sp
+++++++++++++ */

@media (max-width: 650px) {
    .header {
        padding: 0;
        
    }
    .hamburger {
        position: fixed;
        display: block;
        width: 39px;
        height: 39px;
        margin: 21px 15px 0 0;
        right: 0;
        cursor: pointer;
        z-index: 10;
    }

    .hamburger_open {
        color: #005CF8;
        position: relative;
        background-color: #A6A9B0;
        width: 100%;
        height: 100vh;
        position: fixed;
        z-index: 5;
        top: 0;
        left: 0;
        display: block;
        opacity: 0;
        transition: opacity 0.2s ease;
        display: none;
        z-index: -1; 
        transition: opacity 0.2s ease, z-index 0s 0.2s; 
    }

    .hamburger_open.active {
        display: block;
        opacity: 1;
        z-index: 5; 
        transition: opacity 0.2s ease, z-index 0s; 
    }

    .batsu {
        width: 39px;
        height: 39px;
        margin: 21px 15px 0 0;
        cursor: pointer;
        z-index: 20;
    }

    .hamburger_open.active .hamburger {
        z-index: 5;
    }
    

    .hamburger_open_head {
        display: flex;
        justify-content: space-between;
        padding-bottom: 15px;
        width: 100%;
        border-bottom: 2px solid #CFCFCF;
    }

   

    .open__nav__list {
        margin-top: 110px;
    }

    .nav__logo {
        margin: 21px 0 0 15px;
        color: #005CF8;
        font-size: 2.6rem;
        font-style: normal;
        line-height: normal;
        letter-spacing: 5.2px;
    }

    .open__nav__item {
        font-weight: 400;
        font-size: 3.6rem;
        font-style: normal;
        line-height: normal;
        margin-top: 17px;
        padding-left: 15px;
        position: relative;
    }

    .text {
        display: inline-block;
        opacity: 0;
        transform: translateY(100%);
        animation: slideUp 1s forwards;
    }

    .text-split {
        overflow: hidden;
      }
      
      .text-split span {
        display: inline-block;
        transform: translateY(100%);
        opacity: 0; /* 最初は透明 */
      }
      
      .text-split.is-active span {
        animation: slideUp 0.8s cubic-bezier(0.7, 0.2, 0.1, 1) forwards;
      }
      
      @keyframes slideUp {
        to {
          transform: translateY(0);
          opacity: 1;
        }
      }
      

    .open__nav__item a {
        transition: color 0.2s ease;
    }

    .open__nav__item a:hover {
        color: #FFF;
    }

    .now {
        color: #FFF;
    }

    .tip {
        width: 3px;
        height: 80%;
        background-color: yellow;
        border-radius: 0 2px 2px 0;
        position: absolute;
        top: 6px;
        left: 0px;
    }

    .open__nav__item__icon {
        margin-top: 38px;
    }

    .open__nav__icon__insta {
        width: 35px;
        height: 36px;
    }

    .open__nav__icon__X {
        width: 38px;
        height: 36px;
        margin-left: 31px;
    }

    .batsu {
        width: 39px;
        height: 39px;
    }


    .ttl {
        margin-top: 25px;
        margin-left: 15px;
    }

   .nav__list{
        display: none;
   }
    
}

/* =========
worksList
=========*/

.worksList {
    margin-top: 52px;
    padding: 0 5vh 0 5vh;
    grid-column-gap: 7px;
    grid-row-gap: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
}

.listImgGroup {
    overflow: hidden;
    position: relative;
    border: 1px solid var(--primary-black);
}

.listImg {
    transition: transform 0.2s ease, filter 0.2s ease;
    width: 100%;
}

.listImgGroup:hover .listImg {
    transform: scale(1.05);
    filter: saturate(160%);
}

.listImgGroup:hover .black {
    filter: invert(90%);
}

.ttlGroup {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.tag {
    display: flex;
    gap: 10px;
}

.tag__box {
    margin-top: 2%;
    width: 54px;
    height: 18px;
    background-color: #B3B3B3;
    border-radius: 50px;
    border: 1px solid var(--primary-black);
}

.tag__Illust {
    background-color: #D4FF00;
}

.tag__Design {
    background-color: #B9FFFF;
}

.tag__3DCG {
    background-color: #FFC5E5;
}

.tag__name {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 2%;
}

.tag__ttl {
    margin-left: 10px;
    font-size: 1.4rem;
    font-family: "Noto Sans JP";
    transition: color 0.s ease;
}

.list:hover .tag__ttl {
    color: #949494;
}

.box {
	opacity: 0;
}

.fadeUp {
    animation-name:fadeUpAnime;
    animation-duration:0.5s;
    animation-fill-mode:forwards;
    opacity: 0;
}

@keyframes fadeUpAnime{
from {
    opacity: 0;
	transform: translateY(100px);
}

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

/* +++++++++++++
sp
+++++++++++++ */
@media (max-width: 650px) {
    .worksList {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        margin-top: 70px;
        padding: 0 2.5vh 0 2.5vh;
    }
}

/* =========
footer
=========*/

.footer {
    padding: 50px 5vh 40px 5vh;
    color: var(--primary-black);
}

.footer__ttl {
    color: var(--primary-black);
    font-size: 2rem;
    letter-spacing: 5.4px;
    
}

.footer__txt {
    font-family: "Noto Sans JP";
    font-size: 1.2rem;
    letter-spacing: 0.28px;
    margin-top: 10px;
}

.SNS__instagram {
    width: 30px;
    height: 31px;
}

.footer__SNS {
    margin-top: 36px;
    display: flex;
    gap: 52px;
}

.SNS__X {
    width: 33px;
    height: 31px;
}

.SNS__X:hover, .SNS__instagram:hover {
    filter: contrast(40%);
}

.copy {
    color: #B3B3B3;
    font-size: 1.2rem;
    margin-top: 33px;
}

@media (max-width: 650px) {
    .footer {
        padding: 40px 2.5vh 40px 2.5vh;
    }
}


/* =========
animetion
=========*/
/* ふわふわ */
.contact {
    position: fixed;
    display: block;
    width: 80.989px;
    height: auto;
    right: 18px;
    bottom: 15px;

    animation: floating-y 1.8s ease-in-out infinite alternate-reverse;
}
@keyframes floating-y {
    0% {
        transform: translateY(-5%);
    }
    100% {
        transform: translateY(5%);
    }
}

/* ＋＋＋＋＋＋＋＋＋＋＋
JS
＋＋＋＋＋＋＋＋＋＋＋ */

.box {
    opacity: 0;
    visibility: hidden;
    transition: all 1s;
    transform: translateY(100px);
}

.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



