@charset "utf-8";
/*====================
works
=====================*/

.section__box--works {
    padding: 70px 2% 60px;
    /* overflow: hidden; */
}

.section--works .section__topic span {
    letter-spacing: -10.8px;
}

.section--works {
    padding-bottom: 0;
}

.section--works p {
    font-size: 1.6rem;
    text-align: right;
}

.content__item {
    width: fit-content;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 100px 100px 100px;
    grid-template-rows: 100px 100px 100px 100px 100px 100px;
    gap: 10px 10px;
}

.content__item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    object-position: 0 0;
    background-color: transparent;
}

.yana__main__pc img {
    object-position: unset;
}

.ai__myProfile img {
    object-position: 10px -20px;
}

.content__item li .img__card {
    /* width: 100px;
    height: 100px; */
    object-fit: contain;
    object-position: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .modal-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    width: auto;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
  }
  
  .caption {
    color: #fff;
    font-size: 1.3rem;
    text-align: center;
    padding: 10px 20px;
    max-width: 90%;
  }
  
  .close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001;
  }

  .nav-btn {
    position: absolute;
    top:97%;
    transform: translateY(-50%);
    /* background: rgba(0,0,0,0.5); */
    color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2.5rem;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .prev-btn {
    left: 140px;
  }
  
  .next-btn {
    right: 140px;
  }

    .content__item li {
        transition: transform 0.3s ease;
    }

    .content__item li:hover {
        transform: rotate(10deg) scale(1.1);
    }

    .content__item img {
        transition: transform 0.1s ease;
        cursor: pointer;
      }
      
      .content__item img:active {
        transform: scale(0.95);
      }

@media screen and (min-width:426px){
    .content__item {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
        width: 90%;
        margin: 16px auto;
      }

}/* tablet 426px */

@media screen and (min-width:769px) {

    .section__box--works {
        padding: 230px 2% 160px;
    }

    .section--works p {
        font-size: 2.4rem;
        margin-bottom: 24px;
    }

    .section--works ul {
        width: fit-content;
        margin: 0 auto;
    }

    .content__item {
        grid-template-columns: 195px 195px 195px 195px;
        grid-template-rows: 195px 195px 195px 195px 195px ;
        gap: 30px 30px;
    }

    .content__item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 0 0;
        background-color: transparent;
    }

    .content__item li .img__card {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .yana__main__pc img {
        object-position: unset;
    }
    
    .ai__myProfile img {
        object-position: 0 -20px;
    }

    .brSp {
        display: none;
    }

    .caption {
        font-size: 1.7rem;
      }

    .nav-btn {
    top: 50%;
    font-size: 5rem;
    }
}

/* pc 769px */
