@charset "UTF-8";

#beautystepList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 5vw;
}

#beautystepList li {
  width: calc(100% / 4);
}

@media all and (-ms-high-contrast:none) {
  #beautystepList li {
    width: calc(100% / 4 - 1px);
  }
}

#beautystepList li .stepImage,
#beautystepList li .title,
#beautystepList li .message {
  width: 17.3vw;
  margin: auto;
}

#beautystepList li .textContainer {
  width: 20.8vw;
  height: 17.8vw;
  background-color: #f1edda;
  margin: -2vw auto 4vw auto;
  padding-top: 2vw;
}

#beautystepList li .stepImage {
  display: block;
}

#beautystepList li .stepText {
  position: absolute;
  left: 0;
  top: -2vw;
  width: 4.6vw;
}

#beautystepList li .title {
  font-size: 1.6vw;
  color: #ec5399;
  text-align: center;
}

#beautystepList li .message {
  font-size: 1vw;
  text-align: left;
}

@media screen and (max-width: 870px) {
  #beautystepList li .textContainer {
    height: 33vw;
  }
}

@media screen and (max-width: 600px) {
  #beautystepList li {
    width: 100%;
  }
  #beautystepList li .stepImage,
  #beautystepList li .title,
  #beautystepList li .message {
    width: 80vw;
  }

  #beautystepList li .textContainer {
    width: 90vw;
    height: auto;
    margin: -5vw auto 10vw auto;
    padding-top: 5vw;
    padding-bottom: 5vw;
  }

  #beautystepList li .title {
    font-size: 7.7vw;
    color: #ec5399;
    text-align: center;
  }

  #beautystepList li .message {
    font-size: 5.6vw;
    text-align: left;
  }

  #beautystepList li .stepText {
    position: absolute;
    left: 0;
    top: -6vw;
    width: 12vw;
  }
}