#playbeauty.jc-sb{
  justify-content: space-between;  
}

#playbeauty div{
  width: 33%;
}

#skintheory .pc-none{
  display: none;
}


/* スマートフォン用の横スライドCSS */

@media screen and (max-width: 599px) {
#skintheory .pc-none{
  display: block;
}

#skintheory .sp-none{
  display: none;
}

#skintheory .structure-img{
  width: 80%;
  margin: 15px auto;
}
  
  #playbeauty {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    flex-wrap: nowrap;
  }

  #playbeauty > div {
    flex: 0 0 80%;
    min-width: 80%;
    width: auto;
  }

  #playbeauty img {
    width: 100%;
    height: auto;
    display: block;
  }
}



.before-after-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.title-section {
  text-align: center;
  margin-bottom: 40px;
}

.title-text {
  font-weight: bold;
  font-size: 18px;
  color: #333;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-item {
  display: flex;
  flex-direction: column;
}

.image-wrapper {
  width: 100%;
  margin-bottom: 15px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.description {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* タブレット表示 (1024px以下) */
@media screen and (max-width: 1024px) {
  .before-after-container {
    padding: 30px 15px;
  }
  
  .grid-container {
    gap: 25px;
  }
  
  .title-text {
    font-size: 16px;
  }
  

}

/* スマホ表示 (599px以下) */
@media screen and (max-width: 599px) {
  .before-after-container {
    padding: 20px 10px;
  }
  
  .title-section {
    margin-bottom: 30px;
  }
  
  .title-text {
    font-size: 14px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .description {
    padding: 0 10px;
  }
}
