<div>
  <a href="#" class="btn2">
    ボタンはこちら2
  </a>
</div>
.btn2 {
  display: inline-block;
  padding: 1em;
  text-decoration: none;
  background: #3F51B5;
  color: #FFF;
  border-bottom: solid 4px #25379B;
  border-radius: 3px;
  width: 200px;
  text-align: center;
}

.btn2:active {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
  border-bottom: none;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.