<h1 class="cp_h1title"><span>見出しテキスト</span></h1>
.cp_h1title {
position: relative;
color: #424242;
background-color: #ffffff;/*背景色と合わせる*/
background-image:
linear-gradient(-45deg,#9e9e9e 25%, transparent 25%,transparent 50%, #9e9e9e 50%,#9e9e9e 75%, transparent 75%,transparent);
background-size: 10px 10px;
height: 0.5em;
}
.cp_h1title span {
position: absolute;
display: inline-block;
margin-top: -0.5em;
margin-left: 0.8em;
background: #ffffff;/*背景色と合わせる*/
padding: 0 10px;
}