.cast-unit {
  width: 46%;
  margin: 0 auto 2rem;
}

.cast-unit-sns {
  width: 23%;
  margin: 0 auto;
}

.cast-frame {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  margin: 0 auto 1rem;
}

.cast-frame:last-child {
  margin: 0;
}

.cast-year {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 45px;
  margin: 0 0 2rem;
  padding: 0 0 0 1.3em;
  font-size: var(--fs-heading-lg);
  font-weight: 600;
  background-repeat: no-repeat;
  background-position: center left;
  background-size: 5% auto;
  background-size: auto 80%;
  line-height: 1.8;
}

.third {
  color: #1e286e;
  border-bottom: #1e286e solid 2px;
  background-image: url(../img/cast/koushou-3.png);
}

.second {
  color: #045b06;
  border-bottom: #045b06 solid 2px;
  background-image: url(../img/cast/koushou-2.png);
}

.first {
  color: #9e1010;
  border-bottom: #9e1010 solid 2px;
  background-image: url(../img/cast/koushou-1.png);
}

.cast-cat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 0 2rem;
}

.cast-thumb img {
  border: #ccc solid 1px;
}

.cast-title {
  display: inline-block;
  width: auto;
  margin: 0 0 0.5rem 0;
  color: var(--color);
  font-size: var(--fs-lg);
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-ideograph;
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 100% 30%;
  line-height: 1.4;
}

.c-bg-1 {
  background-image: url(../img/cast/c-bg-1.png);
}

.c-bg-2 {
  background-image: url(../img/cast/c-bg-2.png);
}

.c-bg-3 {
  background-image: url(../img/cast/c-bg-3.png);
}

.c-bg-4 {
  background-image: url(../img/cast/c-bg-4.png);
}

.c-bg-5 {
  background-image: url(../img/cast/c-bg-5.png);
}

.c-bg-6 {
  background-image: url(../img/cast/c-bg-6.png);
}

.c-bg-6 {
  background-image: url(../img/cast/c-bg-6.png);
}

.c-bg-7 {
  background-image: url(../img/common/cat-bg.png);
}

.cast-name {
  font-size: var(--fs-heading);
}

.cast-ruby {
  font-size: var(--fs-category);
  margin: 0 0 0.5rem;
}

.cast-sns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 0.8rem;
}

.cast-sns a {
  display: block;
}

.cast-sns img {
  display: block;
}

.cast-detail p {
  font-size: var(--fs-category);
}

.direction {
  text-align: center;
  margin: 1.5rem 0 0;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .cast-unit {
    width: 70%;
    margin: 0 auto 1.5rem;
  }

  .cast-unit-sns {
    width: 46%;
  }

  .cast-frame {
    gap: 20px;
    margin: 0 auto 1rem;
  }

  .cast-year {
    height: 30px;
    margin: 0 0 1.5rem;
    padding: 0 0 0 1em;
  }

  .cast-cat {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 10px;
    margin: 0 0 1rem;
  }

  .cast-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .cast-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cast-sns {
    gap: 6px;
  }

  .direction {
    margin: 1rem 0 0;
  }
}

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

  .cast-year {
    height: 35px;
    font-size: var(--fs-heading-lg);
  }

  .cast-cat {
    gap: 15px;
  }

  .cast-thumb img {
    border: #ccc solid 1px;
  }

  .cast-title {
    font-size: var(--fs-lg);
  }

  .cast-name {
    font-size: var(--fs-heading);
  }

  .cast-ruby {
    font-size: var(--fs-category);
  }

  .cast-sns {
    gap: 8px;
  }

  .cast-detail p {
    font-size: var(--fs-category);
  }
}
