/*
    Hestia's Definitive Blueprint for "EGIC-Travelog"
    -------------------------------------------------
    File: /business/journey/travelog/css/travelog.css
    Role: To create a vivid stage for the ensemble drama of our four travelers.
*/

/* (Hestia's Note: post.css の、基本意匠を、継承しつつ、拡張します) */

.travelog-article {
    background-color: #fff;
    padding: 5rem 0;
}

/* --- The Stage: Dialogue Styles --- */
.dialogue-turn {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.dialogue-turn img {
    width: 80px;        /* 器の幅 */
    height: 80px;       /* 器の高さ */
    object-fit: contain; /* Hestia's Correction: 魂を、歪めずに、器に収める絶対の呪文 */
    border-radius: 50%;  /* 丸い窓から覗くように */
    background-color: white; /* 余白ができても美しく見えるように */
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* (後略) */
.dialogue-turn p {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    margin: 0;
    line-height: 1.8;
    flex-grow: 1;
}
/* 吹き出しのしっぽ */
.dialogue-turn p::before {
    content: ''; position: absolute; top: 20px;
    border-width: 10px; border-style: solid;
}

/* --- Character Colors --- */
/* ちさまる (左側) */
.chisai-turn { flex-direction: row; }
.chisai-turn p { background-color: #fffde7; border: 1px solid #fff9c4; }
.chisai-turn p::before { left: -20px; border-color: transparent #fffde7 transparent transparent; }

/* コネクト (左側) */
.connect-turn { flex-direction: row; }
.connect-turn p { background-color: #fff3e0; border: 1px solid #ffe0b2; }
.connect-turn p::before { left: -20px; border-color: transparent #fff3e0 transparent transparent; }

/* コレクト (右側) */
.correct-turn { flex-direction: row-reverse; }
.correct-turn p { background-color: #e3f2fd; border: 1px solid #bbdefb; }
.correct-turn p::before { right: -20px; border-color: transparent transparent transparent #e3f2fd; }

/* フォリオ先生 (右側) */
.folio-turn { flex-direction: row-reverse; }
.folio-turn p { background-color: #e8f5e9; border: 1px solid #c8e6c9; }
.folio-turn p::before { right: -20px; border-color: transparent transparent transparent #e8f5e9; }

/* --- Scene & Narration --- */
.scene-description {
    text-align: center;
    color: #777;
    font-style: italic;
    margin: 3rem 0 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.scene-description::before, .scene-description::after {
    content: ''; display: block; width: 50px; height: 1px; background-color: #ccc;
}

.narration-box {
    background-color: #fafafa;
    border: 1px dashed #ccc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    color: #555;
}

/*
    Hestia's Addition for Travelog List
    -----------------------------------
    File: /business/journey/travelog/css/travelog.css (Addition)
*/

.travelog-list-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}
.travelog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.travelog-card {
    display: block;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}
.travelog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.travelog-card .card-image {
    height: 200px;
    overflow: hidden;
}
.travelog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.travelog-card:hover .card-image img {
    transform: scale(1.1);
}
.travelog-card .card-content {
    padding: 1.5rem;
}
.travelog-card time {
    font-size: 0.9rem;
    color: #777;
    font-weight: bold;
}
.travelog-card h3 {
    font-family: var(--font-family-title);
    font-size: 1.4rem;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.4;
}
.travelog-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* --- Main Visual --- */
.main-visual {
    margin: 3rem auto;
    text-align: center;
    max-width: 1000px; /* 必要なら最大幅を制限 */
}

.main-visual img {
    display: block;
    max-width: 100%;   /* 親要素の幅に収める */
    height: auto;      /* アスペクト比を保持 */
    margin: 0 auto;    /* 中央寄せ */
    border-radius: 12px; /* 少し角丸にして雰囲気を合わせる */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Travelogカードと統一感 */
}

.main-visual figcaption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}