/* ==========================================================================
   cast.css
   出演者詳細ページ（cast）固有のレイアウトのみを定義する。
   見た目の部品（枠・見出し・ボタン等）は common.css の共通クラス(c-*)を使用し、
   ここでは配置・余白などページ固有の指定に留めること。
   ========================================================================== */

   img {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
   
.cast {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 64px 20px;
}

.cast__panel {
  width: 100%;
  max-width: 900px;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  grid-template-areas:
    "head    head"
    "photos  info"
    "comment comment"
    "thumbs  .";
  column-gap: 48px;
}

/* grid の 1fr トラックが画像の実サイズ分だけ広がってしまうのを防ぐ */
.cast__head,
.cast__photos,
.cast__info {
  min-width: 0;
  text-align: center;
}

.cast__head {
  grid-area: head;
  margin-bottom: 20px;
}

.cast__photos {
  grid-area: photos;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* .cast__photo {
  box-sizing: content-box;
  aspect-ratio: 1000 / 1470;
  max-width: 100%;
} */

.cast__photo .c-photo-frame__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cast__info {
  grid-area: info;
}

/* ②サムネイル一覧。今は1枚だが、今後は同じ .cast__thumb を右へ追加していく想定 */
.cast__thumbs {
  grid-area: thumbs;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* サムネイルは既定では .c-photo-frame の枠線・影を消しておき、
   選択中（aria-pressed="true"）のものだけ .c-photo-frame と同じ枠線・影を出す。
   ①の写真や .c-photo-frame 本来の見た目をそのまま使い回すことで、
   新しい白枠を追加するのではなく「デフォルトで付いている枠」を選択中のものにだけ付け替える */
.cast__thumb {
  width: 130px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-color: transparent;
  box-shadow: none;
}

/* サムネイルは元画像ごとに縦横比がバラバラ(全身写真は正方形寄り等)なため、
   ①と同じ縦横比に固定し object-fit: cover で中央トリミングする。
   これをしないと画像の比率違いでサムネイルごとに枠の高さ・余白が
   揃わなくなってしまう */
.cast__thumb .c-photo-frame__img {
  aspect-ratio: 3401 / 5000;
  object-fit: cover;
}

.cast__thumb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.cast__thumb[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* 見出しブロック */
.cast__divider {
  margin: 5px auto 40px;
}

/* 名前は .cast__list-wrap（生年月日などと同じ枠）の中に配置するため、
   親から継承する text-align: center を打ち消してリストの項目と左端を揃える */
.cast__name {
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.1em;
  text-align: left;
  margin-top: 10px;
}

.cast__name-en {
  margin: 0px 0 15px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  text-align: left;
}

/* プロフィールリストまわり（角飾りの位置基準にするため relative） */
.cast__list-wrap {
  position: relative;
  padding: 8px 16px 0;
}

/* 写真(①)が縦長になった分、右側のリストの行間を少し広げて全体の高さを増やす */
.cast__list-wrap .c-info-list__item {
  padding: 18px 0;
}

/* 趣味・特技のように内容が長く折り返しやすい行だけ、ラベルと値の間のgapを詰めて
   値側の折り返し幅を少しでも広げる（孤立行対策） */
.c-info-list__item--nogap {
  gap: 0;
}

/* 意気込み（①②の間で全幅の行として表示し、ラベルと本文を横並びにする） */
.cast__comment {
  grid-area: comment;
  min-width: 0;
  position: relative;
  margin-top: 60px;
  padding: 0 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  text-align: left;
}

.cast__comment-label {
  flex: 0 0 auto;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.cast__comment-text {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

/* ---------- 960px以下: 1カラムレイアウト ---------- */
@media (max-width: 960px) {
  .cast {
    padding: 40px 16px;
    gap: 55px;
  }

  .cast__panel {
    max-width: 400px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .cast__head {
    order: 1;
    margin-bottom: 0px;
  }

  .cast__photos {
    order: 2;
    margin: 0 auto;
  }

  /* SPでは大きい画像(①)のすぐ下に小さい画像(②)を並べる。
     固定px幅だと数が少ないうちは右側が余ってしまうため、
     3列グリッドで画面幅いっぱいに均等割りする
     （4枚目以降が増えたら自動で次の行へ折り返す） */
  .cast__thumbs {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .cast__info {
    order: 4;
    padding: 0 1rem;
    margin-top: 20px;
  }

  /* iPhone XRでは横並び、SEでは縦並びになるなど、幅によって折り返しが
     バラつかないよう、SP幅では常にラベル→本文の縦並びに固定する */
  .cast__comment {
    order: 5;
    margin-top: 80px;
    flex-direction: column;
    align-items: flex-start;
  }

  .c-heading {
    font-size: 1.5rem;
  }

  .c-divider {
    width: 160px;
  }

  .cast__list-wrap {
    margin-top: 28px;
  }

  .c-btn--back {
    width: 180px;
  }
  .cast__comment {
    padding: 0 0px 24px;
}
.cast__divider {
  margin: 0px auto 40px;
}
.cast__name {
    margin-top: 20px;
}
.cast__name-en{
    margin-top: 0px;
}

.cast__list-wrap {
  padding: 8px 0px 0;
}

.c-corner-dec--top {
    left: -20px;
}
.c-corner-dec--bottom
 {
    right: -20px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  text-align: center;
}
.site-links__item {
    width: 160px;
}

.cast__thumb {
  width: 100%;
}

.c-photo-smallframe{
  padding: 2px;
}

.site-footer {
    margin-top: 50px;
}
}

.snsList {
  list-style: none;
  margin: 0;
  padding: 0;
}

  .snsList li a {
    text-decoration: none;
    width: 150px;
    height: 150px;
    align-items: center;
    color: #fff;
    font-size: 40px;
}

.fa-brands, .fab, .fa {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.fa-x-twitter:before {
    content: "\e61b";
}

