.cast-frame {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 40px;
  width: 86%;
  margin: 0 auto;
}

.cast-image {
  border: var(--color) solid 1px;
}

.cast-name-frame {
  position: relative;
  width: 100%;
  border: var(--color) solid 1px;
  background-color: var(--bg-color);
}

.cast-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  margin: 0 auto;
  color: var(--color);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  line-height: 1;
}

.cast-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25em;
}

.cast-bottom .en {
  font-family: "Rye", serif;
  font-weight: 400;
  font-style: normal;
  color: var(--color);
  font-size: 18px;
}

.cast-sns {
  width: 35px;
  padding: 0.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cast-sns a,
.guest-sns a {
  display: block;
  line-height: 0;
}

.guest-frame {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 40px;
  width: 50%;
  margin: 0 auto;
}

.thumb img {
  border: var(--color) solid 1px;
}

.guest-name {
  position: relative;
  width: 100%;
  color: var(--color);
  font-size: 16px;
  font-weight: 600;
  margin-top: 0.3rem;
}

.guest-sns {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 8px;
}

.guest-sns img {
  width: 24px;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .cast-frame {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    width: 70%;
    margin: 0 auto;
  }

  .cast-item {
    width: 100%;
  }

  .cast-name {
    width: 100%;
    font-size: 4.615vw;
  }

  .cast-bottom {
    gap: 0.4rem;
    margin-top: 0.5em;
  }

  .cast-bottom .en {
    font-size: 3.077vw;
  }

  .cast-sns {
    width: 25px;
    padding:  0 0 0 3px;
  }

  .guest-frame {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 90%;
  }

  .thumb img {
    border: var(--color) solid 1px;
  }

  .guest-name {
    font-size: 3.59vw;
  }

  .guest-sns {
    gap: 5px;
  }

  .guest-sns img {
    width: 20px;
  }
}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .cast-frame {
    gap: 30px;
  }

  .cast-name {
    font-size: 2.93vw;
  }

  .cast-bottom .en {
    font-size: 1.95vw;
  }

  .guest-frame {
    width: 60%;
    gap: 40px;
  }

  .guest-name {
    font-size: 1.83vw;
  }
}
