- タブ1
- タブ2
- タブ3
/*————————————–
タブ切り替え
————————————–*/
.tab-wrap{
margin-bottom: 40px;
}
.tab-group{
display: flex;
justify-content: center;
flex-wrap: wrap;
align-items: flex-end;
}
/*タブボタン*/
.tab{
flex-grow: 1;
background: #FFF; /*タブのの背景色*/
border:1px solid #a61919; /*枠線の太さ 線種 色*/
color: #000; /*文字の色*/
cursor: pointer;
display: inline-block;
font-size: 13px; /*文字サイズ*/
font-weight: bold; /*太字*/
margin: 0 5px 15px;
padding: 3px 8px;
text-align: center;
transition: 1s;
vertical-align: bottom;
}
/* ボタン クリック(選択時)*/
.tab.is-active{
color:#FFF; /*文字の色*/
transition: 1s;
background:#a61919; /*背景色*/
position:relative;
}
.tab.is-active:after{ /*三角部分*/
content: “”;
position: absolute;
bottom: -24px;
left: 50%;
margin-left: -15px;
border: 12px solid transparent;
border-top: 12px solid #a61919;
}
/*コンテンツ表示部分*/
.panel-group{
min-height:100px;
margin-top:15px;
border-top: 5px solid #a61919;
border-bottom: 5px solid #a61919;
padding: 10px;
}
.panel{
display:none;
}
.panel.is-show{
display:block;
}