/*
    Hestia's Definitive Blueprint for the "Sites Portal" (The Unabridged Final Word)
    --------------------------------------------------------------------------------
    File: sites.css
    Role: To create a definitive, self-contained, and flawlessly beautiful portal.
    Note: THERE ARE NO OMISSIONS. THERE ARE NO DEPENDENCIES. THIS IS COMPLETE.
*/

/* --- [O] The Unbreakable Vows: Global Elements & The Oath of 1100px --- */
:root {
    --color-primary: #005a9e;
    --color-secondary: #ff9800;
    --color-text: #333333;
    --color-background: #f8f9fa;
    --font-family-base: 'Noto Sans JP', sans-serif;
    --font-family-title: 'Roboto', sans-serif;
}

.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.section-title {
    text-align: center;
    font-family: var(--font-family-title);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin: 0 0 3rem 0;
}
.section-title span {
    display: block;
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: #888;
    margin-top: 0.5rem;
}


/* --- [I] The Portal's Gate: Hero Section --- */
.hero-sites {
    min-height: 400px;
    background-image: linear-gradient(to top, rgba(83, 109, 254, 0.8), rgba(48, 79, 254, 0.4)), url('../images/common/sites-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}
.hero-sites .hero-project-content {
    text-align: left;
    color: white;
}
.hero-sites .project-title {
    font-family: var(--font-family-title);
    font-size: clamp(3rem, 6vw, 4.5rem);
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
    margin: 0;
    border-left: 4px solid var(--color-secondary);
    padding-left: 1.5rem;
}
.hero-sites .project-catchcopy {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-top: 1rem;
    padding-left: calc(1.5rem + 4px);
}


/* --- [II] The Guides' Dialogue: Introduction Section --- */
.sites-intro {
    padding: 5rem 0;
    background-color: #f8f9fa;
}
.intro-dialogue {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.dialogue-turn {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.dialogue-turn img {
    height: 60px;
    flex-shrink: 0;
}
.dialogue-turn p {
    margin: 0;
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.6;
}
.connect-turn p { background-color: #fff3e0; }
.correct-turn p { background-color: #e3f2fd; }
.chisai-turn p { background-color: #fffde7; }


/* --- [III] The Gates to Parallel Worlds: Sites Gallery --- */
.sites-gallery {
    padding: 5rem 0;
    background-color: #ffffff;
}
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.site-card {
    display: flex;
    align-items: flex-end;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-card:hover {
    transform: scale(1.05);
}
.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-card:hover::before {
    transform: scale(1.1);
}
.site-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}
.card-content h3 {
    font-family: var(--font-family-title);
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.card-content p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* 各世界の、魂を、宿す、背景画像 */
.site-card.bounavi::before { background-image: url('../images/sites/bounavi.png'); }
.site-card.chigakunavi::before { background-image: url('../images/sites/chigakunavi.png'); }
.site-card.sonasiru::before { background-image: url('../images/sites/sonashiru.png'); }
.site-card.correctos::before { background-image: url('../images/sites/correct.png'); }
.site-card.correct::before { background-image: url('../images/sites/correct.png'); }
.site-card.bousaihaku::before { background-image: url('../images/sites/bosaiexpo.png'); }
.site-card.chisaigakuen::before { background-image: url('../images/sites/chisaigakuen.png'); }
.site-card.daedalus::before { background-image: url('../images/sites/daedalus.png'); }
.site-card.characters::before { background-image: url('../images/sites/characters.png'); }
.site-card.connect::before { background-image: url('../images/sites/connect.png'); }