/* Section: Case */
.case-studies {
  padding: 24px 0 0;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: auto;
}

.case-studies-list {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.case-studies-list li {
  background: #fff;
  border: 1px solid #E3E3E3;
  overflow: hidden;
}

.case-studies-item-img-wrapper {
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 191;
}

.case-studies-item-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  transition-timing-function: cubic-bezier(0.33,1,0.68,1);
}

.case-studies-list li article {
  width: 100%;
  height: 100%;
}

.case-studies-list li a {
  display: block;
  width: 100%;
  height: 100%;
  padding-bottom: 32px;
}

.case-studies-list li a:hover {
  opacity: 1;
}

.case-studies-list li a:hover .case-studies-item-img {
  transform: scale(1.06);

}

.case-studies-list li a .case-studies-item-texts {
  padding: 20px 20px 30px;
  min-height: 180px;
}

.case-studies-list li h3 {
  color: #2b2d42;
  font-size: var(--fz18);
  font-weight: 700;
  line-height: 1.5;
}

.case-studies-list li p {
  margin-top: 12px;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-studies-item-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #2B2D42;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  bottom: 16px;
}

.case-studies-item-arrow-inner {
  width: 12px;
  height: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.case-studies-item-arrow-inner::before,
.case-studies-item-arrow-inner::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  background-image: url('/web3/assets/img/top/arrow_white.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.case-studies-item-arrow-inner::before {
  transition: transform 0.4s;
  transition-timing-function: cubic-bezier(0.65,0,0.35,1);
}

.case-studies-list li a:hover .case-studies-item-arrow-inner::before {
  transform: translateX(50px);
}

.case-studies-item-arrow-inner::after {
  transition: transform 0.4s;
  transition-timing-function: cubic-bezier(0.65,0,0.35,1);
  transform: translateX(-100px);
}
.case-studies-list li a:hover .case-studies-item-arrow-inner::after{
  transition: transform 0.4s;
  transform: translateX(0px);
}

.btn-general {
  margin: 64px auto 0;
}

@media (min-width: 768px) {
  .case-studies {
    padding: 64px 0 0;
    width: calc(100% - 92px);
    max-width: 1200px;
    margin: auto;
  }
  
  .case-studies-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0;
    max-width: 100%;
    gap: clamp(40px, 5.8vw, 90px);
  }

  .btn-general {
    margin-top: 96px;
  }
}

@media (min-width:992px) {
  .case-studies-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/***************************************
バナー
***************************************/
.banner {
  padding: 80px 0 0;
  position: relative;
}

.banner a {
  display: block;
  width: calc(100% - 40px);
  max-width: 400px;
  aspect-ratio: 335 / 209;
  height: auto;
  margin: auto;
  background: linear-gradient(94deg, #F5F7FA -1.06%, #DFE4EC 100%);
  position: relative;
  border-radius: 3px;
}

.banner a p {
  width: fit-content;
  font-size: clamp(var(--fz20), 4vw, var(--fz28));
  position: absolute;
  bottom: 7%;
  left: 5.37%;
}

.banner a::before {
  content: '';
  display: block;
  width: 65%;
  height: auto;
  aspect-ratio: 784 / 478;
  position: absolute;
  top: -4%;
  right: 0;
  background-image: url(../img/img_banner_wallet_service.webp);
  background-repeat: no-repeat;
  background-size: contain;
}

.banner a::after {
  content: '';
  display: block;
  width: 10.75%;
  height: auto;
  aspect-ratio: 1 / 1;
  position: absolute;
  right: 6%;
  bottom: 30px;
  background-image: url(../img/arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

@media (min-width:992px) {
  .banner {
    padding: 120px 0 0;
    position: relative;
  }

  .banner a {
    width: 880px;
    max-width: unset;
    aspect-ratio: 880 / 235;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 56px;
    overflow: hidden;
    border-radius: 5px;
  }

  .banner a p {
    width: fit-content;
    font-size: var(--fz24);
    position: relative;
    z-index: 1;
    left: unset;
    bottom: unset;
  }

  .banner a::before {
    content: '';
    display: block;
    width: 43%;
    height: auto;
    aspect-ratio: 784 / 478;
    position: absolute;
    top: unset;
    bottom: 0;
    right: -66px;
  }

  .banner a::after {
    width: 36px;
    position: static;
  }
}