<ul class="menu">
  <li class="menu_item"><a href="#">メニュー1</a></li>
  <li class="menu_item"><a href="#">メニュー2</a></li>
  <li class="menu_item"><a href="#">メニュー3</a></li>
</ul>
.menu{
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 80px;
  &_item{
    a{
      position: relative;
      display: block;
      padding: 0 1.5em;
      text-decoration: none;
      color: #333;
      font-size: 14px;
      transition: all .3s;
      &:after{
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        background: #333;
        width: 1px;
        height: 1em;
        transform: translateY(-50%);
      }
      &:hover{
        color: #357ecf;
      }
    }
    &:last-of-type{
      a{
        &:after{
          display: none;
        }
      }
    }
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.