/* ==============================
   ブログ共通レイアウト (Production)
============================== */

/* 背景をサイト全体と統一 */
body.single,
body.single-post {
    /* サイト共通の変数(--bg)を使用し、統一感を出す */
    background: var(--bg, #f8f1e9) !important;
    font-family: "Noto Sans JP", sans-serif;
}

/* 記事本体の中央寄せ */
.post-content {
    max-width: 820px;
    margin: 60px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.85;
    color: #333;
}

/* 見出し調整 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: "Michroma", "Noto Sans JP", sans-serif;
    /* Michroma優先 */
    letter-spacing: 0.03em;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

/* h2 */
.post-content h2 {
    font-size: 1.8rem;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

/* h3 */
.post-content h3 {
    font-size: 1.5rem;
}

/* h4 */
.post-content h4 {
    font-size: 1.3rem;
}

/* 段落 */
.post-content p {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* 画像 */
.post-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    display: block;
}

/* 引用（旅行ログの箱） */
.trip-log {
    background: #fff7e8;
    border-left: 4px solid #f0a500;
    padding: 20px 25px;
    white-space: pre-wrap;
    /* 改行維持 */
    border-radius: 8px;
    margin: 32px 0;
    font-size: 1rem;
    line-height: 1.8;
    font-family: "Noto Sans JP", sans-serif;
}

/* コードブロック風の表示 */
.post-content pre {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    border: 1px solid #e5e5e5;
    font-size: 0.95rem;
}

/* リンク */
.post-content a {
    color: #e06633;
    text-decoration: underline;
}

.post-content a:hover {
    opacity: 0.7;
}

/* リストの調整 */
.post-content ul,
.post-content ol {
    padding-left: 20px;
    margin-bottom: 24px;
}

.post-content li {
    margin-bottom: 6px;
}

/* 行間が詰まらないように */
.post-content br {
    line-height: 2.2;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .post-content {
        padding: 25px 18px;
        margin: 20px auto;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }
}

.post-image-x {
    max-width: 50%;
}

/* 横並びレイアウト（共通） */
.image-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    /* はみ出し防止 */
    margin: 20px 0;
}

.image-col {
    flex: 1 1 45%;
    /* 幅調整 */
    max-width: 45%;
    text-align: center;
}

/* 画像の共通スタイル */
.post-image-x img,
.post-image img {
    width: 75%;
    height: auto;
    border-radius: 8px;
}

/* スマホは縦並び */
@media (max-width: 768px) {
    .image-col {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* ==================================
   記事固有クラスの追加 (ユーザーHTML対応)
   ================================== */

/* ブログタイトル（h2相当）の補完 */
.blog-title {
    font-family: "Michroma", "Noto Sans JP", sans-serif;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: #333;
}

/* 通常テキスト */
.blog-text {
    font-size: 1.05rem;
    line-height: Sp1.9;
    margin-bottom: 30px;
}

/* デッキコード表示 */
.blog-deckcode {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
    margin: 30px 0;
    border-radius: 5px;
    letter-spacing: 0.1em;
}

/* 画像ラッパー */
.blog-image {
    margin: 30px 0;
    text-align: center;
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 2カラムレイアウト（記事内用） */
.blog-two-col {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 40px 0;
    align-items: center;
    /* 垂直方向中央 */
}

.blog-two-col.mid {
    /* midクラスがある場合の調整（必要に応じて） */
    align-items: flex-start;
}

.blog-two-col .col {
    flex: 1;
}

.blog-two-col img {
    width: 100%;
    height: auto;
    margin: 0;
    /* col内ではマージンリセット */
}

/* スマホ対応（記事内2カラム） */
@media (max-width: 768px) {
    .blog-two-col {
        flex-direction: column;
    }

    .blog-deckcode {
        font-size: 1rem;
        padding: 10px;
    }
}