/* カレンダー専用スタイル */

.page-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #5a67d8;
    border: 2px solid #5a67d8;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #5a67d8;
    color: white;
}

.nav-link.active {
    background-color: #5a67d8;
    color: white;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.current-month {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 200px;
    text-align: center;
}

.calendar-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e2e8f0;
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calendar-day:hover {
    background-color: #f7fafc;
    border-color: #e2e8f0;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #a0aec0;
}

.calendar-day.has-videos {
    background: linear-gradient(135deg, #fef5e7 0%, #fff2d8 100%);
}

.calendar-day.has-videos:hover {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day-number {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 0.5rem;
}

.video-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.video-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    padding: 2rem;
}

.video-details::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.details-header h3 {
    margin: 0;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a0aec0;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #fed7d7;
    color: #e53e3e;
}

.details-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #5a67d8;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 8px;
}

.details-videos {
    display: grid;
    gap: 1rem;
}

/* pr クラスの div タグを画面左上に表示 */
.pr {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 0.9em;
    opacity: 0; /* 初期状態で非表示 */
    animation: fadeInOut 10s ease-in-out infinite; /* アニメーションをループ */
    animation-delay: 5s; /* 5秒後に表示 */
}

.pr a {
    color: #bb4bac;
    text-decoration: none;
}

.pr a:hover {
    text-decoration: underline;
}

.video-detail-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.video-detail-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.video-thumbnail {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.video-info {
    flex: 1;
}

.video-title {
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-title a {
    color: inherit;
    text-decoration: none;
}

.video-title a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.talent-name {
    color: #5a67d8;
    font-weight: bold;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.video-tag {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #4a5568;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 0;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.3rem;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .video-count {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .video-indicators {
        display: none;
    }
    
    .video-details {
        padding: 1rem;
        max-width: 95vw;
        max-height: 90vh;
    }
    
    .video-detail-item {
        flex-direction: column;
    }
    
    .video-thumbnail {
        width: 100%;
        height: auto;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .current-month {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 60px;
        padding: 0.2rem;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
}

@keyframes fadeInOut {
    15%, 50% {
        opacity: 1; /* 表示状態 */
    }
    25%, 75% {
        opacity: 0; /* 非表示状態 */
    }
}