.cast-inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cast-image {
  width: 38%;
  margin: 0 6%;
}

.cast-text {
  width: 34%;
}

.cast-name {
  width: 100%;
  margin: 0 0 2rem;
  padding: 0 0 0 1rem;
  font-size: 32px;
  background-image: url(../img/cast/yellow_blank.png);
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 100% 20px;
}

.cast-name span {
  font-size: 16px;
}

.cast-text p {
  font-size: 16px;
  line-height: 1.8;
}

.cast-sns {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.cast-sns-item {
  width: 3rem;
}

.cast-sns-item:not(:last-child) {
  margin: 0 1.8rem 0 0;
}

.guest-inner {
  width: 86%;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.guest-item {
  width: 22%;
  margin: 0 13% 4rem 0;
}

.guest-item:nth-child(3),
.guest-item:nth-child(6) {
  margin: 0 0 0 0;
}

.guest-item:nth-child(4),
.guest-item:nth-child(5) {
  width: 22%;
  margin: 0 13% 0 0;
}

.guest-name > .name {
  width: 80%;
  margin: 1rem auto;
  padding: 0 0 0.3em 0;
  font-size: 22px;
  text-align: center;
  background-image: url(../img/cast/yellow_blank.png);
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 100% 20px;
}

.guest-name > .affiliation {
  width: 100%;
  position: absolute;
  font-size: 12px;
  text-align: center;
  margin: 1rem auto;
  bottom: 2.7rem;
}

.guest-sns {
  display: flex;
  justify-content: center;
  align-items: center;
}

.guest-sns-item {
  width: 3rem;
  margin: 0 0.8rem;
}

@media screen and (min-width: 1px) and (max-width: 767px) {
  .cast-inner {
    display: block;
    margin: 2rem auto 0;
  }

  .cast-image {
    width: 80%;
    margin: 0 auto 2rem;
  }

  .cast-text {
    width: 100%;
  }

  .cast-name {
    font-size: 28px;
  }

  .cast-name span {
    font-size: 14px;
  }

  .cast-text p {
    font-size: 14px;
  }

  .cast-sns-item {
    width: 2.4rem;
  }

  .cast-sns-item:not(:last-child) {
    margin: 0 1.4rem 0 0;
  }

  .guest-inner {
    width: 100%;
    margin: 2rem auto 0;
  }

  .guest-item {
    width: 28%;
    margin: 0 6% 2.6rem 0;
  }

  .guest-item:nth-child(4),
  .guest-item:nth-child(5) {
    width: 28%;
    margin: 0 6% 0 0;
  }

  .guest-name > .name {
    width: 90%;
    margin: 1rem auto;
    padding: 0 0 0.4em 0;
    font-size: 14px;
    background-size: 100% 14px;
  }

  .guest-name > .affiliation {
    font-size: 10px;
    transform: scale(0.7); /* 6px 相当で表示 */
    bottom: 2.1rem;
  }

  .guest-sns-item {
    width: 2.4rem;
    margin: 0 1.4rem 0 0;
  }
}

@media screen and (min-width: 1px) and (max-width: 374px) {
  .guest-name > .name {
    font-size: 12px;
  }

  .guest-name > .affiliation {
    transform: scale(0.6); /* 6px 相当で表示 */
    width: 150%;
    margin-left: -5.6vw;
    bottom: 2rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .cast-text {
    width: 40%;
  }

  .cast-name {
    font-size: 28px;
  }

  .cast-name span {
    font-size: 14px;
  }

  .cast-text p {
    font-size: 14px;
  }

  .guest-name > .name {
    width: 90%;
    font-size: 16px;
  }

  .guest-name > .affiliation {
    transform: scale(0.8); /* 8px 相当で表示 */
    bottom: 2.6rem;
  }
}
