/* style.css */
:root {
    --primary-color: #2563eb;
    --success-color: #10b981;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

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

/* カードデザイン */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 20px;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* 動画グリッド（index.php用） */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}
.status-done { background: #dcfce7; color: #166534; }
.status-yet { background: #f1f5f9; color: #64748b; }

/* テーブル（admin.php用） */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
th, td { padding: 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { background: #f1f5f9; }

/* --- style.css の末尾に追加 --- */

body::after {
    content: ""; /* 疑似要素の中身を空にする */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 240px;       /* ロゴの横幅（適宜調整） */
    height: 160px;    /* 高さは自動調整 */
    
    /* 画像の読み込みと設定 */
    background-image: url('logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    z-index: 9999;      /* 常に最前面へ */
    pointer-events: none; /* ←重要：画像の下にあるボタンがクリックできなくならないようにする */
    
    /* 見栄えの調整（任意） */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    opacity: 0.8;       /* 少し透かすとおしゃれです（不要なら1に） */
}

/* 修了証の基本デザイン（印刷用） */
.certificate-printable {
    display: none; /* 通常時は非表示 */
}

@media print {
    /* 印刷時は修了証以外をすべて消す */
    body * {
        visibility: hidden;
    }
    .certificate-printable, .certificate-printable * {
        visibility: visible;
    }
    .certificate-printable {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
    .cert-border {
        border: 15px double #191970; /* 格調高い二重線 */
        padding: 60px;
        text-align: center;
        background: white;
    }
    /* 背景画像（logo.png）などが邪魔な場合は消す */
    body { background: none !important; }
}