@charset "UTF-8";

/* ==========================================================================
   Project: Connect Station HOME
   File: css/post.css
   Description: 記事詳細ページ（Travelog, さんぽ）豪華デザイン版
   ========================================================================== */

/* --- 1. ページ全体 --- */
.post-article {
    padding: 5rem 0;
    background-color: #fcfaf5;
    background-image: url('/images/common/paper_texture_light.png');
    background-blend-mode: multiply;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 2;
    color: #3d3d3d;
}

/* --- 2. タイポグラフィ --- */
.post-content h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    margin: 4.5rem 0 2rem 0;
    line-height: 1.4;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}
.post-content h2::before {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 4px;
    background-color: var(--color-secondary); border-radius: 2px;
}

.post-content p {
    margin-bottom: 2rem;
    text-align: justify;
}

/* --- 3. 画像とキャプション --- */
.post-content figure {
    margin: 3.5rem 0;
    text-align: center;
    position: relative;
}

.post-content figure img {
    /* ★修正: 本文幅を超えないように最大幅を設定 */
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 4px;
    border: 10px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #fff;
    transition: transform 0.4s ease-in-out;
}

.post-content figure:hover img {
    transform: scale(1.03);
}

/* メインビジュアル */
.post-content .main-visual {
    margin-top: 0;
    margin-bottom: 5rem;
}
.post-content .main-visual img {
    width: 100%; /* メインビジュアルは幅いっぱいに */
    max-height: 500px;
    object-fit: cover;
}

/* ★追加: フルワイド画像クラス */
.post-content .full-width {
    width: 100vw;
    max-width: 1200px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 5rem 0;
}
.post-content .full-width img {
    width: 100%;
    height: auto;
}

/* キャプション */
.post-content figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
}

/* --- 4. 対話システム --- */
.post-content .dialogue-turn {
    margin: 3rem 0;
    position: relative;
    padding: 2rem;
    border-radius: 12px;
}
.post-content .chisa-turn { background-color: rgba(255, 248, 225, 0.5); }
.post-content .correct-turn { background-color: rgba(227, 242, 253, 0.5); }
.post-content .connect-turn { background-color: rgba(255, 243, 224, 0.5); }
.post-content .folio-turn { background-color: rgba(251, 233, 231, 0.5); }
.post-content .waka-turn { background-color: rgba(241, 248, 233, 0.5); }
.post-content .mini-turn { background-color: rgba(252, 228, 236, 0.5); }
.post-content .pochi-turn { background-color: rgba(224, 242, 241, 0.5); }

.post-content .dialogue-turn p {
    margin: 0;
    font-size: 1.1rem;
}

/* --- 5. その他装飾 --- */
.scene-description {
    text-align: center;
    font-style: italic;
    color: #888;
    margin: 4rem 2rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    background: #fff;
}
.narration-box {
    text-align: center;
    font-weight: bold;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #555;
    margin: 3rem auto;
    padding: 1.5rem;
    max-width: 600px;
    border: 2px dashed #ccc;
    border-radius: 4px;
}

/* --- 6. 記事フッター --- */
.post-footer {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid #ddd;
    text-align: center;
}
.back-to-list-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 1.1rem;
}
.back-to-list-button:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 90, 158, 0.2);
}