<div class="heading-03">
<h3 class="heading-03__text">見出し03</h3>
<p class="heading-03__lead">テキストが入ります。テキストが入ります。テキストが入ります。テキストが入ります。テキストが入ります。テキストが入ります。テキストが入ります。</p>
</div>
.heading-03
h3.heading-03__text #{ text }
p.heading-03__lead #{ lead }
{
"text": "見出し03",
"lead": "テキストが入ります。テキストが入ります。テキストが入ります。テキストが入ります。テキストが入ります。テキストが入ります。テキストが入ります。"
}
$BLOCK_NAME: '.heading-03';
// 変数
$color_black: #3f3f3f;
$color_border: #d7d7d7;
#{ $BLOCK_NAME } {
font-family: YuGothic, 游ゴシック, 'ヒラギノ角ゴ Pro W3',
'Hiragino Kaku Gothic ProN', メイリオ, Meiryo, 'MS Pゴシック', sans-serif;
color: $color_black;
@include Mq(md) {
display: flex;
align-items: center;
}
&__text {
font-family: 'Kosugi Maru', sans-serif;
font-size: 26px;
line-height: 1;
text-align: center;
letter-spacing: 1px;
@include Mq(md) {
flex-shrink: 0;
font-size: 45px;
letter-spacing: 0.12em;
}
}
&__lead {
position: relative;
margin-top: 56px;
&::before {
position: absolute;
top: (-56px / 2 - 2px);
right: 0;
left: 0;
display: block;
width: 36px;
height: 4px;
margin: auto;
content: '';
background: $color_border;
border-radius: 2px;
}
@include Mq(md) {
margin-top: 0;
margin-left: 134px;
&::before {
top: 6px;
right: auto;
bottom: 6px;
left: (-134px / 2);
display: block;
width: 3px;
height: auto;
background: $color_border;
border-radius: 2px;
}
}
}
}