/* ==================================================
    パフォーマー一覧 - カラフル & アニメチックデザイン
   - 原色のグラデーション背景
   - ショッキングピンクのメインカラー
   - イエローの差し色
   - かわいいアニメチックなフォント
   - ポップなアニメーション
   - トランプカード360度回転アニメーション統合
   - レスポンシブ対応
   ================================================== */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', 'Bubblegum Sans', 'Fredoka One', 'Quicksand', 'Nunito', cursive, sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 20, 120, 0.25) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(240, 220, 20, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 60% 70%, rgba(20, 200, 200, 0.22) 0%, transparent 65%),
        radial-gradient(circle at 30% 80%, rgba(230, 140, 20, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 90% 60%, rgba(140, 220, 20, 0.15) 0%, transparent 55%),
        linear-gradient(135deg, 
            #f48fb1 0%, 
            #f8bbd9 15%, 
            #fff176 30%, 
            #80deea 45%, 
            #ffab91 60%, 
            #c5e1a5 75%, 
            #f48fb1 90%, 
            #f8bbd9 100%
        );
    background-size: 300% 300%;
    background-attachment: fixed;
    animation: rainbowGradient 20s ease-in-out infinite;
    min-height: 100vh;
    color: #2d1b69;
    position: relative;
    overflow-x: hidden;
}

/* 背景のキラキラアニメーション */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.25) 1.2px, transparent 1.2px),
        radial-gradient(circle at 80% 80%, rgba(240, 220, 20, 0.2) 0.8px, transparent 0.8px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.22) 0.8px, transparent 0.8px),
        radial-gradient(circle at 90% 10%, rgba(240, 220, 20, 0.15) 0.6px, transparent 0.6px),
        radial-gradient(circle at 30% 90%, rgba(255, 255, 255, 0.2) 0.6px, transparent 0.6px);
    background-size: 280px 280px, 230px 230px, 180px 180px, 350px 350px, 250px 250px;
    animation: sparkleMove 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rainbowGradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

@keyframes sparkleMove {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(45deg); }
    50% { transform: translateY(-4px) rotate(90deg); }
    75% { transform: translateY(-12px) rotate(135deg); }
    100% { transform: translateY(0px) rotate(180deg); }
}

/* Burlesque Header統合のためのレイアウト調整 */
body {
    padding-top: 80px; /* ヘッダーの高さ分のパディングを追加 */
}

/* モバイル対応でヘッダーの高さを調整 */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ページヘッダー（検索フォーム部分） */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #D81B60;
    font-size: 3.5rem;
    margin-bottom: 12px;
    text-shadow: 
        0 0 20px rgba(216, 27, 96, 0.5),
        0 0 35px rgba(255, 235, 59, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(216, 27, 96, 0.3);
    font-weight: 800;
    letter-spacing: 4px;
    font-family: 'Comic Neue', 'Bubblegum Sans', 'Fredoka One', cursive;
    position: relative;
    text-transform: uppercase;
    animation: titleBounce 4s ease-in-out infinite;
}

.page-header h1::before {
    content: '★';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #FFD54F;
    opacity: 0.8;
    animation: starSpin 6s linear infinite;
    text-shadow: 0 0 15px rgba(255, 213, 79, 0.6);
}

.page-header h1::after {
    content: '★';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #FFD54F;
    opacity: 0.8;
    animation: starSpin 6s linear infinite reverse;
    text-shadow: 0 0 15px rgba(255, 213, 79, 0.6);
}

@keyframes titleBounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-5px) scale(1.01); }
    50% { transform: translateY(0px) scale(1.02); }
    75% { transform: translateY(-3px) scale(1.01); }
}

@keyframes starSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.subtitle {
    color: #D81B60;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    font-style: normal;
    opacity: 0.95;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 4px rgba(255, 235, 59, 0.4),
        0 0 10px rgba(216, 27, 96, 0.3);
}

/* アニメーションコントロール */
.animation-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.animation-btn {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.animation-btn:hover {
    background: linear-gradient(45deg, #b91c1c, #991b1b);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.animation-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}

/* 使用説明 */
.usage-info {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    text-align: center;
}

.usage-info h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.usage-info p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.5;
}

.usage-info p:last-child {
    margin-bottom: 0;
}

/* 検索フォーム */
.search-form {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 187, 208, 0.15) 25%,
        rgba(255, 255, 255, 0.95) 50%, 
        rgba(255, 241, 118, 0.12) 75%,
        rgba(255, 255, 255, 0.95) 100%);
    padding: 32px;
    border-radius: 25px;
    border: 2px solid #F48FB1;
    backdrop-filter: blur(15px);
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-shadow: 
        0 12px 35px rgba(244, 143, 177, 0.15),
        inset 0 2px 0 rgba(255, 241, 118, 0.2),
        0 0 0 1px rgba(244, 143, 177, 0.3),
        0 0 0 3px rgba(255, 241, 118, 0.15),
        0 0 20px rgba(244, 143, 177, 0.2);
    animation: formPulse 6s ease-in-out infinite;
}

.search-form::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(255, 20, 147, 0.8) 0%, 
        rgba(255, 255, 0, 0.6) 25%,
        rgba(255, 20, 147, 0.8) 50%, 
        rgba(255, 255, 0, 0.6) 75%, 
        rgba(255, 20, 147, 0.8) 100%);
    background-size: 400% 400%;
    border-radius: 28px;
    z-index: -1;
    opacity: 0.6;
    animation: gradientBorder 3s ease infinite;
}

@keyframes formPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.005); }
}

@keyframes gradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.search-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.search-row:last-child {
    margin-bottom: 0;
}

.search-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-label {
    color: #C2185B;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    text-shadow: 
        0 2px 4px rgba(255, 235, 59, 0.4),
        0 0 8px rgba(194, 24, 91, 0.3);
    animation: labelGlow 3s ease-in-out infinite alternate;
}

.search-input,
.search-select {
    padding: 16px 22px;
    border: 2px solid #D81B60;
    border-radius: 15px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 187, 208, 0.08) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 2px 6px rgba(216, 27, 96, 0.08),
        0 2px 4px rgba(255, 235, 59, 0.2),
        0 0 12px rgba(216, 27, 96, 0.15);
}

.search-input:focus,
.search-select:focus {
    border-color: #D81B60;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 235, 59, 0.08) 50%,
        rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 
        0 0 0 3px rgba(216, 27, 96, 0.3),
        inset 0 2px 6px rgba(216, 27, 96, 0.08),
        0 4px 15px rgba(255, 235, 59, 0.25),
        0 0 18px rgba(216, 27, 96, 0.2);
    transform: translateY(-1px) scale(1.01);
    animation: inputFocus 0.3s ease;
}

@keyframes labelGlow {
    0% { text-shadow: 0 2px 4px rgba(255, 235, 59, 0.4), 0 0 8px rgba(194, 24, 91, 0.3); }
    100% { text-shadow: 0 2px 4px rgba(255, 235, 59, 0.5), 0 0 10px rgba(194, 24, 91, 0.4); }
}

@keyframes inputFocus {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.03); }
    100% { transform: translateY(-2px) scale(1.02); }
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-select option {
    background: #ffffff;
    color: #333333;
}

/* 検索アクション */
.search-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
}

.search-btn,
.reset-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.search-btn {
    background: linear-gradient(135deg, #F48FB1 0%, #F8BBD9 25%, #FFF176 50%, #F8BBD9 75%, #F48FB1 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 241, 118, 0.3),
        0 0 15px rgba(244, 143, 177, 0.2);
    box-shadow: 
        0 6px 20px rgba(244, 143, 177, 0.3),
        0 3px 12px rgba(255, 241, 118, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1),
        0 0 25px rgba(244, 143, 177, 0.25);
    border: 2px solid #F48FB1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 14px 36px;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: buttonPulse 3s ease-in-out infinite;
}

/* ゴージャスなキラキラエフェクト */
.search-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.search-btn:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0.8; 
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1.2);
    }
}

.search-btn:hover {
    background: linear-gradient(135deg, #FFF176 0%, #F48FB1 25%, #FFF176 50%, #F48FB1 75%, #FFF176 100%);
    box-shadow: 
        0 8px 28px rgba(244, 143, 177, 0.4),
        0 4px 15px rgba(255, 241, 118, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1),
        0 0 30px rgba(255, 241, 118, 0.3);
    transform: translateY(-3px) scale(1.04);
    border-color: #FFF176;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(244, 143, 177, 0.3),
        0 0 20px rgba(255, 241, 118, 0.25);
    animation: buttonHover 0.3s ease;
}

.search-btn:active {
    background: linear-gradient(135deg, #ad3458 0%, #c44569 50%, #ad3458 100%);
    box-shadow: 
        0 4px 15px rgba(196, 69, 105, 0.6),
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(196, 69, 105, 0.5);
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(173, 52, 88, 0.8);
}

.reset-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 235, 59, 0.15) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    color: #C2185B;
    border: 2px solid #C2185B;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    text-shadow: 
        0 2px 4px rgba(255, 235, 59, 0.3),
        0 0 8px rgba(194, 24, 91, 0.2);
    border-radius: 15px;
    padding: 12px 28px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.reset-btn:hover {
    background: linear-gradient(135deg, 
        rgba(216, 27, 96, 0.15) 0%, 
        rgba(255, 235, 59, 0.18) 50%,
        rgba(216, 27, 96, 0.15) 100%);
    border-color: #FFD54F;
    color: #1a1a1a;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 4px 15px rgba(255, 235, 59, 0.3),
        0 0 18px rgba(216, 27, 96, 0.25);
    text-shadow: 
        0 2px 4px rgba(255, 235, 59, 0.4),
        0 0 10px rgba(216, 27, 96, 0.25);
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(244, 143, 177, 0.3); }
    50% { transform: scale(1.01); box-shadow: 0 8px 25px rgba(244, 143, 177, 0.4); }
}

@keyframes buttonHover {
    0% { transform: translateY(-5px) scale(1.08); }
    50% { transform: translateY(-10px) scale(1.15); }
    100% { transform: translateY(-8px) scale(1.12); }
}

/* フィルターコントロール */
.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,248,248,0.95) 50%, rgba(255,255,255,0.9) 100%);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 20, 147, 0.2);
    backdrop-filter: blur(15px);
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FF1493;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    letter-spacing: 0.8px;
    text-shadow: 
        0 2px 4px rgba(255, 255, 0, 0.5),
        0 0 10px rgba(255, 20, 147, 0.3);
}

#itemsPerPage {
    padding: 12px 16px;
    border: 2px solid rgba(196, 69, 105, 0.4);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(26,26,26,0.8) 100%);
    color: #f5f5dc;
    font-size: 15px;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(218, 165, 32, 0.1);
}

#itemsPerPage:hover {
    background: linear-gradient(135deg, rgba(196, 69, 105, 0.2) 0%, rgba(139, 69, 19, 0.2) 100%);
    border-color: rgba(196, 69, 105, 0.7);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.6),
        0 4px 15px rgba(218, 165, 32, 0.3);
}

#itemsPerPage option {
    background: #1a1a1a;
    color: #ffffff;
}

/* メインコンテンツ */
.main-content {
    min-height: 600px;
    position: relative;
}

/* キャストグリッド */
.cast-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* レスポンシブグリッド（1〜4列） */
@media (min-width: 576px) {
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 992px) {
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    .cast-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* ==================================================
   トランプカード基本スタイル
   ================================================== */

/* 基本のトランプカードコンテナ */
.trump-card {
    position: relative;
    width: 100%;
    height: 420px;
    perspective: 1200px;
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(244, 143, 177, 0.2),
        0 0 0 3px rgba(255, 241, 118, 0.12),
        inset 0 1px 0 rgba(244, 143, 177, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

/* ホバー時の3D効果 */
.trump-card:not(.flip-360):hover {
    transform: translateY(-6px) scale(1.02) rotateX(1deg);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(244, 143, 177, 0.3),
        0 0 0 4px rgba(255, 241, 118, 0.2),
        0 0 25px rgba(244, 143, 177, 0.25),
        0 0 30px rgba(255, 241, 118, 0.15),
        inset 0 1px 0 rgba(244, 143, 177, 0.15);
}

.trump-card:not(.flip-360):hover .trump-inner {
    transform: rotateY(3deg) rotateX(3deg) translateZ(10px);
}

/* カード内部コンテナ */
.trump-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* 360度回転アニメーション適用時 */
.trump-card.flip-360 {
    animation: trumpCard360Rotation 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    pointer-events: none;
}

.trump-card.flip-360 .trump-inner {
    animation: trumpInner360Rotation 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* カードの表面 */
.trump-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(0deg);
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* カードの裏面 */
.trump-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(255, 20, 147, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, #ffffff 0%, #fafafa 25%, #f8f8f8 50%, #fafafa 75%, #ffffff 100%);
    border: 3px solid rgba(255, 20, 147, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.1);
}

/* カード裏面のパターン装飾 */
.trump-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 20, 147, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(255, 20, 147, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 25%, rgba(255, 215, 0, 0.2) 1px, transparent 1px),
        linear-gradient(45deg, transparent 45%, rgba(255, 20, 147, 0.05) 50%, transparent 55%);
    background-size: 60px 60px, 60px 60px, 30px 30px, 30px 30px, 120px 120px;
    background-position: 0 0, 0 0, 30px 30px, 30px 30px, 0 0;
    opacity: 0.8;
}

/* カード裏面の中央ロゴエリア */
.trump-back-logo {
    width: 140px;
    height: 140px;
    border: 3px solid rgba(255, 20, 147, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at center, rgba(255, 20, 147, 0.1) 0%, rgba(255, 255, 255, 0.8) 70%);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    box-shadow: 
        0 0 30px rgba(255, 20, 147, 0.3),
        inset 0 2px 4px rgba(255, 215, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.trump-back-logo::after {
    content: '♥';
    font-size: 64px;
    color: #FF1493;
    font-weight: bold;
    text-shadow: 
        0 0 25px rgba(255, 20, 147, 0.8),
        0 3px 10px rgba(0, 0, 0, 0.3),
        0 0 45px rgba(255, 255, 0, 0.5);
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.6));
    animation: heartBeat 2s ease-in-out infinite;
}

@keyframes nameGlow {
    0% { 
        text-shadow: 
            0 3px 8px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(216, 27, 96, 0.8),
            0 2px 6px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 213, 79, 0.6);
    }
    100% { 
        text-shadow: 
            0 3px 8px rgba(0, 0, 0, 0.6),
            0 0 18px rgba(216, 27, 96, 0.9),
            0 2px 6px rgba(0, 0, 0, 0.4),
            0 0 25px rgba(255, 213, 79, 0.7);
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(1.02); }
    75% { transform: scale(1.08); }
}

/* メインの360度回転アニメーション */
@keyframes trumpCard360Rotation {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotateY(90deg) scale(0.95);
        opacity: 0.9;
    }
    50% {
        transform: rotateY(180deg) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: rotateY(270deg) scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: rotateY(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes trumpInner360Rotation {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* コンテンツの表示制御アニメーション */
.trump-card.flip-360 .trump-front {
    animation: trumpFrontVisibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.trump-card.flip-360 .trump-back {
    animation: trumpBackVisibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes trumpFrontVisibility {
    0%, 24% {
        opacity: 1;
        visibility: visible;
    }
    25%, 74% {
        opacity: 0;
        visibility: hidden;
    }
    75%, 100% {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes trumpBackVisibility {
    0%, 24% {
        opacity: 0;
        visibility: hidden;
    }
    25%, 74% {
        opacity: 1;
        visibility: visible;
    }
    75%, 100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* キャスト情報用の表面スタイル */
.trump-cast-front {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* キャスト情報オーバーレイ */
.trump-cast-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: 
        linear-gradient(to top, 
            rgba(244, 143, 177, 0.8) 0%, 
            rgba(244, 143, 177, 0.6) 20%,
            rgba(255, 241, 118, 0.3) 50%,
            rgba(244, 143, 177, 0.4) 80%,
            rgba(244, 143, 177, 0.15) 100%
        ),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.9) 0%, 
            rgba(248, 187, 208, 0.15) 30%,
            rgba(255, 255, 255, 0.7) 60%, 
            rgba(255, 241, 118, 0.12) 80%,
            rgba(255, 255, 255, 0.5) 100%
        );
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #333333;
    border-top: 2px solid #F48FB1;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(8px);
}

.trump-cast-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1.2px;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    color: #FFFFFF;
    text-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(216, 27, 96, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 213, 79, 0.6);
    text-transform: capitalize;
    animation: nameGlow 4s ease-in-out infinite alternate;
}

.trump-cast-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.trump-cast-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trump-cast-info-label {
    color: #FFFFFF;
    font-weight: 600;
    min-width: 36px;
    font-size: 0.85rem;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(194, 24, 91, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

.trump-cast-info-value {
    color: #FFFFFF;
    font-weight: 600;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 0 12px rgba(255, 213, 79, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

.trump-cast-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: auto;
}

.trump-cast-tag {
    background: linear-gradient(135deg, #ff6b6b 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    box-shadow: 
        0 3px 8px rgba(220, 38, 38, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.trump-cast-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 15px rgba(220, 38, 38, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.trump-cast-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.trump-cast-tag:hover::before {
    left: 100%;
}

/* 新人バッジ */
.trump-newcomer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: 
        linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Cinzel', serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 4px 12px rgba(255, 107, 53, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 107, 53, 0.4);
    animation: newBadgePulse 2s ease-in-out infinite alternate;
}

@keyframes newBadgePulse {
    0% {
        box-shadow: 
            0 4px 12px rgba(255, 107, 53, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 20px rgba(255, 107, 53, 0.4);
    }
    100% {
        box-shadow: 
            0 6px 20px rgba(255, 107, 53, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 107, 53, 0.6);
    }
}

/* アニメーション実行中のスタイル */
.trump-card.flipping {
    pointer-events: none;
}

.trump-card.flipping:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.trump-card.flipping:hover .trump-inner {
    transform: none;
}

/* カードがページに表示される際のアニメーション */
.trump-card.fade-in {
    animation: cardAppear 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ローディング */
.loading {
    display: none;
    text-align: center;
    padding: 50px;
    color: #FF1493;
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 20, 147, 0.2);
    border-top: 4px solid #FF1493;
    border-right: 4px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    animation: spin 1.2s ease-in-out infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
}

@keyframes spin {
    0% { 
        transform: rotate(0deg);
        box-shadow: 0 0 20px rgba(196, 69, 105, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(196, 69, 105, 0.6);
    }
    100% { 
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(196, 69, 105, 0.4);
    }
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 248, 248, 0.95) 50%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 20, 147, 0.3);
}

.pagination-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 192, 203, 0.2) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    border: 4px solid #FF1493;
    padding: 16px 28px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #FF1493;
    text-shadow: 
        0 2px 4px rgba(255, 255, 0, 0.4),
        0 0 10px rgba(255, 20, 147, 0.3);
    box-shadow: 
        0 6px 18px rgba(255, 20, 147, 0.4),
        inset 0 2px 0 rgba(255, 255, 0, 0.3),
        0 0 25px rgba(255, 20, 147, 0.2);
    text-transform: uppercase;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.15) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-color: rgba(255, 20, 147, 0.7);
    color: #FF1493;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(255, 20, 147, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-number {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 0, 0.2) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    border: 4px solid #FF1493;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #FF1493;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 
        0 2px 4px rgba(255, 255, 0, 0.4),
        0 0 8px rgba(255, 20, 147, 0.3);
    box-shadow: 
        0 4px 12px rgba(255, 20, 147, 0.3),
        inset 0 2px 0 rgba(255, 255, 0, 0.3),
        0 0 20px rgba(255, 20, 147, 0.2);
}

.pagination-number:hover {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.15) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-color: rgba(255, 20, 147, 0.7);
    color: #FF1493;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(255, 20, 147, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
}

.pagination-number.active {
    background: linear-gradient(135deg, #FF1493 0%, #FFFF00 25%, #FF1493 50%, #FFFF00 75%, #FF1493 100%);
    color: #FFFFFF;
    font-weight: 800;
    transform: scale(1.2);
    border-color: #FFFF00;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 255, 0, 0.6);
    box-shadow: 
        0 8px 25px rgba(255, 20, 147, 0.7),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 0, 0.5);
    animation: activePage 2s ease-in-out infinite;
}

@keyframes activePage {
    0%, 100% { 
        box-shadow: 
            0 8px 25px rgba(255, 20, 147, 0.7),
            0 0 30px rgba(255, 255, 0, 0.5);
    }
    50% { 
        box-shadow: 
            0 10px 30px rgba(255, 20, 147, 0.8),
            0 0 35px rgba(255, 255, 0, 0.7);
    }
}

/* モーダル */
.cast-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cast-modal.show {
    display: block;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(244, 143, 177, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 241, 118, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 60% 70%, rgba(128, 222, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(255, 171, 145, 0.1) 0%, transparent 45%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.94) 0%,
            rgba(248, 187, 208, 0.15) 50%,
            rgba(255, 255, 255, 0.94) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalOverlayPulse 6s ease-in-out infinite;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: 
        radial-gradient(circle at 20% 20%, rgba(244, 143, 177, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(255, 241, 118, 0.08) 0%, transparent 65%),
        radial-gradient(circle at 50% 10%, rgba(244, 143, 177, 0.06) 0%, transparent 55%),
        linear-gradient(135deg, 
            #ffffff 0%, 
            rgba(248, 187, 208, 0.06) 25%, 
            #fafafa 50%, 
            rgba(255, 241, 118, 0.06) 75%, 
            #ffffff 100%);
    border-radius: 30px;
    max-width: 95vw;
    max-height: 95vh;
    width: 950px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.12),
        0 0 0 2px rgba(244, 143, 177, 0.3),
        0 0 0 4px rgba(255, 241, 118, 0.2),
        inset 0 2px 0 rgba(244, 143, 177, 0.15),
        0 0 35px rgba(244, 143, 177, 0.25);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #F48FB1;
    animation: modalContentGlow 5s ease-in-out infinite alternate;
}

.cast-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 248, 248, 0.9) 100%);
    border: 2px solid rgba(244, 143, 177, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #F48FB1;
    z-index: 30;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 3px 12px rgba(244, 143, 177, 0.15),
        inset 0 1px 0 rgba(255, 241, 118, 0.15);
}

.modal-close:hover {
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.1) 0%, rgba(255, 241, 118, 0.1) 100%);
    border-color: rgba(244, 143, 177, 0.5);
    color: #F48FB1;
    transform: scale(1.08) rotate(30deg);
    box-shadow: 
        0 4px 15px rgba(244, 143, 177, 0.25),
        inset 0 1px 0 rgba(255, 241, 118, 0.25);
}

.modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 95vh;
    overflow-y: auto;
}

/* モーダルヘッダー */
.modal-header {
    position: relative;
    padding: 0;
    margin: 0;
}

/* 画像スライダー */
.image-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 2px solid rgba(255, 20, 147, 0.2);
}

.image-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.slider-image {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 20, 147, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FF1493;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.2);
}

.slider-nav:hover {
    background: rgba(255, 20, 147, 0.15);
    border-color: rgba(255, 20, 147, 0.7);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.3);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* サムネイルコンテナ */
.thumbnails-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 20, 147, 0.5) rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 20, 147, 0.2);
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: rgba(255, 20, 147, 0.5);
    border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 20, 147, 0.7);
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 20, 147, 0.5);
}

.thumbnail-item.active {
    border-color: rgba(255, 20, 147, 0.8);
    box-shadow: 0 0 12px rgba(255, 20, 147, 0.4);
    transform: scale(1.1);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image {
    transform: scale(1.1);
}

.thumbnail-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 20, 147, 0.2);
    pointer-events: none;
}

/* モーダル情報エリア */
.modal-info {
    padding: 32px;
    flex-grow: 1;
}

.modal-cast-name {
    font-size: 3rem;
    font-weight: 800;
    color: #C2185B;
    margin-bottom: 16px;
    letter-spacing: 2.5px;
    text-align: center;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    text-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(194, 24, 91, 0.7),
        0 0 35px rgba(255, 213, 79, 0.5);
    text-transform: capitalize;
    position: relative;
    animation: modalNamePulse 4s ease-in-out infinite alternate;
}

.modal-cast-name::before {
    content: '♥';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #FFD54F;
    opacity: 0.9;
    text-shadow: 
        0 0 15px rgba(255, 213, 79, 0.7),
        0 0 25px rgba(255, 213, 79, 0.5);
    animation: modalHeartBeat 3s ease-in-out infinite;
}

.modal-cast-name::after {
    content: '♥';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #FFD54F;
    opacity: 0.9;
    text-shadow: 
        0 0 15px rgba(255, 213, 79, 0.7),
        0 0 25px rgba(255, 213, 79, 0.5);
    animation: modalHeartBeat 3s ease-in-out infinite 1s;
}

@keyframes modalOverlayPulse {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 1; }
}

@keyframes modalContentGlow {
    0% { 
        box-shadow: 
            0 35px 90px rgba(0,0,0,0.2),
            0 0 0 5px rgba(255, 20, 147, 0.6),
            0 0 0 8px rgba(255, 255, 0, 0.4),
            0 0 60px rgba(255, 20, 147, 0.4);
    }
    100% { 
        box-shadow: 
            0 40px 100px rgba(0,0,0,0.25),
            0 0 0 5px rgba(255, 20, 147, 0.8),
            0 0 0 8px rgba(255, 255, 0, 0.6),
            0 0 80px rgba(255, 20, 147, 0.6);
    }
}

@keyframes modalNamePulse {
    0% { 
        text-shadow: 
            0 3px 8px rgba(0, 0, 0, 0.3),
            0 0 25px rgba(194, 24, 91, 0.7),
            0 0 35px rgba(255, 213, 79, 0.5);
    }
    100% { 
        text-shadow: 
            0 3px 8px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(194, 24, 91, 0.8),
            0 0 40px rgba(255, 213, 79, 0.6);
    }
}

@keyframes modalHeartBeat {
    0%, 100% { transform: translateY(-50%) scale(1); }
    25% { transform: translateY(-50%) scale(1.1); }
    50% { transform: translateY(-50%) scale(1.05); }
    75% { transform: translateY(-50%) scale(1.12); }
}

.modal-cast-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px 30px;
    margin: 30px 0;
    padding: 35px;
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(248, 187, 208, 0.12) 25%,
            rgba(248, 248, 248, 0.98) 50%, 
            rgba(255, 241, 118, 0.08) 75%,
            rgba(255, 255, 255, 0.95) 100%);
    border-radius: 25px;
    border: 2px solid #F48FB1;
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 2px 10px rgba(244, 143, 177, 0.12),
        0 3px 15px rgba(255, 241, 118, 0.15),
        0 0 25px rgba(244, 143, 177, 0.12);
    animation: detailsGlow 5s ease-in-out infinite alternate;
}

.modal-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 20, 147, 0.3);
    position: relative;
}

.modal-detail-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.8) 0%, transparent 100%);
}

.modal-detail-label {
    font-weight: 700;
    color: #C2185B;
    font-size: 1.1rem;
    font-family: 'Comic Neue', 'Bubblegum Sans', cursive;
    letter-spacing: 0.8px;
    text-shadow: 
        0 2px 4px rgba(255, 235, 59, 0.4),
        0 0 8px rgba(194, 24, 91, 0.3);
}

.modal-detail-value {
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    text-shadow: 
        0 2px 4px rgba(255, 235, 59, 0.4),
        0 0 10px rgba(194, 24, 91, 0.25);
    letter-spacing: 0.5px;
}

.modal-cast-comment {
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(248, 187, 208, 0.15) 30%,
            rgba(248, 248, 248, 0.95) 50%, 
            rgba(255, 235, 59, 0.15) 70%,
            rgba(255, 255, 255, 0.95) 100%);
    padding: 30px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-family: 'Comic Neue', 'Quicksand', sans-serif;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.9;
    margin: 30px 0;
    border-left: 4px solid #C2185B;
    border: 3px solid #FFD54F;
    backdrop-filter: blur(6px);
    font-style: normal;
    text-shadow: 
        0 1px 3px rgba(255, 235, 59, 0.3),
        0 0 8px rgba(194, 24, 91, 0.2);
    position: relative;
    box-shadow: 
        inset 0 2px 10px rgba(194, 24, 91, 0.12),
        0 4px 15px rgba(255, 235, 59, 0.2),
        0 0 25px rgba(194, 24, 91, 0.15);
    animation: commentPulse 6s ease-in-out infinite;
}

@keyframes detailsGlow {
    0% { 
        box-shadow: 
            inset 0 2px 10px rgba(244, 143, 177, 0.12),
            0 3px 15px rgba(255, 241, 118, 0.15),
            0 0 25px rgba(244, 143, 177, 0.12);
    }
    100% { 
        box-shadow: 
            inset 0 2px 10px rgba(244, 143, 177, 0.15),
            0 4px 20px rgba(255, 241, 118, 0.2),
            0 0 30px rgba(244, 143, 177, 0.15);
    }
}

@keyframes commentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

.modal-cast-comment::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 3rem;
    color: rgba(255, 20, 147, 0.5);
    font-family: serif;
}

.modal-cast-comment::after {
    content: '"';
    position: absolute;
    bottom: -15px;
    right: 15px;
    font-size: 3rem;
    color: rgba(255, 20, 147, 0.5);
    font-family: serif;
}

.modal-cast-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.modal-cast-tag {
    background: linear-gradient(135deg, #ff6b6b 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 16px rgba(220, 38, 38, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-cast-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(220, 38, 38, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.modal-cast-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.modal-cast-tag:hover::before {
    left: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .animation-controls {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .animation-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .usage-info {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .usage-info h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .usage-info p {
        font-size: 0.85rem;
    }
    
    .search-form {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .search-row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .search-field {
        min-width: 100%;
    }
    
    .search-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .search-btn,
    .reset-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .cast-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trump-card {
        height: 350px;
    }
    
    .trump-cast-overlay {
        padding: 12px;
    }
    
    .trump-cast-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .trump-cast-info {
        font-size: 0.75rem;
        gap: 3px 8px;
        margin-bottom: 6px;
    }
    
    .trump-cast-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .trump-newcomer-badge {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .trump-back-logo {
        width: 80px;
        height: 80px;
    }
    
    .trump-back-logo::after {
        font-size: 32px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        width: 95vw;
    }
    
    .image-slider-container {
        height: 250px;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-cast-name {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .modal-cast-details {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        margin: 16px 0;
    }
    
    .modal-cast-comment {
        padding: 16px;
        margin: 16px 0;
        font-size: 0.9rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .thumbnails-container {
        padding: 12px 15px;
        gap: 6px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 45px;
        border-radius: 4px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* 小さい画面向けの調整 */
@media (max-width: 480px) {
    .trump-card {
        height: 300px;
    }
    
    .trump-cast-overlay {
        height: 40%;
        padding: 10px;
    }
    
    .trump-cast-info {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .trump-back-logo {
        width: 60px;
        height: 60px;
    }
    
    .trump-back-logo::after {
        font-size: 24px;
    }
}

/* アニメーション遅延用クラス */
.trump-card.delay-1 { animation-delay: 0.1s; }
.trump-card.delay-2 { animation-delay: 0.2s; }
.trump-card.delay-3 { animation-delay: 0.3s; }
.trump-card.delay-4 { animation-delay: 0.4s; }
.trump-card.delay-5 { animation-delay: 0.5s; }
