@charset "UTF-8";

/* ==========================================
   ギャラリーページ専用スタイル
   ========================================== */

/* 見出しのサブテキスト */
.gallery-sub {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  color: #d97706;
  font-weight: bold;
  margin-bottom: 5px;
}

/* 見出し全体の中央寄せと余白 */
.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

/* サブタイトル（黄色系） */
.talent-name-sub {
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffaf12; /* 好評配信中などと同じ鮮やかなアクセントカラー */
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: -30px;
}

/* フォトギャラリー タイトル */
.gallery-title {
  font-size: 28px;
  font-weight: 300;
  color: #333;
  margin: 0 0 15px 0;
}

/* ボタン化：プロフィール詳細に戻る */
.back-link {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  color: #666;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 30px; /* 角丸でボタンらしく */
  text-decoration: none !important;
  transition: all 0.3s ease;
}

/* ボタンのマウスオーバー時 */
.back-link:hover {
  color: #fff;
  background-color: #f39c12;
  border-color: #f39c12;
  transform: translateY(-2px); /* 少し浮き出るアニメーション */
}


/* プロフィール詳細に戻るボタン */
.back-link {
  display: inline-block;
  padding: 8px 32px;             /* 内側の余白を広げてボタン形状に */
  font-size: 13px;
  color: #333333;               /* 通常時の文字色 */
  background-color: #ffffff;     /* 背景色（白） */
  border: 1px solid #FFAF12;     /* ★枠線全体を黄色にする */
  border-radius: 30px;           /* 丸みをつけて綺麗なボタンに */
  text-decoration: none !important;
  transition: all 0.3s ease;
}

/* マウスホバー時 */
.back-link:hover {
  color: #ffffff !important;     /* ホバー時の文字色（白） */
  background-color: #FFAF12;     /* ホバー時は背景を黄色で塗りつぶし */
  border-color: #FFAF12;
  transform: translateY(-2px);   /* わずかに上に浮くアニメーション */
}

/* 画像グリッド（PC表示：5列並び） */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  width: 100%;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background-color: #e2e8f0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

/* 拡大モーダル */
/* 拡大モーダル全体 */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* モーダル表示時 */
.modal.show {
  display: block;
  opacity: 1;
}

/* 拡大画像（画面の上下左右ぴったり中央配置） */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  object-fit: contain;
  margin: 0; /* Bootstrapなどの標準マージン打ち消し */
}

/* 閉じるボタン（右上固定） */
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  user-select: none;
  z-index: 10001;
}

.modal-close:hover {
  color: #d97706;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}