/* ========== Cast Single ========== */
.cast-single {
  background-color: var(--color-dark-2);
  padding: 80px 60px;
}

.cast-single__inner {
  max-width: 1500px;
  margin: 0 auto;
}

/* 名前 */
.cast-single__name-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.cast-single__name {
  font-family: "Noto Serif JP", serif;
  font-size: 75px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1;
}

.cast-single__name-en {
  font-family: "Noto Serif JP", serif;
  font-size: 39px;
  font-weight: 500;
  color: #C8C1B3;
}

/* 画像エリア：gallery-section__right のサイズ調整 */
.cast-single__photos.gallery-section__right {
  align-items: stretch;
}

.cast-single__photos .gallery-section__main-img {
  flex: 0 0 34%;
  aspect-ratio: 2 / 3;
  align-self: flex-start;
}

.cast-single__photos .gallery-section__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* サブ画像：4枚スナップスクロール */
.cast-single__grid {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 6px;
  padding-bottom: 20px;
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
}

.cast-single__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: unset;
  grid-auto-rows: auto;
  align-content: start;
  gap: 6px;
  scroll-snap-align: start;
}

/* ========== Profile ========== */
.cast-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 70px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.cast-profile__img {
  overflow: hidden;
}

.cast-profile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.cast-profile__info {
  background-color: var(--color-dark-2);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cast-profile__heading-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cast-profile__heading {
  font-family: "Noto Serif JP", serif;
  font-size: 60px;
  font-weight: 500;
  font-style: italic;
  color: #C8C1B3;
}

.cast-profile__heading span {
  font-family: "Noto Serif JP", serif;
  font-size: 30px;
  font-style: normal;
  color: #C8C1B3;
  margin-left: 8px;
}

.cast-profile__sns {
  display: flex;
  align-items: center;
}

.cast-profile__table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cast-profile__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 15px;
  border-bottom: 1px solid #BFBFBF;
  align-items: center;
}



.cast-profile__row dt {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  color: #FFFFFF;
}

.cast-profile__row dd {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  color: var(--color-white);
  line-height: 1.8;
}

/* ========== Mobile ========== */
@media (max-width: 1024px) {
  .cast-single {
    padding: 60px 24px;
  }
}

@media (max-width: 768px) {
  .cast-single__name {
    font-size: 42px;
  }

  .cast-single__name-en {
    font-size: 22px;
  }

  /* SP: 名前 → プロフィール → グリッド の順に並べる */
  .cast-single__inner {
    display: flex;
    flex-direction: column;
  }

  .cast-single__name-wrap {
    order: 1;
  }

  .cast-single__photos {
    order: 3;
  }

  .cast-profile {
    order: 2;
  }

  .cast-single__photos.gallery-section__right {
    flex-direction: column;
  }

  /* SP: グリッドを横1列スクロールに（cast-profile内に移動後も幅を合わせる） */
  .cast-single__grid {
    padding-bottom: 12px;
    width: 100%;
    min-width: 0;
  }

  .cast-single__slide {
    display: flex;
    grid-template-columns: unset;
    flex-direction: row;
    gap: 6px;
  }

  .cast-single__slide .gallery-section__item {
    flex: 0 0 140px;
    height: 180px;
    overflow: hidden;
  }

  .cast-single__slide .gallery-section__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    cursor: pointer;
  }

  .cast-profile {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .cast-single__grid {
    margin-top: 15px;
  }

  .cast-profile__img {
    aspect-ratio: 3 / 4;
  }

  .cast-profile__info {
    padding: 24px;
    gap: 16px;
  }

  .cast-profile__heading {
    font-size: 36px;
  }

  .cast-profile__heading span {
    font-size: 18px;
  }

  .cast-profile__row dt,
  .cast-profile__row dd {
    font-size: 14px;
  }
}