@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.p-postListWrap .pagination,
.c-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 40px;
    margin-bottom: 40px !important;
}

/* post_content内の:last-child margin:0 対策 */
.post_content .swell-child-custom-post-list-wrap>.c-pagination:last-child,
.post_content>.swell-child-custom-post-list-wrap .c-pagination {
    margin-bottom: 40px !important;
}

/* ページネーション: 全ての要素の高さを揃える */
.c-pagination [class*=page-numbers] {
    margin: 0 !important;
}

@media(width < 960px) {
    .p-postListWrap .pagination,
    .c-pagination {
        gap: 0.5rem;
        flex-wrap: initial;
        margin-top: 24px;
        margin-bottom: 24px !important;
    }

    /* post_content内の:last-child margin:0 対策（SP） */
    .post_content .swell-child-custom-post-list-wrap>.c-pagination:last-child,
    .post_content>.swell-child-custom-post-list-wrap .c-pagination {
        margin-bottom: 24px !important;
    }

    .c-pagination [class*=page-numbers] {
        min-width: initial !important;
        max-width: 36px;
        flex: 1;
    }
}

/* ページネーション: 最初・前・次・最後のボタンスタイル */
.c-pagination .page-numbers.-to-first,
.c-pagination .page-numbers.-to-prev,
.c-pagination .page-numbers.-to-next,
.c-pagination .page-numbers.-to-last {
    font-weight: bold;
}

/* カスタム投稿リストブロック */
.swell-child-custom-post-list-wrap {
    margin: 0 auto;
}

.swell-child-custom-post-list-more {
    text-align: center;
    margin-top: 30px;
}

.swell-child-custom-post-list-more .c-plainBtn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--color_main, #0073aa);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.swell-child-custom-post-list-more .c-plainBtn:hover {
    opacity: 0.8;
}

.swell-child-custom-post-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* カスタム投稿リストの見出しスタイル */
.swell-child-custom-post-list-wrap h1,
.swell-child-custom-post-list-wrap h2,
.swell-child-custom-post-list-wrap h3,
.swell-child-custom-post-list-wrap h4 {
    margin-top: 0;
    margin-bottom: 2em;
}

.swell-child-custom-post-list-wrap .is-style-section_ttl {
    position: relative;
    text-align: center;
    padding-bottom: 0.75em;
}

.swell-child-custom-post-list-wrap .is-style-section_ttl::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color_main, #0073aa);
}

.swell-child-custom-post-list-wrap .has-background {
    border-radius: 4px;
}

/* =========================================================
 * Beauty Web Press：記事下 発表元情報
 * ========================================================= */

.bwpress-source-box {
    margin-top: 3em;
    margin-bottom: 2.5em;
    padding: 28px 32px;
    border: 1px solid #666;
    background: #fff;
}

.bwpress-source-heading {
    margin: 0 0 1.4em;
    padding-left: 14px;
    border-left: 3px solid #333;
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.5;
}

/* 発表元情報：Beauty Webの著者情報と行間を統一 */
.bwpress-source-name,
.bwpress-source-address,
.bwpress-source-url,
.bwpress-source-contact {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.bwpress-source-name {
    font-weight: 700;
}

.bwpress-source-label {
    font-weight: 600;
}

.bwpress-source-url a,
.bwpress-source-contact a {
    word-break: break-all;
}


/* スマートフォン */
@media (max-width: 767px) {

    .bwpress-source-box {
        margin-top: 2.5em;
        margin-bottom: 2em;
        padding: 22px 20px;
    }

    .bwpress-source-heading {
        margin-bottom: 1.2em;
        font-size: 1.1em;
    }

    .bwpress-source-name,
    .bwpress-source-address,
    .bwpress-source-url,
    .bwpress-source-contact {
        font-size: 15px;
        line-height: 1.7;
    }
}