@charset 'utf-8';

section.liver {
  height: 1150px;
}

.po_relative {
  position: relative;
  height: 100%;
}

.card {
  position: absolute;
}

.card a img {
  transition: opacity .3s;
}

.card a:hover img {
  opacity: 0.8;
}

.card.big {
  width: 27vw;
  height: 27vw;
  max-width: 400px;
  max-height: 400px;
}

.card.small {
  width: 20vw;
  height: 20vw;
  max-width: 280px;
  max-height: 280px;
}

.card__inner {
  width: 100%;
  height: 100%;
}

.card__inner img {
  width: 100%;
}

/* 各カード設定 */
.card1 {
  top: 13%;
  left: 0;
}
.card2 {
  top: 0;
  left: 40%;
}
.card3 {
  top: 13%;
  right: 5%;
}
.card4 {
  top: 55%;
  left: 10%;
}
.card5 {
  top: 35%;
  right: 20%;
}
.card6 {
  bottom: 0;
  left: 45%;
}
.card7 {
  bottom: 15%;
  right: 0;
}

@media screen and (max-width: 1000px) {
  section.liver {
    height: 700px;
  }
}

@media screen and (max-width: 700px) {
  section.liver {
    height: 600px;
  }
}

@media screen and (max-width: 580px) {
  section.liver {
    height: fit-content;
  }

  .po_relative {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
  }

  .card {
    position: static;
    margin: 0 auto;
  }

  .card.big,
  .card.small {
    width: 45vw;
    height: 45vw;
    max-width: 300px;
    max-height: 300px;
  }

  .card:nth-of-type(n + 3) {
    margin-top: 2rem;
  }
}

/*--------------------------------------------------------
fuwafuwa
--------------------------------------------------------*/
.fuwafuwa1 {
  animation: fuwafuwa1 3s ease-in-out infinite alternate;
  transition: 3s ease-in-out;
}

@keyframes fuwafuwa1 {
  0% {
    transform:translate(0, 0) rotate(-7deg);
  }
  50% {
    transform:translate(0, -5px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(7deg);
  }
}

.fuwafuwa2 {
  animation: fuwafuwa2 3s ease-in-out infinite alternate;
  animation-delay: 1s;
  transition: 3s ease-in-out;
}
@keyframes fuwafuwa2 {
  0% {
    transform:translate(0, 0) rotate(3deg);
  }
  50% {
    transform:translate(0, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(-1deg);
  }
}

.fuwafuwa3 {
  animation: fuwafuwa3 4s ease-in-out infinite alternate;
  animation-delay: 0,5s;
  transition: 4s ease-in-out;
}
@keyframes fuwafuwa3 {
  0% {
    transform:translate(0, 0) rotate(-5deg);
  }
  50% {
    transform:translate(3px, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(3deg);
  }
}

.fuwafuwa4 {
  animation: fuwafuwa4 3s ease-in-out infinite alternate;
  animation-delay: 1s;
  transition: 3s ease-in-out;
}
@keyframes fuwafuwa4 {
  0% {
    transform:translate(0, 0) rotate(-1deg);
  }
  50% {
    transform:translate(1px, 10px) rotate(0deg);
  }
  100% {
    transform:translate(-1px, -2px) rotate(2deg);
  }
}

.fuwafuwa5 {
  animation: fuwafuwa5 4s ease-in-out infinite alternate;
  animation-delay: 0.5s;
  transition: 4s ease-in-out;
}
@keyframes fuwafuwa5 {
  0% {
    transform:translate(0, 0) rotate(3deg);
  }
  50% {
    transform:translate(1px, -5px) rotate(0deg);
  }
  100% {
    transform:translate(-1px, 7px) rotate(-2deg);
  }
}

@media screen and (max-width: 580px) {
  .fuwafuwa1,
  .fuwafuwa2,
  .fuwafuwa3,
  .fuwafuwa4,
  .fuwafuwa5 {
    animation: none;
  }
}