/**
 * プレゼンテーション資料ライブラリのスタイル
 */

/* ページヘッダー */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0 50px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* プレゼンテーションフィルター */
.presentations-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #f5f5f5;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* プレゼンテーションカード一覧 */
.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.presentation-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presentation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.presentation-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.presentation-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.presentation-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.presentation-card:hover .presentation-thumbnail img {
    transform: scale(1.05);
}

.presentation-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.presentation-content {
    padding: 20px;
}

.presentation-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-bottom: 10px;
}

.presentation-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.presentation-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.presentation-meta span {
    display: flex;
    align-items: center;
}

.presentation-meta i {
    margin-right: 5px;
}

.presentation-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 活用方法セクション */
.usage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.usage-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.usage-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.usage-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.usage-note {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
}

/* プレゼンテーション詳細ページ */
.presentation-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 100px 0 40px;
    margin-bottom: 40px;
}

.presentation-meta {
    max-width: 900px;
    margin: 0 auto;
}

.presentation-meta h1 {
    font-size: 2.2rem;
    margin: 15px 0;
    line-height: 1.3;
}

.presentation-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.presentation-info span {
    display: flex;
    align-items: center;
}

.presentation-info i {
    margin-right: 8px;
}

.presentation-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .presentation-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.presentation-main {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pdf-container {
    position: relative;
    height: 600px;
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .pdf-container {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .pdf-container {
        height: 400px;
    }
}

.pdf-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    z-index: 1;
}

.pdf-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.presentation-description {
    padding: 30px;
}

.presentation-description h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.presentation-description p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.presentation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 30px 30px;
}

.presentation-sidebar > div {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.presentation-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.presentation-details-list {
    list-style: none;
    padding: 0;
}

.presentation-details-list li {
    padding: 10px 0;
    display: flex;
    border-bottom: 1px solid #eee;
}

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

.detail-label {
    font-weight: bold;
    width: 120px;
    color: #555;
}

.detail-value {
    flex: 1;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #555;
}

/* 成功・エラーメッセージスタイル */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* 他のプレゼンテーション資料 */
.other-presentations {
    padding-top: 60px;
}

.other-presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.presentation-card-small {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.presentation-card-small:hover {
    transform: translateY(-5px);
}

.presentation-card-small .presentation-thumbnail {
    height: 150px;
}

.presentation-card-small h3 {
    font-size: 1rem;
}

.text-center {
    text-align: center;
    margin-top: 20px;
} 