/* キャスト紹介。写真の比率は原画像を維持する。 */
.cast-member + .cast-member {
  margin-top: 90px;
}
.cast-member-lead + .cast-member,
.cast-member + .cast-group-start {
  margin-top: 140px;
}
.cast-member h3 {
  margin-bottom: 0;
}
.cast-member .eyebrow {
  margin-top: -2px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.cast-double {
  margin-top: 5px;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.7;
}
.cast-role {
  margin-top: 28px;
  color: #c6ad78;
  font-size: 21px;
  line-height: 1.7;
}
.cast-role-ja {
  font-size: 80%;
}
.cast-description {
  margin-top: 5px;
  font-size: 15px;
  line-height: 2;
}
/* 明るい面を左から右へ広げる。文字とボタン全体はフェードしない。 */
.cast-profile-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 160px;
  min-height: 42px;
  margin-top: 26px;
  padding: 6px 20px;
  border: 1px solid #52768b;
  border-radius: 22px;
  background-color: #142a3c;
  background-image:
    linear-gradient(135deg, #476f89, #2d4e69),
    linear-gradient(135deg, #243e53, #112536);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%, 100% 100%;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cast-profile-button:hover,
.cast-profile-button:focus-visible {
  background-size: 100% 100%, 100% 100%;
}
.cast-profile-arrow {
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}
.cast-profile {
  width: min(760px, calc(100% - 32px));
  max-height: 85dvh;
  margin: auto;
  padding: 36px 40px 30px;
  border: 1px solid #52768b;
  border-radius: 8px;
  background: linear-gradient(145deg, #142a3c, #0b1420);
  color: var(--text);
  text-align: left;
}
.cast-profile::backdrop {
  background: rgba(0, 5, 12, 0.8);
}
.cast-profile h2 {
  margin-bottom: 5px;
  padding-right: 28px;
  color: var(--silver);
  font-size: 26px;
  font-weight: 400;
}
.cast-profile p {
  font-size: 16px;
  line-height: 2;
}
.cast-profile-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--silver);
  font-size: 30px;
  cursor: pointer;
}
body:has(.cast-profile[open]) {
  overflow: hidden;
}
@media (max-width: 800px) {
  .cast-section {
    padding-block: 60px;
  }
  .cast-section .section-heading {
    margin-bottom: 32px;
  }
  .cast-member {
    gap: 12px;
  }
  .cast-member + .cast-member {
    margin-top: 55px;
  }
  .cast-member-lead + .cast-member,
  .cast-member + .cast-group-start {
    margin-top: 75px;
  }
  .cast-double {
    margin-top: 2px;
    font-size: 20px;
  }
  .cast-role {
    margin-top: 10px;
    font-size: 20px;
  }
  .cast-description {
    max-width: 400px;
    margin-inline: auto;
    margin-top: 0;
    line-height: 1.8;
  }
  .cast-profile-button {
    margin-top: 12px;
  }
  .cast-profile {
    padding: 34px 24px 24px;
  }
  .cast-profile p {
    font-size: 14px;
  }
}
