<div class="btn_toggle_change"><a href="#"><i class="plus"></i><i class="arrow"></i></a></div>
/***************************************************************************
btn_toggle_change
****************************************************************************/
.btn_toggle_change a {
display: block;
color: #FFFFFF;
font-size: 14px;
line-height: 1;
font-weight: bold;
background-color: #0085B2;
border-radius: 20px;
cursor: pointer;
max-width: 240px;
margin: 0px auto 0px auto;
padding: 10px 0px 10px 0px;
position: relative;
margin-bottom: 20px;
transition: background-color 0.3s, opacity 0.3s !important;
}
.btn_toggle_change a:hover {
background-color: #003362;
opacity: 1 !important;
}
/*ボタン内文字変更*/
.btn_toggle_change a:before {
content: "さらに情報を表示する";
transition: opacity 0.2s !important;
}
.btn_toggle_change a:after {
content: "閉じる";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 100%;
opacity: 0;
transition: opacity 0.2s !important;
}
.btn_toggle_change a.active:before {
opacity: 0;
}
.btn_toggle_change a.active:after {
opacity: 1;
}
/*ボタン内 + 変更*/
.btn_toggle_change i.plus:after {
content: "+";
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
}
.btn_toggle_change a.active i.plus:after {
content: "-";
}
/*ボタン内 矢印 変更*/
.btn_toggle_change i.arrow {
display: flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
border-radius: 20px;
background-color: #FFFFFF;
transition: 0.2s;
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
}
.btn_toggle_change i.arrow:after {
content: "";
display: block;
width: 4px;
height: 4px;
border-top: 2px solid #0085B2;
border-right: 2px solid #0085B2;
transform: rotate(135deg);
margin-top: -2px;
}
.btn_toggle_change a:hover i.arrow:after {
border-top: 2px solid #003362;
border-right: 2px solid #003362;
}
.btn_toggle_change a.active i.arrow:after {
transform: rotate(-45deg);
margin-top: 2px;
}