/*
    Hestia's Definitive Blueprint for the "Staff Gallery" (Final Answer)
    --------------------------------------------------------------------
    File: staff.css
    Role: To create a sophisticated gallery that is in PERFECT HARMONY with the "Character" pages.
*/

/* --- Base Container --- */
.container { 
    max-width: 1100px; 
    margin-left: auto; 
    margin-right: auto; 
    padding-left: 2rem; 
    padding-right: 2rem; 
}

/* --- [I] The Gallery's Face: Hero Section --- */
.hero-staff {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    flex-direction: column; /* タイトルとキャッチコピーを縦に */
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
.hero-staff::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/common/staff-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9) blur(3px);
    z-index: -1;
}
.hero-staff .project-title {
    font-family: var(--font-family-title);
    font-size: 4rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin: 0;
}
.hero-staff .project-catchcopy {
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    margin-top: 1rem;
}

/* --- [II] The Introduction --- */
.staff-intro {
    padding: 5rem 0;
    text-align: center;
    background-color: #f8f9fa;
}
.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* --- [III] The Corridor of Portraits: Staff Gallery --- */
.staff-gallery {
    padding: 5rem 0;
}

.staff-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 2rem; 
}
.staff-card { 
    background-color: white; 
    border-radius: 12px; 
    padding: 2rem 1.5rem; 
    text-align: center; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.07); 
    cursor: pointer; 
    transition: transform 0.3s, box-shadow 0.3s; 
}
.staff-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
}
.staff-avatar { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    margin-bottom: 1.5rem; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    object-fit: cover;
}
.staff-name { 
    font-family: var(--font-family-title); 
    font-size: 1.5rem; 
    margin: 0 0 0.5rem 0; 
}
.staff-role { 
    margin: 0; 
    color: var(--color-secondary); 
    font-weight: bold; 
}

/* --- [IV] The Modal Window --- */
.staff-modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    opacity: 0; 
    transition: opacity 0.4s; 
    backdrop-filter: blur(5px); 
}
.staff-modal-overlay.is-visible { 
    display: flex; 
    opacity: 1; 
}
.staff-modal-content { 
    background-color: white; 
    padding: 2rem 3rem 3rem 3rem; 
    border-radius: 12px; 
    max-width: 900px; 
    width: 90%; 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative; 
    transform: translateY(20px) scale(0.95); 
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.staff-modal-overlay.is-visible .staff-modal-content { 
    transform: translateY(0) scale(1); 
}
.modal-close-btn { 
    position: absolute; 
    top: 1rem; 
    right: 1rem; 
    width: 40px; 
    height: 40px; 
    border: none; 
    background: #f0f0f0; 
    border-radius: 50%; 
    font-size: 1.5rem; 
    cursor: pointer; 
    line-height: 40px; 
}
.modal-header { 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
    margin-bottom: 2rem; 
    padding-bottom: 2rem; 
    border-bottom: 1px solid #e0e0e0; 
}
.modal-avatar { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    object-fit: cover;
}
.modal-title .name { 
    font-size: 2rem; 
    font-family: var(--font-family-title); 
}
.modal-title .role, .modal-title .branch { 
    color: #555; 
}
.modal-body { 
    padding-top: 1rem; 
}

/* --- [V] Dialogue & Details --- */
.detail-intro { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    margin-bottom: 3rem; 
}
.dialogue-turn { 
    display: flex; 
    align-items: flex-start; 
    gap: 1rem; 
}
.dialogue-turn img { 
    height: 60px; 
    flex-shrink: 0; 
    object-fit: contain;
}
.dialogue-turn p { 
    margin: 0; 
    padding: 1rem; 
    border-radius: 10px; 
    line-height: 1.6; 
}

/* キャラクターごとの色設定（元のスタイルを踏襲＋新キャラ追加） */
.chisai-turn p { background-color: #fffde7; }
.chisamaru-turn p { background-color: #fffde7; }
.correct-turn p { background-color: #e3f2fd; }
.connect-turn p { background-color: #fff3e0; }

/* ★追加分★ */
.minimaru-turn p { background-color: #fce4ec; } /* ベビーピンク */
.pochimaru-turn p { background-color: #e0f2f1; } /* 薄いティールグリーン */


.detail-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
}
.detail-block h4 { 
    font-size: 1.1rem; 
    color: var(--color-primary); 
    margin: 0 0 0.5rem 0; 
}
.detail-block p, .detail-block ul { 
    margin: 0; 
    line-height: 1.7; 
    font-size: 0.9rem; 
}
.detail-block ul { 
    list-style: none; 
    padding: 0; 
}
.message { 
    margin-top: 2rem; 
    background-color: #f8f9fa; 
    padding: 1.5rem; 
    border-radius: 8px; 
    border-left: 5px solid var(--color-secondary); 
}
.message p { 
    font-style: italic; 
}
.socials { 
    margin-top: 2rem; 
}
.socials div { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 1rem; 
}
.socials a { 
    font-weight: bold; 
    text-decoration: none; 
    border-bottom: 2px solid var(--color-secondary); 
    padding-bottom: 2px; 
}