/* ==========================================
   お知らせアーカイブページ（archive.php）
   1280px基準
   ========================================== */

/* カラー変数定義 */
:root {
    --archive-bg: #FCF7E7;
    --archive-white: #FFFFFF;
    --archive-black: #000000;
    --archive-text-dark: #3A3333;
    --archive-pink: #D55167;
    --archive-pink-hover: #C04056;
    --archive-purple-1: #BF88C6;
    --archive-purple-2: #CE96D5;
    --archive-purple-3: #83468B;
    --archive-green-1: #B4F14B;
    --archive-green-2: #A5EA39;
}

/* メインコンテナ */
.archive-page {
    position: relative;
    overflow: hidden;
    margin-bottom: 16rem;
}

/* 背景矩形（.archive-pageには背景なし） */
.archive-page::before {
    content: none;
}

/* 植物イラスト装飾（右上） */
.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;
}

/* アーカイブコンテナ */
.archive-container {
    max-width: 98rem;
    margin: 2rem auto 0;
    padding: 5rem 6.5rem 5rem 6.5rem;
    position: relative;
    z-index: 0;
}

/* コンテナの背景 */
.archive-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--archive-bg);
    border-radius: 1rem;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   ページヘッダーセクション
   ========================================== */

.archive-header {
    margin-bottom: 4.5rem;
    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;
    font-style: normal;
    font-variant: normal;
    line-height: 2.4rem;
    letter-spacing: 0;
    text-align: left;
    color: var(--archive-purple-3);
    margin-bottom: -1.2rem;
    opacity: 1;
}

.archive-title {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 4rem;
    font-weight: 500;
    font-style: normal;
    font-variant: normal;
    line-height: 5.8rem;
    letter-spacing: 0;
    text-align: left;
    color: var(--archive-black);
    margin: 0;
    opacity: 1;
}

/* ==========================================
   カテゴリーフィルターボタン
   ========================================== */

.category-filters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.category-btn {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.9rem;
    letter-spacing: 0;
    height: 2.9rem;
    padding: 0.5rem 2.0rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--archive-white);
    background-color: var(--archive-purple-1);
    text-align: left;
    box-sizing: border-box;
}

/* ALLボタン */
.category-btn[data-category="all"] {
    width: 9.3rem;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

/* ALLボタン - アクティブ時 */
.category-btn[data-category="all"].active {
    background-color: var(--archive-pink);
}

.category-btn[data-category="all"].active:hover {
    background-color: var(--archive-pink-hover);
}

/* ALLボタン - 非アクティブ時 */
.category-btn[data-category="all"]:not(.active) {
    background-color: var(--archive-purple-2);
}

.category-btn[data-category="all"]:not(.active):hover {
    background-color: var(--archive-purple-1);
    transform: translateY(-0.2rem);
}

/* その他のカテゴリーボタン */
.category-btn:not([data-category="all"]):not(.active) {
    background-color: var(--archive-purple-2);
}

.category-btn:not([data-category="all"]):not(.active):hover {
    background-color: var(--archive-purple-1);
    transform: translateY(-0.2rem);
}

/* アクティブ状態 */
.category-btn.active {
    background-color: var(--archive-pink);
    box-shadow: 0 0.4rem 1rem rgba(213, 81, 103, 0.3);
}

/* ==========================================
   ハッシュタグフィルターボタン
   ========================================== */

.tag-filters {
    display: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag-btn {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.9rem;
    letter-spacing: 0;
    height: 2.9rem;
    padding: 0.5rem 2.0rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--archive-white);
    background-color: var(--archive-purple-1);
    text-align: left;
    box-sizing: border-box;
}

.tag-btn:not(.active) {
    background-color: var(--archive-purple-2);
}

.tag-btn:not(.active):hover {
    background-color: var(--archive-purple-1);
    transform: translateY(-0.2rem);
}

/* アクティブ状態 */
.tag-btn.active {
    background-color: var(--archive-pink);
    box-shadow: 0 0.4rem 1rem rgba(213, 81, 103, 0.3);
}

/* ==========================================
   記事カードグリッド
   ========================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 41rem);
    gap: 4rem 3rem;
    justify-content: center;
    margin-bottom: 0;
}

/* 記事カード */
.post-card {
    width: 41rem;
    height: 44.1rem;
    background-color: #FFFFFF;
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.post-card:hover {
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
    transform: translateY(-0.3rem);
}

/* フィルター時の非表示 */
.post-card.hidden {
    display: none;
}

/* ==========================================
   カードヘッダー（日付 + カテゴリー）
   ========================================== */

.post-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem 0 3rem;
}

.post-date {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.9rem;
    letter-spacing: 0;
    color: var(--archive-text-dark);
}

.category-badge {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.9rem;
    letter-spacing: 0;
    height: 2.9rem;
    color: var(--archive-white);
    background-color: var(--archive-purple-2);
    padding: 0.5rem 2.0rem;
    border-radius: 2rem;
    white-space: nowrap;
    box-sizing: border-box;
}

/* カテゴリー別バッジカラー */
.category-badge.category-staff-blog {
    background-color: var(--archive-purple-2);
}

.category-badge.category-news {
    background-color: var(--archive-purple-1);
}

.category-badge.category-tour {
    background-color: var(--archive-purple-3);
}

/* ==========================================
   サムネイル画像
   ========================================== */

.post-thumbnail {
    width: 35rem;
    height: 19.2rem;
    min-height: 19.2rem;
    max-height: 19.2rem;
    overflow: hidden;
    margin: 0.5rem auto 0.5rem;
    border-radius: 1rem;
    flex-shrink: 0;
}

.post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 1rem;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* ==========================================
   カードコンテンツ
   ========================================== */

.post-card-content {
    padding: 0 2.5rem 0 3rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.4rem;
    letter-spacing: 0;
    color: var(--archive-text-dark);
    margin-bottom: 0.5rem;
}

.post-card-title a {
    color: var(--archive-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--archive-pink);
}

.post-excerpt {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--archive-text-dark);
    line-height: 2rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    height: 6rem;
}

/* ==========================================
   ハッシュタグ
   ========================================== */

.post-hashtags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    width: 100%;
    gap: 0.5rem;
    margin-bottom: 0;
}

.hashtag {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.7rem;
    letter-spacing: 0;
    color: #3A3333;
    text-align: left;
    opacity: 1;
}

/* ==========================================
   続きを読むボタン
   ========================================== */

.post-card-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
    padding-bottom: 3rem;
    padding-left: 10.8rem;
}

.read-more-btn {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2.1rem;
    letter-spacing: 0;
    color: var(--archive-white);
    background: #D55167 0% 0% no-repeat padding-box;
    width: 13.5rem;
    height: 2.9rem;
    padding: 0.4rem 3rem 0.4rem 3rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: left;
    opacity: 1;
    box-sizing: border-box;
    overflow: hidden;
}

.read-more-btn:hover {
    background-color: var(--archive-pink-hover);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 1rem rgba(213, 81, 103, 0.3);
}

/* ==========================================
   投稿なしメッセージ
   ========================================== */

.no-posts {
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.6rem;
    color: var(--archive-text-dark);
    text-align: center;
    padding: 4rem 0;
}

/* ==========================================
   ページネーション
   ========================================== */

.archive-pagination {
    margin-top: 6rem;
}

.pagination {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem !important;
    height: 4rem !important;
    border-radius: 50% !important;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #FFFFFF !important;
    border: 1px solid #83468B !important;
    color: #83468B !important;
    opacity: 1;
}

.page-numbers.current {
    background: #83468B !important;
    border: none !important;
    color: #FFFFFF !important;
    opacity: 1;
}

.page-numbers:hover:not(.current) {
    background: rgba(131, 70, 139, 0.1);
}

.page-numbers.prev,
.page-numbers.next {
}

.page-numbers.dots {
    all: unset !important;
    color: #83468B !important;
    font-family: "Zen Maru Gothic", sans-serif !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
    line-height: 2.9rem !important;
    letter-spacing: 0 !important;
    cursor: default !important;
}

.page-numbers.first {
    background: #FFFFFF !important;
    border: 1px solid #83468B !important;
    color: #83468B !important;
}

.page-numbers.first:hover {
    background: rgba(131, 70, 139, 0.1) !important;
}

.page-numbers.last {
    background: #FFFFFF !important;
    border: 1px solid #83468B !important;
    color: #83468B !important;
}

.page-numbers.last:hover {
    background: rgba(131, 70, 139, 0.1) !important;
}

/* ==========================================
   レスポンシブデザイン（モバイル・タブレット）
   ========================================== */

@media screen and (max-width: 699.98px) {
    /* 375px基準 */

    /* アーカイブコンテナ */
    .archive-container {
        max-width: 33.5rem;
        width: 33.5rem;
        margin: 2rem 0 0 2rem;
        padding: 10rem 1rem 5rem;
    }

    /* ==========================================
       ページヘッダーセクション
       ========================================== */

    .archive-header {
        padding-left: 0;
        margin-bottom: 1.5rem;
    }

    .archive-title-wrap {
        margin-bottom: 1.5rem;
    }

    .archive-subtitle {
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 2.4rem;
        color: #83468B;
        margin-top: 0.6rem;
        margin-bottom: -3rem;
        margin-left: 0;
        padding-left: 0;
    }

    .archive-title {
        font-size: 3rem;
        font-weight: 500;
        line-height: 4.5rem;
        color: #000000;
        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;
    }

    /* ==========================================
       カテゴリーフィルターボタン
       ========================================== */

    .category-filters {
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .category-btn {
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.9rem;
        height: 2.9rem;
        padding: 0.5rem 2.0rem;
        border-radius: 1.5rem;
    }

    /* ALLボタン */
    .category-btn[data-category="all"] {
        width: 9.3rem;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    /* ALLボタン - アクティブ時 */
    .category-btn[data-category="all"].active {
        background: #D55167;
    }

    /* ALLボタン - 非アクティブ時 */
    .category-btn[data-category="all"]:not(.active) {
        background-color: var(--archive-purple-2);
    }

    .category-btn[data-category="all"]:not(.active):hover {
        background-color: var(--archive-purple-1);
        transform: translateY(-0.2rem);
    }

    /* お知らせボタン */
    .category-btn[data-category="%e3%81%8a%e7%9f%a5%e3%82%89%e3%81%9b"] {
        width: 9.3rem;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    /* ==========================================
       ハッシュタグフィルターボタン
       ========================================== */

    .tag-filters {
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .tag-btn {
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.9rem;
        height: 2.9rem;
        padding: 0.5rem 2.0rem;
        border-radius: 1.5rem;
    }

    /* ==========================================
       記事カードグリッド
       ========================================== */

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 4.5rem;
    }

    /* 記事カード */
    .post-card {
        width: 100%;
        height: auto;
    }

    /* ==========================================
       カードヘッダー（日付 + カテゴリー）
       ========================================== */

    .post-card-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 1.8rem 0 0 1.8rem;
    }

    .post-date {
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 2.4rem;
        color: #3A3333;
    }

    .category-badge {
        height: 2.9rem;
        padding: 0.5rem 2rem;
        border-radius: 1.5rem;
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.9rem;
        color: #FFFFFF;
        box-sizing: border-box;
    }

    /* ==========================================
       サムネイル画像
       ========================================== */

    .post-thumbnail {
        width: 28rem;
        height: 15.3rem;
        min-height: 15.3rem;
        max-height: 15.3rem;
        margin: 0.5rem auto 0.5rem;
        border-radius: 1rem;
    }

    /* ==========================================
       カードコンテンツ
       ========================================== */

    .post-card-content {
        padding: 0 1.8rem 0;
    }

    .post-card-title {
        font-size: 1.6rem;
        line-height: 2.2rem;
    }

    .post-excerpt {
        font-size: 1.4rem;
        line-height: 2rem;
        margin-bottom: 0.5rem;
        width: 28rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        height: 6rem;
    }

    /* ==========================================
       ハッシュタグ
       ========================================== */

    .post-hashtags {
        margin-bottom: -1.7rem;
    }

    /* ==========================================
       続きを読むボタン
       ========================================== */

    .post-card-footer {
        margin-top: 2.7rem;
        padding-bottom: 1.8rem;
        justify-content: center;
        padding-left: 0;
    }

    .read-more-btn {
        font-size: 1.5rem;
        font-weight: 400;
    }

    /* ==========================================
       ページネーション
       ========================================== */

    .pagination .page-numbers {
        font-size: 2rem;
        font-weight: 500;
        line-height: 2.9rem;
        padding: 0.8rem 1.2rem;
        min-width: 3.5rem;
    }
}
