/* 研究・活動ページ専用スタイル */

/* === ヒーローセクション === */
.research-hero {
    height: 60vh;
    min-height: 400px;
    background-image: url('../images/karatsucastle.jpg');
    background-size: cover;
    background-position: center top;
    animation: bgPan 25s ease-in-out infinite alternate;
}

/* === 研究テーマ (Themes) === */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.theme-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

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

.theme-number {
    position: absolute;
    top: -15px;
    right: -10px;
    font-family: "Outfit", sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(139, 21, 56, 0.06);
    line-height: 1;
    pointer-events: none;
}

.theme-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-text);
    position: relative;
    padding-right: 20px;
}

.theme-description {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.8;
}

/* === 活動実績 (Activities) === */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.activity-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.activity-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 0 8px 20px rgba(139, 21, 56, 0.2);
}

.activity-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.activity-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--main-enji);
    font-weight: 700;
}

.activity-list {
    text-align: left;
    padding-left: 0;
}

.activity-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--secondary-text);
}

.activity-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--main-teal);
    border-radius: 50%;
}

/* === キーワード (Keywords) === */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.skill-tag {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--main-enji);
    color: var(--main-enji);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--main-enji);
    color: white;
    transform: scale(1.05);
    cursor: default;
}

/* === 詳細セクション === */
.detail-section {
    background: #fff;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.03);
}

/* === セクション見出し === */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--main-enji);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: 10px;
    flex-shrink: 0;
}

.section-icon svg {
    fill: white;
}

/* === タイムライン === */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--main-enji), var(--main-teal));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-bottom: 8px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid var(--main-enji);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.2);
}

.timeline-year {
    font-family: "Outfit", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--main-enji);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.timeline-content {
    font-size: 1rem;
    color: var(--primary-text);
    font-weight: 500;
    line-height: 1.6;
}

/* === スマホ対応 === */
@media (max-width: 768px) {
    .research-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .theme-grid,
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .theme-card,
    .activity-card {
        padding: 24px;
    }
    
    .detail-section {
        padding: 24px 20px;
    }
    
    .section-heading {
        font-size: 1.2rem;
        gap: 10px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    .section-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .timeline {
        padding-left: 32px;
    }
    
    .timeline::before {
        left: 6px;
    }
    
    .timeline-item::before {
        left: -32px;
        width: 14px;
        height: 14px;
    }
}
