<h1 class="cp_headline11"><span class="main">見出しテキスト</span><span class="sub">サブテキスト</span></h1>
.cp_headline11 {
position: relative;
padding: 0.3em 0em;
border-width: 0 0 1px 0;
border-style: solid;
border-color: #303f9f;
}
.cp_headline11 span.main {
position: relative;
padding: 0.3em 0.3em 0.3em 0.5em;
color: #f8f8f8;
background-color: #303f9f;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.cp_headline11 span.main::after {
position: absolute;
top: 0;
right: -0.45em;
display: inline-block;
width: 0;
height: 0;
content: '';
border-width: 0.5em 0.5em 0 0;
border-style: solid;
border-color: #303f9f transparent transparent transparent;
}
.cp_headline11 span.sub {
font-size: 0.7em;
position: absolute;
right: 0;
display: inline-block;
color: #424242;
}
@media screen and (max-width: 480px) {
.cp_headline11 span.main {
font-size: 0.8em;
padding: 0.3em 0.3em 0.5em 0.5em;
}
.cp_headline11 span.sub{
font-size: 0.5em;
}
}