テキスト<a href="#" class="cp_textlink03">リンクテキスト-link text-</a>テキスト
.cp_block {
margin: 5em auto;
text-align: center;
}
.cp_textlink03 {
position: relative;
display: inline-block;
padding: 0.1em 0.3em;
text-decoration: none;
color: #009688;
}
.cp_textlink03::after,
.cp_textlink03::before {
position: absolute;
bottom: -2px;
left: 0;
width: 100%;
content: '';
transition: all 0.3s ease;
border-bottom: 2px solid #009688;
}
.cp_textlink03::before {
opacity: 0;
}
.cp_textlink03:hover:after {
bottom: 0;
left: 4px;
}
.cp_textlink03:hover:before {
bottom: -4px;
opacity: 1;
}