/* -------------------------------------------
ステップインジケーター
---------------------------------------------- */
/* --------------------------------

Basic Style

-------------------------------- */
.cd-multi-steps {
  width: 90%;
  max-width: 1140px;
  padding: 0.5em 1em;
  text-align: center;
}
.cd-multi-steps::after {
  clear: both;
  content: "";
  display: table;
}
.cd-multi-steps li {
  display: inline-block;
}

.cd-multi-steps li:last-of-type::after {
  /* hide separator after the last item */
  display: none;
}
.cd-multi-steps li > * {
  /* single step */
  display: inline-block;
  color: #aaa;
}
.cd-multi-steps li.sb-current > * {
  /* selected step */
  color: #335599;
}

/* --------------------------------

Multi steps indicator

-------------------------------- */

  .cd-multi-steps li {
    position: relative;
    float: none;
  }
  .cd-multi-steps li::after {
    /* this is the line connecting 2 adjacent items */
    position: absolute;
    content: '';
    height: 8px;
    background: #f1eae9;
    /* reset style */
    margin: 0;
  }
  .cd-multi-steps li.sb-visited::after {
    background-color: #e85548;
  }
    .cd-multi-steps li > * {
        color: #aaa;
    }
.cd-multi-steps li.sb-current > * {
    color: #333;
  }
.cd-multi-steps.text-bottom li {
    width: 22%; /* calc非対応環境向けフォールバック（5ステップ用） */
    width: calc((100% / 5) - 4px); /* 「5」＝総ステップ数 */
    text-align: center;
  }
  
.cd-multi-steps.text-bottom.four li {
    width: 22%; /* calc非対応環境向けフォールバック（4ステップ用） */
    width: calc((100% / 4) - 10px); /* 「4」＝総ステップ数 */
    text-align: center;
  }
  
.cd-multi-steps.text-bottom.three li {
    width: 27%; /* calc非対応環境向けフォールバック（3ステップ用） */
    width: calc((100% / 3) - 10px); /* 「3」＝総ステップ数 */
    text-align: center;
  }
  
.cd-multi-steps.text-bottom li::after {
    /* this is the line connecting 2 adjacent items */
    position: absolute;
    left: 50%;
    /* 40px is the <li> right margin value */
    width: calc(100% + 10px);
  }
.cd-multi-steps.text-bottom li > *::before {
    /* this is the spot indicator */
    content: '';
    position: absolute;
    z-index: 1;
    left: 50%;
    right: auto;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: #f1eae9;
  }
.cd-multi-steps.text-bottom li.sb-visited > *::before,
  .cd-multi-steps.text-bottom li.sb-current > *::before {
    background-color: #e85548;
  }
.no-touch .cd-multi-steps.text-bottom a:hover {
    color: #335599;
  }
.no-touch .cd-multi-steps.text-bottom a:hover::before {
    box-shadow: 0 0 0 3px rgba(150, 192, 61, 0.3);
  }

  .cd-multi-steps.text-bottom li::after {
    /* this is the line connecting 2 adjacent items */
    top: 3px;
  }
  .cd-multi-steps.text-bottom li > * {
    padding-top: 20px;
  }
  .cd-multi-steps.text-bottom li > *::before {
    /* this is the spot indicator */
    top: 0;
  }

    
     .cd-multi-steps li > em {
        font-style: normal;
        font-size: 14px;
        white-space: nowrap;
    }

@media (max-width: 768px) {
    .cd-multi-steps {
        width: 102%;
        padding: 0;
        margin-bottom: 20px;
     }
    .cd-multi-steps li > em {
        font-size: 12px;
        white-space: nowrap;
    }
    .cd-multi-steps li > em::before {
        text-indent: 0;
    }
    .cd-multi-steps.text-bottom li::after {
        /* this is the line connecting 2 adjacent items */
        position: absolute;
        left: 50%;
        /* 40px is the <li> right margin value */
     }
     .cd-multi-steps.text-bottom li {
    width: 22%; /* calc非対応環境向けフォールバック（5ステップ用） */
    width: calc((100% / 5) - 4px); /* 「5」＝総ステップ数 */
    text-align: center;
  }

}


/* --------------------------------

Add a counter to the multi-steps indicator

-------------------------------- */
.cd-multi-steps.count li {
  counter-increment: steps;
}

.cd-multi-steps.count li > *::before {
  content: counter(steps) " - ";
}


 .cd-multi-steps.text-bottom.count li > *::before {
    /* this is the spot indicator */
    content: counter(steps);
    height: 36px;
    width: 36px;
    line-height: 35px;
    font-size: 2rem;
    color: #aaa;
    font-weight: bold;
  }

  .cd-multi-steps.text-bottom.count li.sb-current em::before,
   .cd-multi-steps.text-bottom.count li.sb-visited em::before {
    color: #fff;
  }

  .cd-multi-steps.text-bottom.count li::after {
    top: 14px;
  }

  .cd-multi-steps.text-bottom.count li > * {
    padding-top: 40px;
  }
