Parts
<div class="simpleButton">
<a href="#">詳細はこちら</a>
</div>
.simpleButton a {
color: #000;
display: inline-block;
line-height: 1.4;
position:relative;
background:rgba(0,0,0,.1);
padding:0.5em 3em 0.5em 1em;
transition: all 0.3s ease;
}
.simpleButton a::before {
content: "";
width:2em;
height:2em;
text-align:center;
padding:0.5em 0 0 0;
display:inline-block;
background:#FFF;
position:absolute;
top:50%;
right:0.2em;
margin-top:-1em;
transition: all 0.3s ease;
}
.simpleButton a::after {
content: "";
width: 0.5em;
height: 1em;
display:block;
background:url("/img/icon/angle-right.svg") no-repeat center center;
background-size:100% auto;
position:absolute;
top:50%;
right:0.9em;
margin-top:-0.5em;
transition: all 0.3s ease;
}
.simpleButton a:hover {
color:#000;
transform:translateX(0.3em);
}
.simpleButton a:hover::before {
opacity:0;
}
.simpleButton a {
color: #000;
display: inline-block;
line-height: 1.4;
position:relative;
background:rgba(#000,.1);
padding:0.5em 3em 0.5em 1em;
&::before {
content: "";
width:2em;
height:2em;
text-align:center;
padding:0.5em 0 0 0;
display:inline-block;
background:#FFF;
position:absolute;
top:50%;
right:0.2em;
margin-top:-1em;
transition: all 0.3s ease;
}
&::after {
content: "";
width: 0.5em;
height: 1em;
display:block;
background:url("/img/icon/angle-right.svg") no-repeat center center;
background-size:100% auto;
position:absolute;
top:50%;
right:0.9em;
margin-top:-0.5em;
transition: all 0.3s ease;
}
&:hover{
color:#000;
transform:translateX(0.3em);
&::before{
opacity:0;
}
}
}