/* Custom CSS for Uchida Lab Website */

/* Global styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 56px; /* For fixed navbar */
}

/* Hero section */
.hero {
    position: relative;
    background-color: #05386B; /* フォールバック用背景色 */
    background-image: url('../img/hero-bg.svg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    border-radius: 8px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.research-card {
    background-color: #f8f9fa;
    border-radius: 12px;
}

/* Buttons */
.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Section spacing */
section {
    padding: 80px 0;
}

/* Icons */
.text-primary {
    color: #0056b3 !important;
}

/* Member section */
.member-card {
    margin-bottom: 2rem;
}

.member-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Research page */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: #e9ecef;
}

.timeline > li {
    position: relative;
    margin-bottom: 50px;
    min-height: 50px;
}

.timeline > li:after, .timeline > li:before {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li .timeline-panel {
    position: relative;
    float: right;
    width: calc(100% - 90px);
    padding: 20px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.timeline > li .timeline-panel:before {
    content: " ";
    display: inline-block;
    position: absolute;
    top: 26px;
    left: -15px;
    border-top: 15px solid transparent;
    border-right: 15px solid #ccc;
    border-left: 0 solid #ccc;
    border-bottom: 15px solid transparent;
}

.timeline > li .timeline-panel:after {
    content: " ";
    display: inline-block;
    position: absolute;
    top: 27px;
    left: -14px;
    border-top: 14px solid transparent;
    border-right: 14px solid #fff;
    border-left: 0 solid #fff;
    border-bottom: 14px solid transparent;
}

.timeline > li .timeline-image {
    position: absolute;
    z-index: 100;
    left: 0;
    width: 80px;
    height: 80px;
    margin-left: 0;
    text-align: center;
    color: white;
    border: 7px solid #e9ecef;
    border-radius: 100%;
    background-color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
    }
    
    section {
        padding: 40px 0;
    }
}
