.back {
  position: absolute;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}
.top1 {
  top: 70%;
  left: 0;
  z-index: 2; 
  height: auto;
}
.top2 {
  top: 0;
  left: 0;
  z-index: 2; 
  height: auto;
}
.top3 {
  top: 0;
  left: 0;
  z-index: 2; 
  height: auto;
}
.cover {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../reimages/culture.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5; 
  z-index: -1; 
}

.cover h1{
  padding-top: 400px;
  padding-bottom: 300px;
}
.culture {
  background-color: #e1f2f7;
  position: relative;
  z-index: 0; 
  margin-top: -1px;
  padding: 20px 0; 
}
.number{
  margin-top: 150px;
}
.number h2{
  padding-bottom: 100px;
}
h2 {
  text-align: center;
}
.center{
  text-align: center;
  margin: 0 auto;
}
h5 {
  text-align: center;
  font-size: 20px;
}
.founding,
.benefit {
  text-align: center;
  background-color: white;
  margin-left: 20%;
  margin-right: 20%;
  gap: 10px;
  position: relative;
  z-index: 10;
}

.benefit2 {
  margin-top: 10px;
}
.welfare,
.office {
  margin-top: 150px;
  position: relative;
}
.office h2{
  margin-bottom: 100px;
}
.welfare h2{
  padding-bottom: 100px;
}
.office-image {
  display: flex;
  justify-content: center;
  gap: 10px; 
}
.benefit{
  margin-bottom: 50px;
}
.cover2{
  background-image:url(../reimages/culture_embellishments_04.png);
  background-size: 20% auto;
  background-position: center; 
  background-repeat: no-repeat; 
}
.cover3{
  background-image:url(../reimages/culture_embellishments_05.png);
  background-size: 20% auto;
  background-position: center; 
  background-repeat: no-repeat; 
}
.benefit1{
  padding-top: 25px;
  padding-bottom: 25px;
  color: #fff;
}
.drink{
  padding-top: 15px;
}
.bene-txt{
  padding: 25px;
}
.office-image{
  position: relative;
  z-index: 5;
}

.office-image img{
  width: 40%;
  height: auto;
}
.benefit-image{
  display: flex;
  justify-content: center;
  gap: 5%;
  padding-bottom: 15px;
}

.benefit-image img{
  width: 45%;
}
.number h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
}

.JSP-number{
  margin: 0 auto;
}

.number-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.number-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* サイズ指定 */
.card-1 {
  width: 750px;
  margin: 0 auto;
}

.card-2a {
  width: 250px;
}

.card-2b {
  width: 400px;
}

.card-2c {
  width: 325px;
}

.card-2d {
  width: 400px;
}

.card-2e{
  width: 250px;
}

.card-second{
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 25px;
  margin-bottom: 25px;
}
/* レスポンシブ対応（任意） */
@media (max-width: 768px) {
  .number-card {
    flex-direction: column;
    align-items: flex-start;
    width: 90% !important;
    margin: 0;
  }
}
.carousel {
  width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: visible; /* 画像の外にボタンをはみ出させるため */
  z-index: 10;
}

.carousel-wrapper {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  /* clone含めた幅はJSで調整 */
}

.carousel-track img {
  width: 500px;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent; /* 背景透明に */
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  color: #333; /* 矢印の色。好みで変更可 */
}



.carousel-btn.prev {
  left: -45px;  /* 左に画像外へ */
}

.carousel-btn.next {
  right: -45px; /* 右に画像外へ */
}

.carousel-indicators {
  text-align: center;
  margin-top: 10px;
}

.carousel-indicators .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  border: none;
  cursor: pointer;
}

.carousel-indicators .dot.active {
  background: #333;
}


/* モバイル: 1列 */
@media (max-width: 767px) {
  .JSP-number {
    grid-template-columns: 1fr;
  }
}

/* タブレット: 2列 */
@media (min-width: 768px) and (max-width: 1023px) {
  .JSP-number {
    grid-template-columns: repeat(2, 1fr);
  }
}



@media screen and (max-width: 765px) {
  .cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../reimages/culture.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5; 
    z-index: -1; 
  }
 .back {
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
  }
  
  .top1 {
    top: 50%;
    left: 0;
    z-index: 2; 
    height: auto;
  }
  .top2 {
    top: 0;
    left: 0;
    z-index: 2; 
    height: auto;
  }
  .top3 {
    top: 0;
    left: 0;
    z-index: 2; 
    height: auto;
  }
  .cover h1{
    padding-top: 150px;
    padding-bottom: 100px;
  }
  .culture {
    background-color: #e1f2f7;
    position: relative;
    z-index: 0; 
    margin-top: -1px;
    padding: 20px 0; 
  }
  .number{
    margin-top: 150px;
  }
  .number h2{
    padding-bottom: 100px;
  }
  h2 {
    text-align: center;
  }
  
  h5 {
    text-align: center;
    font-size: 15px;
  }
  .card-second{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
  }
  .founding,
  .benefit {
    text-align: center;
    background-color: white;
    margin: 10%;
    gap: 10px;
  }
  .JSP-number{
    margin: 0 5%;
  }
  .benefit2 {
    margin-top: 10px;
  }
  .welfare,
  .office {
    margin-top: 150px;
    position: relative;
  }
  .office h2{
    margin-bottom: 100px;
  }
  .welfare h2{
    padding-bottom: 100px;
    position: relative;
    z-index: 7;
  }
  .office-image {
    display: flex;
    justify-content: center;
    gap: 10px; 
  }
  .benefit{
    margin-bottom: 50px;
  }
  .cover2{
    background-image:url(../reimages/culture_embellishments_04.png);
    background-size: 80% auto;
    background-position: center; 
    background-repeat: no-repeat; 
  }
  .cover3{
    background-image:url(../reimages/culture_embellishments_05.png);
    background-size: 80% auto;
    background-position: center; 
    background-repeat: no-repeat; 
  }
  .benefit1{
    padding-top: 25px;
    padding-bottom: 25px;
    color: #fff;
  }
  .drink{
    padding-top: 15px;
  }
  .bene-txt{
    padding: 20px;
    font-size: 10px;
  }
  .carousel {
    width: 300px;
    margin: 0 auto;
    position: relative;
    overflow: visible; /* 画像の外にボタンをはみ出させるため */
  }
  .carousel-track img {
    width: 300px;
    flex-shrink: 0;
  }
}
