@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap");
.colorchart {
  max-width: 800px;
  margin: 0 auto 44px;
  display: none;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: 'Noto Sans JP', sans-serif;
  color: #414141;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

.colorchart.active {
  display: flex;
}

.colorchart img, .colorchart object {
  max-width: 100%;
  height: auto;
}

.colorchart_main {
  width: calc(50% - 8px);
  box-sizing: border-box;
  position: relative;
}

.colorchart_main:after {
  content: "";
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, transparent, #fff);
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .colorchart_main {
    width: 100%;
    padding: 0 20px 20px;
  }
  .colorchart_main:after {
    content: "";
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, transparent, #fff);
    position: absolute;
    right: 0;
    top: 0;
    bottom: auto;
    z-index: 1;
    display: block;
    pointer-events: none;
  }
  .colorchart_main:before {
    content: "";
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, #fff, transparent);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
  }
}

.colorchart_sub {
  width: calc(50% - 8px);
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: inset 10px 0px 20px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .colorchart_sub {
    width: 100%;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.02);
  }
}

.colorchart_sub:after {
  width: 20px;
  height: 20px;
  background: #fff;
  display: block;
  transform: rotate(45deg);
  position: absolute;
  left: -10px;
  top: calc(50% - 10px);
  content: "";
}

@media screen and (max-width: 768px) {
  .colorchart_sub:after {
    left: calc(50% - 10px);
    top: -10px;
  }
}

.colorchart_title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 18px;
  line-height: 1.5em;
  font-weight: 500;
  width: 100%;
  margin: 0 0 20px;
}

.colorchart_title img {
  margin-right: 10px;
  animation: 1s ease-out forwards rotation01;
}

.colorchart_pulldown {
  margin: 0 0 30px;
  padding: 0;
}

.colorchart_pulldown dt {
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
  line-height: 1.5em;
  font-weight: 400;
}

.colorchart_pulldown dd {
  margin: 0;
  padding: 0;
  position: relative;
}

.colorchart_pulldown dd:after {
  content: "";
  width: 6px;
  height: 6px;
  border-left: 2px solid #414141;
  border-bottom: 2px solid #414141;
  display: block;
  position: absolute;
  right: 14px;
  top: calc(50% - 6px);
  transform: rotate(-45deg);
  font-size: 0;
  line-height: 0;
}

.colorchart_pulldown dd select {
  width: 100%;
  appearance: none;
  border-radius: 3px;
  border: 1px solid #BFBFBF;
  box-sizing: border-box;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5em;
}

.colorchart_palette {
  height: 315px;
  overflow: auto;
}

@media screen and (max-width: 768px) {
  .colorchart_palette {
    height: auto;
  }
  .colorchart_palette.all {
    width: calc(100% + 40px);
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    margin-left: -20px;
  }
  .colorchart_palette.all .colorchart_palette_inner {
    width: 500%;
    box-sizing: border-box;
    padding: 0 20px;
  }
  .colorchart_palette.all .colorchart_palette_inner .colorchart_palette_block {
    width: 2%;
  }
}

.colorchart_palette_inner {
  padding-bottom: 20px;
  overflow: auto;
  font-size: 0;
  line-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

@media screen and (max-width: 768px) {
  .colorchart_palette_inner {
    padding-bottom: 0;
  }
}

.colorchart_palette_block {
  width: 10%;
  box-sizing: border-box;
  border: 1px solid #fff;
  font-size: 0;
  line-height: 0;
  margin-bottom: 0;
  margin: 0;
}

.colorchart_palette_block.active {
  border-color: #414141;
}

.colorchart_item {
  width: 100%;
  max-width: 278px;
}

@media screen and (max-width: 768px) {
  .colorchart_item {
    max-width: 100%;
  }
  .colorchart_item form {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }
}

.colorchart_item_image {
  position: relative;
  margin: 0 auto 20px;
}

@media screen and (max-width: 768px) {
  .colorchart_item_image {
    margin: 0;
    width: calc(50% - 5px);
  }
}

.colorchart_item_image:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.colorchart_item_image a {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.colorchart_item_image a img {
  box-sizing: border-box;
  border: 1px solid #E6E6E6;
}

@media screen and (max-width: 768px) {
  .colorchart_item_text {
    margin: 0;
    width: calc(50% - 5px);
  }
}

.colorchart_item_name {
  font-size: 14px;
  line-height: 1.5em;
  font-weight: bold;
  margin: 0 0 10px;
}

.colorchart_item_name a:link, .colorchart_item_name a:visited {
  color: #414141;
  text-decoration: none;
}

.colorchart_item_name a:hover, .colorchart_item_name a:active {
  color: #414141;
  text-decoration: underline;
}

.colorchart_item_price {
  font-size: 14px;
  line-height: 1.5em;
  margin: 0 0 10px;
}

.colorchart_item_price small {
  font-size: 10px;
  line-height: 1.5em;
  display: inline-block;
  margin-left: 4px;
}

.colorchart_item_cv {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.colorchart_item_cv_quantity {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 12px;
  line-height: 1.5em;
}

.colorchart_item_cv_quantity input {
  margin-left: 10px;
  border: 1px solid #BFBFBF;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 3px;
  width: 5em;
  text-align: center;
  font-size: 14px;
  line-height: 1.5em;
}

.colorchart_item_cv_btn {
  width: 58%;
}

@media screen and (max-width: 980px) {
  .colorchart_item_cv_btn {
    width: 100%;
    margin-top: 10px;
  }
}

.colorchart_item_cv_btn button {
  background: #f35aa3;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5em;
  border: none;
  padding: 10px;
  width: 100%;
  font-weight: bold;
}

.colorchart_item_cv_btn button:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: url(https://bynaillabo.itembox.design/item/img/colorchart/colorchart_item_cv_btn.png) no-repeat center center;
  background-size: 100% auto;
  position: relative;
  top: -3px;
  margin-right: 3px;
}

@keyframes rotation01 {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotation02 {
  0% {
    transform: rotateX(0);
  }
  100% {
    transform: rotateX(360deg);
  }
}
