/* castpage.css - CAST一覧ページ専用スタイル（高級感・レスポンシブ改善・画像内ラベル表示） */

#castpage-wrapper {
  padding-bottom: 50px;
  font-family: 'Helvetica Neue', 'Noto Sans JP', sans-serif;
}

#castpage-title {
  background: linear-gradient(to right, #d0e7ff, #ffffff);
  padding: 42px 20px 30px;
  border-bottom: 2px solid #4296e4;
  text-align: center;
}

.castpage-heading {
  font-size: 72px;
  text-align: center;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  z-index: 1;
  pointer-events: none;
}

.castpage-intro {
  color: #222;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: none;
}

#castpage-list-section {
  padding: 25px 10px;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  margin: 25px auto;
  width: 95%;
  max-width: 1300px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

#castpage-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.castpage-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(3px);
}

.castpage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.castpage-card-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

.castpage-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #eee;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.castpage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
  display: block;
}

.castpage-card:hover .castpage-image {
  transform: scale(1.05);
}

.castpage-info {
  padding: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
}

.castpage-name {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #111;
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

.castpage-meta {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 6px;
}

.castpage-no-results {
  text-align: center;
  color: #999;
  font-size: 1.2rem;
  padding: 30px 0;
}

/* ラベル：画像の下端に重ねる */
.castpage-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(66, 150, 228, 0.3); /* 不透明度30%の青 */
  color: #fff;
  font-size: 1.4rem;
  text-align: center;
  font-weight: bold;
  padding: 20px 0;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 -1px 2px rgba(255,255,255,0.2), 0 1px 3px rgba(0,0,0,0.2);
  z-index: 2;
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
  #castpage-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  #castpage-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .castpage-heading {
    font-size: 2.4rem;
  }

  .castpage-intro {
    font-size: 0.95rem;
    color: #111;
  }

  .castpage-name {
    font-size: 1.15rem;
  }

  .castpage-meta {
    font-size: 0.95rem;
  }

  .castpage-info {
    padding: 4px;
  }

  .castpage-image-wrapper {
    aspect-ratio: 3 / 3.5;
  }
}

@media (min-width: 1025px) {
  .castpage-label {
    padding: 25px 0;
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .castpage-label {
    padding: 10px 0 !important;
    font-size: 1.4rem; /* ついでにスマホ用フォントサイズも調整 */
  }
}

@media (min-width: 1025px) {
  #castpage-list {
    grid-template-columns: repeat(5, 1fr); /* ← ここを追加 */
  }

  .castpage-label {
    padding: 25px 0;
    font-size: 1.4rem;
  }
}

/* === 出勤スケジュールページ用追加スタイル === */

/* 日付ボタンエリア */
.schedule-button-group {
  margin: 30px auto 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.schedule-btn {
  background: #fff;
  border: 2px solid #4296e4;
  color: #4296e4;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(66, 150, 228, 0.1);
}

.schedule-btn:hover,
.schedule-btn.active {
  background: #4296e4;
  color: #fff;
  box-shadow: 0 4px 10px rgba(66, 150, 228, 0.2);
}

.today-label {
  color: #fff;
  background: #4296e4;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
  font-size: 0.9em;
}

/* 今日の出勤キャストリストエリア（.castpage-card と共通化） */
.today-boy-item {
  animation: fadeIn 0.4s ease;
}

/* キャストカードのラベル（勤務時間） */
.castpage-label {
  background-color: rgba(66, 150, 228, 0.75);
  font-size: 1.3rem;
  padding: 12px 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 出勤中以外は非表示（JavaScript制御用） */
.today-boy-item {
  display: none;
}

/* 初期表示（今日）だけ出す用スタイルはHTML側でinline指定済み */

/* アニメーション（任意） */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* スマホ向け調整 */
@media (max-width: 768px) {
  .schedule-btn {
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  .today-label {
    font-size: 0.8rem;
  }

  .castpage-label {
    font-size: 1.1rem;
    padding: 10px 0;
  }
}



#castpage-title {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(to right, #d0e7ff, #ffffff);
  padding: 60px 20px 40px;
  box-sizing: border-box;
}