.format-bg {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.format-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../img/bg-r-bottom.png);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top left;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.format {
  position: relative;
  width: 100%;
  padding: 4rem 0;
}

.format-outer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 90%;
  margin: 4rem auto 0;
}

.format-item {
  position: relative;
  width: 46%;
  padding: 2.5rem;
  aspect-ratio: 1 / 1;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.format-h {
  width: 44%;
  margin: 0 0 2.5rem;
}

.format-b {
  position: absolute;
  top: -10%;
  right: -3%;
  width: 32%;
}

.format-txt {
  margin: 2rem 0 0;
}

.format-txt p {
  color: #fff;
  font-size: min(14px, 1vw);
  text-indent: -1em;
  padding-left: 1em;
}

.format-btn {
  width: 30%;
  margin: 4rem auto 0;
}

.format-btn img {
  width: 100%;
  filter: drop-shadow(4px 4px 0 #fccf00);
  transition: all 0.2s;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .format {
    padding: 2rem 0;
  }

  .format-outer {
    width: 100%;
    margin: 1.5rem auto 0;
  }

  .format-item {
    width: 100%;
    padding: 1.5rem;
    margin: 0 0 1rem;
    aspect-ratio: auto;
  }

  .format-item:last-child {
    width: 100%;
    padding: 1.5rem;
    margin: 0;
    aspect-ratio: auto;
  }

  .format-h {
    width: 50%;
    margin: 0 0 1.5rem;
  }

  .format-b {
    top: -8%;
  }

  .format-txt {
    margin: 1rem 0 0;
  }

  .format-txt p {
    font-size: 2.933vw;
    /* 11px -> 11 / 375 * 100 */
  }

  .format-btn {
    width: 60%;
    margin: 1rem auto 0;
  }

  .format-btn img {
    width: 100%;
  }
}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .format {
    padding: 2rem 0;
  }

  .format-outer {
    width: 100%;
    margin: 2rem auto 0;
  }

  .format-item {
    width: 48%;
    aspect-ratio: 1 / 1;
    padding: 1.5rem;
  }

  .format-h {
    width: 44%;
    margin: 0 0 1rem;
  }

  .format-b {
    top: -8%;
    right: -4%;
  }

  .format-txt {
    margin: 1rem 0 0;
  }

  .format-txt p {
    line-height: 1.4;
    font-size: 1.563vw;
  }

  .format-btn {
    width: 40%;
    margin: 2rem auto 0;
  }

}

@media screen and (min-width: 1025px) {
  .format-btn img:hover {
    transform: translate(4px, 4px);
    filter: drop-shadow(4px 4px 0 transparent);
  }
}