.carousel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* PC・スマホ画像切替 */
.carousel__track .pc-only {
  display: flex;
}

.carousel__track .sp-only {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 5px 0 10px;
}

.carousel__dots {
  display: flex;
  gap: 10px;
}

.carousel__dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8c4d4;
  cursor: pointer;
}

.carousel__dot.is-active {
  background: #173f6b;
}

.carousel__toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  color: #173f6b;
  background: transparent;
  cursor: pointer;
}

.carousel__toggle svg {
  width: 18px;
  height: 18px;
}

.icon-pause {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: square;
}

.icon-play {
  display: none;
  fill: currentColor;
}

.carousel__toggle.is-paused .icon-pause {
  display: none;
}

.carousel__toggle.is-paused .icon-play {
  display: block;
   width: 22px;
  height: 22px;
}

/* 矢印ボタンのCSSを追加 */
.carousel__viewport {
  position: relative;
  overflow: hidden;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(23, 63, 107, 0.3);
  border-radius: 50%;
  color: #173f6b;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.carousel__prev {
  left: 10px;
}

.carousel__next {
  right: 10px;
}

.carousel__arrow:hover {
  background: #fff;
}

@media screen and (max-width: 767px) {
  .carousel__track .pc-only {
    display: none;
  }

  .carousel__track .sp-only {
    display: flex;
  }
}