/* Additional Custom Styles */

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
}

.pagination a {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.pagination a:hover {
    background: rgba(0, 255, 135, 0.1);
    border-color: rgba(0, 255, 135, 0.3);
    color: #00ff87;
    transform: translateY(-2px);
}

.pagination a.active {
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.3);
}

.pagination .prev,
.pagination .next {
    background: rgba(0, 255, 135, 0.15);
    border-color: rgba(0, 255, 135, 0.3);
    color: #00ff87;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: rgba(0, 255, 135, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.2);
}

/* 単一動画ページ */
.single-video {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.video-player {
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 横型動画ギャラリー */
.horizontal-video-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.horizontal-video-player {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.horizontal-video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-title {
    display: none;
}

.video-details {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 1.3rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

.detail-section p {
    line-height: 1.6;
    color: #ddd;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    display: inline-block;
    padding: 12px 30px;
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.back-link a:hover {
    background: #45a049;
}

/* サイト説明文 */
.site-description {
    text-align: center;
    color: #666;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* 動画がない場合 */
.no-videos {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.2rem;
}

/* ホバー時の動画再生 */
.video-item:hover video {
    opacity: 0.9;
}

/* スクロールバー */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #222;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-item {
    animation: fadeIn 0.5s ease-out;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.8rem;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
    }
    
    .video-details {
        padding: 20px;
    }
    
    .detail-section h3 {
        font-size: 1.1rem;
    }
}

/* フォーカス状態 */
.video-item:focus,
.modal-close:focus,
.pagination a:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* 説明セクション */
.description-section {
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.1) 0%, rgba(96, 239, 255, 0.1) 100%);
    border-left: 4px solid #00ff87;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
}

.description-section h3 {
    color: #00ff87;
    margin-bottom: 12px;
}

.description-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e0e0e0;
}

/* プリント用 */
@media print {
    header,
    .pagination,
    .back-link {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}
