/**
 * seijuji-shell.css — テーマ骨格 + ヘッダー / フッター / ドロワー / サイドバー枠
 *
 * Emanon の inline critical CSS + 親 style.css が担っていた骨格レイアウトと、
 * 新 BEM コンポーネント（seijuji-header / seijuji-drawer / seijuji-page-top）の
 * スタイル。Phase 3-2 で新設し、3-6 の CSS 統合（使用章の書き起こし）で拡充する。
 *
 * 実効値の出所: staging (Emanon 現行) の inline critical CSS + 親 style.css
 * [Layout] 章の実測（2026-07-14、worklog 参照）。breakpoint は Emanon 踏襲
 * (600 / 768 / 960 / 1200)。
 *
 * ヘッダー配色は現行 parity (#564646 bar / #f2f2f2 text / hover #8ba0b6)。
 * オフクリーム化（Part E 視認性改修の昇格案）は Phase 3 完了時のデザイン確認で
 * user 判断。アイコンは Lucide (ISC) SVG mask data URI (ICONS.md 方式、
 * 実物は旧 seijuji.css Part AO から流用)。
 *
 * v0.1.0 (2026-07-14): Phase 3-2 新設。
 */

/* =========================================================
 * A-0. リセット + タイポ基礎 (Emanon critical CSS の実効値 parity。
 *      フォント本体は functions.php が Google Fonts を enqueue)
 * ======================================================= */

/* Emanon 供給だったグローバル box-sizing。欠落すると padding 持ちの width 指定が
   全て content-box で過大になる (2026-07-14 に pill nav 100vw + padding 40px で
   横スクロール発生 = user 指摘。個別対処でなく床ごと搬送) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Emanon inline critical の全称リセット (3-6 搬送)。seijuji.css Part Ω の
   縦余白床 (margin-bottom のみ供給、margin-top 無所有原則) はこのリセットが
   土台。欠落すると UA 既定 margin が全要素に復活して縦余白が総崩れする */
html, body, h1, h2, h3, h4, ul, ol, dl, li, dt, dd, p, div, span, img, a, table, tr, th, td {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    box-sizing: border-box;
}

/* core リスト以外 (footer widget / meta ul 等) の bullet 消し */
ol:not(.wp-block-list),
ul:not(.wp-block-list) {
    list-style: none;
    list-style-type: none;
}

/* figure 床。欠落すると UA の margin 1em 40px が全画像 figure に復活 */
figure {
    margin: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td,
th {
    word-break: break-all;
}

/* img 床。欠落すると原寸画像が container からあふれる */
img {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

/* iframe 床 (about の Google map 等)。inline 由来の下隙間を防ぐ */
iframe {
    vertical-align: bottom;
}

html {
    font-size: 16px;
    letter-spacing: 0.05em;
}

body {
    margin: 0;
    /* クリーム画用紙背景: 旧 custom-background theme_mod の実効値を静的焼き込み
       (3-5、D7。一次値は plans/自前テーマ移行.md 引越しチェックリスト:
       image=/media/background.webp, color=ffffff, cover/no-repeat/center/scroll) */
    background: #ffffff url("/media/background.webp") no-repeat center center / cover scroll;
    color: #333333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* =========================================================
 * A-1. タイポ・リンク・フォーム床 (Emanon critical + customizer 層の
 *      実効値、3-6 搬送)
 *
 * 順序制約: h1/h3/h4 は「critical 床 (bold + サイズ)」→「customizer 層
 * (font-weight: normal)」の 2 段で、後者が後勝ちして初めて Emanon parity。
 * 本文見出しの bold は seijuji.css の component 層が個別に付け直す。
 * ======================================================= */

/* --- 見出し床 (critical 層: サイズ + clear) --- */

h1 {
    font-weight: bold;
    font-size: 1.6rem;
    clear: both;
}

h2 {
    font-weight: bold;
    font-size: 1.33333rem;
    clear: both;
}

h3,
h4 {
    font-weight: bold;
    font-size: 1.14286rem;
    clear: both;
}

/* --- customizer 層: h1/h3/h4 の床ウェイトは normal (critical 床より
       後に置く。404 の裸 h1 等で実差が出る) --- */

h1 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: normal;
}

h2:not(.main-visual__title) {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: normal;
}

h3,
h4 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: normal;
}

hr {
    height: 2px;
    border: 0;
    background-color: #e5e7e8;
}

small,
.small {
    font-size: 0.72727rem;
}

/* --- リンク床 (色は Emanon customizer 既定の青 #000bef / hover 緑
       #37b252 を実効値焼き込み。園パレットへの retheme は Phase 3 完了時の
       デザイン確認で user 判断) --- */

a,
a:hover,
a:visited,
a:active,
a:focus {
    text-decoration: none;
}

a:active,
a:hover {
    outline-width: 0;
}

:root :where(a:where(:not(.wp-element-button))) {
    text-decoration: none;
}

a {
    color: #000bef;
}

a:hover,
a:active {
    color: #37b252;
}

a:hover {
    transition: all 0.3s ease;
}

/* 本文リンクは hover でのみ下線 (Emanon body class 由来の実効値を焼き込み)
 *
 * `.l-content__main` を前置してクラス 2 個ぶんの重みを確保している。Emanon 原文は
 * `.is-text-decoration-underline-hover .article-body p a` (クラス 2 個) で、
 * seijuji.css の `.l-content__main .seijuji-aguide a { text-decoration: underline }`
 * (クラス 2 個) に**同数だが後勝ち**ではなくクラス数で競り勝っていた。3-6 の搬送で
 * body class を落としたらクラス 1 個に下がり、admission の素の本文リンク 3 本が
 * underline 側に負けて下線が出た (Phase 4-1 で検出)。前置を外すと再発する。 */
.l-content__main .article-body p a,
.l-content__main .article-body li a,
.l-content__main .article-body .wp-element-caption a,
.l-content__main .article-body blockquote cite a {
    text-decoration: none;
}

.l-content__main .article-body p a:hover,
.l-content__main .article-body li a:hover,
.l-content__main .article-body .wp-element-caption a:hover,
.l-content__main .article-body blockquote cite a:hover {
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

/* (li p { padding-left: 1rem } は誤抽出につき撤去 — Emanon inline 原文に
   存在せず、本番 matched rules にも無い。3-6 検証で news-list タイトルの
   16px インデント退行として検出) */

/* --- 素テーブルの装飾床 (seijuji-common-table 等の component は
       この床の上の上書き層) --- */

table thead th {
    padding: 8px 12px;
    background-color: #fafafa;
    font-weight: bold;
}

table th {
    padding: 8px 12px;
    background-color: #fafafa;
    border: 1px solid #b8bcc0;
    vertical-align: middle;
    font-weight: bold;
}

table td {
    padding: 8px 12px;
    vertical-align: middle;
    border: 1px solid #b8bcc0;
}

/* --- フォーム床 (contact ページの入力欄土台。seijuji.css Part D の
       focus リングはこの床の上乗せ) --- */

label {
    cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
textarea {
    -webkit-appearance: none;
    appearance: none;
    padding: 6px 12px;
    width: 100%;
    border-radius: 3px;
    background-color: #fff;
    border: 1px solid #b8bcc0;
    transition: all 0.2s ease-in;
    letter-spacing: 0.04em;
    font-family: inherit;
    font-size: 1rem;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
}

input[type="file"] {
    -webkit-appearance: none;
    appearance: none;
    margin: 8px 0;
    width: 100%;
}

select {
    padding-right: 8px;
    padding-left: 8px;
    width: 100%;
    height: 32px;
    background-color: #fff;
    border: 1px solid #b8bcc0;
    border-radius: 3px;
    letter-spacing: 0.04em;
    font-family: inherit;
    font-size: 1rem;
    text-transform: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"],
textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

/* =========================================================
 * A. 骨格レイアウト (Emanon critical CSS 相当、温存 class)
 * ======================================================= */

.l-container {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.l-contents {
    flex: 1 0 auto;
    /* ヘッダー下と本文開始の間隔。3-3 でパンくず (margin 10px + 行高 ≈ 塊 46px)
       が実装されたため、3-2 の暫定 32px から縮小 (パンくず込みの総間隔で
       user 指摘時より広い状態を維持しつつ現行 Emanon に寄せる) */
    padding-top: 12px;
}

.l-content {
    position: relative;
    margin: auto;
    width: calc(100% - 32px);
}

.u-row {
    display: flex;
}

.u-row-wrap {
    flex-wrap: wrap;
}

.u-row.one-col,
.u-row.two-r-col {
    flex-direction: column;
}

.two-r-col .l-content__main {
    width: 100%;
}

.one-col .l-content__main {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.wrapper-column {
    width: 100%;
}

.column-5,
.column-6,
.column-7 {
    width: 100%;
}

/* サイドバー枠 (幅・sticky。widget の意匠は seijuji.css Part AL) */
.sidebar {
    position: relative;
    margin-top: 32px;
    width: 100%;
}

.sidebar a {
    text-decoration: none;
}

.sidebar .widget {
    margin-bottom: 24px;
}

/* Stickyfill 廃止 (D7) に伴い position を CSS で自前供給。
   top は seijuji.css Part F (.l-container .sidebar-sticky) が供給 */
.sidebar-sticky {
    position: sticky;
    top: 8px;
    font-size: 0.88889rem;
}

@media screen and (min-width: 768px) {
    .l-content {
        width: calc(768px - 32px);
    }
}

@media screen and (min-width: 960px) {
    .l-content {
        width: calc(960px - 32px);
    }

    .u-row.two-r-col {
        flex-direction: row;
    }

    .two-r-col .l-content__main {
        padding-right: 32px;
        width: calc(100% - 300px);
    }

    .one-col .l-content__main {
        width: min(900px, 100%);
    }

    .sidebar {
        margin-top: 0;
        min-width: 300px;
        max-width: 300px;
    }

    .column-7 {
        margin-right: 24px;
        width: calc(58.333% - 24px);
    }

    .column-5 {
        width: 41.667%;
    }

    .column-6 {
        width: calc(50% - 24px);
        margin-right: 24px;
    }

    .column-6:last-child {
        margin-right: 0;
    }
}

@media screen and (min-width: 1200px) {
    .l-content {
        width: calc(1212px - 32px);
    }

    .two-r-col .l-content__main {
        padding-right: 80px;
    }
}

/* --- パンくず (Emanon 親 style.css [Breadcrumb] 章の転記。装飾の正式整理は 3-6) --- */
.breadcrumb {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #484848;
    overflow: hidden;
    width: 100%;
}

.breadcrumb__inner {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.6;
    font-size: 0.8rem;
}

.breadcrumb__inner .icon-home {
    margin-right: 4px;
}

.breadcrumb__inner .icon-chevron-right {
    margin-right: 4px;
    margin-left: 4px;
    color: #b8bcc0;
}

.breadcrumb__item {
    display: inline;
}

/* リンク色は Emanon inline 実効値の焼き込み (A-1 リンク床と同系。3-2 暫定の
   inherit は baseline からの退行だった = 3-6 仕分けで検出) */
.breadcrumb__item a {
    text-decoration: none;
    color: #000bef;
}

.breadcrumb__item a:hover {
    color: #37b252;
}

/* パンくずアイコンの SVG mask 描画 (旧 seijuji.css Part K から 3-6 で移設。
   icomoon webfont 廃止後の FA Free SVG による同形置換、ICONS.md 方式) */
.breadcrumb i.icon-home,
.breadcrumb i.icon-chevron-right {
    font-family: inherit !important;
}

.breadcrumb i.icon-home::before,
.breadcrumb i.icon-chevron-right::before {
    content: "" !important;
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.breadcrumb i.icon-home::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg>');
}

.breadcrumb i.icon-chevron-right::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>');
}

/* --- 一覧カード + アーカイブヘッダの暫定レイアウト (Phase 3-3)。
       実効値は Emanon 親 style.css [Object] archive list 章から転記
       (sp-list/pc-list = サムネ左 + テキスト右の 1 列リスト型)。
       正式な書き起こし + 装飾は 3-6 --- */
.archive-header {
    margin-bottom: 32px;
}

.archive-title {
    line-height: 1.5;
    font-size: 1.33333rem;
}

.archive-list {
    margin-bottom: 24px;
    width: calc(100% - 12px);
}

.archive-list a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.archive-list.has-thumbnail .post-thumbnail {
    width: 160px;
    flex-shrink: 0;
}

.archive-list.has-thumbnail .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 3px 0 0 3px;
}

.archive-list .article-info {
    padding: 8px;
    width: 100%;
}

.archive-list.has-thumbnail .article-info {
    width: calc(100% - 160px);
}

@media screen and (min-width: 600px) {
    .archive-list {
        margin-right: 24px;
        margin-bottom: 32px;
        width: calc(100% - 24px);
    }

    .one-col .archive-list {
        width: 100%;
    }

    .archive-list.has-thumbnail .post-thumbnail {
        width: 300px;
    }

    .archive-list.has-thumbnail .article-info {
        width: calc(100% - 300px);
    }
}

/* カード内メタ ul の床リセット (Emanon [Foundation] 供給分の最小限。全 ul への
   一括リセットは本文リスト装飾を壊すためしない = GOTCHAS の margin 一括リセット罠) */
.archive-list .article-meta ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 前後ナビの暫定 2 分割 (装飾は 3-6) */
.post-next-previous .nav-links {
    display: flex;
    gap: 16px;
}

.post-next-previous .nav-previous,
.post-next-previous .nav-next {
    flex: 1;
    min-width: 0;
}

.post-next-previous a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
 * A-2. 本文骨格・ユーティリティ床 (3-6 搬送)
 * ======================================================= */

/* 本文ブロックとフッタ・ヘッダの間隔 (全テンプレの l-content__inner が対象。
   欠落中は本文とフッタが密着していた) */
.l-content__inner {
    margin-top: 16px;
    margin-bottom: 32px;
}

@media screen and (min-width: 600px) {
    .l-content__inner {
        margin-top: 40px;
        margin-bottom: 64px;
    }
}

/* 一覧・footer の wrapper 拡張 (負マージン型ガター)。column-7/6 の
   width calc(N% - 24px) + margin-right 24px はこの +24px 拡張が前提
   (Emanon 原文 parity。footer 列幅 -14px 差の検証で確定、3-6) */
.wrapper-column.has-sp-column {
    width: calc(100% + 12px);
}

@media screen and (min-width: 600px) {
    .wrapper-column,
    .wrapper-column.has-sp-column {
        width: calc(100% + 24px);
    }
}

/* u-row ユーティリティ (テンプレ meta 行 + content 内 class 直書きが現役) */
.u-row-item-center {
    align-items: center;
}

.u-row-cont-between {
    justify-content: space-between;
}

.u-row-cont-center {
    justify-content: center;
}

/* 本文リストのインデント設計: ul/ol 側 padding を 0 に畳み、li 側 1.25em で
   字下げする構造 (seijuji.css L1719 のカウンター上書きがこの床の存在前提) */
.wp-block-list:not([class*="is-style-item"]) {
    padding-left: 1.25em;
}

.article-body .wp-block-list {
    padding-left: 0;
}

.article-body .wp-block-list:not([class*="is-style-item"]) .wp-block-list li {
    padding-left: 1.25em;
}

/* 本文 ul は bullet 内包 (Emanon parity。:not の WooCommerce class は
   原文の specificity 温存、常に真で無害)。ol は F 章の outside + 1rem が
   後勝ちで上書きする (旧子テーマ上書きの再現) */
.article-body ul:not(.wc-block-product-template):not(.wc-block-components-express-payment__event-buttons) {
    list-style-position: inside;
}

/* ネストリストの段差 (TOC lv3 の 18px インデントもこの床由来 =
   seijuji-core toc.css:259 が明記する前提ルール) */
.article-body ul ol:not([class*="wp-block-"]):not(.contents-outline__ol),
.article-body ol ol:not([class*="wp-block-"]):not(.contents-outline__ol) {
    list-style-type: decimal;
    margin-left: 18px;
}

/* 本文直下要素の章間 margin-top 40px (Emanon posts pages 章の床。
   seijuji.css Part Ω の margin-bottom 所有と共存していた実効値で、single の
   連続写真間隔・community セクション間隔の供給源。3-6 検証で欠落を検出) */
.article-body > *:not([class*="wp-block-spacer"]):not([class*="epb-spacer"]):not([class*="epb-container-box"]):not(:first-child):not(.product) {
    margin-top: 40px;
}

/* 本文内 float (alignleft/right 画像) の clearfix */
.article-body::after {
    display: block;
    clear: both;
    content: "";
}

/* 素置き iframe (surroundings の Google Maps 等) の SP はみ出し防止 */
.article-body iframe {
    display: block;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.alignwide {
    clear: both;
}

/* =========================================================
 * A-3. WP ブロック床 (Emanon が WP コア既定から変更していた実効値。
 *      コア供給と同値のものは搬送していない、3-6 仕分け)
 * ======================================================= */

.wp-block-image {
    margin-bottom: 0 !important;
    text-align: center;
}

.wp-block-image::after {
    content: "";
    display: block;
    clear: both;
}

/* コア既定は currentColor (#333) 罫線。薄グレーは Emanon 独自変更 */
.wp-block-table td,
.wp-block-table th,
.wp-block-table tr {
    border-color: #b8bcc0;
}

.wp-block-button__link {
    position: relative;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transition: box-shadow 0.2s ease, transform 0.02s linear;
}

/* hover の inset 暗転 (contact の tel ボタン等が対象、baseline parity) */
.wp-block-button__link:hover {
    box-shadow: inset 0 0 0 9999px rgba(34, 34, 34, 0.2);
    color: #fff;
}

/* =========================================================
 * B. ヘッダー (seijuji-header、単一 sticky。複製ヘッダーは廃止 = D7)
 * ======================================================= */

/* 常時 1 行バー (左ロゴ + 右メニュー + 問い合わせ) の sticky。
   user 指示 2026-07-14: 「最初から 1 行」に簡素化 (2 段 + is-stuck 畳み込み案は廃止) */
.seijuji-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-bar .seijuji-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .seijuji-header {
        top: 46px;
    }
}

.seijuji-header__bar {
    background-color: #564646;
}

.seijuji-header__inner {
    display: flex;
    align-items: center;
    margin: auto;
    width: calc(100% - 32px);
    max-width: calc(1212px - 32px);
    min-height: 56px;
    gap: 12px;
}

/* --- ハンバーガー (<960 のみ) --- */
.seijuji-header__hamburger {
    display: none;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
}

.seijuji-header__hamburger-bars {
    display: block;
    width: 24px;
}

.seijuji-header__hamburger-bars span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background-color: #f2f2f2;
    border-radius: 1px;
}

@media screen and (max-width: 959px) {
    .seijuji-header__hamburger {
        display: block;
    }
}

/* --- ロゴ (TOP=h1 / 下層=div)
 *
 * 高さ: SP 36px / PC 40px（2026-07-14 user 指示で SP 30 / PC 32 から拡大）。
 * 旧 Emanon は 2 段ヘッダで 60px あったが、1 行バー化（min-height 56/60px）に
 * 合わせて一度絞ったところ「小さくて弱い」との指摘。本番ほど大きくはせず、
 * **バーの min-height（SP 56 / PC 60）の内側に収まる範囲**で強調する。
 * ⚠️ この範囲を超えるとバーの実高が伸び、--fixed-header-offset（SP 64 / PC 68）と
 * 実際の固定ヘッダ高がズレて、アンカーリンクで見出しがヘッダ下に隠れる。
 * さらに大きくしたい時は offset も同時に見直すこと。
 * 値はこのコンポーネント専用（他への使い回しなし）。 --- */
.seijuji-header__logo {
    margin: 0;
    font-size: 0;
    line-height: 1;
    flex: 1;
}

.seijuji-header__logo-link {
    display: inline-block;
}

.seijuji-header__logo-img {
    height: 36px;
    width: auto;
}

.seijuji-header__logo-text {
    color: #f2f2f2;
    font-size: 1.1rem;
    font-weight: 700;
}

@media screen and (min-width: 960px) {
    .seijuji-header__logo-img {
        height: 40px;
    }

    .seijuji-header__inner {
        min-height: 60px;
        gap: 24px;
    }
}

/* --- CTA ボタン (≥600 のみ表示。開閉アイコンは aria-expanded で出し分け) --- */
.seijuji-header__cta {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #f2f2f2;
    font-size: 0.88889rem;
    cursor: pointer;
}

.seijuji-header__cta:hover {
    color: #8ba0b6;
}

@media screen and (min-width: 600px) {
    .seijuji-header__cta {
        display: flex;
    }
}

.seijuji-header__cta-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.seijuji-header__cta-icon--mail {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-mail" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" /><rect x="2" y="4" width="20" height="16" rx="2" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-mail" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" /><rect x="2" y="4" width="20" height="16" rx="2" /></svg>');
}

.seijuji-header__cta-icon--close {
    display: none;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-circle-x" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="10" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-circle-x" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="10" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>');
}

.seijuji-header__cta[aria-expanded="true"] .seijuji-header__cta-icon--mail {
    display: none;
}

.seijuji-header__cta[aria-expanded="true"] .seijuji-header__cta-icon--close {
    display: inline-block;
}

.seijuji-header__cta-label {
    display: none;
}

@media screen and (min-width: 960px) {
    .seijuji-header__cta-label {
        display: inline;
    }
}

/* --- 連絡先パネル (静的焼き込み内容、開閉は hidden 属性) --- */
.seijuji-header__contact {
    position: absolute;
    right: 0;
    left: 0;
    padding: 24px 16px;
    background-color: rgb(72 72 72);
    color: #ffffff;
    box-shadow: 0 1px 1px rgb(0 0 0 / 0.1);
    z-index: 400;
}

.seijuji-header__contact[hidden] {
    display: none;
}

.seijuji-header__contact-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: auto;
    width: calc(100% - 32px);
    max-width: calc(960px - 32px);
}

.seijuji-header__contact-col {
    flex: 1 1 280px;
}

.seijuji-header__contact-title {
    margin-bottom: 8px;
    font-size: 0.88889rem;
    font-weight: 700;
}

.seijuji-header__contact-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 700;
}

.seijuji-header__contact-phone a {
    color: #ffffff;
    text-decoration: none;
}

.seijuji-header__contact-hours {
    font-size: 0.88889rem;
    opacity: 0.9;
}

.seijuji-header__contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 3px;
    background-color: #3f5973;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88889rem;
    transition: background-color 0.3s ease;
}

.seijuji-header__contact-btn:hover {
    background-color: #8ba0b6;
}

.seijuji-header__contact-microcopy {
    margin: 8px 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.seijuji-header__icon--phone,
.seijuji-header__icon--external {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.seijuji-header__icon--phone {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-phone" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-phone" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" /></svg>');
}

.seijuji-header__icon--external {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-external-link" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15 3h6v6" /><path d="M10 14 21 3" /><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-external-link" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15 3h6v6" /><path d="M10 14 21 3" /><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" /></svg>');
}

/* --- PC グロナビ (1 行バー内、ロゴの右。≥960 のみ表示) --- */
.seijuji-header__nav {
    display: none;
    flex: 1;
    min-width: 0;
}

@media screen and (min-width: 960px) {
    .seijuji-header__nav {
        display: block;
    }
}

.seijuji-header__nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seijuji-header__nav-list .menu-item {
    position: relative;
}

/* 項目間セパレータ (現行 has-separator の踏襲) */
.seijuji-header__nav-list .menu-item + .menu-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background-color: #b8bcc0;
}

.seijuji-header__nav-list .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 24px;
    color: #f2f2f2;
    font-size: 0.88889rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-decoration: none;
}

.seijuji-header__nav-list .menu-item:hover > a,
.seijuji-header__nav-list .current-menu-item > a {
    color: #8ba0b6;
}

/* =========================================================
 * B-2. ヘッダ高依存の派生定数 (旧 seijuji.css Part F から 3-6 で移管)
 *
 * sticky 1 行バーのスクロール中実高 + 余白 8px。ヘッダ実装 (B 章) と
 * 同居させて、ヘッダ高を変えたらここも追従させる。
 * - scroll-padding-top: アンカー着地がヘッダ下に隠れないように
 * - .sidebar-sticky top: sticky 目次がヘッダに潜らないように
 * - admin-bar 補正: WP コアの inline `.admin-bar .sidebar-sticky
 *   { top: 30px }` (specificity 0,2,0) に 0,3,0 で確実に勝つ
 * ======================================================= */

:root {
    --fixed-header-offset: 64px;
    --admin-bar-height: 32px;
}

@media screen and (min-width: 960px) {
    :root {
        --fixed-header-offset: 68px;
    }
}

html {
    scroll-padding-top: var(--fixed-header-offset);
}

.l-container .sidebar-sticky {
    top: var(--fixed-header-offset);
}

.admin-bar .l-container .sidebar-sticky {
    top: calc(var(--fixed-header-offset) + var(--admin-bar-height));
}

/* =========================================================
 * C. ドロワー (全画面型、<960 のハンバーガーから開く)
 * ======================================================= */

.seijuji-drawer {
    position: fixed;
    inset: 0;
    background-color: rgb(86 70 70 / 0.97);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 500;
}

.seijuji-drawer.is-open {
    transform: translateX(0);
}

.seijuji-drawer[aria-hidden="true"] {
    visibility: hidden;
}

.seijuji-drawer.is-open[aria-hidden="false"] {
    visibility: visible;
}

.seijuji-drawer__inner {
    padding: 64px 24px 40px;
}

.seijuji-drawer__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
}

.seijuji-drawer__close-bars {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
}

.seijuji-drawer__close-bars span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #f2f2f2;
    border-radius: 1px;
}

.seijuji-drawer__close-bars span:first-child {
    transform: rotate(45deg);
}

.seijuji-drawer__close-bars span:last-child {
    transform: rotate(-45deg);
}

.seijuji-drawer__nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.seijuji-drawer__nav-list .menu-item + .menu-item {
    border-top: 1px solid rgb(255 255 255 / 0.15);
}

.seijuji-drawer__nav-list .menu-item > a {
    display: block;
    padding: 14px 8px;
    color: #f2f2f2;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.seijuji-drawer__overlay {
    position: fixed;
    inset: 0;
    display: none;
    background-color: rgb(0 0 0 / 0.4);
    z-index: 490;
}

.seijuji-drawer__overlay.is-open {
    display: block;
}

/* =========================================================
 * D. ページトップボタン (markup は 3-2、表示制御 JS は 3-4。
 *    現行 parity で PC のみ表示 = UA 分岐を media query に置換)
 * ======================================================= */

.seijuji-page-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: rgb(86 70 70 / 0.85);
    color: #f2f2f2;
    cursor: pointer;
    z-index: 300;
}

.seijuji-page-top[hidden] {
    display: none !important;
}

@media screen and (min-width: 960px) {
    .seijuji-page-top {
        display: block;
    }
}

.seijuji-page-top__icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-chevron-up" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18 15-6-6-6 6" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-chevron-up" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18 15-6-6-6 6" /></svg>');
}

/* =========================================================
 * E. フッター (骨格 + 配色。widget 中身の意匠は footer.css / seijuji.css)
 * ======================================================= */

.l-footer {
    position: relative;
    margin-top: auto;
    overflow: hidden;
    background-color: #484848;
}

.l-footer,
.l-footer a,
.l-footer .widget {
    color: #ffffff;
}

/* footer widget の文字サイズ床 (住所テーブル等。3-6 仕分けで検出したリーク) */
.l-footer .widget {
    font-size: 0.88889rem;
}

.l-footer__inner {
    position: relative;
    padding-top: 24px;
    padding-bottom: 24px;
    /* z-index は 1 で足りる（フッタ内部の背景装飾より上に出るだけの用途）。
       Emanon 由来の 100 のままだと sticky ヘッダ（.seijuji-header も 100）と同点になり、
       DOM で後ろにあるフッタが勝ってヘッダの上に被さる = フッタまでスクロールすると
       ヘッダが隠れる（2026-07-14 に SP で user 報告、PC も同症状） */
    z-index: 1;
}

.l-footer__inner a {
    text-decoration: none;
}

/* padding は Emanon 実効の上下 16px (3-2 暫定の 8px はバー高が半減していた
   = 3-6 仕分けで検出)。line-height / letter-spacing も Emanon 実効値 */
.site-copyright {
    position: relative;
    background-color: #484848;
    text-align: center;
    padding: 16px 0;
    line-height: 1.5;
    letter-spacing: 0.04em;
    z-index: 1;                                      /* 同上（sticky ヘッダと同点にしない） */
}

.site-copyright,
.site-copyright a {
    color: #ffffff;
}

.site-copyright a {
    text-decoration: none;
}

.site-copyright a:hover {
    opacity: 0.8;
}

/* =========================================================
 * F. 記事・固定ページの床 (Emanon posts pages 章 + headline 章の
 *    実使用分、3-6 搬送)
 * ======================================================= */

/* h1 と本文の間隔。Emanon は body.featured_standard (customizer skin class)
   で供給していたが新テーマは非出力のため .page/.single に焼き込み
   (baseline 実測: page/single に付与、404 には無い) */
.page .article-header__inner,
.single .article-header__inner {
    padding-bottom: 24px;
}

/* 本文上 32px (featured_standard 由来の焼き込み)。single は seijuji.css の
   padding !important が同値上書きで無害、実質固定ページ向け */
.page .article-body,
.single .article-body {
    padding-top: 32px;
}

/* 本文段落の行間 (--ep-article-line-height-* は全 breakpoint 1.8 のため
   焼き込み統合)。欠落すると body 床 1.6 に詰まる */
.article-body p {
    line-height: 1.8;
}

/* 本文 ol の番号はみ出し防止 (旧子テーマ root style.css から 3-6 で移設。
   TOC の ol は独自インデント管理のため除外)。A-2 の 1.25em リスト床より
   specificity が高く ol だけ 1rem + outside になる = 旧環境の実効 parity */
.article-body ol:not(.contents-outline__ol) {
    list-style-position: outside;
    padding-left: 1rem;
}

/* wp-block-heading の付かない素の h3/h4 の行高床 (surroundings の
   echo/mentor/room 見出し・contact モーダルタイトル等が依存。prod 実測
   22.67px/19.43px → staging 27.2px の退行を 3-6 仕分けで検出) */
.article-body h3 {
    line-height: 1.33333;
}

.article-body h4,
.article-body h5,
.article-body h6 {
    line-height: 1.14286;
}

/* 投稿 meta 行 (日付ピル等) の床 */
.meta-post {
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    color: #484848;
}

/* 検索結果 / 404 のタイトル (search.php / 404.php が出力、他に供給元なし) */
.search-header_title,
.error404-header_title {
    padding-bottom: 16px;
    font-size: 1.14286rem;
    letter-spacing: 0.04em;
}

/* 404 本文の左右 padding (Emanon skin class paragraph__normal の焼き込み) */
@media screen and (min-width: 600px) {
    .error404 .article-body {
        padding-right: 24px;
        padding-left: 24px;
    }
}

/* =========================================================
 * G. 一覧カード・ページャ・関連記事 (Emanon archive list / pagination /
 *    related 章の実使用分、3-6 搬送。A 章の暫定レイアウトの装飾補完)
 * ======================================================= */

/* --- カテゴリピル (色は seijuji.css Part AB が cat-ID 別供給。ここは構造 +
       既定色の床。既定色 #3f5973 は未分類等 cat-ID 色が無いカテゴリ用) --- */

.cat-name {
    display: inline-block;
    margin-bottom: 16px;
    padding-right: 8px;
    padding-left: 8px;
    width: fit-content;
    border-radius: 30px;
    line-height: 1.5;
    vertical-align: top;
    backface-visibility: hidden;
    letter-spacing: 0.04em;
    font-size: 0.72727rem;
    background-color: #3f5973;
    color: #fff;
}

/* --- カードタイトル・メタ・抜粋の床 --- */

.article-title {
    line-height: 1.4;
    letter-spacing: 0.04em;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

.article-meta {
    line-height: 1;
    letter-spacing: 0.04em;
    backface-visibility: hidden;
    color: #484848;
}

/* meta 行 (日付ピル) のカード下端固定 (Emanon 原文。:not の
   article-meta__custom-post は seminar/job 用で常に真、specificity 温存) */
.sp-list .article-meta:not(.article-meta__custom-post) {
    margin-top: 16px;
}

.sp-list.has-thumbnail .article-meta:not(.article-meta__custom-post) {
    position: absolute;
    bottom: 6px;
    margin-top: 0;
    width: calc(100% - 160px - 8px - 8px);
}

@media screen and (min-width: 600px) {
    [class^="sp-"].pc-list .cat-name {
        margin-bottom: 16px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 0.72727rem;
    }

    [class^="sp-"].pc-list .article-title {
        line-height: 1.5;
        font-size: 1.14286rem;
    }

    [class^="sp-"].pc-list .article-excerpt {
        display: block;
        margin-top: 8px;
        line-height: 1.5;
        font-size: 0.72727rem;
        color: #484848;
    }

    [class^="sp-"].pc-list .article-meta:not(.article-meta__custom-post) {
        position: absolute;
        left: inherit;
        right: inherit;
        bottom: 16px;
        width: calc(100% - 32px);
        font-size: 0.8rem;
    }

    [class^="sp-"].pc-list.has-thumbnail .article-meta:not(.article-meta__custom-post) {
        width: calc(100% - 300px - 16px - 16px);
    }

    /* single のカテゴリ行下余白 (Emanon 原文は ≥600 のみ) */
    .meta-category:not(.has-meta-tag) {
        margin-bottom: 16px;
    }
}

/* page-bottom-menu CTA 内アイコンの間隔 (Emanon Component Btn 章の残存床) */
.c-btn [class^="icon-"]:not(.icon-read-arrow-right) {
    margin-left: 6px;
}

/* --- カードの影・枠線ユーティリティ (u-shadow 章。カード再設計
       (seijuji.css) は background/radius のみで影と hover を供給しない) --- */

.u-shadow-hover {
    box-shadow: 0 1px 3px 1px rgb(0 0 0 / 0.08);
    border-radius: 3px;
    transition: all 0.3s ease;
    backface-visibility: hidden;
}

.u-shadow-hover:hover {
    box-shadow: 0 1px 12px 0 rgb(0 0 0 / 0.1);
    transform: translateY(-3px);
}

.u-shadow-border {
    border: 1px solid #e5e7e8;
    border-radius: 3px;
    transition: all 0.3s ease;
    backface-visibility: hidden;
}

.u-shadow-border:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 12px 0 rgb(0 0 0 / 0.1);
}

/* --- アーカイブページャ (.page-numbers。hover 緑 #37b252 / current 青
       #000bef は Emanon 動的 inline の実効値焼き込み = A-1 リンク色と同系、
       retheme は Phase 3 完了時の user 判断) --- */

.pagination {
    margin-top: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.page-numbers {
    position: relative;
    display: inline-block;
    margin-right: 4px;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #e5e7e8;
    text-align: center;
    font-size: 0.72727rem;
    color: #484848;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-numbers:hover {
    background-color: #37b252;
    border: 1px solid #eeeff0;
    color: #fff;
}

.page-numbers.current {
    background-color: #000bef;
    border: 1px solid #eeeff0;
    color: #fff;
}

.page-numbers.dots {
    border: none;
    background-color: inherit;
}

.page-numbers.dots:hover {
    color: inherit;
    background-color: inherit;
}

/* 前へ/次へは丸ボタン化させない */
.prev.page-numbers,
.next.page-numbers {
    background-color: inherit !important;
    border: none;
}

.prev.page-numbers:hover,
.next.page-numbers:hover {
    border: none;
    color: #37b252;
}

/* 前へ/次への矢印 (配置床 + Lucide SVG mask。mask は旧 seijuji.css Part AO
   から 3-6 で移設、icomoon 廃止後の同形置換) */
.prev.page-numbers::before,
.next.page-numbers::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #828990;
    transition: all 0.2s ease-in;
    font-size: 1rem;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.prev.page-numbers::before {
    left: -16px;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-chevron-left" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m15 18-6-6 6-6" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-chevron-left" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m15 18-6-6 6-6" /></svg>');
}

.next.page-numbers::after {
    right: -16px;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-chevron-right" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m9 18 6-6-6-6" /></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg class="lucide lucide-chevron-right" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m9 18 6-6-6-6" /></svg>');
}

/* hover で矢印が外へスライド (色は currentColor 継承で #37b252 に追従) */
.prev.page-numbers:hover::before {
    left: -20px;
}

.next.page-numbers:hover::after {
    right: -20px;
}

/* --- single 前後ナビ (2 分割カードの再設計は seijuji.css。ここは Emanon
       から黙って継承していた残存プロパティのみ) --- */

.post-navigation {
    margin-top: 48px;
}

.post-next-previous .label-previous,
.post-next-previous .label-next {
    line-height: 1;
    letter-spacing: 0.04em;
}

.post-next-previous .nav-title {
    font-size: 0.88889rem;
    letter-spacing: 0.04em;
}

/* --- 関連記事 (カードグリッドの再設計は seijuji.css。ここは供給元の
       無かった床のみ、prod 実測との差分 = 3-6 仕分けで検出) --- */

.related-posts {
    margin-top: 48px;
    overflow: hidden;
}

.related-posts__title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.14286rem;
}

.related-post-list__item.column-6 .related-post-list__body {
    padding: 8px;
    height: 80px;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.related-post-list__item.column-6 .related-post-list__body .published {
    display: block;
    margin-bottom: 4px;
}

.related-post-list__body .published {
    backface-visibility: hidden;
    letter-spacing: 0.04em;
    font-size: 0.72727rem;
    color: #484848;
}

/* =========================================================
 * H. サイドバー床 (widget 意匠の本体は seijuji.css Part AL。ここは
 *    AL が上書きしない継承床のみ、3-6 搬送)
 * ======================================================= */

/* widget 見出しの行高床 (AL は font-size/margin/letter-spacing を上書きするが
   line-height 未宣言で、欠落すると継承 1.55 に退行) */
.sidebar-widget__title,
.sidebar .widgettitle,
.sidebar .wp-block-heading,
.sidebar .wp-block-group > h2,
.sidebar .wp-block-group > h3,
.sidebar .widget_block > h2,
.sidebar .widget_block > h3 {
    position: relative;
    margin-bottom: 4px;
    width: 100%;
    line-height: 1.25;
    letter-spacing: 0.04em;
    font-size: 1rem;
}

/* アーカイブ widget の年度リンクの字下げ (Emanon inline の床。3-6 検証で
   -16px の退行として検出) */
.widget_archive li,
.wp-block-archives li {
    padding-left: 16px;
}

/* サイドバー内リンクを #333 に固定 (A-1 の a 床色 #000bef の抑止。
   Part AL のクレヨン意匠はこの床の上で承認された。:not 連鎖は Emanon 原文の
   specificity 温存 = 廃止 class の :not は常に真で無害) */
.sidebar .widget,
.sidebar .widget a:not(.c-link):not(.c-link__underline):not(.epb-btn):not(.c-btn):not(.wp-block-social-link-anchor):not(.wp-block-button__link):not(.tag-cloud-link):not(.is-current-highlight),
.sidebar .c-post-list__link {
    color: #333333;
}
