@media (max-width : 600px) {
    html{
        scroll-behavior: smooth;
        width: 390px;
    }

    head{
        width:100%;
        overflow-x: hidden;
    }
    header{
        width:100%;
        overflow-x: hidden;
    }

    /*流れる文字*/
  .marquee {
    padding: 1em 0;
    border-radius: 5px;
    width: 100%;
    height: 85px;
  }   
  
  .marquee-text {
   
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    color: rgb(179, 179, 179);
    margin-top: -23px;
  }
  .marquee-text2 {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    background: linear-gradient(to right,#feafaf,#feafaf,#feafaf,#ffd07d,#fff100,#40a06b,#5a6fcf,#a46c9e,pink,rgb(196, 192, 187));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Dancing Script", serif;
    font-size: 30px;
    margin-top: -18px;
    margin-bottom: -10px;
  }
  @keyframes marquee {
    0% { transform: translate(0); }
    100% { transform: translate(-100%); }
  }

.catchcopy{
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 30pt;
  text-align: center;
  color:rgb(188, 188, 188);
  z-index: 10;
  margin-top: 15PX;
}

.grid{
  width: 390px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, 122px);
  grid-template-rows: repeat(4,122px);
  margin-top: -200px;
  
}

.item{
  width:100%;
  justify-content: center;
  object-fit: cover;
}

.item img {
  width: 100%;
	height: 100%;
	object-fit: cover;
  z-index: 1;

}

.grid1{
    grid-column: 1/2;
    grid-row: 1/2;
   
    background-size: cover;
    background-position: center center;
}


.grid2{
  grid-column: 3/4;
  grid-row: 1/2;

}



.grid3{
  grid-column: 1/2;
  grid-row: 2/3;
}

.grid4{
  grid-column: 3/4;
  grid-row: 2/3;
}

.grid5{
  grid-column: 1/2;
  grid-row: 3/4;
}

.grid6{
  grid-column: 3/4;
  grid-row: 3/4;
}

.grid7{
  grid-column: 1/2;
  grid-row: 4/5;
  
}

.grid8{
  grid-column: 3/4;
  grid-row: 4/5;
}

h1{
  font-size: 30px;
  justify-content: center;
  text-align: center;
  margin-top: 30px;
}

h3{
  position: center;
  color: rgb(95, 94, 94);
  font-size: 14px;
  justify-content: center;
  text-align: center;
  margin-top: 30px;
}

.mokuji{
  width: 390px;
  display: flex;
  flex-wrap:wrap;
   justify-content: center;
   margin-top: -10px;
   margin-bottom: 20px;
}

.rink{
  margin: 30px;
  font-size: 20px;
  font-family: "Castoro Titling", serif;
  font-weight: 400;
  font-style: normal;;
}
.red{
  font-size: 20px;
  color:rgb(222,39,38);
}
.orange{
  font-size: 20px;
  color:rgb(229,89,39);
}
.yellow{
  font-size: 20px;
color:rgb(217,188,64);
}
.green{
  font-size: 20px;
color:rgb(19,140,67);
}
.blue{
  font-size: 20px;
  color:rgb(24,73,158);
}
.purple{
  font-size: 20px;
  color:rgb(96,44,137);
}
.pink{
  font-size: 20px;
  color:rgb(226,141,185);
}






/* ふわっとアニメーション */
@keyframes anime {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  35% {
    opacity: 1;
  }
  50% {
    opacity: 0;
    z-index: 9;
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes anime {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  35% {
    opacity: 1;
  }
  50% {
    opacity: 0;
    z-index: 9;
  }
  100% {
    opacity: 0;
  }
}
}