#cm * {
  all: unset;
  all: revert; /* ← より安全。必要に応じて使い分け */
}
.newh3 {
  margin: 0 !important;
}
#cm {
  background-color: #bedfa6 !important;
}
#cm .cm-wrap {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1300px;
  margin: auto;
  overflow: hidden;
}
#cm .cm-text {
  width: 210px !important;
  color: #fff !important;
}
#cm .cm-text a {
  color: #fff !important;
  font-weight: bold;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3) !important;
}
#cm .cm-text span {
  color: #fff !important;
  font-weight: bold;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3) !important;
}

#cm .carousel {
  display: flex;
  align-items: center;
  width: 1050px !important;
  padding: 2rem 0;
}
#cm .carousel-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
#cm .cm-controls {
  width: 50px;
  display: flex;
  justify-content: center;
  margin-left: 10px;
}
#cm .cm-controls button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
}

/* トラックとアイテム */
#cm .carousel-track {
  display: flex;
  gap: 10px; /* 画像間の余白 */
  transition: transform 0.5s ease;
  will-change: transform;
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: content-box;
}

#cm .cm-item {
  flex: 0 0 auto; /* 幅はJSで付与 */
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  min-width: 0;
}
#cm .cm-item a {
  width: 90% !important;
  display: block !important;
  margin: 0 auto !important;
  color: #fff !important;
}
#cm .cm-item img {
  width: 100% !important;
  height: auto !important;
  border-radius: 6px;
  display: block;
}
#cm .cm-tittle {
  text-align: center !important;
  height: 45px;
  font-size: 14px !important;
  margin: 0.5rem auto !important;
  width: 150px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

#cm .cm-price {
  text-align: center !important;
  font-size: 14px !important;
}
#cm .cm-price span {
  font-weight: bold;
}
#cm .cm-btn {
  width: 150px !important;
  text-align: center !important;
  color: #fff !important;
  background-color: #6d9940 !important;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
  padding: 0.5rem 0 !important;
  margin: 0.5rem auto !important;
  display: block !important;
}
#cm .cm-title {
  font-size: 14px;
  margin-top: 8px;
}
#cm_sp {
  display: none;
}
/* スマホ（ブレイクポイントは自由に変更可） */
@media (max-width: 480px) {
  #cm {
    display: none;
  }
  #cm_sp {
    display: block;
    background-color: #bedfa6 !important;
    padding: 2rem 0;
  }
}
