<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>h2{
  width: 300px;
  height: 50px;
  line-height: 50px;
  padding: 0.5em;
  margin: 10px;
  color: #494949;
}

.midashi {
  position: relative;
  background-color: #e6f;
}
.midashi span {
  display: block;
  padding: .75em 1em;
  border: 1px dashed #FFF;
}
.midashi:before,
.midashi:after {
  content: '';
  position: absolute;
  border-style: solid;
  border-color: transparent;
}
.midashi:before {
  top: 100%;
  left: 0;
  border-width: 0 15px 15px 0;
  border-right-color: #fcf;
}
.midashi:after {
  top: -15px;
  right: 0;
  border-style: solid;
  border-width: 0 15px 15px 0;
  border-bottom-color: #fcf;
}</style>
</head>
<body>
<h2 class="midashi">リボン風の見出し</h2>
<script>
</script>
</body>
</html>
h2{
  width: 300px;
  height: 50px;
  line-height: 50px;
  padding: 0.5em;
  margin: 10px;
  color: #494949;
}

.midashi {
  position: relative;
  background-color: #e6f;
}
.midashi span {
  display: block;
  padding: .75em 1em;
  border: 1px dashed #FFF;
}
.midashi:before,
.midashi:after {
  content: '';
  position: absolute;
  border-style: solid;
  border-color: transparent;
}
.midashi:before {
  top: 100%;
  left: 0;
  border-width: 0 15px 15px 0;
  border-right-color: #fcf;
}
.midashi:after {
  top: -15px;
  right: 0;
  border-style: solid;
  border-width: 0 15px 15px 0;
  border-bottom-color: #fcf;
}