@charset "utf-8";


/* homeの作品表示 */
/* .scroll-fade-up を .is-fade-up に変更 */
    .is-fade-up {
        animation-name: fade-up;
        animation-duration: 2s;
    }

    @keyframes fade-up {
        from {
            transform: translateY(5px);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }



    /* 表示の調整 */
    .scroll-fade-up {
        opacity: 0;
        animation-fill-mode: both;
    }
    .not-fade-up {
    animation-name: none;
    opacity: 1;
    }

    /* worksの文章のスライドアップ */
    @keyframes slideUp {
        from {
        opacity: 0;
        transform: translateY(2px);
        }
        to {
        opacity: 1;
        transform: translateX(0);
        }
    }

    /* ページがふわっと浮き出るやつ */
        .slideup{
            animation: slideUp 0.5s ease-out forwards;
        }


  /* 全体のスタイル */

    html{
        scroll-behavior: smooth;
    }
    main{
        min-height: 780px;
    }

    body{
        font-size: 100%;
        margin: 0;
        font-family: "Outfit","Zen Kaku Gothic New", sans-serif;
        font-optical-sizing: auto;
        }
    
    header{
        margin-bottom: 2rem;
    }

    img{
        width: 100%;
    }

    p,ul,li,h2,h3,h4,h5,h6,div{
        padding-left: 0;
        margin: 0 auto;
        line-height: 1;
        list-style-type: none;
    }

    h1{
        min-height: 50px;
        max-width: 50px;
        margin: 1rem 0;
    }
    h1 img{
        max-width: 60px;
    }
    
    h2{
        font-size: 1.4rem;
        padding-bottom: 1rem;
        border-bottom: solid 1px #dedede;
        margin-bottom: 3rem;
        text-align: center;
        font-weight: 400;
    }
    h3{
        font-weight: 500;
    }

    a:link{
        text-decoration: none;
        color: rgb(29, 29, 29);
    }
    a:visited{
        text-decoration: none;
        color: rgb(29, 29, 29);
    }


    .index-header{
        margin-bottom: 11.313rem;
    }
    .work{
        max-width: 1040px;
        margin: 0 auto;
    }

    footer{
        border-top: solid 1px #dedede;
    }
    .footer{
        margin: 0 5rem;
    }
    footer p{
        font-size: 0.8rem;
        padding-top: 0.85rem;
        margin-bottom: 0.85rem;
    }
    .insta-img{
        max-width: 45px;
        width: 100%;
        margin: 0;
    }


    /* nav */
    .nav-group{
        margin: 0 5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .work-nav{
        max-width: 320px;
    }
    .nav-list{
        display: flex;
        gap: 50px;
    }

    .nav-item{
        font-size: 1rem;
        margin: auto 0;
    }

    /* navの下線アニメーション */
    .underline {
        display: inline-block;
        padding-bottom: 4px;
        position: relative;
      }
      
      .underline::after {
        background-color: rgb(29, 29, 29);
        bottom: 0;
        content: '';
        display: block;
        height: 1px;
        left: 0;
        position: absolute;
        transition: .4s all;
        width: 0;
      }
      
      .underline:hover::after {
        width: 100%;
      }




    /* スライド */
    .slide-list{
        position: relative;
        aspect-ratio: 1920 / 750;
    }
    .slide-item{
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0; 
        animation: cs-fade-anime 32s infinite;
    }

    .slide-item img{
        display: block;
    }

    /* 4秒間隔 */
    .slide-item:nth-child(1){
        animation-delay: 0s;
    }
    .slide-item:nth-child(2){
        animation-delay: -28s;
    }
    .slide-item:nth-child(3){
        animation-delay: -24s;
    }
    .slide-item:nth-child(4){
        animation-delay: -20s;
    }
    .slide-item:nth-child(5){
        animation-delay: -16s;
    }
    .slide-item:nth-child(6){
        animation-delay: -12s;
    }
    .slide-item:nth-child(7){
        animation-delay: -8s;
    }
    .slide-item:nth-child(8){
        animation-delay: -4s;
    }
    
    /* スライドのアニメーション指定 */
    @keyframes cs-fade-anime {
        0% {
            opacity: 0;
            animation-timing-function: ease-in;
        }
        1% {
            opacity: 1; /* 表示される */
            animation-timing-function: ease-out;
        }
        12.5% {
            opacity: 1; /* 表示時間(100/8=12.5%) */
        }
        14.5%{
            opacity: 0;/* 移り変わり */
        }
        100% {
            opacity: 0;
        }
    }

    /* works */

    .work-main{
        margin-bottom: 15.9375rem;
    }
    .work-list{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }

    .work-item{
        position: relative;
        overflow: hidden;/* はみ出るとこを隠す */
    }

    .work-txt{
        font-size: 0.6875rem;
        line-height: 0.8rem;
        font-weight: 500;
        position: absolute;
        top: 3px;
        left: 3px;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease;/* hover→通常時 */
    }
    .work-img img{
        vertical-align: bottom;/* liのサイズを画像っぴったりにする */
    }

    .work-img{
        transition: 0.3s ease;/* hover→通常時 */

    }
    
    .work-item:hover .work-txt{
        transition: 0.3s ease;
        opacity: 1;
    }

    .work-item:hover .work-img{
        transform: scale(1.031);
        transition: 0.45s ease;
        opacity: 0.5;
    }
    section:has(.is-visible) .item {
        opacity: 1;
        transform: none;
      }



      /* works */

      .txt-scroll-600{
        max-width: 600px;
        margin: 0 auto;
        color: #707070;
        font-weight: 250;
      }

      .txt-scroll-848{
        max-width: 848px;
        margin: 0 auto;
        color: #707070;
        font-weight: 250;
      }

      h3{
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 7px;
      }
      .infotxt-list{
        margin: auto 0 ;
      }
      .info-txt,
      .about-txt,
      .contact-txt{
        font-size: 0.86rem;
        line-height: 1.8;
      }

      .subtxt{
        margin-bottom: 2rem;
      }

      .maintxt{
        margin-bottom: 3rem;
      }
      .credit{
        font-size: 0.6875rem;
        line-height: 1.8;
      }

      .main-works-contents{
        max-width: 1537px;
        margin: 0  auto  5rem 5rem;
      }

    

    .work-contents{
        display: flex;
        justify-content: space-between;
    }

    .work-info{
        max-width: 637px;
        /* max-height: 520px; */
        margin: 0 2rem 2.5rem 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .infobtn{
        max-width: 425px;
        min-width: 300px;
        margin: 0;
        display: flex;
        align-items: center;

    }
    .btns{
        display: flex;
        align-items: center;

    }
    .back-btn{
        margin-right: 2rem;
    }

    .home-btn{
        margin-right: 6rem;
        max-width: 111.05px;
    }



    /* 矢印 */
    .yazirusi1,.yazirusi0{
        width: 40px;
        height: 4px;
        border-bottom: 1px solid #000;
        border-left: 1px solid #000;
        transform: skew(-45deg);
    }
     .yazirusi2{
        width: 40px;
        height: 4px;
        border-bottom: 1px solid #000;
        border-right: 1px solid #000;
        transform: skew(45deg);
    }

     /* 1. 矢印の親となる a タグの設定 */
    .yazirusi0 a,
    .yazirusi1 a,
    .yazirusi2 a {
        position: relative;     /* 疑似要素（クリック領域）の基準にする */
        display: inline-block;
        width: 70px;            /* ★実際の矢印の「見た目」の幅*/
        height: 17px;           /* ★実際の矢印の「見た目」の高さ */
        vertical-align: middle;
    }

    /* 2. a タグの疑似要素を広げて、クリック領域を拡大する */
    .yazirusi0 a::after{
        transform: skew(45deg);
        content: "";
        position: absolute;
        /* 上下左右に 20px ずつクリック判定を広げる */
        top: -20px;
        bottom: -10px;
        left: -10px;
        right: -80px;
        }
    
    .yazirusi1 a::after{
        transform: skew(45deg);
        content: "";
        position: absolute;
        /* 上下左右に 20px ずつクリック判定を広げる */
        top: -10px;
        bottom: -10px;
        left: -10px;
        right: -20px;
    }

    .yazirusi2 a::after {
        transform: skew(-45deg);
        content: "";
        position: absolute;
        /* 上下左右に 20px ずつクリック判定を広げる */
        top: -10px;
        bottom: -10px;
        left: -45px;
        right: -10px;
        }

    /* work1,9のボタンの調整 */
    .home-btn1,
    .home-btn9{
        margin-left: 0;
    }
    .yazirusi0-1,
    .yazirusi0-9{
        margin: 0;
    }

    .scroll-img{
        max-width: 848px;
        max-height: 870px;
        margin: auto 0;
        overflow: auto;/* スクロール */
        scroll-snap-align: center;

    }
    .scroll-img img{
        margin-bottom: 1rem;
    }
    .imgsize{
        max-width: 600px;
        width: 100%;
    }

    .scroll-img::-webkit-scrollbar{
        display:none;/* スクロールバーなくす */
    }

    /* work4,1 */
    .work1info,
    .work2info,
    .work4info{
        min-height: 520px;
    }


    /* work5 */
    .site{
        font-size: 0.6875rem;
        margin-bottom: 1rem;
        text-decoration: underline;
    }
    .karappotext{
        margin-bottom: 1rem;
    }

    /* work6 */
    .cmftxt{
        margin-bottom: 1.5rem;
    }

    /* about,contact */

    .about-main,
    .contact-main{
        max-width: 1040px;
        margin: 0 auto;

    }

    /* about */

    .about-name{
        margin-bottom: 1.5rem;
    }
    .about-img,
    .contact-img{
        margin-bottom: 3rem;
    }
    
    /* contact */
    .contact-txt{
        margin-bottom: 4rem;
    }

    .contact-btn h3{
        font-weight: 300;
    }
    .contact-btn-design{
        padding: 1rem 2rem;
        border: 1px solid #1a1a1a;
        border-radius: 100vh;
        margin-bottom: 2rem;
    }

    .contact-btn-design:hover{
        color: #ffffff;
        padding: 1rem 2rem;
        background-color: #1b1b25;
        border-radius: 100vh;
        transition: 0.2s ease-out;
    }







    /* レスポンシブ対応 */

     /* 959px以下に適用されるCSS（タブレット用） */
    @media screen and (max-width: 959px) {        
        .work-main {
            margin-bottom: 3rem;
        }

        body{
            margin: 0 0.5rem;
        }
        .index-header{
            margin-bottom: 2rem;
        }
        .nav-group,
        .footer{
            margin: 0 0.5rem;
        }
        .img-display{
            display: none;
        }

    }
    /* 768px以下に適用されるCSS（タブレット横） */
    @media screen and (max-width: 768px) {
        h2{
            font-size: 1rem;
            padding-bottom: 0.5rem;
            margin-bottom: 2rem;
        }
        .work-list{
            grid-template-columns: 1fr 1fr;
            gap: 5px;
        }
        .main-works-contents{
            margin: 0 auto;
        }
        .work-info{
            margin: 0 auto;
        }
        .infotxt-list{
            margin-bottom: 2.5rem;
        }
        .infobtn{
            margin-bottom: 1rem;
            font-size: 0.86rem;
        }
        /* displayflex解除 */
        .work-contents{
            display: block;
        }
        /* work1,2,4の高さ解除 */
        .work1info,
        .work2info,
        .work4info{
            min-height: auto;
        }
    }

    /* 480px以下に適用されるCSS（タブレット横） */
    @media screen and (max-width: 480px) {
        body{
            margin: 0 1rem;
        }
        main{
            min-height: 500px;
            margin-bottom: 0;
        }
        h1{
            display: none;
        }
        h2{
            font-size: 0.8rem;
        }
        h3{
            font-size: 0.9rem;
        }
        .info-txt,
        .nav-item,
        .about-txt,
        .name,
        .contact-txt
         {
            font-size: 0.6875rem;
        }
        .index-header{
            margin: 1rem auto;
        }
        .work-nav{
            margin-bottom: 0.8rem;
        }
        .nav-list{
            gap: 35px;
        }
        .nav-group{
            justify-content: end;
        }
        .maintxt{
            margin: 0
        }
        .subtxt{
            margin-bottom: 1rem;
        }
        .infobtn{
            min-width: auto;
        }
        .btns{
            font-size: 0.8rem;
            margin: 0 0 0 auto;
        }
        .home-btn,
        .yazirusi0{
            display: none;
        }

        .infotxt-list{
            margin-bottom: 0;
        }

        .content-header,
        .about-header{
            margin: 2rem auto;
        }
        .about-img{
        margin-bottom: 1rem;
        }

        .contact-btn h3{
            font-weight: 300;
            font-size: 1rem
        }
        .contact-btn-design{
            padding: 0.5rem 1rem;
            border: 1px solid #1a1a1a;
            border-radius: 100vh;
            margin-bottom: 2rem;
        }
    
        .contact-btn-design:hover{
            color: #ffffff;
            padding: 0.5rem 1rem;
            background-color: #1b1b25;
            border-radius: 100vh;
            transition: 0.2s ease-out;
        }
    

          
    }

    
