.cp_h1title {
position: relative;
color: #f8f8f8;
background: #fa7d7a;
text-align: center;
width: fit-content;
margin: auto;
padding: 0px 10px;
box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.3),
0 0px 0px 0px rgba(0, 0, 0, 0.7)inset;
}
.cp_h1title::before,
.cp_h1title::after {/*外側のリボン*/
position: absolute;
content: '';
bottom: -6px;
background: #fa7d7a;
width: 40px;
height: 40px;
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 30% 50%);
z-index: -2;
}
.cp_h1title::before {
left: -32px;
transform: rotate(-4deg);
}
.cp_h1title::after {
right: -32px;
transform: rotate(4deg) scale(-1, 1);/*角度をつけて左右反転*/
}
.cp_h1title span::before,
.cp_h1title span::after {/*リボンの折り返しの影*/
position: absolute;
content: '';
top: 100%;
background: #f0470c;
width: 10px;
height: 5px;
clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
z-index: -1;
}
.cp_h1title span::before {
left: 0;
}
.cp_h1title span::after {
right: 0;
transform: scale(-1, 1);/*左右反転*/
}