/* Lab08固有のスタイル */
.progress-steps-bar-container {
  width: 90vw;
  max-width: 800px;
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}
.progress-steps-bar {
  display: flex;
  gap: 6px;
  min-width: max-content;
  margin: 0 auto;
}
.progress-step {
  flex: 0 0 auto;
  min-width: 40px;
  height: 28px;
  border-radius: 8px;
  background: #bbb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 0.9em;
  transition: background 0.2s, color 0.2s, border 0.2s;
  opacity: 0.7;
  padding: 0 8px;
}

/* カルーセルスタイル */
.carousel-container {
  position: relative;
  width: 90vw;
  max-width: 600px;
  margin: 0 auto 24px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.carousel-wrapper {
  display: flex;
  width: 1200%; /* 12枚のスライド × 100% */
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 8.333333%; /* 100% / 12 */
  width: 8.333333%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  padding: 0;
}

.carousel-slide img {
  max-width: 540px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  object-fit: contain;
}

@media (max-width: 600px) {
  .carousel-container {
    width: 95vw;
    max-width: 95vw;
  }
  .carousel-slide img {
    max-width: 95vw;
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .carousel-container {
    width: 85vw;
    max-width: 400px;
  }
  .carousel-slide img {
    max-width: 400px;
    width: 100%;
  }
}

@media (min-width: 901px) {
  .carousel-container {
    width: 600px;
    max-width: 600px;
  }
  .carousel-slide img {
    max-width: 600px;
    width: 100%;
  }
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.problem-image {
  display: block;
  margin: 0 auto 0 auto;
  max-width: 540px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

