@charset "UTF-8";
/*
Skin Name: 山の物語（和の古書風）
Description: 和紙・明朝体・墨絵の山をモチーフにした物語風スキン（サイト共通）
Skin URI:
Author: 粕谷 大介
Author URI:
Version: 1.4.1
Priority: 9100000000
*/

/*
 * 方針
 * - スキン：色・フォント・装飾（サイト共通の見た目）
 * - 子テーマ：yamalog-lead などサイト独自部品のレイアウト
 * 本文の段落指定は :where() で優先度を下げ、
 * 子テーマの独自指定が優先されるようにしている。
 */

/* ===== 基本 ===== */
:root {
    --yama-paper: #f3ecdf;
    --yama-paper-light: #fcfaf5;
    --yama-bg: #ece3d2;
    --yama-ink: #3b2f25;
    --yama-ink-body: #2e241b;
    --yama-ink-soft: #6b5a4a;
    --yama-accent: #9c4a2a;
    --yama-green: #4a5d4a;
    --yama-line: #cdbb9e;
    --yama-serif: 'Shippori Mincho', 'Zen Old Mincho',
                  'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

body {
    background-color: var(--yama-bg);
    background-image:
        radial-gradient(rgba(120, 90, 50, .035) 1px, transparent 1px),
        radial-gradient(rgba(120, 90, 50, .025) 1px, transparent 1px);
    background-size: 7px 7px, 11px 11px;
    background-position: 0 0, 3px 5px;
    color: var(--yama-ink);
    font-family: var(--yama-serif);
}

#container, .container, .content, .content-in, .sidebar,
.header-container, .footer, .navi, .wrap {
    background-color: transparent;
}

.header-container {
    border-top: none;
}

/* ===== メイン：古書のページ風 ===== */
.main {
    background: var(--yama-paper-light);
    border: 1px solid #e3d6c0;
    box-shadow:
        0 2px 0 #e9dfcc,
        0 10px 30px rgba(90, 60, 30, .08);
    padding: 24px 40px 36px;
}

.breadcrumb {
    font-size: 12px;
    color: var(--yama-ink-soft);
    letter-spacing: .08em;
}

.breadcrumb a,
.breadcrumb .fa {
    color: var(--yama-ink-soft);
}

/* ===== 記事タイトル ===== */
.entry-title,
.article h1 {
    font-family: var(--yama-serif);
    font-weight: 600;
    font-size: 1.5em;
    letter-spacing: .05em;
    font-feature-settings: "palt";
    color: var(--yama-ink);
    padding-bottom: .3em;
    margin-bottom: .25em;
    background:
        linear-gradient(
            90deg,
            var(--yama-accent),
            rgba(156, 74, 42, 0) 70%
        ) left bottom / 100% 1px no-repeat;
}

/* ===== 日付 ===== */
.date-tags {
    text-align: left;
    letter-spacing: .1em;
    margin: 14px 0 6px;
}

.date-tags,
.post-date,
.post-update {
    color: var(--yama-ink-soft);
    font-size: 13px;
}

/* ===== アイキャッチ ===== */
.eye-catch {
    position: relative;
}

.eye-catch img {
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(70, 45, 20, .28);
    filter: sepia(.08) saturate(1.05);
}

.eye-catch .cat-label {
    display: none;
}

.yama-eyecatch-copy {
    position: absolute;
    top: 12%;
    left: 8%;
    writing-mode: vertical-rl;
    font-family: var(--yama-serif);
    font-size: clamp(16px, 2.2vw, 26px);
    line-height: 1.9;
    letter-spacing: .25em;
    color: #fffaf0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
    pointer-events: none;
}

/* ===== カテゴリ・タグ ===== */
.entry-categories-tags {
    margin: 12px 0 20px;
}

.cat-link {
    background: var(--yama-ink) !important;
    color: #f6efe2 !important;
    border-radius: 2px;
    font-family: var(--yama-serif);
    padding: 3px 10px;
}

.tag-link {
    border: 1px solid var(--yama-ink-soft) !important;
    color: var(--yama-ink) !important;
    background: transparent;
    border-radius: 2px;
    padding: 3px 10px;
}

/* ===== 本文 ===== */
.entry-content {
    font-size: 17px;
    font-weight: 500;
    color: var(--yama-ink-body);
}

.entry-content :where(p) {
    line-height: 2.0;
    letter-spacing: .03em;
    margin-bottom: 2em;
}

/* ===== 見出し ===== */
.article h2 {
    background: none;
    border: none;
    color: var(--yama-ink);
    text-align: center;
    font-family: var(--yama-serif);
    font-weight: 600;
    font-size: 1.45em;
    letter-spacing: .15em;
    font-feature-settings: "palt";
    padding: 1.4em 0 1em;
    margin: 2.6em 0 1.2em;
    position: relative;
}

.article h2::before {
    content: "";
    display: block;
    width: 120px;
    height: 24px;
    margin: 0 auto .5em;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 22 L22 10 L32 15 L50 2 L66 14 L78 8 L96 18 L120 22' fill='none' stroke='%239c4a2a' stroke-width='1.3'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.article h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 1px;
    margin: .7em auto 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--yama-line),
            transparent
        );
}

.article h3 {
    background: none;
    border: none;
    border-left: 3px solid var(--yama-green);
    border-bottom: 1px dotted var(--yama-line);
    color: var(--yama-ink);
    font-family: var(--yama-serif);
    font-size: 1.2em;
    letter-spacing: .1em;
    font-feature-settings: "palt";
    padding: .3em 0 .4em .8em;
}

.article h4 {
    border: none;
    color: var(--yama-green);
    font-family: var(--yama-serif);
    padding: 0;
}

.article h4::before {
    content: "◆ ";
    color: var(--yama-accent);
    font-size: .8em;
}

/* ===== 引用 ===== */
.entry-content blockquote {
    background: transparent;
    border: none;
    border-left: 2px solid var(--yama-accent);
    color: var(--yama-ink-soft);
    font-style: normal;
    padding: .6em 1.2em;
}

.entry-content blockquote::before,
.entry-content blockquote::after {
    display: none;
}

/* ===== 本文内目次 ===== */
.main .toc {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--yama-paper);
    border: 1px solid #b9a07c;
    outline: 1px solid #b9a07c;
    outline-offset: -6px;
    border-radius: 0;
    padding: 1.6em 2em 1.4em;
    margin: 2.4em 0;
    font-family: var(--yama-serif);
}

.main .toc-title {
    font-family: var(--yama-serif);
    font-size: 1.25em;
    letter-spacing: .35em;
    color: var(--yama-ink);
    text-align: center;
    margin-bottom: .8em;
}

.main .toc-title::before {
    display: none;
}

.main .toc-content > ol,
.main .toc-content > ul {
    counter-reset: yama-toc;
    columns: 2;
    column-gap: 2.4em;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 番号の丸を文字の上下中央にそろえる */
.main .toc-content > ol > li,
.main .toc-content > ul > li {
    counter-increment: yama-toc;
    break-inside: avoid;
    display: flex;
    align-items: center;
    gap: .7em;
    border-bottom: 1px dotted var(--yama-line);
    padding: .45em 0;
    margin: 0;
}

.main .toc-content > ol > li::before,
.main .toc-content > ul > li::before {
    content: counter(yama-toc);
    flex: 0 0 1.5em;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    border-radius: 50%;
    background: var(--yama-ink);
    color: #f6efe2;
    font-size: .75em;
    text-align: center;
}

.main .toc-content > ol > li > a,
.main .toc-content > ul > li > a {
    line-height: 1.6;
}

.main .toc-content > ol > li > ol,
.main .toc-content > ul > li > ul {
    display: none;
}

.toc a {
    color: var(--yama-ink);
    text-decoration: none;
}

.toc a:hover {
    color: var(--yama-accent);
}

/* ===== サイドバー ===== */
.sidebar {
    padding-top: 10px;
}

.sidebar h3,
.widget-sidebar-title {
    background: none !important;
    color: var(--yama-ink) !important;
    font-family: var(--yama-serif);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .15em;
    padding: 0 0 .5em;
    margin-bottom: 1em;
    border: none;
    border-bottom: 1px solid var(--yama-accent);
    position: relative;
}

.sidebar h3::after,
.widget-sidebar-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    width: 56px;
    height: 16px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 16'%3E%3Cpath d='M0 15 L12 7 L18 10 L28 1 L37 9 L43 6 L56 15' fill='none' stroke='%236b5a4a' stroke-width='1'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

/* ===== おすすめ記事 ===== */
.widget-entry-cards .a-wrap {
    background: transparent;
    border: none;
    border-bottom: 1px dotted var(--yama-line);
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0;
}

.widget-entry-cards .a-wrap:hover {
    background: rgba(156, 74, 42, .05);
}

.widget-entry-card-thumb img {
    border-radius: 3px;
}

.widget-entry-card-title,
.widget-entry-card-content {
    font-family: var(--yama-serif);
    color: var(--yama-ink);
    font-size: 13px;
    line-height: 1.6;
}

.widget-entry-card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    transition: color .2s;
}

.widget-entry-cards .a-wrap:hover .widget-entry-card-title {
    color: var(--yama-accent);
}

/* ===== 検索 ===== */
.search-edit {
    background: var(--yama-paper-light);
    border: 1px solid var(--yama-line);
    border-radius: 2px;
    font-family: var(--yama-serif);
}

.search-submit {
    background: var(--yama-accent);
    color: #fff;
    border-radius: 0 2px 2px 0;
}

/* ===== サイドバー目次 ===== */
.sidebar .toc {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.sidebar .toc,
.sidebar .toc-content,
.sidebar .toc-content > ol,
.sidebar .toc-content > ul {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.sidebar .toc-title {
    display: none;
}

.sidebar .toc-content ol,
.sidebar .toc-content ul {
    list-style: none;
    counter-reset: none;
    padding: 0;
    margin: 0;
}

.sidebar .toc-content li::before {
    content: none !important;
}

.sidebar .toc-content > ol > li,
.sidebar .toc-content > ul > li {
    font-size: 14px;
    font-weight: 500;
    color: var(--yama-ink);
    padding: .5em 0 .5em 1.1em;
    border-bottom: 1px dotted var(--yama-line);
    position: relative;
}

.sidebar .toc-content > ol > li::after,
.sidebar .toc-content > ul > li::after {
    content: "▸";
    position: absolute;
    left: 0;
    top: .45em;
    line-height: 1.6;
    color: var(--yama-accent);
    font-size: 1em;
}

.sidebar .toc-content > ol > li > a,
.sidebar .toc-content > ul > li > a {
    line-height: 1.6;
}

.sidebar .toc-content li li {
    font-size: 12.5px;
    border: none;
    padding: .2em 0 .2em 1em;
    color: var(--yama-ink-soft);
}

.sidebar .toc-content li li a {
    color: var(--yama-ink-soft);
}

/* 小見出しを隠す場合は次の行のコメントを外す */
/* .sidebar .toc-content li li { display: none; } */

/* ===== サイドバー下部の山スケッチ ===== */
.sidebar::after {
    content: "";
    display: block;
    height: 70px;
    margin-top: 20px;
    opacity: .6;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70'%3E%3Cpath d='M0 68 L40 40 L58 50 L92 18 L120 42 L138 32 L170 56 L196 44 L240 68' fill='none' stroke='%236b5a4a' stroke-width='1'/%3E%3Cpath d='M20 68 l6 -16 l6 16 M200 68 l5 -14 l5 14 M212 68 l4 -10 l4 10' fill='none' stroke='%234a5d4a' stroke-width='1'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

/* ===== フッター ===== */
.footer {
    border-top: 1px solid var(--yama-line);
    color: var(--yama-ink-soft);
}

.footer a {
    color: var(--yama-ink-soft);
}

/* ===== スマホ ===== */
@media screen and (max-width: 834px) {
    .main {
        padding: 20px 16px;
        border: none;
        box-shadow: none;
    }

    .entry-title,
    .article h1 {
        font-size: 1.5em;
        letter-spacing: .08em;
    }

    .main .toc {
        padding: 1.2em 1em;
    }

    .main .toc-content > ol,
    .main .toc-content > ul {
        columns: 1;
    }
}

/* ==========================================================
   ヘッダー：題字と稜線（トップページ以外）
========================================================== */

/* サイト名を題字風に */
body .site-name-text {
    font-family: var(--yama-serif);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--yama-ink);
}

body .tagline {
    color: var(--yama-ink-soft);
    letter-spacing: .2em;
}

/* メニューの下に稜線の区切り */
body #navi {
    position: relative;
    padding-bottom: 28px;
}

body #navi::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(860px, 90%);
    height: 22px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M0 20 L22 9 L32 13 L50 2 L66 13 L78 7 L96 16 L120 20' fill='none' stroke='%239c4a2a' stroke-width='1.2'/%3E%3C/svg%3E")
        center top / 110px 20px no-repeat,
        linear-gradient(
            90deg,
            transparent,
            var(--yama-line) 20%,
            var(--yama-line) 40%,
            transparent 44%,
            transparent 56%,
            var(--yama-line) 60%,
            var(--yama-line) 80%,
            transparent
        ) center 19px / 100% 1px no-repeat;
}

/* メニュー：ホバー・現在ページに朱色の短い下線 */
body #navi .navi-in > ul > li > a {
    position: relative;
    color: var(--yama-ink);
    background: transparent;
    letter-spacing: .12em;
}

body #navi .navi-in > ul > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 24px;
    height: 1px;
    margin-left: -12px;
    background: var(--yama-accent);
    transform: scaleX(0);
    transition: transform .25s ease;
}

body #navi .navi-in > ul > li > a:hover::after,
body #navi .navi-in > ul > li.current-menu-item > a::after {
    transform: scaleX(1);
}

body #navi .navi-in > ul > li > a:hover {
    color: var(--yama-accent);
}

/* ===== ヘッダーのスマホ調整 ===== */
@media screen and (max-width: 834px) {
    body .site-name-text {
        font-size: 26px;
        letter-spacing: .04em;
    }

    body #navi {
        padding-bottom: 20px;
    }
}

/* ==========================================================
   共通ヘッダー：山log左・キャッチフレーズ右
   v1.4.1：間に細い縦線を追加
========================================================== */

/* 横並び・全体を中央配置 */
body #header-in {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* 山logを左側へ */
body #header .logo {
    order: 1;
    margin: 0;
    padding: 0;
}

/* キャッチフレーズを右側へ */
body #header .tagline {
    order: 2;
    position: static;
    align-self: center;
    width: auto;
    margin: 0;

    /* 縦線とキャッチフレーズの間隔 */
    padding: 4px 0 4px 15px;

    /* 細い縦線 */
    border-left: 1px solid var(--yama-line);

    font-size: 13px;
    letter-spacing: .08em;
    line-height: 1.6;
}

/* スマホでは縦並び・縦線なし */
@media screen and (max-width: 834px) {
    body #header-in {
        flex-direction: column;
        gap: 6px;
    }

    body #header .tagline {
        padding: 0;
        border-left: none;
    }
}