.card1 {
  background-image: url("../images/index/about-card01.webp");
  transform: rotate(6.92deg);
}
.card2 {
  background-image: url("../images/index/about-card02.webp");
  transform: rotate(-6.03deg);
}
.card3 {
  background-image: url("../images/index/about-card03.webp");
  transform: rotate(1.97deg);
}

@media (min-width: 1025px) {
  .stack-area {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    padding-bottom: 10.884vw;
  }

  .stack-area .stack-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
  }

  .left {
    height: 100vh;
    flex-basis: 50%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;
  }

  .right {
    height: 100vh;
    flex-basis: 50%;
    position: relative;
  }

  .card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
  }

  .text {
    width: 28.571vw;
    font-family: poppins;
    font-size: 0.952vw;
    margin-top: 2.041vw;
  }

  .text p {
    margin-bottom: 1.088vw;
    font-size: 1.088vw;
    font-weight: 400;
    line-height: 2.3;
    letter-spacing: 0.05em;
    color: var(--Color_GrayScale-Black);
  }

  .card {
    width: 25.51vw;
    height: 33.878vw;
    margin-bottom: 0.68vw;
    position: absolute;
    top: calc(50% - 20.408vw);
    left: calc(50% - 12.755vw);
    box-shadow: 0 0.68vw 1.361vw rgba(0, 0, 0, 0.05);
    background-size: cover; /* 画像をカード全体に合わせてカバー */
    background-position: center; /* 画像の中央を表示 */
    background-repeat: no-repeat; /* 画像が繰り返されないように設定 */
  }

  /* Styling for the card content */
  .card {
    box-sizing: border-box;
    padding: 2.381vw;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
  .sub {
    font-family: poppins;
    font-size: 1.361vw;
    font-weight: 700;
  }
  .content {
    font-family: poppins;
    font-size: 2.993vw;
    font-weight: 700;
    line-height: 3.673vw;
  }
}

@media (max-width: 1024px) {
  .stack-area {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 10.884vw;
    width: 87.786vw;
    height: 560vh;
    margin: 20.356vw auto;
    gap: 16.285vw;
  }

  .stack-area .stack-content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
  }

  .left {
  }

  .right {
    height: 100vh;
    flex-basis: 50%;
    top: 0;
  }

  .card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
  }

  .text {
    width: 100%;
    font-size: 3.562vw;
    margin-top: 0;
  }

  .text p {
    margin-bottom: 4.071vw;
    font-size: 3.308vw;
    font-weight: 400;
    line-height: 2.3;
    letter-spacing: 0.03em;
    color: var(--Color_GrayScale-Black);
  }

  .text p:last-child {
    margin-bottom: 0;
  }

  /*Styling for the left elements content ends here...*/

  .card {
    width: 73.791vw;
    height: 98.473vw;
    margin: 30.025vw auto 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* Styling for the card content */
  .card {
    box-sizing: border-box;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
  .sub {
    font-family: poppins;
    font-size: 20px;
    font-weight: 700;
  }
  .content {
    font-family: poppins;
    font-size: 44px;
    font-weight: 700;
    line-height: 54px;
  }
}
