@charset "UTF-8";

/* main */
.wrapper{
  width: 100%;
  overflow: hidden;
  display: flex;
}
.scroll{
  font-family: "Rufina";
  color: #FC221A;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: inline-block;
  white-space : nowrap;
  padding-left: 100%;
  animation: animetxt 15s linear infinite;
}
@keyframes animetxt{
  0% { transform: translateX(0)}
  100% { transform: translateX(-100%)}
}
.main__txt{
  font-family: "Noto Sans JP";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary-black);
  text-align: center;
  vertical-align: bottom;
  margin-top: auto;
}
.main__img{
  display: block;
  width: 80px;
  height: auto;
  margin: 0 auto;
}
.main__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  max-width: 90px;
  height: 115px;
  padding: 4px;
  margin: 0 auto;
}

.main__list{
  display: grid;
  gap: 10px;
  max-width: 280px;
  width: 90%;
  height: 520px;
  flex-shrink: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
}
.gallery{
  background-image: url(../images/frame-sp.jpg); 
  background-repeat: no-repeat;
  background-size:90% 430px; 
  background-position: center top;
  justify-items: center;
  margin: 0 auto;
  position: relative;
  padding: 38px 0;
  max-width: 400px;
}
.selected {
  background-color: var(--primary-gray);
}
.gallery__scroll{
  overflow-y: scroll;
  max-width: 310px;
  margin: 0 auto;
  width: 90%;
  height: 362px;
}
/* === main pc ===*/
@media screen and (min-width:769px){
  .scroll{
    font-size: 2.6rem;
  }
  .main__txt{
    font-size: 1.6rem;
  }
  .main__img{
    width: 90px;
    height: auto;
  }
  .main__list{
    gap: 20px;
    max-width: 850px;
    height: 380px;
    padding: 20px 24px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .main__item{
    width: 130px;
    height: 130px;
    padding: 4px;
    align-items: center;
  }
  .gallery{
    background-image: url(../images/frame-pc.jpg);
    background-size:90% 532px; 
    padding: 60px 0;
    max-width: 1000px;
  }
  .gallery__scroll{
    max-width: 900px;
    height: 413px;
  }
}