<div class="cp_card">
コンテンツ
<div class="cp_ribbon09">
<span>Ribbon</span>
</div>
</div>
.cp_card {
width: 320px;
height: 340px;
position: relative;
background: #ffffff;
overflow: visible;
margin: 2em auto;
padding: 0.5em;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.cp_ribbon09 {
line-height: 3em;
position: absolute;
top: 15px;
right: -10px;
width: 150px;
height: 50px;
padding-left: 0.5em;
color: #ffffff;
background: #21759a;
}
.cp_ribbon09:before {
position: absolute;
top: -10px;
right: 0;
content: '';
border-top: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #14455b;
border-left: 5px solid #14455b;
}
.cp_ribbon09:after {
position: absolute;
top: 0;
left: -25px;
content: '';
border-top: 25px solid #21759a;
border-right: 0 solid #21759a;
border-bottom: 25px solid #21759a;
border-left: 25px solid transparent;
}