
/* 画像使用したパターン1 */
.top-banner {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  background-image: url("/static/image/pattern/pink_gradation.png");
}


.hero-features li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.hero-features i {
  margin-right: 8px;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.project-carousel .carousel-control-prev-icon,
.project-carousel .carousel-control-next-icon {
  filter: invert(1); /* 白背景でも見えるように */
}

.carousel-indicators [data-bs-target] {
  background-color: #666;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* アクティブ時 */
.carousel-indicators .active{
  background-color: #0acdca;
}

.img-hover-wrapper {
  position: relative;
}

.img-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9rem;
}

.img-hover-wrapper:hover .img-hover-overlay {
  opacity: 1;
}


@media (min-width: 992px) {
  .project-card-horizontal .custom-carousel {
    min-height: 340px; /* 好みで 320-420px くらいで調整 */
  }
}

.project-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}


.project-card-vertical {
  border-radius: 20px;
  overflow: hidden;  
}


.project-carousel {
  aspect-ratio: 16/9;
}

.project-main-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.project-card-vertical .btn {
  border-radius: 50px;
}

.project-carousel .carousel-caption {
  background: rgba(21, 22, 22, 0.45);
  padding: 12px 20px;
  border-radius: 12px;
  bottom: 20px;
}

/* 対象スライドだけ暗くする */
.caption-dark {
  position: relative;
}

/* 画像の上、キャプションの下に敷く */
.caption-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
  to top,
  rgba(30,40,50,0.85) 0%,
  rgba(20,30,40,0.5) 25%,
  rgba(0,0,0,0) 50%
  );
}

/* キャプションを前面に */
.caption-dark .carousel-caption {
  z-index: 2;
  background: rgba(0, 0, 0, 0.6); 
}

.bg-purple {
  background-color: #6f42c1;
  color: #fff;
}


/* 最初の画像のみ枠をつける場合
.first-image img{
  border: 2px solid #0acdca;
  border-radius: 8px;
}
*/

.project-main-image {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.carousel-item.active .project-main-image {
  outline: 2px solid #0acdca;
  outline-offset: -2px;
}