/* Swiperコンテナのスタイル */
.swiper-container {
    max-width: 100%;
    margin: 0 auto;
    max-height: calc(100vh - 140px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.swiper-slide:nth-child(1) {
    background-color: #2c3e50;
}

.swiper-slide:nth-child(2) {
    background-color: #596275;
}

.swiper-slide:nth-child(3) {
    background-color: #333333;
}

.swiper-slide:nth-child(4) {
    background-color: #7f8c8d;
}

.swiper-slide:nth-child(5) {
    background-color: #57606f;
}

.single-slide .swiper-controls-wrapper {
    display: none;
}

/* コントロール全体を囲むラッパー */
.swiper-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 16px auto 0px;
}

/* 再生/停止ボタンとページネーションの間の余白を詰める */
.autoplay-controls {
    margin-right: 0.75rem;
}

/* 左右のナビゲーションボタンと中央のコントロール群との間に余白を設ける */
.swiper-button-prev {
    margin-right: 1.5rem;
    transform: rotate(180deg);
}

.swiper-button-next {
    margin-left: 1.5rem;
}

/* 再生/停止ボタンのスタイル */
.autoplay-controls button {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.autoplay-controls button img {
    width: 100%;
    height: 100%;
    display: block;
}

#play-button,
#stop-button {
    background-color: transparent;
    box-shadow: none;
}

#play-button:hover,
#stop-button:hover {
    background-color: transparent;
    opacity: 0.8;
}

/* Swiperのナビゲーションボタン */
.swiper-button-prev,
.swiper-button-next {
    position: static;
    width: 30px;
    height: 30px;
    margin-top: 0;
    margin-bottom: 0;
    background-color: white;
    background-image: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 1px #333;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
    margin-right: 3px;
}

/* Swiperのページネーション */
.swiper-pagination {
    position: static;
    width: auto !important;
    display: flex;
}

/* ページネーション（リング）のコンテナ */
.swiper-pagination-bullet {
    width: 30px;
    height: 30px;
    background: transparent;
    opacity: 1;
}

/* リング（SVG）のスタイル */
.swiper-pagination-progress-svg {
    width: 100%;
    height: 100%;
}

.swiper-pagination-progress-bg,
.swiper-pagination-progress-fg {
    fill: none;
    stroke-width: 3px;
}

/* リングの背景 */
.swiper-pagination-progress-bg {
    stroke: #bbbbbb;
}

/* 再生時間を表示するリング（前景） */
.swiper-pagination-progress-fg {
    stroke: #FFF;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

svg.swiper-navigation-icon {
    display: none;
}

.swiper-pagination-bullet-active .swiper-pagination-progress-bg {
    stroke: #c84c54;
}