// =====================================================================================
//
// slide_02
//
// =====================================================================================
@use 'scss/global' as g;
// -------------------------------------------------------------------------------------
// 変数
// -------------------------------------------------------------------------------------
// 戻る/進むアイコン色
$color_icon: #000;
// -------------------------------------------------------------------------------------
// スライド全体枠
// -------------------------------------------------------------------------------------
.slide_02 {
@include g.holder();
position: relative;
}
// -------------------------------------------------------------------------------------
// スライド全体枠 > Swiperコンテナ
// -------------------------------------------------------------------------------------
.slide_02--container {
}
// -------------------------------------------------------------------------------------
// スライド全体枠 > Swiperコンテナ > Swiperラッパー
// -------------------------------------------------------------------------------------
.slide_02--wrapper {
}
// -------------------------------------------------------------------------------------
// スライド全体枠 > Swiperコンテナ > Swiperラッパー > スライド単体
// -------------------------------------------------------------------------------------
.slide_02--slide {
img {
display: block;
width: 100%;
}
}
// -------------------------------------------------------------------------------------
// スライド全体枠 > Swiperコンテナ > 戻る/進むボタン
// -------------------------------------------------------------------------------------
%slide_02--prev_btn {
position: absolute;
top: 50%;
z-index: 10;
width: 44px;
height: 44px;
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 24px;
opacity: 0.3;
transform: translateY(-50%);
&.swiper-button-disabled {
display: none;
}
}
// 戻る
.slide_02--prev_btn {
@extend %slide_02--prev_btn;
left: 0;
background-image: url('data:image/svg+xml;charset=UTF-8,');
}
// 進む
.slide_02--next_btn {
@extend %slide_02--prev_btn;
right: 0;
background-image: url('data:image/svg+xml;charset=UTF-8,');
}
// -------------------------------------------------------------------------------------
// スライド全体枠 > ページネーション
// -------------------------------------------------------------------------------------
.slide_02--pagination {
display: flex;
justify-content: center;
margin: 16px 0 0;
@include g.mq(pc) {
margin-top: 24px;
}
}
// -------------------------------------------------------------------------------------
// スライド全体枠 > ページネーション > ドット
// -------------------------------------------------------------------------------------
.slide_02--pagination_bullet {
display: block;
width: 12px;
height: 12px;
margin: 0 8px;
background-color: #ccc;
border-radius: 50% 50%;
&.swiper-pagination-bullet-active {
background-color: #000;
}
}