@charset "UTF-8";
/* ==========================================================================
   歴史人物雑学辞典（PCワイド）pc.css
   親テーマの main.css の後に読み込む。スマホ（960px以下）は親テーマのまま
   PC：右にメニューを固定し、残りの幅いっぱいに記事を表示する
   ========================================================================== */

/* PC用に足した要素（ロゴ・おすすめ作品）はスマホのメニューには出さない */
.l-side__logo,
.l-side__recommend { display: none; }

@media (min-width: 961px) {
    :root {
        --rk-side: 300px;  /* 右メニューの幅 */
        --rk-read: 860px;  /* 記事・人物ページの本文の最大幅 */
        --rk-pad: 48px;    /* 記事エリアの左右余白 */
    }

    body { background: var(--color-base); }
    .l-deco { display: none; } /* 左右の装飾・左の時代ナビ・右のおすすめ作品（右メニューへ移動） */
    .l-wrapper { max-width: none; margin: 0 var(--rk-side) 0 0; border: 0; }

    /* 右固定メニュー：スマホのハンバーガーメニューの中身を常に表示
       ========================================================================== */
    .l-header { padding-inline: var(--rk-pad); }
    .l-header__toggle { display: none; }
    .l-header__menu,
    .l-header.is-menu-open .l-header__menu {
        position: fixed;
        top: var(--rk-sticky-top);
        right: 0;
        bottom: 0;
        left: auto;
        width: var(--rk-side);
        max-height: none;
        padding: 24px 24px 32px;
        border-bottom: 0;
        border-left: 1px solid #e3d8c8;
        /* 親テーマの金彩装飾：右上に雲、下に富士と青海波（メニューをスクロールしても位置は固定） */
        background:
            url(../../../reki-jin-zatsu/assets/img/common/deco-cloud-r.png) no-repeat right -40px top 8px / 200px auto,
            url(../../../reki-jin-zatsu/assets/img/common/deco-fuji.png) no-repeat right bottom / 250px auto,
            url(../../../reki-jin-zatsu/assets/img/common/deco-seigaiha.png) no-repeat left bottom / 220px auto,
            var(--color-page);
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }
    .l-side__logo { display: block; width: 96px; margin: 0 auto 20px; }
    .l-side__logo img { width: 100%; height: auto; }

    .l-side__recommend { display: block; margin-top: 28px; padding: 16px; border-radius: var(--radius); background: var(--color-white); }
    .l-header__menu .p-side-recommend a { display: revert; min-height: 0; }

    /* トップ
       ========================================================================== */
    .p-fv { display: flex; align-items: center; height: 360px; }
    /* 画像は記事エリアの横幅いっぱい。上下は城が切れない位置で切り取る */
    .p-fv__bg { right: 0; width: 100%; height: 100%; aspect-ratio: auto; background-position: right 20%; }
    /* 親テーマの画像全体にかかる白いぼかしは使わず、文字の裏だけにぼかしを敷く */
    .p-fv::before,
    .p-fv::after { display: none; }
    .p-fv__body { margin-left: var(--rk-pad); padding: 0; }
    .p-fv__body::before { content: ""; position: absolute; inset: -40px -56px; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .8); filter: blur(28px); }
    .p-fv__title { font-size: 48px; }
    .p-fv__lead { font-size: 20px; }
    .p-top-banner { max-width: var(--rk-read); margin-inline: auto; }

    /* 一覧：横に並べる
       ========================================================================== */
    .p-top,
    .p-archive,
    .c-breadcrumb { padding-inline: var(--rk-pad); }
    .c-person-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
    .c-article-list:not(.c-article-list--plain) { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
    .c-person-search { margin-inline: 0; }
    .c-btn--wide { max-width: 400px; }
    .p-line-banner { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }

    /* 記事・人物：画像は大きく、本文は読みやすい幅で中央に
       ========================================================================== */
    .p-article__eyecatch,
    .p-article__inner,
    .p-person > :not(.p-person__fv) { max-width: var(--rk-read); margin-inline: auto; }
    .p-article__eyecatch { margin-top: 24px; border-radius: var(--radius); }
    .p-person__fv { height: 420px; }
    .p-person__related { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   特集バナー カルーセル（トップページ／親テーマ parts/front/taiga-banner.php）
   スクロールスナップでスワイプ対応。ドットと矢印はJS（子テーマ functions.php）が有効なときだけ表示
   ========================================================================== */
.p-top-banner--carousel { position: relative; }
.p-top-banner__viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--radius);
}
.p-top-banner__viewport::-webkit-scrollbar { display: none; }
.p-top-banner__slide { flex: 0 0 100%; scroll-snap-align: start; }
.p-top-banner--carousel .p-top-banner__link { box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.p-top-banner__nav,
.p-top-banner__dots { display: none; }
.p-top-banner--carousel.is-ready .p-top-banner__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 42%;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(43, 32, 24, .55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.p-top-banner__nav--prev { left: 10px; }
.p-top-banner__nav--next { right: 10px; }
.p-top-banner--carousel.is-ready .p-top-banner__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.p-top-banner__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(43, 32, 24, .45);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.p-top-banner__dot.is-active { background: rgba(43, 32, 24, .75); }
@media (prefers-reduced-motion: reduce) {
    .p-top-banner__viewport { scroll-behavior: auto; }
}

/* ===========================================================================
   記事ページのFV・パンくずを人物ページに合わせる
   人物ページのFV：幅いっぱい・高さ固定・画像は上寄せ（center 30%）
   ======================================== */
.p-article__eyecatch { aspect-ratio: auto; height: 260px; }
.p-article__eyecatch img { object-position: center 30%; }
@media (max-width: 479px) { .p-article__eyecatch { height: auto; aspect-ratio: 480 / 260; } }
@media (min-width: 961px) { .p-article__eyecatch { max-width: none; margin-top: 0; border-radius: 0; height: 420px; } .p-article > .c-breadcrumb { max-width: var(--rk-read); margin-inline: auto; } }

/* ========================================
 *    本文タイポグラフィ（読みやすさ調整）
 *    本文（.c-entry）はゴシック、見出しは明朝のまま。本文サイズはPC 18px／SP 16px（body既定）、行間1.6
 *    ======================================== */
.c-entry { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif; line-height: 1.6; }
.c-entry h2, .c-entry h3 { font-family: var(--font-base); }
@media (min-width: 961px) { .c-entry { font-size: 18px; } }

/* 本文フォントを明朝に戻す（ゴシック試行の取り消し。本文サイズPC 18px・行間1.6は維持） */
.c-entry { font-family: var(--font-base); }