/* アニメページ専用スタイル */

/* スペック表（作品詳細ページ） */
.specs-grid {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  border-left: 6px solid #d400ff;
}

.specs-grid p {
  margin: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.cast-list ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.cast-list li {
  background: #f9f0ff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.char-name {
  font-weight: bold;
  color: #333;
}

.voice-name {
  color: #d400ff;
  font-size: 0.85rem;
}

/* アニメ一覧のカード強化 */
.anime .work-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
}

.anime-thumb {
  width: 120px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
}

/* ホバー時の装飾強化（アニメ専用） */
.portal-card.anime:hover .icon {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 画像ビューワー関連 */
.work-images-container {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  border-radius: 12px;
  background: #fffafa; /* ほんのりピンクがかった白 */
  border: 2px dashed #f0ccff; /* 点線の枠線 */
  box-shadow: inset 0 0 15px rgba(212, 0, 255, 0.05); /* 内側へのわずかな光 */
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* 垂直方向中央揃え */
  gap: 25px; /* 間隔を広げてゆとりを持たせる */
  padding: 10px 0;
}

.work-image.clickable-image {
  max-width: 280px;
  max-height: 350px; /* 縦長すぎる場合に制限をかける */
  width: auto;
  height: auto;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 12px;
  border: 6px solid #fff; /* フォトフレーム風の白い枠線 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06); /* 高級感のある影 */
  object-fit: contain;
}

.work-image.clickable-image:hover {
  transform: translateY(-8px) scale(1.02); /* 上に浮かび上がるエフェクト */
  box-shadow: 0 20px 40px rgba(212, 0, 255, 0.25);
  border-color: #fdf0ff;
}

/* 連作タイトル・シリーズ表示 */
.series-section {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  border-left: 6px solid #ff007b; /* プリヤっぽいやや濃いめのピンク */
}

.series-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

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

.series-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #f9f0ff;
  font-size: 0.95rem;
  color: #555;
}

.series-list li:last-child {
  border-bottom: none;
}


.series-list li::before {
  content: "・";
  color: #ff007b;
  font-weight: bold;
  margin-right: 5px;
}

/* 出演者リストの表示制限と拡張ボタン */
.cast-list-wrapper {
  position: relative;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.cast-list-wrapper.collapsed {
  max-height: 140px; /* 約3行分 (li高さ40px * 3 + gap 10px * 2) */
}

/* 折りたたまれている時のフェードアウト効果 */
.cast-list-wrapper.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.show-more-btn {
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  background: #f9f0ff;
  border: 1px solid #d400ff33;
  border-radius: 6px;
  color: #d400ff;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.show-more-btn:hover {
  background: #f0ccff;
}

.show-more-btn.expanded::before {
  content: "▲ ";
}

.show-more-btn:not(.expanded)::before {
  content: "▼ ";
}
