@charset "utf-8";

/* ==========================================================================
 * bkb-single.css
 * ブログ記事ページ（single.php / post）のブランディング用スタイル
 * 2026.10.05
 *
 * - クラス名はすべて「bkb-」プレフィックス
 * - 既存クラスの上書きは「.bkb-single」配下に限定（他ページへ影響させない）
 * - style.css の後に読み込むこと（header.php で is_singular('post') のときのみ）
 *
 * 目次
 *   1. 変数
 *   2. ヘッダー
 *   3. ページ全体・記事枠
 *   4. 記事冒頭の署名帯
 *   5. 記事中盤のCTA
 *   6. 記事末尾のブランド枠・リンク
 *   7. 「不動産売却王 調べ」の帯
 *   8. サイドバー
 *   9. スマホ
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * 1. 変数
 * -------------------------------------------------------------------------- */
.bkb-header,
.bkb-single {
    --bkb-blue: #1974ba;        /* ロゴ・既存フォームと同じ青 */
    --bkb-blue-dark: #0e2a47;   /* 見出し・濃色の面 */
    --bkb-blue-pale: #eaf3fa;   /* 薄い青の面 */
    --bkb-accent: #c2500a;      /* 査定ボタン専用の差し色 */
    --bkb-bg: #f2f7fb;          /* ページ背景 */
    --bkb-border: #d0dce8;
    --bkb-text: #16263a;
    --bkb-text-sub: #4a5d72;
    --bkb-radius: 10px;
}

/* --------------------------------------------------------------------------
 * 2. ヘッダー（追従なし）
 * -------------------------------------------------------------------------- */
header.bkb-header {
    background: #ffffff;
    border-bottom: 4px solid var(--bkb-blue);
    height: auto;
}

.bkb-header__inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1400px;
    padding: 18px 20px;
}

.bkb-header__logo {
    max-width: 70%;
    width: 280px;
}

.bkb-header__logo img {
    display: block;
    height: auto;
    width: 100%;
}

.bkb-header__side {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

header.bkb-header p.bkb-header__tagline {
    color: var(--bkb-text);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: auto;
}

.bkb-header__btn {
    background: var(--bkb-accent);
    border-radius: 6px;
    color: #ffffff;
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.4;
    padding: 13px 24px;
}

/* --------------------------------------------------------------------------
 * 3. ページ全体・記事枠
 * -------------------------------------------------------------------------- */
.bkb-single.single_div_1 {
    background-color: var(--bkb-bg);
    padding: 28px 10px 48px;
}

.bkb-single main#content {
    background-color: transparent;
    padding: 0 3%;
}

.bkb-single main#content article {
    border: 1px solid var(--bkb-border);
    border-radius: var(--bkb-radius);
    color: var(--bkb-text);
    padding: 24px 40px;
}

.bkb-single article h1 {
    border-bottom-color: var(--bkb-blue);
    color: var(--bkb-blue-dark);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
 * 4. 記事冒頭の署名帯
 * -------------------------------------------------------------------------- */
.bkb-byline {
    align-items: center;
    background: var(--bkb-blue-pale);
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 10px 16px;
}

.bkb-byline__brand {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.bkb-byline__brand img {
    display: block;
    height: auto;
    width: 150px;
}

.bkb-byline__cat {
    border-left: 2px solid var(--bkb-blue);
    color: var(--bkb-blue-dark);
    font-size: 14px;
    font-weight: bold;
    padding-left: 12px;
}

#content a.bkb-byline__area {
    color: var(--bkb-blue-dark);
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
 * 5. 記事中盤のCTA
 * -------------------------------------------------------------------------- */
.bkb-midcta {
    align-items: center;
    background: var(--bkb-blue-dark);
    border-radius: var(--bkb-radius);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-between;
    margin: 36px 0;
    padding: 22px 26px;
}

.bkb-midcta__body {
    flex: 1 1 300px;
    min-width: 0;
}

.bkb-midcta__label {
    color: #9cc8ec;
    font-size: 13px;
    font-weight: bold;
}

.bkb-midcta__head {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
    margin: 2px 0 4px;
}

.bkb-midcta__text {
    color: #d5e2ef;
    font-size: 14px;
    line-height: 1.7;
}

#content a.bkb-midcta__btn {
    background: var(--bkb-accent);
    border-radius: 6px;
    color: #ffffff;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    padding: 15px 26px;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
 * 6. 記事末尾のブランド枠・リンク
 * -------------------------------------------------------------------------- */
.bkb-closing {
    border: 2px solid var(--bkb-blue);
    border-radius: var(--bkb-radius);
    margin: 40px 0 24px;
    padding: 26px 28px;
}

.bkb-closing__logo {
    display: block;
    height: auto;
    margin: 0 0 14px;
    width: 220px;
}

.bkb-closing__head {
    color: var(--bkb-blue-dark);
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 10px;
}

.bkb-closing__text {
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 18px;
}

#content a.bkb-closing__btn {
    background: var(--bkb-accent);
    border-radius: 6px;
    color: #ffffff;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    padding: 15px 28px;
    text-decoration: none;
}

.bkb-closing__note {
    color: var(--bkb-text-sub);
    font-size: 12px;
    margin: 10px 0 0;
}

.bkb-arealink {
    margin: 20px 0 30px;
    text-align: center;
}

#content .bkb-arealink a {
    color: var(--bkb-blue);
    font-size: 18px;
    font-weight: bold;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
 * 7. 「不動産売却王 調べ」の帯（ショートコード [bkb_source]）
 * -------------------------------------------------------------------------- */
.bkb-source {
    align-items: center;
    background: var(--bkb-blue);
    border-radius: 0 0 6px 6px;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: space-between;
    margin: 0 0 24px;
    padding: 9px 16px;
}

.bkb-source__brand {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.04em;
}

.bkb-source__note {
    font-size: 12px;
}

/* --------------------------------------------------------------------------
 * 8. サイドバー（緑・オレンジ・青の混在を白＋青に統一）
 * -------------------------------------------------------------------------- */
.bkb-single .single_div_1_2 {
    padding: 0 20px;
}

/* サービス紹介カード */
.bkb-brandcard {
    background: #ffffff;
    border: 1px solid var(--bkb-border);
    border-radius: var(--bkb-radius);
    border-top: 6px solid var(--bkb-blue);
    padding: 20px;
}

.bkb-brandcard__logo {
    display: block;
    height: auto;
    margin: 0 0 12px;
    max-width: 100%;
    width: 220px;
}

.bkb-brandcard__lead {
    color: var(--bkb-blue-dark);
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
    margin: 0 0 10px;
}

.bkb-brandcard__list {
    margin: 0 0 16px;
}

.bkb-brandcard__list li {
    color: var(--bkb-text);
    font-size: 14px;
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
}

.bkb-brandcard__list li::before {
    background: var(--bkb-blue);
    border-radius: 50%;
    content: '';
    height: 6px;
    left: 2px;
    position: absolute;
    top: 9px;
    width: 6px;
}

.bkb-single .single_div_1_2 a.bkb-brandcard__btn {
    background: var(--bkb-blue);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.4;
    padding: 13px 10px;
    text-align: center;
}

/* 既存ウィジェット3枠 */
.bkb-single div.post_ranking,
.bkb-single .single_div_1_2_2,
.bkb-single .single_div_1_2_3 {
    background-color: #ffffff;
    border: 1px solid var(--bkb-border);
    border-radius: var(--bkb-radius);
    color: var(--bkb-text-sub);
    display: block;
    padding: 18px 20px;
    width: auto;
}

.bkb-single div.post_ranking a,
.bkb-single .single_div_1_2_2 a,
.bkb-single .single_div_1_2_3 a {
    color: var(--bkb-text);
}

.bkb-single div.post_ranking li,
.bkb-single div.post_ranking span,
.bkb-single div.post_ranking p,
.bkb-single .single_div_1_2_3 li,
.bkb-single .single_div_1_2_3 span {
    color: var(--bkb-text-sub);
}

.bkb-single div.post_ranking .wtitle,
.bkb-single .single_div_1_2_2 .box-header,
.bkb-single .single_div_1_2_3 h2 {
    border-bottom: 2px solid var(--bkb-blue);
    color: var(--bkb-blue-dark);
    font-size: 17px;
    margin: 0 0 12px;
    padding: 0 0 8px;
}

.bkb-single .wtitle:before {
    color: var(--bkb-blue);
    margin-right: 6px;
}

.bkb-single .single_div_1_2_2 a {
    font-size: 15px;
}

.bkb-single .single_div_1_2_2 .post-date {
    color: var(--bkb-text-sub);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
 * 9. スマホ
 * -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
    .bkb-single .single_div_1_2 {
        margin-top: 24px;
        padding: 0 3%;
    }
}

@media screen and (max-width: 1000px) {
    .bkb-single main#content article {
        padding: 14px 18px;
    }
}

@media screen and (max-width: 600px) {
    .bkb-header__inner {
        justify-content: center;
        padding: 14px 16px;
    }

    header.bkb-header p.bkb-header__tagline {
        display: none;
    }

    .bkb-header__btn,
    #content a.bkb-midcta__btn,
    #content a.bkb-closing__btn {
        display: block;
        text-align: center;
        width: 100%;
    }

    .bkb-header__side {
        width: 100%;
    }

    .bkb-midcta,
    .bkb-closing {
        padding: 18px;
    }

    .bkb-midcta__head,
    .bkb-closing__head {
        font-size: 18px;
    }
}
