:root {
    --primary-accent: #8E7CC3;
    --bg-paper: #FDFBFF;
    --text-main: #3F3D56;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-main);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 20mm;
}

.cover-page { text-align: center; padding: 60px 0; }
.header-label { font-family: 'JetBrains Mono'; color: var(--primary-accent); letter-spacing: 0.3em; margin-bottom: 15px; font-weight: 700; }
h1 { font-size: 2.8rem; border-bottom: 4px solid var(--primary-accent); display: inline-block; padding-bottom: 10px; margin-bottom: 30px; font-weight: 800; }

/* プロフィール */
.professor-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 850px;
    margin: 40px auto;
    text-align: left;
    background: rgba(142, 124, 195, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(142, 124, 195, 0.1);
}
.profile-image img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-accent); }
.professor-name { font-size: 1.4rem; margin: 0 0 10px 0; color: var(--primary-accent); }
.professor-bio { font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }
.lab-meta p { margin: 5px 0; font-size: 0.9rem; }
.lab-meta a { color: var(--primary-accent); text-decoration: none; font-weight: 700; }

.section-title {
    border-left: 8px solid var(--primary-accent);
    padding-left: 15px;
    font-size: 1.8rem;
    margin: 60px 0 30px;
}

.content-grid, .tutorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.content-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(142, 124, 195, 0.05);
}
.wide-card { grid-column: 1 / -1; }

.card-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: var(--primary-accent);
    margin-bottom: 16px;
}

.joke-sub-box {
    background-color: #faf9ff;
    border: 1px dashed var(--primary-accent);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 0.95rem;
}
.dialogue strong { color: var(--primary-accent); background: #f3f0ff; padding: 0 4px; border-radius: 3px; }

.bright-highlight-note {
    margin-top: 30px;
    padding: 25px;
    background-color: #f3f0ff;
    border-left: 6px solid var(--primary-accent);
    border-radius: 8px;
}
.highlight-title { color: var(--primary-accent); font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; display: block; }

.story-table-wrapper { border: 2px solid var(--primary-accent); border-radius: 12px; overflow: hidden; margin-top: 20px; }
.story-table { width: 100%; border-collapse: collapse; background: white; }
.story-table th { background: var(--primary-accent); color: white; padding: 15px; }
.story-table td { border: 1px solid #e0e0e0; padding: 25px; vertical-align: top; }
.month { text-align: center; font-weight: 800; color: var(--primary-accent); background: #f8f7ff; width: 100px; }

.direct-invitation { text-align: center; font-size: 1.4rem; font-weight: 800; margin-top: 60px; }
.signature { text-align: right; color: var(--primary-accent); font-weight: 800; margin-top: 20px; }

@media (max-width: 900px) {
    .content-grid, .tutorial-grid, .professor-profile { grid-template-columns: 1fr; flex-direction: column; text-align: center; }
}