/* ============================================
   Street Kingdom Components CSS
   Next.jsコンポーネントのスタイルを完全再現
   ============================================ */

/* ============================================
   Grid System
   ============================================ */
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================
   Border & Text Colors
   ============================================ */
.text-primary {
  color: var(--color-primary);
}

.border-white\/50 {
  border-color: rgba(255, 255, 255, 0.5);
}

.border-primary {
  border-color: var(--color-primary);
}

/* ============================================
   Hover States
   ============================================ */
.hover\:bg-primary\/30:hover {
  background-color: rgba(255, 215, 0, 0.3);
}

.hover\:border-primary:hover {
  border-color: var(--color-primary);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:bg-primary\/20:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

/* ============================================
   Text Shadow
   ============================================ */
.\[text-shadow\:_2px_2px_4px_rgba\(0\2c 0\2c 0\2c 0\.8\)\] {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ============================================
   Backdrop Blur
   ============================================ */
.backdrop-blur-\[10px\] {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   Max Width Extensions
   ============================================ */
.max-w-\[720px\] { max-width: 720px; }

/* ============================================
   Responsive Text Utilities
   ============================================ */
@media (min-width: 1024px) {
  .lg\:text-left { text-align: left; }
}

/* ============================================
   Cast Grid Second Row Centering
   ============================================ */
.cast-grid-row-2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cast-grid-row-2 > article:nth-child(5) {
  grid-column: 2 / 3;
}

.cast-grid-row-2 > article:nth-child(6) {
  grid-column: 3 / 4;
}

.cast-grid-row-2 > article:nth-child(7) {
  grid-column: 4 / 5;
}

/* ============================================
   Section Specific Styles
   ============================================ */

/* Hero Section */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  overflow: hidden;
}

/* Introduction Section */
#introduction {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #000000;
  color: #FFFFFF;
}

/* Cast Section */
#cast {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #000000;
  color: #FFFFFF;
  padding-top: 4rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

/* Comment Section */
#comment {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #000000;
  color: #FFFFFF;
}

/* Credit Section */
#credit {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #000000;
  color: #FFFFFF;
}

/* ============================================
   Cast Modal（Next.jsのCastModal.tsxを完全再現）
   ============================================ */

/* モーダルオーバーレイ */
.cast-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cast-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* モーダルコンテンツ */
.cast-modal-content {
  background-color: #000000;
  border: 2px solid #FFFFFF;
  padding: 2rem;
  max-width: 56rem; /* max-w-4xl */
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* 閉じるボタン */
.cast-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #FFFFFF;
  font-size: 1.875rem; /* text-3xl */
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.cast-modal-close:hover {
  color: var(--color-primary);
}

/* モーダル内グリッド */
.cast-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cast-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* モーダル内の写真 */
.cast-modal-photo {
  aspect-ratio: 3 / 4;
  background-color: rgb(31, 41, 55); /* bg-gray-800 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cast-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* モーダル内のテキスト */
.cast-modal-info {
  color: #FFFFFF;
}

.cast-modal-role {
  font-size: 1.25rem; /* text-xl */
  color: rgb(156, 163, 175); /* text-gray-400 */
  margin-bottom: 0.5rem;
  font-family: var(--font-udreimin);
}

.cast-modal-actor {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-franklin);
}

.cast-modal-comment {
  line-height: 1.625; /* leading-relaxed */
  white-space: pre-wrap;
  font-family: var(--font-mincho);
  font-size: 15px;
  line-height: 31px;
  letter-spacing: 0.15px;
}

/* ============================================
   Additional Text Utilities
   ============================================ */
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-gray-400 {
  color: rgb(156, 163, 175);
}

.bg-gray-800 {
  background-color: rgb(31, 41, 55);
}

.border-t-2 {
  border-top-width: 2px;
}

.pt-6 {
  padding-top: 1.5rem;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.aspect-\[3\/4\] {
  aspect-ratio: 3 / 4;
}

.max-h-\[90vh\] {
  max-height: 90vh;
}

/* Grid cols for modal */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gap-8 {
  gap: 2rem;
}

/* Additional sizing */
.mb-1 { margin-bottom: 0.25rem; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }

