/*
    Hestia's Definitive Blueprint for Special Occasions
    -----------------------------------------------------
    File: event-page.css
    Role: To create a beautiful and exciting gateway for special events.
*/

/* --- [I] The Grand Stage: Hero Section --- */
.hero-event {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 50, 100, 0.75), rgba(0, 90, 158, 0.65));
    display: flex;
    align-items: center;
}

.event-title {
    font-family: var(--font-family-title);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin: 0 0 0.5rem 0;
}

.event-catchcopy {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* --- [II] The Guides' Welcome: Introduction Section --- */
.event-intro {
    padding: 4rem 0;
    background-color: #fff;
}

.event-intro .container {
    max-width: 800px;
}

.dialogue-turn {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.dialogue-turn:last-child {
    margin-bottom: 0;
}

.dialogue-turn img {
    height: 80px;
    flex-shrink: 0;
}
.dialogue-turn p {
    margin: 0;
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.8;
}
.dialogue-turn p strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Character-specific styling */
.chisai-turn p {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}
.correct-turn {
    justify-content: flex-end; /* Correct appears from the right */
    flex-direction: row-reverse;
}
.correct-turn p {
    background-color: #e3f2fd;
    border: 1px solid #cce7ff;
}

/* --- [III] The Core Information: Details Section --- */
.event-details {
    padding: 5rem 0;
}
.event-details > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}
.detail-item h3 {
    font-family: var(--font-family-title);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 0.5rem;
}
.detail-item p {
    margin: 0;
    font-size: 1.1rem;
}

/* --- [IV] The Final Step: Call to Action --- */
.cta-area {
    text-align: center;
    margin-top: 4rem;
}
.cta-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}
.cta-note {
    margin-top: 1rem;
    color: #777;
    font-size: 0.9rem;
}
/* --- [V] The Heart of the Event: Philosophy Section --- */
.event-philosophy {
    padding: 5rem 0;
    background-color: #fff;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.philosophy-card {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.philosophy-card img {
    height: 100px;
    margin-bottom: 1.5rem;
}

.philosophy-card h3 {
    font-family: var(--font-family-title);
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--color-primary);
}

.philosophy-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}


/* --- [VI] Additions to Details Section --- */
.detail-item.full-width {
    grid-column: 1 / -1; /* グリッドの全幅を使用 */
}

.organizer-message {
    font-size: 1rem;
    line-height: 1.8;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--color-secondary);
}

.correct-commentary {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e3f2fd;
    border: 1px solid #cce7ff;
    border-radius: 8px;
    font-size: 0.9rem;
}
.correct-commentary p {
    margin: 0;
}

/*
    Hestia's Blueprint Addition for 2027
    --------------------------------------
    File: event-page.css (Addition)
    Role: To evolve the design for the 2027 event, focusing on action and narrative.
*/

/* --- [VII] 2027 Hero Section Enhancements --- */
.hero-2027 .event-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}
.hero-2027 .event-title {
    line-height: 1.3;
}
.hero-2027 .event-date {
    font-family: var(--font-family-title);
    font-size: 1.5rem;
    background-color: var(--color-secondary);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin: 1.5rem 0;
}
.hero-2027 .event-catchcopy-sub {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}


/* --- [VIII] Pavilion Section --- */
.event-pavilions {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}
.pavilions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.pavilion-card {
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}
.pavilion-card h3 {
    font-family: var(--font-family-title);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}
.pavilion-card p {
    margin: 0;
    line-height: 1.8;
    color: #555;
}
.pavilion-card code {
    background-color: #e9ecef;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
}
.pavilion-card.official {
    border-color: var(--color-secondary);
    background-color: #fff9f0;
}
.pavilion-card.future {
    border-color: #cce7ff;
    background-color: #f0f8ff;
}

/* --- [IX] Action Roulette Section --- */
.event-action-roulette {
    padding: 5rem 0;
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
}
.event-action-roulette .section-title {
    color: #fff;
}
.event-action-roulette .section-title span {
    color: rgba(255,255,255,0.7);
}
.action-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1rem auto 2.5rem auto;
    max-width: 700px;
}
.cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* --- [XI] Project Pillars Section --- */
.event-pillars {
    padding: 5rem 0;
    background: #f8f9fa;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pillar-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 70, 130, 0.08);
    display: flex;
    flex-direction: column;
}

.pillar-card img {
    height: 120px;
    width: auto; /* ★★★ この一行を追加 ★★★ */
    margin-left: auto; /* 画像を中央に配置 */
    margin-right: auto; /* 画像を中央に配置 */
    margin-bottom: 1.5rem;
}

.pillar-card h3 {
    font-family: var(--font-family-title);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin: 0 0 1rem 0;
}

.pillar-card p {
    margin: 0 0 2rem 0;
    line-height: 1.8;
    color: #555;
    flex-grow: 1; /* p要素が伸びてボタンの位置を揃える */
}

.pillar-card .cta-button {
    margin-top: auto; /* ボタンをカードの下端に配置 */
}