/* ==========================================================================
   research.css (Researchページ専用スタイル)
   ========================================================================== */

/* --- 1. ビュー切り替えトグル（タブ） --- */
.view-toggle {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.toggle-btn.active {
    color: #fff;
}

.toggle-btn::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.toggle-btn.active::after {
    transform: scaleX(1);
}

/* --- 2. ビュー切り替えアニメーション --- */
.view-section {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.4s ease; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- 3. アカデミック実績リスト --- */
.category-block {
    margin-top: 3rem;
}

.category-title {
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.research-item,
.note-item {
    padding: 1.5rem;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 1.2rem;
    border-radius: 6px;
    cursor: pointer; /* note-item用 */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.research-item:last-child,
.note-item:last-child {
    margin-bottom: 0;
}

.research-item:hover,
.note-item:hover {
    background: rgba(40, 40, 40, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    border-left-color: #ffffff;
    transform: translate3d(4px, -2px, 0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.item-year, .note-date {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.3rem;
    display: block;
}

.item-title, .note-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.note-title {
    font-size: 1.3rem;
}

.item-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* --- 5. Markdown 本文のタイポグラフィ --- */
.markdown-body {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.markdown-body h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.markdown-body h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 2rem 0 1rem 0;
}

.markdown-body p {
    margin-bottom: 1.5rem;
}

.markdown-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body hr {
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    margin: 3rem 0;
}

.markdown-body.glass-panel {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}