ul.ninkilist{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  margin: 1rem auto;
  width: 96%;
}

.designbana {
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style: none;
margin: 1rem auto;
margin-bottom: 2rem;
width: 96%;
}

.designbana :first-child {
  margin-bottom: 1rem;
}


ul.ninkilist li{
  width: 48%;
  margin-bottom: 1.5rem;
}

ul.ninkilist li img{
  width: 100%;
  height: auto;
}


.kyaralist dl{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
justify-content: flex-start;
}

.kyaralist dl dt{
  font-weight: bold;
  font-size: 1.25rem;
  margin: 1em 0 0.5em 0;
  padding-left: 0.5em;
  width: 100%;
}
.kyaralist dl dd{
  text-align: center;
  border-radius: 10px;
  padding: 0.5em;
  margin: 0 0.25em 0.5em 0;
  font-weight: bold;
  width: 24%;
  box-sizing: border-box;
}
.kyaralist dl dd a{
display: block;
width: 100%;
height: 100%;
}
.kyaralist dl dt:first-of-type{
  margin: 0 0 0.5em 0;
}
.kyaralist dl dd span{
  font-size: 0.8em;
}
/* 背景色設定 */
.kyaralist dl:first-of-type dd:nth-of-type(-n+1){
background-color: rgb(209, 242, 255);
}
.kyaralist dl:first-of-type dd:nth-of-type(n+2){
  background-color: rgb(224, 239, 255);
}
.kyaralist dl:first-of-type dd:nth-of-type(n+5){
  background-color: rgb(255, 215, 212);
}
.kyaralist dl:nth-of-type(2) dd{
  background-color: rgb(255, 215, 212);
}
.kyaralist dl:nth-of-type(2) dd:nth-of-type(n+16){
  background-color: rgb(215, 255, 227);
}
.kyaralist dl:nth-of-type(3) dd:nth-of-type(n+1){
  background-color: rgb(255, 251, 212);
}
.kyaralist dl:nth-of-type(4) dd:nth-of-type(-n+5){
  background-color: rgb(220, 222, 255);
}
.kyaralist dl:nth-of-type(4) dd:nth-of-type(n+7){
  background-color: rgb(222, 255, 248);
}
.kyaralist dl:nth-of-type(4) dd:nth-of-type(n+11){
  background-color: rgb(255, 219, 249);
}
.kyaralist dl dd.last{
  display: none;
  }
  dd.after{
    display: none;
    }
    


@media (max-width: 768px){
  .kyaralist{
      justify-content: center;
      flex-wrap: wrap;
  }
  .kyaralist dl{
justify-content: space-around;
  }
  .kyaralist dl dd{
      width: 48%;
      margin: 0 0 0.5em 0;
  }
  .kyaralist dl dd.last{
  width: 48%;
  background-color: #fff !important;
display: block;
  }

  .kyaralist dl dt:first-of-type{
      margin: 0 0 0.5em 0;
  }
  .recommend_lists {
      align-items: stretch;
      display: flex;
      flex-wrap: wrap;
  }
  dd.after{
    width: 48%;
    display: block;
    background-color: #fff !important;
  }
  
}



/* ここら商品おすすめスライダー */


 .swiper {
    width: 100%;
    padding: 20px 0;
    margin: 2em auto;
  }
  .swiper-slide {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
.swiper-slide a {
  text-decoration: none;
}  .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  .rank-label {
    font-size: 1.5em;
    font-weight: bold;
    color: #f33;
    display: block;
    text-align: left;
    border-radius: 4px;
    margin-top: 0.25em;
  }
    .rank-label::after {
    content: "位";
  font-weight: bold;
  font-size: 0.7em;
  color: #f33;
    }
  .product-title {
    font-size: 14px;
    margin: 5px 0;
  }
  .product-price {
    color: #f60;
    font-size: 1.2em;
    font-weight: bold;
  }
    .product-price span{
    font-size: 0.8em;
    margin-left: 0.5em;
    }
  .product-link {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 10px;
    background: #007aff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
  }

.swiper-slide {
  width: 200px; /* ← ここを追加することで 'auto' が効くようになる */
}

@media (max-width: 768px){
.side_category{
  display:none !important
}
}


/* ここまで商品おすすめスライダー */