<div class="cp_card">
コンテンツ
<div class="cp_ribbon07">
<span>R<br />i<br />b<br />b<br />o<br />n</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_ribbon07 {
position: absolute;
top: -6px;
left: 25px;
width: 40px;
padding: 10px 0;
text-align: center;
border-top-left-radius: 3px;
color: #ffffff;
background: #FFC107;
}
.cp_ribbon07:before {
top: 0.1px;
right: -5.5px;
width: 0;
height: 0;
border-right: 6px solid transparent;
border-bottom: 6px solid #FF8F00;
}
.cp_ribbon07:before, .cp_ribbon07:after {
position: absolute;
content: '';
}
.cp_ribbon07:after {
bottom: -19.5px;
left: 0;
width: 0;
height: 0;
border-right: 20px solid #FFC107;
border-bottom: 20px solid transparent;
border-left: 20px solid #FFC107;
}