@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaA.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjoa4OWaA.ttf) format('truetype');
}
* {
  font-family: 'Roboto Slab', serif;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
#main {
  width: 740px;
  height: 280px;
  position: relative;
  background: #000;
  overflow: hidden;
  margin: 0 auto;
  margin-top: calc(50vh - 140px);
}
.messages {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0) 60%);
}
.messages .sns-message-2 {
  position: absolute;
  top: 32px;
  left: 32px;
  font-size: 50px;
  line-height: 52px;
  font-weight: 400;
  color: #ffe809;
}
.messages .sns-become-member {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 10px 0 16px;
  border-radius: 6px;
  background-color: #ffe809;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.messages .sns-become-member span {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #333;
}
.messages .sns-become-member svg {
  display: block;
  flex: none;
  fill: #333;
}
.messages .sns-become-member:hover span,
.messages .sns-become-member.is-hover span {
  text-decoration: underline;
}
.messages .sns-message-3 {
  position: absolute;
  left: 32px;
  bottom: 44px;
  color: #ffe809;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}
.messages .sns-message-3 .sns-count {
  font-weight: 700;
}
:root {
  --duration: 30s;
}
.wrapper-images {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 70%;
  opacity: 0.8;
  transform: translate3d(-50%, -50%, 0) perspective(800px) rotatey(10deg) rotateX(-10deg);
}
.images-line {
  animation: runner var(--duration) linear infinite;
  display: flex;
  transform: translateX(23%);
}
.images-line:nth-child(even) {
  animation-duration: calc(var(--duration) * 1.5);
}
.images-line .line {
  background-position: 50% 50%;
  background-size: cover;
  flex: none;
  height: 90px;
  margin: clamp(10px, 10px, 10px);
  width: 180px;
  position: relative;
  transition: ease-in-out all 0.3s;
  border-radius: 1rem;
}
.images-line .line .img {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-position: 50% 50%;
  background-size: cover;
  transition: ease-in-out all 0.3s;
  overflow: hidden;
  border-radius: 10px;
}
@keyframes runner {
  to {
    transform: translateX(-10.4%);
  }
}
