:root {
  --rect-width-pc: 700;
  --rect-height-pc: 408;
  --rect-width-sp: 375;
  --rect-height-sp: 220;
  --image-width-pc: 620;
  --image-height-pc: 348;
  --image-width-sp: 343;
  --image-height-sp: 193;
}

.section-gameplay {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* movie block */
.gameplay-movie-block {
  margin-top: clamp(40px, min(60px, calc(var(--aspect-base) * 60)), 60px);
  margin-bottom: 0; /* clamp(60px, min(120px, calc(var(--aspect-base) * 120)), 120px); /**/
}

.gameplay-movie-content {
  width: 100%;
  height: min(636px, calc(var(--aspect-base) * 636));
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  display: flex;
  justify-content: center;
  align-items: center;
}
.gameplay-movie-content:first-of-type {
  margin-top: 0;
}
.gameplay-movie-content {
  margin-top: 16px;
}

.gameplay-movie-wrapper {
  width: calc(var(--aspect-base) * var(--rect-width-pc));
  height: calc(var(--aspect-base) * var(--rect-height-pc));
  max-width: var(--rect-width-pc);
  max-height: var(--rect-height-pc);
  background-repeat: no-repeat;
  background-size: contain;

  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform: translateY(-80px);
}

.gameplay-movie-wrap {
  display: block;
  width: 100%;
  height: auto;
  z-index: 2;
}

.video-overlay-shape-right {
  width: calc(var(--aspect-base) * var(--image-width-pc)); /* clamp(var(--image-width-sp), calc(var(--aspect-base) * var(--image-width-pc)), var(--image-width-pc)); /**/
  height: calc(var(--aspect-base) * var(--image-height-pc)); /* clamp(var(--image-height-sp), calc(var(--aspect-base) * var(--image-height-pc)), var(--image-height-pc)); /**/
  max-width: var(--image-width-pc);
  max-height: var(--image-height-pc);
  position: absolute;
  bottom: 0;
  left: 58%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}
.video-overlay-shape-left {
  width: calc(var(--aspect-base) * var(--image-width-pc)); /* clamp(var(--image-width-sp), calc(var(--aspect-base) * var(--image-width-pc)), var(--image-width-pc)); /**/
  height: calc(var(--aspect-base) * var(--image-height-pc)); /* clamp(var(--image-height-sp), calc(var(--aspect-base) * var(--image-height-pc)), var(--image-height-pc)); /**/
  max-width: var(--image-width-pc);
  max-height: var(--image-height-pc);
  position: absolute;
  bottom: -3%;
  left: 42%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.gameplay-movie-wrap {
  width: calc(var(--aspect-base) * var(--image-width-pc)); /* clamp(var(--image-width-sp), calc(var(--aspect-base) * var(--image-width-pc)), var(--image-width-pc)); /**/
  height: calc(var(--aspect-base) * var(--image-height-pc)); /* clamp(var(--image-height-sp), calc(var(--aspect-base) * var(--image-height-pc)), var(--image-height-pc)); /**/
  max-width: var(--image-width-pc);
  max-height: var(--image-height-pc);
  /*
  min-width: var(--image-width-sp);
  min-height: var(--image-height-sp);
  */
  filter: drop-shadow(0px 4px 40px rgba(255, 255, 255, 0.15));
}

.gameplay-movie-youtube {
  width: calc(var(--aspect-base) * var(--image-width-pc)); /* clamp(var(--image-width-sp), calc(var(--aspect-base) * var(--image-width-pc)), var(--image-width-pc)); /**/
  height: calc(var(--aspect-base) * var(--image-height-pc)); /* clamp(var(--image-height-sp), calc(var(--aspect-base) * var(--image-height-pc)), var(--image-height-pc)); /**/
  max-width: var(--image-width-pc);
  max-height: var(--image-height-pc);
  /*
  min-width: var(--image-width-sp);
  min-height: var(--image-height-sp);
  */
}

.gameplay-overview {
  width: auto;
  max-width: 580px;
}
.wrapper-right {
  margin-left: clamp(16px, min(40px, calc(var(--aspect-base) * 40)), 40px);
}
.wrapper-left {
  margin-right: clamp(16px, min(40px, calc(var(--aspect-base) * 40)), 40px);
}

.gameplay-name {
  font-size: clamp(18px, min(32px, calc(var(--aspect-base) * 32)), 32px);
  line-height: clamp(27px, min(48px, calc(var(--aspect-base) * 48)), 48px);
  font-weight: bold;
  padding-top: clamp(24px, calc(var(--aspect-base) * 32), 32px);
}
.gameplay-description {
  margin-top: min(24px, calc(var(--aspect-base) * 24));
  font-size: clamp(14px, min(16px, calc(var(--aspect-base) * 16)), 16px);
  line-height: clamp(21px, min(27px, calc(var(--aspect-base) * 27)), 27px);
  padding-bottom: clamp(24px, calc(var(--aspect-base) * 32), 32px);
}

/* image block */
.gameplay-image-block {
  width: 100%;
  height: auto;
  overflow: visible;
  position: relative;
  margin-top: 44px;
}

.gameplay-image-background {
  width: 100%;
  height: auto;
  margin: 0;
  position: absolute;
  top: 0;
  z-index: -1;
}
.gameplay-image-background-wrapper {
  width: 100%;
  height: auto;
  position: relative;
}
.gameplay-image-background01 {
  height: auto;
  width: 100%;
  max-height: 772px;
  margin: 0;
}
.gameplay-image-background02 {
  height: auto;
  width: 100%;
  max-height: 773px;
  margin: 0;
}

.gameplay-image-content {
  width: 100%;
  min-height: 348px;
  height: auto;
  margin-bottom: 192px;
  display: flex;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 80% 100%;
}

.gameplay-bg01 {
  background-image: url("/images/gameplay-bg-stealth.png");
}

.gameplay-bg02 {
  background-image: url("/images/gameplay-bg-gimmick.png");
}

.gameplay-bg03 {
  background-image: url("/images/gameplay-bg-stage.png");
}

.gameplay-description-wrapper {
  margin: 32px auto;
  max-width: 1200px;
}

.gameplay-description-wrapper p {
  text-align: center;
}

.gameplay-image-block .gameplay-image-bottom-margin {
  margin-bottom: 64px !important;
}

@media only screen and (max-width: 960px) {
  .section-gameplay {
    margin-top: 64px;
  }

  .gameplay-description-wrapper {
    padding: 0 12px;
    margin: 32px auto;
  }

  .gameplay-description-wrapper p {
    text-align: left;
    font-size: 14px;
    line-height: 21px;
  }

  .gameplay-content {
    display: inline-block;
  }

  .gameplay-movie-content {
    width: 100%;
    height: auto;
    flex-direction: column;
    background-size: cover;
    padding: 60px 0;
  }
  .gameplay-movie-wrapper {
    flex-direction: column;
    --rect-width: clamp(330px, calc(100% - 32px), 620px);
    width: calc(var(--rect-width) + 32px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin: auto;
    background-size: cover;
  }
  .gameplay-movie-wrap {
    width: clamp(330px, calc(100% - 32px), 620px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 13px 16px;
  }

  .gameplay-overview {
    margin: 0;
  }
  .gameplay-overview p {
    display: flex;
    justify-content: center;
  }
  .content-left {
    display: flex;
    flex-direction: column-reverse;
  }
  .content-right {
    display: flex;
    flex-direction: column;
  }
  .gameplay-name {
    margin-top: 20px;
  }
  .gameplay-description {
    margin-top: 20px;
  }

  .gameplay-image-background {
    width: 100%;
    height: 100%;
  }
  .gameplay-image-background-wrapper {
    width: 100%;
    height: 100%;
  }

  .gameplay-image-background-wrapper img {
    height: 50%;
    aspect-ratio: 480 / 193;
    width: auto;
  }
  .gameplay-image-background01 {
    position: absolute;
    top: 0;
    left: -560px;
  }
  .gameplay-image-background02 {
    position: absolute;
    bottom: 0;
    right: -196px;
  }

  .gameplay-image-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    background: none;
    margin-bottom: 64px;
  }

  .gameplay-bg01 {
    background-image: url(/images/gameplay-bg-stealth-sp.png);
    background-size: auto calc(100% - 122px), auto calc(100% - 122px), 100% calc(100% - 122px), auto calc(100% - 122px);
  }

  .gameplay-bg02 {
    background-image: url(/images/gameplay-bg-gimmick-sp.png);
    background-size: auto calc(100% - 122px), auto calc(100% - 122px), 100% calc(100% - 122px), auto calc(100% - 122px);
  }

  .gameplay-bg03 {
    background-image: url(/images/gameplay-bg-stage-sp.png);
    background-size: auto calc(100% - 122px), auto calc(100% - 122px), 100% calc(100% - 122px), auto calc(100% - 122px);
  }

  .content-left,
  .content-right {
    flex-direction: column !important;
  }

  .gameplay-overview {
    order: 1;
    max-width: none;
    padding: 0 12px 12px;
  }

  .gameplay-overview p {
    display: block;
    text-align: left;
  }

  .gameplay-movie-wrapper {
    order: 2;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    background-size: cover;
  }
  .gameplay-movie-wrap {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    aspect-ratio: 16 / 9;
    display: block;
    filter: drop-shadow(0px 4px 40px rgba(255, 255, 255, 0.15));
  }

  .gameplay-movie-wrapper {
    position: relative;
    overflow: visible;
    width: clamp(280px, 85%, 560px);
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 0 auto 24px;
    transform: none;
  }

  .gameplay-movie-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
  }

  .video-overlay-shape-right {
    display: block;
    position: absolute;
    z-index: 1;
    left: 60%;
    transform: translateX(-50%);
    width: 92%;
    height: auto;
    bottom: -8%;
    pointer-events: none;
  }
  .video-overlay-shape-left {
    display: block;
    position: absolute;
    z-index: 1;
    left: 40%;
    transform: translateX(-50%);
    width: 92%;
    height: auto;
    bottom: -10%;
    pointer-events: none;
  }
}
