@charset 'utf-8';

/*--------------------------------------------------------
liverProfile
--------------------------------------------------------*/
.liver_img {
  width: 40%;
  margin: 0 auto;
}

.liver_img img {
  width: 100%;
}

.liver_info {
  margin: 3rem auto 0;
  width: fit-content;
} 

.liver_info h2 {
  font-size: min(4.5cqw, 4rem);
  font-weight: 800;
  text-align: center;
}

.liver_info p {
  margin-top: 2rem;
  font-weight: 500;
  line-height: 1.25;
}

.sns_link {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 3rem;
}

.sns_link a {
  display: block;
  width: 40px;
  transition: opacity .3s;
}

.sns_link a:hover {
  opacity: 0.6;
}

.sns_link a img {
  width: 100%;
}

@media screen and (max-width: 1000px) {
  section.liver_profile {
    margin-top: 3rem;
  }
}

@media screen and (max-width: 580px) {
  section.liver_profile {
    margin-top: 1rem;
  }

  .liver_img {
    margin: 2rem auto 0;
  }

  .liver_info {
    margin: 1.5rem auto 0;
  } 

  .liver_info h2 {
    font-size: min(7cqw, 2.5rem);
  }

  .liver_info p {
    margin-top: 1rem;
    font-size: min(4cqw, 1rem);
  }

  .sns_link {
    margin-top: 2rem;
  }
}



/*--------------------------------------------------------
gallery
--------------------------------------------------------*/
.gallery_block {
  margin-top: 3rem;
}

.gallery{
  display: flex;
  justify-content: start;
  gap: calc((100% - 24% * 4) / 3);
  flex-wrap: wrap;
  margin:0;
}

.gallery li {
  position: relative;
  width: 24%;
  margin-bottom: 20px;/*各画像下に余白をつける*/
  list-style:none;
  overflow: hidden;
  background: #000;
}

.gallery li::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/*ギャラリー内のイメージは横幅100%にする*/
.gallery img{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  object-fit: cover;
}

.gallery li a img {
  transition: all .3s ease-in-out;
}

.gallery li a:hover img  {
  opacity: 0.7;
  transform: rotate(5deg) scale(1.2);
}

@media screen and (max-width: 580px) {
  .gallery_block {
    width: 90%;
    margin: 3rem auto 0;
  }

  .gallery{
    justify-content: space-between;
    gap: 0;
  }

  .gallery li {
    position: relative;
    width: 45%;
    margin-bottom: 20px;/*各画像下に余白をつける*/
    list-style:none;
    overflow: hidden;
    background: #000;
  }
}