@charset "utf-8";

/* ========================================
   ブログアーカイブページ専用CSS
   Blog Archive Page Styles
======================================== */

/* ========================================
   Blog Archive Header (Same size as index header)
======================================== */
#blog_archive_header {
    height: 550px;
    position: relative;
    overflow: hidden;
    background: #fff;
    margin: 0 0 15px 0;
    width: 100%;
}

#blog_archive_header .header_image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#blog_archive_header .header_content {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 50px;
    box-sizing: border-box;
}

#blog_archive_header .headline {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 32px;
    line-height: 1.4;
    color: #fff;
    background: none !important;
    padding: 0;
    margin: 0 0 20px 0;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#blog_archive_header .desc {
    color: #fff;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#blog_archive_header .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* ========================================
   Blog Archive List Styles (3 Column Grid)
======================================== */
/* main_contentsのpadding調整 */
body.blog #main_contents,
body.archive #main_contents {
    padding-top: 0px !important;
    padding-bottom: 60px !important;
}

#blog_archive {
    margin-top: 0;
}

/* 親テーマのrecipe_list type2のデフォルトスタイル（3列）を使用 */

/* ========================================
   Sidebar Styles (Blog Archive Page)
======================================== */
/* ブログアーカイブページのみバナーエリアを非表示 */
body.blog #side_col .side_banner_area,
body.archive #side_col .side_banner_area {
    display: none;
}

/* サイドバーをmain_colと同じ高さに揃える */
body.blog #side_col,
body.archive #side_col {
    display: flex;
    flex-direction: column;
}

body.blog #side_col .side_category_area,
body.archive #side_col .side_category_area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.blog #side_col .side_category_list,
body.archive #side_col .side_category_list {
    flex: 1;
}

/* ========================================
   Design Headline (Blog Header)
======================================== */
.blog_header.design_headline {
    margin-bottom: 30px;
}

.blog_header.design_headline .headline_text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: bold;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet: 651px - 950px */
@media screen and (max-width: 950px) {
    #blog_archive_header {
        height: 450px;
        margin: 0 0 15px 0;
    }

    #blog_archive_header .headline {
        font-size: 28px;
        padding: 0;
    }

    #blog_archive_header .desc {
        font-size: 16px;
    }

    /* 親テーマのrecipe_list type2スタイルを継承（2列） */
}

/* Mobile: 650px and below */
@media screen and (max-width: 650px) {
    #blog_archive_header {
        height: 360px;
        margin: 0 0 10px 0;
        width: 100%;
    }

    /* モバイル用画像に切り替え */
    #blog_archive_header .header_image {
        background-image: url('../images/headers/SP_blog.png') !important;
    }

    #blog_archive_header .header_content {
        padding: 0 20px;
    }

    /* モバイルではヘッダー内の見出しを非表示 */
    #blog_archive_header .headline {
        display: none !important;
    }

    #blog_archive_header .desc {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 親テーマのrecipe_list type2スタイルを継承（モバイルレイアウト） */

    /* -------------------------------------------------
       ページナビゲーション (スマホ最適化)
       ------------------------------------------------- */
    .page_navi {
        padding: 10px 0 !important;
        margin-top: 20px !important;
        text-align: center !important;
    }

    /* リスト（コンテナ）のスタイルリセット & 横並び設定 */
    .page_navi ul.page-numbers {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        list-style: none !important;
    }

    .page_navi li {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* ページ番号ボタン本体（リンク・現在地・ドット） */
    .page_navi li>a.page-numbers,
    .page_navi li>span.page-numbers {
        padding: 0 !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 28px !important;
        /* border 1px * 2 考慮 */
        font-size: 12px !important;
        margin: 0 2px 5px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: inline-block !important;
        text-align: center !important;
        background: #fff;
        border: 1px solid #ddd;
        color: #333;
        text-decoration: none;
    }

    /* 現在地のスタイル */
    .page_navi .current {
        background: #902130 !important;
        color: #fff !important;
        border-color: #902130 !important;
    }

    /* "次へ/前へ"ボタン内のテキスト（span）を非表示にして、テーマのアイコンを表示 */
    .page_navi .next span,
    .page_navi .prev span {
        display: none !important;
    }
}