/* ==========================================
   Single Post Page Styles (投稿詳細ページ)
   1280px基準
   ========================================== */

:root {
    --single-bg: #FCF7E7;
    --single-card-bg: #FFFFFF;
    --single-text: #3A3333;
}

/* ==========================================
   メインコンテナ
   ========================================== */

.single-post-page {
    min-height: 100vh;
    padding: 2rem 0 16rem;
    position: relative;
    overflow: hidden;
}

/* ==========================================
   コンテナ
   ========================================== */

.single-container {
    max-width: 98rem;
    margin: 0 auto;
    padding: 5rem 6.5rem 5rem 6.5rem;
    position: relative;
    z-index: 0;
}

.single-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--single-bg);
    border-radius: 1rem;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   ページヘッダー（News・お知らせ）
   ========================================== */

.archive-header {
    margin-bottom: 0;
    padding-left: 4.5rem;
}

.archive-title-wrap {
    margin-bottom: 1.5rem;
}

.archive-subtitle {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.4rem;
    letter-spacing: 0;
    text-align: left;
    color: #83468b;
    margin-bottom: -1.2rem;
    opacity: 1;
}

.archive-title {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 4rem;
    font-weight: 500;
    line-height: 5.8rem;
    letter-spacing: 0;
    text-align: left;
    color: #000000;
    margin: 0;
    opacity: 1;
}

/* ==========================================
   装飾要素（葉っぱ）
   ========================================== */

/* 植物イラスト装飾（右上） */
.archive-leaf-decoration {
    position: absolute;
    top: 14.8rem;
    right: -19.1rem;
    width: 50.2rem;
    height: auto;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
    transform: rotate(45deg);
    transform-origin: top right;
}

/* 右上葉っぱ装飾 */
.single-post-page .leaf-decoration-2 {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

/* ==========================================
   カード
   ========================================== */

.single-card {
    width: 85rem;
    min-width: 80rem;
    min-height: 90.5rem;
    background: var(--single-card-bg);
    border-radius: 1rem;
    margin: 1.5rem 0 0 0;
    padding: 4.5rem;
    box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

/* ==========================================
   カードヘッダー（日付・カテゴリー・ハッシュタグ）
   ========================================== */

.single-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

/* 日付 */
.single-date {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.6rem;
    color: var(--single-text);
}

.single-category-badge {
    display: inline-block;
    padding: 0.5rem 2rem;
    background: #BF88C6;
    border-radius: 1.5rem;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.9rem;
    color: #FFFFFF;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    margin-top: 0.3rem;
    margin-right: -0.6rem;
}

.single-hashtags {
    display: flex;
    gap: 1rem;
}

.single-hashtag {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.4rem;
    color: var(--single-text);
}

/* ==========================================
   サムネイル画像
   ========================================== */

.single-thumbnail {
    width: 76rem;
    height: 40rem;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.single-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* ==========================================
   タイトル
   ========================================== */

.single-title {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 3rem;
    color: var(--single-text);
    margin-bottom: 2rem;
}

/* ==========================================
   本文
   ========================================== */

.single-content {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.4rem;
    color: var(--single-text);
}

.single-content p {
    margin-bottom: 1.6rem;
}

.single-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   ナビゲーション
   ========================================== */

/* 次のページボタン（左側） */
.next-page-button {
    position: absolute;
    bottom: 5rem;
    left: 16.2rem;
    width: 4.7rem;
    height: 4.7rem;
}

.next-page-button img {
    display: block;
    width: 100%;
    height: 100%;
}

/* 次のページテキスト */
.next-page-text {
    position: absolute;
    bottom: 6.3rem;
    left: 21.4rem;
    width: 7rem;
    height: 2rem;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2rem;
    letter-spacing: 0;
    text-align: left;
    color: #000000;
    text-decoration: none;
    opacity: 1;
}

/* 前のページボタン（右側） */
.prev-page-button {
    position: absolute;
    bottom: 5rem;
    right: 16.2rem;
    width: 4.7rem;
    height: 4.7rem;
}

.prev-page-button img {
    display: block;
    width: 100%;
    height: 100%;
}

/* 前のページテキスト */
.prev-page-text {
    position: absolute;
    bottom: 6.3rem;
    right: 21.4rem;
    width: 7rem;
    height: 2rem;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2rem;
    letter-spacing: 0;
    text-align: right;
    color: #000000;
    text-decoration: none;
    opacity: 1;
}

/* お知らせへ戻るボタン */
.back-to-list-button {
    position: absolute;
    bottom: 5.6rem;
    left: 50%;
    transform: translateX(-50%);
}

.back-to-list-button img {
    display: block;
    width: 16.2rem;
    height: 3.5rem;
}

/* ==========================================
   レスポンシブデザイン（モバイル・タブレット）
   ========================================== */

@media screen and (max-width: 699.98px) {
    /* 375px基準 */

    /* メインコンテナ */
    .single-post-page {
        padding: 0 0 16rem;
    }

    /* コンテナ */
    .single-container {
        max-width: 33.5rem;
        width: 33.5rem;
        margin: 2rem 2rem 0 2rem;
        padding: 10.6rem 1rem 5rem;
    }

    /* ==========================================
       ページヘッダー
       ========================================== */

    .archive-header {
        padding-left: 0;
        margin-bottom: 0;
    }

    .archive-subtitle {
        font-size: 1.6rem;
        line-height: 2.4rem;
        margin-top: 0;
        margin-bottom: -3rem;
        margin-left: 0;
        padding-left: 0;
    }

    .archive-title {
        font-size: 3rem;
        line-height: 4.5rem;
        margin-top: 2.2rem;
        margin-bottom: 1.5rem;
        margin-left: 0;
        padding-left: 0;
    }

    /* ==========================================
       装飾要素（葉っぱ）
       ========================================== */

    /* 植物イラスト装飾（右上） */
    .archive-leaf-decoration {
        width: 37.5rem;
        top: 12.5rem;
        right: -13.8rem;
    }

    /* 右上葉っぱ装飾 */
    .single-post-page .leaf-decoration-2 {
        width: 15rem;
    }

    /* ==========================================
       カード
       ========================================== */

    .single-card {
        width: 31.5rem;
        min-width: auto;
        min-height: auto;
        padding: 0 0 21.5rem 0;
        margin: 0 auto 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    /* ==========================================
       カードヘッダー（日付・カテゴリー・ハッシュタグ）
       ========================================== */

    .single-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 0;
        padding: 3.3rem 0 0 1.5rem;
        width: 100%;
    }

    .header-left {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
        margin-top: 0;
    }

    .header-right {
        margin-left: 0;
        margin-bottom: 1.5rem;
    }

    /* 日付 */
    .single-date {
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 2.4rem;
        color: #3A3333;
    }

    /* カテゴリーバッジ */
    .single-category-badge {
        width: 13.1rem;
        height: 2.9rem;
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.9rem;
        padding: 0.5rem;
        margin-top: -0.3rem;
        border-radius: 1.5rem;
        box-sizing: border-box;
    }

    /* ハッシュタグ */
    .single-hashtag {
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.7rem;
    }

    /* ==========================================
       サムネイル画像
       ========================================== */

    .single-thumbnail {
        width: 28.5rem;
        height: 30rem;
        margin: 0 auto 1.5rem;
        border-radius: 1rem;
        align-self: center;
    }

    /* ==========================================
       タイトル
       ========================================== */

    .single-title {
        margin-bottom: 2rem;
        padding: 0 1.5rem;
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 2.4rem;
        width: 100%;
    }

    /* ==========================================
       本文
       ========================================== */

    .single-content {
        font-size: 1.4rem;
        font-weight: 500;
        line-height: 2.8rem;
        padding: 0 1.5rem;
        width: 100%;
    }

    /* ==========================================
       ナビゲーション
       ========================================== */

    /* 次のページボタン */
    .next-page-button {
        position: absolute;
        left: 1.5rem;
        bottom: 9.5rem;
        width: 4rem;
        height: 4rem;
    }

    .next-page-button img {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* 次のページテキスト */
    .next-page-text {
        position: absolute;
        left: 6.5rem;
        bottom: 10.5rem;
        font-family: "Zen Maru Gothic", sans-serif;
        font-size: 1.4rem;
        font-weight: 500;
        line-height: 2.1rem;
        text-align: left;
        letter-spacing: 0;
        color: #000000;
        opacity: 1;
        white-space: nowrap;
    }

    /* 前のページボタン */
    .prev-page-button {
        position: absolute;
        right: 1.5rem;
        bottom: 9.5rem;
        width: 4rem;
        height: 4rem;
    }

    .prev-page-button img {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* 前のページテキスト */
    .prev-page-text {
        position: absolute;
        right: 6.5rem;
        bottom: 10.5rem;
        font-family: "Zen Maru Gothic", sans-serif;
        font-size: 1.4rem;
        font-weight: 500;
        line-height: 2.1rem;
        text-align: left;
        letter-spacing: 0;
        color: #000000;
        opacity: 1;
        white-space: nowrap;
    }

    /* お知らせへ戻るボタン */
    .back-to-list-button {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 3rem;
        width: 16.2rem;
        height: 3.5rem;
    }

    .back-to-list-button img {
        display: block;
        width: 100%;
        height: 100%;
    }
}