<button class="cp_button02">button</button>
.cp_button02 {
display: flex;
justify-content: center;
align-items: center;
width: 160px;
padding: 1em;
cursor: pointer;
color: #ec407a;
background: transparent;
border: none;
border-radius: 12% / 50%;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease-in-out;
}
/*hover時の設定*/
.cp_button02:hover {
color: #ec407a;
box-shadow: 0 1px 6px 1px rgba(0, 0, 0, 0.2);
transform: scale(1.02);
}
/*active時の設定*/
.cp_button02:active {
box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.15) inset;
transition-duration: 0.05s;
transform: scale(0.99);
}
/*focus時の設定*/
.cp_button02:focus,
.cp_button02:focus:hover {
color: #ec407a;
}