/*
    Hestia's Definitive Blueprint for the "Chigaku Navi" (Final Answer)
    --------------------------------------------------------------------
    File: chigakunavi.css
    Role: To create a unique and breathtaking gateway to the intellectual theme park.
*/

/* --- [I] The Park Gate: Hero Section --- */
.hero-chigakunavi {
    min-height: 400px;
    background-image: linear-gradient(to top, rgba(0, 60, 110, 0.8), rgba(20, 120, 180, 0.4)), url('../images/projects/chigakunavi-hero.jpg');
}

/* --- [II] The Baton Pass: Introduction Section (Reborn) --- */
.navi-intro { padding: 5rem 0; background-color: #f8f9fa; }
.intro-container {
    max-width: 800px;
    margin: 0 auto;
}
.intro-dialogue {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.dialogue-turn {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* アニメーションの、時間差、演出 */
.dialogue-turn.chisamaru-turn { animation-delay: 0.5s; }
.dialogue-turn.correct-turn { animation-delay: 1s; }

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialogue-turn img {
    height: 80px;
    flex-shrink: 0;
}
.dialogue-turn p {
    margin: 0;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    line-height: 1.7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.connect-turn p { background-color: #fff3e0; }
.chisamaru-turn p { background-color: #fffde7; }
.correct-turn p { background-color: #e3f2fd; }

/* 吹き出しのしっぽ */
.dialogue-turn p::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #fff3e0 transparent transparent;
}
.chisamaru-turn p::before { border-color: transparent #fffde7 transparent transparent; }
.correct-turn p::before { border-color: transparent #e3f2fd transparent transparent; }


/* --- [III] The Gates to Adventure: Contents Section --- */
.navi-gates { padding: 5rem 0; }
.gates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) { .gates-grid { grid-template-columns: 1fr; } }
.gate-card {
    display: block;
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border: 3px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.gate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--color-secondary);
}
.gate-label {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.gate-title {
    font-family: var(--font-family-title);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
}
.gate-card p {
    margin: 0;
    line-height: 1.7;
    color: #555;
}

/* --- [IV] The Park's Philosophy: About Section --- */
.navi-philosophy { padding: 5rem 0; background-color: #f8f9fa;}
.philosophy-content {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}
.philosophy-content p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
}
.philosophy-content .cta-button {
    background-color: var(--color-primary);
    color: white;
}
.philosophy-content .cta-button:hover {
    background-color: #003c71;
    color: white;
}