#client-info-component {
  position: relative;
  width: 1000px;
  margin: 0px auto;
  height: 370px;
}

.carousel-cards {
  position: relative;
  width: 700px;
  height: 320px;
  perspective: 700px;
  align-items: center;
  margin: 0 auto;
}

.carousel-card {
  position: absolute;
  top: 0; 
  left: 0;
  width: 700px;
  height: 320px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(60,60,60,0.10);
  opacity: 0;
  transform: scale(0.9) translateX(0) translateY(40px) perspective(900px) rotateY(-20deg);
  transition: transform 0.6s, opacity 0.5s;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
}

.carousel-navs {
  width: 100%;
  height: 0;
}

.carousel-nav {
  display: none;
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  z-index: 10;
  justify-content: space-between;
  pointer-events: none;
}

.carousel-nav label {
  width: 48px; 
  height: 48px;
  background: #a8c5e8;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, transform 0.2s;
}

.carousel-nav label:hover {
  background: #a8c5e8;
  transform: scale(1.05);
}

.carousel-card-title {
  background: #a8c5e8;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 20px 0;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.client-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.client-info-item::before {
  content: "■";
  color: #fff;
  font-size: 0.8rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.client-info-item-text {
  flex: 1;
}

@media (max-width: 600px) {
  #client-info-component {
    width: 100%;
    height: auto;
    padding: 0 16px;
  }

  .carousel-cards {
    width: 100%;
    height: auto;
  }

  .carousel-card {
    position: relative;
    width: 100%;
    height: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 24px;
  }

  .carousel-navs,
  .carousel-nav {
    display: none !important;
  }

  .carousel-card-title {
    font-size: 1.2rem;
    padding: 12px;
  }

  .client-info-item {
    font-size: 0.95rem;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .client-info-item::before {
    margin-top: 6px;
  }
}

@media (max-width: 600px) {
  #client-info-component {
    width: 100%;
    padding: 0 ;
  }

      .client-info-wrapper {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding-bottom: 24px;
      -webkit-overflow-scrolling: touch;
      width: 100% !important; /* 幅を90%に設定 */
      height: auto !important; /* 高さを自動に */
          overflow-x: hidden;     /* 横スクロール防止 */
    }
    .container{
      width: 95vw;
    }


  .carousel-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    width: 90% !important;
    height: auto !important;
  }

  .carousel-card {
    flex: 0 0 90%;
    scroll-snap-align: center;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-bottom: 0;
    min-height: 270px;
  }

  .carousel-navs,
  .carousel-nav {
    display: none !important;
  }
}
