@charset "UTF-8";
html,
body {
  background-color: #efefef;
}

.multi-step {
  margin: 1em 0;
}

.multi-step-list {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  list-style-type: none;
  padding: 0;
  height: 4rem;
}
.multi-step-list .multi-step-item:first-child {
  margin-left: 0;
}
.multi-step-list .multi-step-item:last-child {
  margin-right: 0;
}

.multi-step-item {
  position: relative;
  width: 100%;
  margin: 0 2rem;
  z-index: 2;
  border-radius: 0.2em;
}
/* @media only screen and (max-width: 786px) {
  .multi-step-item {
    margin: 0 0.3333333333em;
  }
} */
.multi-step-item .item-title,
.multi-step-item .item-subtitle {
  position: relative;
  margin: 0.5rem 1rem;
  z-index: 2;
  font-size: 1.5rem;
}
/* @media only screen and (max-width: 786px) {
  .multi-step-item .item-subtitle {
    display: none;
  }
} */
.multi-step-item .item-title {
  color: #3e5fd6;
  font-weight: bold;
  margin: 0;
  font-size: 2rem;
}
.multi-step-item.active:hover {
  cursor: pointer;
}
.multi-step-item.current .item-title,
.multi-step-item.current .item-subtitle {
  color: #fff;
  /*! font-size: 1rem; */
}
.multi-step-item.active.current:hover .item-title,
.multi-step-item.active.current:hover .item-subtitle {
  color: #3e5fd6;
}
.multi-step-item.error:after {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  right: 0.5em;
  content: "!";
  color: #f82502;
}

.item-wrap {
  padding: 0.5em 0 0.5em 0.5em;
  position: relative;
  height: 100%;
}
.item-wrap:before,
.item-wrap:after {
  position: absolute;
  left: 0;
  content: " ";
  width: 100%;
  height: 50.5%;
  z-index: 1;
  background-color: #ffffff;
}
.item-wrap:before {
  top: 0;
  transform: skew(20deg);
  border-radius: 0.2em 0.2em 0 0;
}
.item-wrap:after {
  bottom: 0;
  transform: skew(-20deg);
  border-radius: 0 0 0.2em 0.2em;
}

.current .item-wrap:before,
.current .item-wrap:after {
  background-color: #3e5fd6;
}

.current.statusok .item-wrap:before,
.current.statusok .item-wrap:after {
  background-color: #3ed6b5;
  /* animation: statuscolor 0.5s; */
  pointer-events: auto;
}

.active:hover .item-wrap:before,
.active:hover .item-wrap:after {
  background-color: #d8f1ff;
}

.multi-step-item.error .item-title,
.multi-step-item.error .item-subtitle {
  padding-right: 2em;
}

.multi-step-item:first-child .item-wrap,
.multi-step-item:last-child .item-wrap {
  width: 98%;
  border-radius: 0.2em;
}
.multi-step-item:first-child .item-wrap:before,
.multi-step-item:first-child .item-wrap:after,
.multi-step-item:last-child .item-wrap:before,
.multi-step-item:last-child .item-wrap:after {
  width: 50%;
}

.multi-step-item:first-child .item-wrap {
  background: linear-gradient(to right, #ffffff 95%, transparent 5%);
}
.multi-step-item:first-child .item-wrap:before,
.multi-step-item:first-child .item-wrap:after {
  left: 50%;
}

.active.multi-step-item:first-child:hover .item-wrap {
  background: linear-gradient(to right, #d8f1ff 95%, transparent 5%);
}

.current.multi-step-item:first-child .item-wrap {
  background: linear-gradient(to right, #3e5fd6 95%, transparent 5%);
}

.current.statusok.multi-step-item:first-child .item-wrap {
  background: linear-gradient(to right, #3ed6b5 95%, transparent 5%);
  /* animation: statuscolor 1s; */
}

.multi-step-item:last-child .item-wrap {
  background: linear-gradient(to left, #ffffff 95%, transparent 5%);
}
.multi-step-item:last-child .item-wrap:before,
.multi-step-item:last-child .item-wrap:after {
  right: 50%;
}

.active.multi-step-item:last-child:hover .item-wrap {
  background: linear-gradient(to left, #d8f1ff 95%, transparent 5%);
}

.current.multi-step-item:last-child .item-wrap {
  background: linear-gradient(to left, #3e5fd6 95%, transparent 5%);
}

.current.statusok.multi-step-item:last-child .item-wrap {
  background: linear-gradient(to left, #3ed6b5 95%, transparent 5%);
  /* animation: statuscolor 0.5s; */
}

.checked .multi-step-item.completed:after {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  right: 0.5em;
  content: "✓";
  color: #26a25f;
}

.numbered .multi-step-item {
  counter-increment: step-counter;
}
.numbered .multi-step-item .item-wrap {
  padding-left: 5em;
}
.numbered .multi-step-item:before {
  content: counter(step-counter);
  position: absolute;
  top: 50%;
  left: 0.75em;
  transform: translateY(-50%);
  min-width: 1.65em;
  padding: 0.5em 1em;
  z-index: 2;
  font-size: 0.85em;
  background-color: #3855bd;
  color: #fff;
  font-weight: 600;
  text-align: center;
  border-radius: 0.2em;
}

.item-wrap .badge {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.error .item-wrap .badge {
  right: 2em;
}
.error .item-wrap .badge ~ .item-title,
.error .item-wrap .badge ~ .item-subtitle {
  padding-right: 3em;
}

.multi-step-loading {
  opacity: 0.75;
}

.current.multi-step-loading:before {
  border-color: #fff;
  border-top-color: transparent;
  opacity: 1;
}

.busy-css {
  z-index: 3;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -0.5em;
  margin-left: -0.5em;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  border: 0.25em solid #253c8e;
  border-top-color: transparent;
  animation: spin 1s infinite linear;
}

.multi-step-list .first {
  flex-basis: 70%;
  margin: 0 1rem 0 0;
  padding: 0;
}
.multi-step-list .second {
  flex-basis: 30%;
  margin: 0;
  padding: 0;
}

.statusok::before {
  content: "";
  width: 13px;
  height: 25px;
  position: absolute;
  /* left: 12px;
  top: 50%; */
  right: 6.1rem;
  top: 70%;
  margin-top: -17px;
  box-sizing: border-box;
  border-right: #fff 5px solid;
  border-bottom: #fff 5px solid;
  transform: rotate(45deg);
  z-index: 2;
  transition: 0.5s;
}
.statusok::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: absolute;
  right: 5rem;
  top: 62%;
  margin-top: -15px;
  box-sizing: border-box;
  background: #d6b53e;
  z-index: 1;
  transition: 0.5s;
}

/* 背景色を変化させるキーフレーム */
@keyframes statuscolor {
  0% {
    background: #3e5fd6;
  }
  100% {
    background: #3ed6b5;
  }
}
.statusok {
  animation-name: fadeInAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
