/**
 * Research Pages Styles
 * 学会・研修・研究発表ページ用スタイル
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --research-primary: #1a5276;
    --research-secondary: #2980b9;
    --research-accent: #e74c3c;
    --research-bg: #f8f9fa;
    --research-card-bg: #ffffff;
    --research-text: #333333;
    --research-text-muted: #6c757d;
    --research-border: #dee2e6;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.page-hero--research {
    background: linear-gradient(135deg, var(--research-primary) 0%, var(--research-secondary) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero--research .page-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 16px;
}

.page-hero--research .page-hero__icon .material-symbols-outlined {
    font-size: 32px;
}

.page-hero--research .page-hero__title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.page-hero--research .page-hero__subtitle {
    margin-top: 12px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================================================
   Category Navigation
   ========================================================================== */
.research-categories {
    margin: -30px 0 40px;
    position: relative;
    z-index: 10;
}

.research-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.research-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--research-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--research-text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.research-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: var(--research-primary);
}

.research-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--research-primary), var(--research-secondary));
    border-radius: 50%;
    color: #fff;
}

.research-category-card__icon .material-symbols-outlined {
    font-size: 24px;
}

.research-category-card__name {
    font-weight: 600;
    font-size: 1rem;
}

.research-category-card__count {
    font-size: 0.85rem;
    color: var(--research-text-muted);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.research-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

.research-main {
    min-width: 0;
}

.research-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 991px) {
    .research-layout {
        grid-template-columns: 1fr;
    }
    
    .research-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .research-sidebar > * {
        flex: 1 1 280px;
    }
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.research-section {
    margin-bottom: 48px;
}

.research-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--research-primary);
    margin: 0;
}

.section-title .material-symbols-outlined {
    font-size: 28px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--research-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-more:hover {
    color: var(--research-primary);
}

.btn-more .material-symbols-outlined {
    font-size: 18px;
}

/* ==========================================================================
   Research Grid
   ========================================================================== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.research-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.research-grid--list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ==========================================================================
   Research Card
   ========================================================================== */
.research-card {
    background: var(--research-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.research-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.research-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--research-bg);
    overflow: hidden;
}

.research-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.research-card:hover .research-card__image img {
    transform: scale(1.05);
}

.research-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.research-card__image-placeholder .material-symbols-outlined {
    font-size: 48px;
    color: var(--research-text-muted);
}

.research-card__media-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
}

.research-card__media-badge--video {
    background: #e74c3c;
}

.research-card__media-badge--pdf {
    background: #c0392b;
}

.research-card__media-badge .material-symbols-outlined {
    font-size: 20px;
}

.research-card__body {
    padding: 20px;
}

.research-card__category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--research-bg);
    color: var(--research-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
}

.research-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px;
    color: var(--research-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-card--featured .research-card__title {
    font-size: 1.2rem;
    -webkit-line-clamp: 3;
}

.research-card__event,
.research-card__presenter {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--research-text-muted);
    margin: 0 0 8px;
}

.research-card__event .material-symbols-outlined,
.research-card__presenter .material-symbols-outlined {
    font-size: 16px;
}

.research-card__date {
    display: block;
    font-size: 0.85rem;
    color: var(--research-text-muted);
}

/* ==========================================================================
   Sidebar Cards
   ========================================================================== */
.research-sidebar-card {
    background: var(--research-card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.research-sidebar-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--research-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--research-bg);
}

.research-sidebar-card__title .material-symbols-outlined {
    font-size: 20px;
}

/* News List */
.research-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-news-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--research-border);
    font-size: 0.9rem;
}

.research-news-list li:last-child {
    border-bottom: none;
}

.research-news-list li.important {
    color: var(--research-accent);
}

.research-news-list time {
    flex-shrink: 0;
    color: var(--research-text-muted);
    font-size: 0.85rem;
}

/* Conference List */
.research-conference-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-conference-list li {
    margin-bottom: 12px;
}

.research-conference-list li:last-child {
    margin-bottom: 0;
}

.research-conference-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--research-text);
    transition: color 0.2s;
}

.research-conference-list a:hover {
    color: var(--research-secondary);
}

.research-conference-list img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.research-conference-list .material-symbols-outlined {
    font-size: 20px;
    color: var(--research-text-muted);
}

/* ==========================================================================
   Filters
   ========================================================================== */
.research-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.research-filters__categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 16px;
    background: var(--research-bg);
    color: var(--research-text);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--research-primary);
    color: #fff;
}

.research-filters__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.research-filters__sort label {
    font-size: 0.9rem;
    color: var(--research-text-muted);
}

.research-filters__sort select {
    padding: 8px 12px;
    border: 1px solid var(--research-border);
    border-radius: 6px;
    background: #fff;
    font-size: 0.9rem;
}

.research-result-count {
    margin-bottom: 24px;
    color: var(--research-text-muted);
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.research-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--research-text-muted);
}

.research-empty .material-symbols-outlined {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.research-empty p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* ==========================================================================
   Detail Page
   ========================================================================== */
.research-detail {
    padding: 40px 0 80px;
}

.research-detail__header {
    margin-bottom: 40px;
}

.research-detail__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.research-detail__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--research-bg);
    color: var(--research-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
}

.research-detail__category:hover {
    background: var(--research-secondary);
    color: #fff;
}

.research-detail__category .material-symbols-outlined {
    font-size: 18px;
}

.research-detail__header time {
    color: var(--research-text-muted);
}

.research-detail__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--research-text);
    margin: 0 0 16px;
}

.research-detail__event {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--research-text-muted);
}

.research-detail__event .material-symbols-outlined {
    font-size: 20px;
}

/* Detail Layout */
.research-detail__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.research-detail__main {
    min-width: 0;
}

.research-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 991px) {
    .research-detail__layout {
        grid-template-columns: 1fr;
    }
}

/* Figure */
.research-detail__figure {
    margin: 0 0 32px;
    border-radius: 12px;
    overflow: hidden;
}

.research-detail__figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections */
.research-detail__presenters,
.research-detail__summary,
.research-detail__video,
.research-detail__pdf {
    margin-bottom: 32px;
}

.research-detail__presenters h2,
.research-detail__summary h2,
.research-detail__video h2,
.research-detail__pdf h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: var(--research-primary);
    margin-bottom: 16px;
}

/* Presenter List */
.presenter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.presenter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--research-bg);
    border-radius: 8px;
}

.presenter-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presenter-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.presenter-item__icon .material-symbols-outlined {
    font-size: 24px;
    color: var(--research-text-muted);
}

.presenter-item__info strong {
    display: block;
    font-size: 1rem;
}

.presenter-item__role {
    font-size: 0.85rem;
    color: var(--research-text-muted);
}

/* Content */
.research-detail__content {
    margin-bottom: 32px;
}

/* Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Download Button */
.btn--download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--research-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn--download:hover {
    background: #c0392b;
    color: #fff;
}

/* Tags */
.research-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tag {
    padding: 4px 12px;
    background: var(--research-bg);
    color: var(--research-text-muted);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Info List */
.info-list {
    margin: 0;
}

.info-list dt {
    font-size: 0.85rem;
    color: var(--research-text-muted);
    margin-bottom: 4px;
}

.info-list dd {
    margin: 0 0 16px;
}

.info-list dd:last-child {
    margin-bottom: 0;
}

.info-list a {
    color: var(--research-secondary);
    text-decoration: none;
}

.info-list a:hover {
    text-decoration: underline;
}

/* Related List */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 12px;
}

.related-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: var(--research-text);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.related-list a:hover {
    color: var(--research-secondary);
}

.related-list time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--research-text-muted);
    background: var(--research-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn--twitter {
    background: #000;
}

.share-btn--facebook {
    background: #1877f2;
}

.share-btn--line {
    background: #00b900;
    font-size: 0.7rem;
}

/* Navigation */
.research-detail__nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--research-border);
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--research-text);
    background: var(--research-bg);
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-link:hover {
    background: var(--research-border);
}

.nav-link--prev,
.nav-link--next {
    flex-direction: column;
    align-items: flex-start;
    max-width: 280px;
}

.nav-link--next {
    align-items: flex-end;
    text-align: right;
}

.nav-link__label {
    font-size: 0.85rem;
    color: var(--research-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link__title {
    font-weight: 600;
    color: var(--research-primary);
}

.nav-link--back {
    margin: 0 auto;
}

/* ==========================================================================
   News List Page
   ========================================================================== */
.news-year-section {
    margin-bottom: 48px;
}

.news-year-title {
    font-size: 1.5rem;
    color: var(--research-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--research-primary);
}

.news-list-full {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--research-card-bg);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-item--important {
    border-left: 4px solid var(--research-accent);
}

.news-item__date {
    flex-shrink: 0;
    text-align: center;
}

.news-item__date time {
    display: flex;
    flex-direction: column;
}

.news-item__date .month {
    font-size: 0.85rem;
    color: var(--research-text-muted);
}

.news-item__date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--research-primary);
}

.news-item__content {
    flex: 1;
}

.news-item__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-item__badge {
    padding: 2px 8px;
    background: var(--research-accent);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 4px;
}

.news-item__body {
    font-size: 0.95rem;
    color: var(--research-text-muted);
    line-height: 1.6;
}

.news-item__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--research-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.news-item__link:hover {
    text-decoration: underline;
}

.news-item__link .material-symbols-outlined {
    font-size: 16px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    margin-top: 48px;
}

.pagination__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--research-card-bg);
    color: var(--research-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.pagination__link:hover {
    background: var(--research-secondary);
    color: #fff;
}

.pagination__link--current {
    background: var(--research-primary);
    color: #fff;
}

.pagination__link--prev,
.pagination__link--next {
    gap: 4px;
}

/* ==========================================================================
   Prose Content
   ========================================================================== */
.prose {
    line-height: 1.8;
    color: var(--research-text);
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.prose p {
    margin-bottom: 16px;
}

.prose ul,
.prose ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.prose th,
.prose td {
    padding: 12px;
    border: 1px solid var(--research-border);
    text-align: left;
}

.prose th {
    background: var(--research-bg);
    font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.btn--primary {
    background: var(--research-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--research-secondary);
    color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .page-hero--research {
        padding: 40px 20px;
    }
    
    .page-hero--research .page-hero__title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 16px;
    }
    
    .page-hero--research .page-hero__icon {
        margin-right: 0;
    }
    
    .research-categories {
        margin: -20px 16px 32px;
    }
    
    .research-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .research-category-card {
        padding: 16px 12px;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-grid--featured {
        grid-template-columns: 1fr;
    }
    
    .research-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .research-detail__title {
        font-size: 1.5rem;
    }
    
    .research-detail__nav {
        flex-direction: column;
    }
    
    .nav-link--prev,
    .nav-link--next {
        max-width: 100%;
    }
    
    .news-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .news-item__date time {
        flex-direction: row;
        gap: 8px;
    }
    
    .news-item__date .day {
        font-size: 1rem;
    }
}
