/* ================================================================
   article-v2.css — 記事デザインv2「くろまるポップ（白・静か）」
   ----------------------------------------------------------------
   - プレビュー: 記事URLに ?design=v2 を付与
   - 全体切替:  functions.php の MOBARECO_ARTICLE_V2 定数
   - デザイン原本: top-page/design-proposals/04-kuromaru-article-real.html
   - ルール: !important 禁止。
     特異度は .single .entry-content 起点で既存CSSに勝つ最小限にする
     （article.css: .entry-content h2 = 0-1-1 / blog.css: .mainContents-sp .marker_* = 0-2-0,
       .entry-content #ez-toc-container = 1-1-0 が既存の最強値）
   ================================================================ */

:root {
    --mbv2-ink: #211f1a;
    --mbv2-red: #e8453c;
    --mbv2-yellow: #ffd93d;
    --mbv2-cream-marker: #ffd9b8;
    --mbv2-gray: #f4f3ef;
    --mbv2-soft: #fafaf8;
    --mbv2-line: #eee8d8;
    --mbv2-dot: #c9c2ae;
    --mbv2-seed: 'LINE Seed JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

/* ===== ページ全体を白＋ドットに（モック準拠）。グレー地＋白パネル構造を解消 ===== */
body.single {
    background-color: #fff;
    background-image: radial-gradient(rgba(33, 31, 26, .05) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}

.single .contentsArea {
    background: transparent;
}

.single .contentsArea .mainContents,
.single .mainContents {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding-right: 0; /* article.cssの40px */
}

/* ===== 本文ベース ===== */
.single .entry-content {
    font-family: var(--mbv2-seed);
    color: var(--mbv2-ink);
    line-height: 1.95;
    overflow-wrap: break-word;
}

.single .entry-content p {
    font-size: 15.5px;
    margin: 0 0 1.5em;
}

/* 記事タイトル */
.single .entry-header .entry-title {
    font-family: var(--mbv2-seed);
    font-weight: 800;
    line-height: 1.6;
}

/* ===== 既存コンポーネント保護 =====
   v2の汎用pルール（0-2-1）が blog.css のボタン定義（0-1-1）の margin/font-size に
   勝ってしまうため、ec-button / ec-button2 の値を同特異度以上で復元する。
   （ボタンは <p class="ec-button2"> 構造。外側 .ec-buttonOuter* の負マージンとセットの設計） */
.single .entry-content p.ec-button,
.single .entry-content p.ec-button2 {
    margin: 20px 0 0 20px;
    font-size: 15px;
}

/* ボタン外枠の負トップマージン(-20px)は、直前が btmMg0 等（余白0）の場合に
   マージン相殺で前のテキストへ重なるため無効化する。
   行間ギャップはボタン側の margin-top:20px が担うため間隔は保たれる */
.single .entry-content .ec-buttonOuter,
.single .entry-content .ec-buttonOuter2 {
    margin-top: 0;
}

/* テキストリンク（クラス無しの a のみ。.ec-button2 等のボタン類には触らない） */
.single .entry-content a:not([class]) {
    color: #c0392b;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--mbv2-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.single .entry-content a:not([class]):hover {
    color: var(--mbv2-red);
    text-decoration-color: var(--mbv2-red);
}

/* ===== 見出し ===== */
/* h2: 黒帯（角丸） */
.single .entry-content h2 {
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 20px;
    line-height: 1.6;
    margin: 60px 0 24px;
    padding: 12px 20px;
    background: var(--mbv2-ink);
    color: #fff;
    border: none;
    border-radius: 12px;
}

.single .entry-content h2::before,
.single .entry-content h2::after {
    content: none;
}

/* h3: 薄グレーパネル */
.single .entry-content h3 {
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.6;
    margin: 44px 0 18px;
    padding: 9px 16px;
    background: var(--mbv2-gray);
    color: var(--mbv2-ink);
    border: none;
    border-radius: 10px;
}

/* h4: 細点線下線 */
.single .entry-content h4 {
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 15.5px;
    line-height: 1.7;
    margin: 36px 0 14px;
    padding: 0 0 5px;
    background: none;
    border: none;
    border-bottom: 2px dotted var(--mbv2-dot);
    display: table;
}

/* ===== リスト =====
   対象: クラス無し、またはマージン調整ユーティリティ（btmMg*）のみが付いた ul/ol
   （ul.btmMg0 が実記事で最多パターン。ref-list / ec-relatedPost_list / process 等の
     コンポーネントリストには触らない） */
.single .entry-content :is(ul:not([class]), ul.btmMg0, ul.btmMg5, ul.btmMg30) {
    list-style: none;
    margin-top: 0;
    margin-left: 10px; /* 段落テキストより一歩下げる（マーカーの張り出し感対策） */
    padding: 0;
}

/* btmMg* は余白ユーティリティなので margin-bottom はクラス無しの時だけ規定 */
.single .entry-content ul:not([class]) {
    margin-bottom: 1.5em;
}

.single .entry-content :is(ul:not([class]), ul.btmMg0, ul.btmMg5, ul.btmMg30) > li {
    /* blog.css が li 側に list-style-type:disc を直接指定しているため li 側で打ち消す */
    list-style: none;
    text-indent: 0; /* インラインCSSの ol/ul li{text-indent:-1.3em} を打ち消す（::before内の数字はみ出し対策） */
    background: none;
    position: relative;
    padding-left: 26px;
    margin-bottom: .55em;
    font-size: 15.5px;
}

.single .entry-content :is(ul:not([class]), ul.btmMg0, ul.btmMg5, ul.btmMg30) > li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: .58em;
    width: 10px;
    height: 10px;
    background: var(--mbv2-yellow);
    border: 2px solid var(--mbv2-ink);
    border-radius: 50%;
}

.single .entry-content :is(ol:not([class]), ol.btmMg0, ol.btmMg5, ol.btmMg30) {
    list-style: none;
    margin-top: 0;
    margin-left: 10px; /* 段落テキストより一歩下げる */
    padding: 0;
    counter-reset: mbv2-ol;
}

.single .entry-content ol:not([class]) {
    margin-bottom: 1.5em;
}

.single .entry-content :is(ol:not([class]), ol.btmMg0, ol.btmMg5, ol.btmMg30) > li {
    /* blog.css の li 側 list-style-type:decimal を打ち消す（数字の二重表示防止） */
    list-style: none;
    text-indent: 0; /* インラインCSSの ol li{text-indent:-1.3em} を打ち消す */
    background: none;
    position: relative;
    padding-left: 30px;
    margin-bottom: .55em;
    font-size: 15.5px;
    counter-increment: mbv2-ol;
}

.single .entry-content :is(ol:not([class]), ol.btmMg0, ol.btmMg5, ol.btmMg30) > li::before {
    content: counter(mbv2-ol);
    text-indent: 0;
    position: absolute;
    left: 0;
    top: .28em;
    width: 20px;
    height: 20px;
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: grid;
    place-items: center;
    padding-top: 1px; /* ベースライン分の上寄り補正 */
    padding-left: 4px; /* LINE Seedの数字左ベアリング補正（実測較正済み） */
    box-sizing: border-box;
    background: var(--mbv2-yellow);
    border: 2px solid var(--mbv2-ink);
    border-radius: 50%;
}

/* ===== マーカー（既存クラスの再定義） ===== */
.single .entry-content .marker_yellow_bold {
    background: linear-gradient(transparent 58%, var(--mbv2-yellow) 0);
    font-weight: 800;
}

.single .entry-content .marker_yellow_thin {
    background: linear-gradient(transparent 64%, var(--mbv2-yellow) 0);
    font-weight: inherit;
}

.single .entry-content .marker_cream_bold {
    background: linear-gradient(transparent 58%, var(--mbv2-cream-marker) 0);
    font-weight: 800;
}

.single .entry-content .marker_cream_thin {
    background: linear-gradient(transparent 64%, var(--mbv2-cream-marker) 0);
    font-weight: inherit;
}

/* ===== 背景ボックス（既存クラスの再定義） ===== */
.single .entry-content .bg-color_gray,
.single .entry-content .bg-color_yellow {
    position: relative;
    background: var(--mbv2-soft);
    border: 3px solid var(--mbv2-ink);
    border-radius: 16px;
    padding: 22px 22px 14px;
    margin: 30px 0 26px;
}

.single .entry-content .bg-color_gray::before,
.single .entry-content .bg-color_yellow::before {
    content: "ポイント";
    position: absolute;
    top: -14px;
    left: 16px;
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 12px;
    line-height: 1.6;
    padding: 1px 14px;
    background: var(--mbv2-yellow);
    color: var(--mbv2-ink);
    border: 2px solid var(--mbv2-ink);
    border-radius: 99px;
    box-shadow: 2px 2px 0 var(--mbv2-ink);
}

.single .entry-content .bg-color_yellow {
    background: #fffbe8;
}

.single .entry-content .bg-color_yellow::before {
    content: "チェック";
}

.single .entry-content .bg-color_gray p,
.single .entry-content .bg-color_yellow p {
    font-size: 14.5px;
    margin-bottom: .6em;
}

/* ===== FAQボックス（既存クラスの再定義） ===== */
.single .entry-content .faq-box01 {
    background: #fff;
    border: 3px solid var(--mbv2-ink);
    border-radius: 16px;
    padding: 18px 22px 12px;
    margin: 0 0 22px;
}

/* FAQ内のh4はQバッジ（汎用h4の点線スタイルを打ち消す） */
.single .entry-content .faq-box01 h4 {
    display: block;
    position: relative;
    margin: 0 0 .6em;
    padding: 0 0 0 34px;
    font-size: 15px;
    border-bottom: none;
}

.single .entry-content .faq-box01 h4::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: .1em;
    width: 24px;
    height: 24px;
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 12.5px;
    line-height: 1;
    display: grid;
    place-items: center;
    background: var(--mbv2-red);
    color: #fff;
    border-radius: 50%;
}

.single .entry-content .faq-box01 p {
    font-size: 14.5px;
    margin-bottom: .6em;
}

/* ===== テーブル（.table_scroll + table.table の再定義） ===== */
.single .entry-content .table_scroll {
    overflow-x: auto;
    margin: 0 0 28px;
    border: 3px solid var(--mbv2-ink);
    border-radius: 14px;
    background: #fff;
}

.single .entry-content .table_scroll table.table {
    margin: 0;
    border: none;
    min-width: 560px;
}

.single .entry-content table.table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    background: #fff;
}

.single .entry-content table.table th,
.single .entry-content table.table td {
    padding: 11px 15px;
    border: none;
    border-bottom: 2px solid var(--mbv2-line);
    border-right: 2px solid var(--mbv2-line);
    text-align: left;
    vertical-align: top;
}

.single .entry-content table.table th:last-child,
.single .entry-content table.table td:last-child {
    border-right: none;
}

.single .entry-content table.table thead th,
.single .entry-content table.table tr:first-child th {
    background: var(--mbv2-ink);
    color: #fff;
    font-family: var(--mbv2-seed);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .05em;
}

.single .entry-content table.table tbody tr:nth-child(even) {
    background: #faf9f6;
}

.single .entry-content table.table tr:last-child td {
    border-bottom: none;
}

/* ===== 目次（ez-toc 出力の再定義。blog.cssの 1-1-0 に勝つため 1-2-0 で上書き） ===== */
.single .entry-content #ez-toc-container {
    position: relative;
    display: block;
    width: auto;
    background: #fff;
    border: 3px solid var(--mbv2-ink);
    border-radius: 18px;
    padding: 26px 28px 18px;
    margin: 34px 0 40px;
    box-shadow: none;
}

.single .entry-content #ez-toc-container p.ez-toc-title {
    position: absolute;
    top: -16px;
    left: 20px;
    margin: 0;
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.7;
    padding: 2px 20px;
    background: var(--mbv2-yellow);
    color: var(--mbv2-ink);
    border: 3px solid var(--mbv2-ink);
    border-radius: 99px;
    box-shadow: 3px 3px 0 var(--mbv2-ink);
}

.single .entry-content #ez-toc-container .ez-toc-title-toggle {
    display: none;
}

.single .entry-content #ez-toc-container nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 本文用ビュレットの漏れ打ち消し（モックで実証済みの罠）
   + blog.css の画像ビュレット（list_icon_burette.jpg 背景）も打ち消す */
.single .entry-content #ez-toc-container nav li {
    padding-left: 0;
    margin: 0;
    list-style: none;
    background: none;
}

.single .entry-content #ez-toc-container nav li::before {
    content: none;
}

.single .entry-content #ez-toc-container nav > ul {
    counter-reset: mbv2-toc;
}

.single .entry-content #ez-toc-container nav > ul > li {
    counter-increment: mbv2-toc;
    border-bottom: 2px dotted #e3dcc8;
}

.single .entry-content #ez-toc-container nav > ul > li:last-child {
    border-bottom: none;
}

.single .entry-content #ez-toc-container nav > ul > li > a {
    display: flex;
    gap: 13px;
    align-items: baseline;
    padding: 9px 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--mbv2-ink);
    text-decoration: none;
    transition: color .15s, padding-left .15s;
}

.single .entry-content #ez-toc-container nav > ul > li > a::before {
    content: counter(mbv2-toc);
    flex: none;
    width: 25px;
    height: 25px;
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--mbv2-ink);
    border-radius: 50%;
    transform: translateY(4px);
}

.single .entry-content #ez-toc-container nav > ul > li > a:hover {
    color: var(--mbv2-red);
    padding-left: 8px;
}

.single .entry-content #ez-toc-container nav ul ul {
    margin: 0 0 8px 40px;
}

.single .entry-content #ez-toc-container nav ul ul a {
    display: block;
    padding: 3px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #6b675c;
    text-decoration: none;
}

.single .entry-content #ez-toc-container nav ul ul a::before {
    content: "−";
    margin-right: 8px;
    color: var(--mbv2-red);
}

.single .entry-content #ez-toc-container nav ul ul a:hover {
    color: var(--mbv2-red);
}

.single .entry-content #ez-toc-container nav ul ul ul {
    display: none;
}

/* ===== 画像 ===== */
.single .entry-content img.aligncenter,
.single .entry-content p > img:not(.wp-smiley) {
    display: block;
    margin: 0 auto 8px;
    max-width: 100%;
    height: auto;
    border: 3px solid var(--mbv2-ink);
    border-radius: 14px;
}

/* ===== SP ===== */
@media (max-width: 767px) {
    .single .entry-content h2 {
        font-size: 17px;
        padding: 10px 14px;
        margin: 48px 0 20px;
    }

    .single .entry-content h3 {
        font-size: 16px;
        margin: 38px 0 16px;
    }

    .single .entry-content p,
    .single .entry-content :is(ul:not([class]), ul.btmMg0, ul.btmMg5, ul.btmMg30) > li,
    .single .entry-content :is(ol:not([class]), ol.btmMg0, ol.btmMg5, ol.btmMg30) > li {
        font-size: 15px;
    }

    .single .entry-content #ez-toc-container {
        padding: 22px 18px 14px;
    }
}

/* ================================================================
   Phase 2b: 記事ヘッダー・パンくず・関連記事パーツ（2026-06-11）
   ================================================================ */

/* --- パンくず --- */
/* #primaryのpadding-top:30px と blog.cssの .single-post .contents-inner .topicPath .inner
   (padding:30px 0) がサイドバーとの段差を作るため、同特異度以上で詰める */
.single #primary {
    padding-top: 0;
}

.single .contents-inner .topicPath .inner {
    padding: 12px 0 8px;
}

.single .topicPath .inner {
    padding: 12px 0 8px;
}

.single .topicPath p.breadcrumbs {
    font-family: var(--mbv2-seed);
    font-size: 12px;
    font-weight: 700;
    color: #9b9588;
    line-height: 1.8;
}

.single .topicPath .breadcrumbs a {
    color: #9b9588;
    text-decoration: none;
}

.single .topicPath .breadcrumbs a:hover {
    color: var(--mbv2-red);
}

.single .topicPath .breadcrumbs .sep {
    display: inline-block;
    margin: 0 7px;
    background: none;
}

.single .topicPath .breadcrumbs .sep::before {
    content: "›";
    color: #c9c2ae;
}

/* --- タイトル上のカテゴリチップ（モック準拠） --- */
.single .entry-header .mbv2-cat-chip {
    margin: 2px 0 16px;
}

.single .entry-header .mbv2-cat-chip a {
    display: inline-block;
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--mbv2-ink);
    background: var(--mbv2-yellow);
    border: 3px solid var(--mbv2-ink);
    border-radius: 99px;
    padding: 3px 20px;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--mbv2-ink);
    transition: transform .15s, box-shadow .15s;
}

.single .entry-header .mbv2-cat-chip a:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--mbv2-ink);
}

/* --- 記事タイトル --- */
.single .entry-content .entry-title {
    font-size: 30px;
    line-height: 1.6;
    padding: 4px 0 14px;
}

/* --- 記事メタ（タイトル直下に移動 / 日付・カテゴリチップ） --- */
.single .entry-header .thumbnail_and_title,
.single .entry-content .thumbnail_and_title {
    /* blog.cssの background-color:#f5f5f5（0-1-1）を打ち消す */
    background: transparent;
    display: flex;
    flex-direction: column;
}

.single .entry-header .thumbnail_and_title .post-information {
    order: -1; /* アイキャッチより上（タイトル直下）に */
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.single .entry-header .date .info p,
.single .entry-header .date time {
    font-size: 12px;
    font-weight: 700;
    color: #8a8678;
}

.single .entry-header .writer-info p {
    font-size: 12px;
    font-weight: 700;
    color: #8a8678;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.single .entry-header .writer-info a[rel~="category"] {
    color: #8a8678;
    font-weight: 700;
    text-decoration: none;
}

.single .entry-header .writer-info a[rel~="category"]:hover {
    color: var(--mbv2-red);
}

/* --- アイキャッチ（黒枠ステッカーフレーム） --- */
.single .entry-header .post-thumbnail {
    border: 3px solid var(--mbv2-ink);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 26px;
}

.single .entry-header .post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* --- 本文内の関連記事パーツ --- */
.single .entry-content .ec-relatedPost {
    border: 3px solid var(--mbv2-ink);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.single .entry-content .ec-relatedPost_head {
    font-family: var(--mbv2-seed);
    font-weight: 800;
}

@media (max-width: 767px) {
    .single .entry-content .entry-title {
        font-size: 21px;
    }

    .single .entry-header .thumbnail_and_title .post-information {
        gap: 10px;
        margin-bottom: 12px;
    }
}

/* ================================================================
   Phase 2c: くろまるリード吹き出し＋記事サイドバー（2026-06-11）
   レイアウト: .contents-inner(1100px) 内で 記事800px(float:left) + サイド280px(float:right)
   ================================================================ */

/* --- くろまるリード吹き出し --- */
.single .entry-content .mbv2-kuro-lead {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    margin: 0 0 28px;
}

.single .entry-content .mbv2-kuro-lead img {
    width: 60px;
    height: 60px;
    border: 3px solid var(--mbv2-ink);
    border-radius: 50%;
    background: #fff;
}

.single .entry-content .mbv2-kuro-lead-bub {
    position: relative;
    background: #fff;
    border: 3px solid var(--mbv2-ink);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.9;
    box-shadow: 4px 4px 0 var(--mbv2-ink);
}

.single .entry-content .mbv2-kuro-lead-bub::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 3px solid var(--mbv2-ink);
    border-bottom: 3px solid var(--mbv2-ink);
    transform: rotate(45deg);
}

/* --- 2カラムレイアウト（モック04と同一のgrid構造） ---
   grid-template-columns で列幅を確定させる（minmax(0,1fr) + 320px固定）。
   旧CSSのfloat/width指定が何を言おうとgridテンプレートが幾何を支配する */
@media (min-width: 768px) {
    .single .contentsArea .contents-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 0 36px;
        align-items: start;
        width: auto;
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
        float: none;
    }

    .single .contents-inner > .entry-content-outer {
        grid-column: 1;
        float: none;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .single .contents-inner > .mbv2-side {
        grid-column: 2;
        width: auto;
    }
}

/* パネル様の背景・影・角丸を全ラッパーから根絶（モックは地続きの白＋ドットのみ） */
.single :is(#content, .contentsArea, .contents-inner, #main-contents-v2, .entry-content-outer, #primary, .mainContents, #mainly, article) {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: none;
}

/* 本文トラック内の固定幅を全廃（blog.cssの .mainContents width:800px /
   .cat-post.single-post .entry-content-outer width:780px がgridトラックを
   はみ出してサイドバーとの間隔を食い潰すため、ID特異度で width:auto に） */
.single #main-contents-v2 {
    width: auto;
    max-width: none;
    float: none;
}

.single #primary {
    width: auto;
    max-width: 100%;
    float: none;
}

.single #mainly {
    width: auto;
}

/* --- サイドバー --- */
.single .mbv2-side {
    width: 320px;
}

.single .mbv2-side-sticky {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.single .mbv2-side-box {
    position: relative;
    background: #fff;
    border: 3px solid var(--mbv2-ink);
    border-radius: 18px;
    padding: 22px 18px 14px;
    box-shadow: 4px 4px 0 var(--mbv2-ink);
}

.single .mbv2-side-tag {
    position: absolute;
    top: -15px;
    left: 14px;
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 12.5px;
    line-height: 1.7;
    background: var(--mbv2-yellow);
    border: 2px solid var(--mbv2-ink);
    border-radius: 99px;
    padding: 1px 14px;
    box-shadow: 2px 2px 0 var(--mbv2-ink);
}

.single .mbv2-side-rank {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.single .mbv2-side-rank li {
    border-bottom: 2px dotted #e3dcc8;
    margin: 0;
}

.single .mbv2-side-rank li:last-child {
    border-bottom: none;
}

.single .mbv2-side-rank a {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 0;
    font-family: var(--mbv2-seed);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--mbv2-ink);
    text-decoration: none;
    transition: color .15s;
}

.single .mbv2-side-rank a:hover {
    color: var(--mbv2-red);
}

.single .mbv2-side-rank-n {
    flex: none;
    width: 22px;
    height: 22px;
    font-weight: 800;
    font-size: 11px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--mbv2-ink);
    border-radius: 50%;
}

.single .mbv2-side-rank li:first-child .mbv2-side-rank-n {
    background: var(--mbv2-yellow);
}

.single .mbv2-side-rank-t {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single .mbv2-side-diag {
    text-align: center;
}

.single .mbv2-side-diag img {
    display: block;
    width: 60px;
    height: 60px;
    border: 3px solid var(--mbv2-ink);
    border-radius: 50%;
    background: #fff;
    margin: 4px auto 8px;
}

.single .mbv2-side-diag-t {
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 12px;
}

.single .mbv2-side-diag-btn {
    display: block;
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 13.5px;
    background: #06C755;
    color: #fff;
    border: 3px solid var(--mbv2-ink);
    border-radius: 99px;
    padding: 10px;
    margin-bottom: 6px;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--mbv2-ink);
    transition: transform .15s, box-shadow .15s;
}

.single .mbv2-side-diag-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--mbv2-ink);
    color: #fff;
}

@media (max-width: 767px) {
    .single .mbv2-side {
        float: none;
        width: auto;
        margin: 6px 15px 34px;
    }

    .single .mbv2-side-sticky {
        position: static;
    }
}

/* ================================================================
   Phase 2d: 記事下ブロックのモック準拠化（シェア・著者・タグ・公開日）
   ※シェア/著者はウィジェット内インラインstyleのため特異度で上書き
   ================================================================ */

/* --- シェア --- */
.single .sns_title-border {
    display: flex;
    align-items: center;
    margin: 38px 0 14px;
}

.single .sns_title-border::before,
.single .sns_title-border::after {
    content: "";
    border-top: 2px dotted var(--mbv2-dot);
    flex-grow: 1;
}

.single .sns_title-border::before { margin-right: 14px; }
.single .sns_title-border::after { margin-left: 14px; }

.single .sns_title-border p {
    font-family: var(--mbv2-seed);
    font-weight: 800;
    font-size: 0; /* 元テキスト(Let's Share!)を畳んで差し替え */
    margin: 0;
}

.single .sns_title-border p::before {
    content: "この記事をシェアするにゃ🐾";
    font-size: 15px;
}

.single ul.sns_btn_box {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.single ul.sns_btn_box li,
.single ul.sns_btn_box li:nth-child(1),
.single ul.sns_btn_box li:nth-child(2),
.single ul.sns_btn_box li:nth-child(3),
.single ul.sns_btn_box li:nth-child(4) {
    flex: 1;
    background-color: #fff;
    border: 3px solid var(--mbv2-ink);
    border-radius: 99px;
    box-shadow: 3px 3px 0 var(--mbv2-ink);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, background-color .15s;
}

.single ul.sns_btn_box li:hover {
    background-color: var(--mbv2-yellow);
    opacity: 1;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--mbv2-ink);
}

.single ul.sns_btn_box li a img {
    height: 18px;
    filter: brightness(0); /* 白アイコンを黒に */
}

/* --- 著者ボックス --- */
.single .author-info {
    margin-top: 44px;
    font-family: var(--mbv2-seed);
}

.single .author-info > p {
    font-weight: 800;
    font-size: 16px;
    margin: 0 0 14px;
}

.single .author-info > p .detail {
    font-size: 12px;
    font-weight: 700;
    color: #8a8678;
}

.single .author-info .author_box_super {
    background: #fff;
    border: 3px solid var(--mbv2-ink);
    border-radius: 18px;
    padding: 24px 26px;
    width: auto;
}

.single .author_box_super .title_box .image img {
    border: 3px solid var(--mbv2-ink);
    border-radius: 50%;
    background: #fff;
}

.single .author_box_super .title_box .text .title a::before {
    border-top-color: var(--mbv2-red);
    border-right-color: var(--mbv2-red);
}

.single .author_box_super .author_section_box .title {
    border-bottom: 2px dotted var(--mbv2-dot);
    padding-bottom: 10px;
}

.single .author_box_super .author_section_box .title span {
    background: var(--mbv2-yellow);
    border: 2px solid var(--mbv2-ink);
    border-radius: 99px;
    font-weight: 800;
    padding: 2px 16px;
    box-shadow: 2px 2px 0 var(--mbv2-ink);
}

/* --- ヘッダーメタ内のタグ（rel="tag"のみ。カテゴリはrel="category tag"なので対象外） --- */
.single .entry-header .writer-info a[rel="tag"] {
    display: inline-block;
    font-family: var(--mbv2-seed);
    font-weight: 700;
    font-size: 11px;
    line-height: 1.7;
    color: var(--mbv2-ink);
    background: #fff;
    border: 2px solid var(--mbv2-ink);
    border-radius: 99px;
    padding: 0 10px;
    margin: 2px 2px 2px 0;
    text-decoration: none;
}

.single .entry-header .writer-info a[rel="tag"]:hover {
    background: var(--mbv2-yellow);
}

/* --- 公開日・更新日（記事下） --- */
.single .publish_date {
    font-family: var(--mbv2-seed);
    font-size: 12px;
    font-weight: 700;
    color: #8a8678;
    margin: 18px 0;
}

@media (max-width: 767px) {
    .single ul.sns_btn_box {
        flex-wrap: wrap;
    }

    .single ul.sns_btn_box li {
        flex: 1 1 40%;
    }
}
