/*
Theme Name: art-theme
Theme URI:
Author:
Author URI:
Description: cheerforart.jp 専用 1カラムテーマ。クリエイター向けお金の教科書。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: art-theme
*/

/* ------------------------------------------------------------------
   CSS Variables（カスタマイザーから上書きされる）
------------------------------------------------------------------ */
:root {
    --art-main: #2BAA5D;          /* メインカラー（鮮やかな緑・本家準拠） */
    --art-main-dark: #1E8A47;     /* 濃い緑（hover等） */
    --art-accent: #E60012;        /* アクセントカラー（赤・本家ロゴ準拠） */
    --art-accent-dark: #C50010;   /* 濃い赤 */
    --art-link: #1E8A47;          /* リンクは緑系（赤との混用を避ける） */
    --art-nav-bg: #ffffff;        /* ナビ背景は白（本家） */
    --art-nav-text: #1a1a1a;      /* ナビテキストは黒 */
    --art-footer-bg: #000000;     /* フッターは真っ黒（本家） */
    --art-footer-text: #ffffff;
    --art-accent-bg: #e8f5ec;     /* 薄い緑のアクセント背景 */
    --art-accent-bg-2: #f5f5f5;
    --art-border: #e5e5e5;
    --art-text: #1a1a1a;
    --art-text-muted: #666666;
    --art-bg: #ffffff;
}

/* ------------------------------------------------------------------
   Reset & Base - 雑誌・エディトリアル風（slmとは別の読書感）
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    /* 明朝寄りのモダンサンセリフ（slmは Hiragino Sans 系で硬め） */
    font-family: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 2.0;             /* slmは1.85 → ゆったり */
    color: var(--art-text);
    background: var(--art-bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'palt' 1;  /* 文字詰め */
    letter-spacing: 0.02em;       /* slmは0 → 微妙に開ける */
}
img { max-width: 100%; height: auto; vertical-align: middle; }
/* リンクはホバーで下線（slmは常時下線） */
a {
    color: var(--art-main-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(43, 170, 93, 0.35);
    transition: border-color 0.2s, color 0.2s;
}
a:hover {
    color: var(--art-main);
    border-bottom-color: var(--art-main);
}
a:visited { color: var(--art-main-dark); }

/* ------------------------------------------------------------------
   Layout - cheerforart風（フル幅ヘッダー・本文は中央寄せ）
------------------------------------------------------------------ */
.art-wrapper {
    background: var(--art-bg);
    margin: 0;
    border: none;
    max-width: none;
}

/* ------------------------------------------------------------------
   Header - cheerforart風 角丸の白カード型ヘッダー
------------------------------------------------------------------ */
.art-header {
    background: var(--art-bg);
    padding: 18px 0;
    border-bottom: 1px solid var(--art-border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.96);
}
.art-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.art-header-brand {
    flex-shrink: 0;
}
.art-header-brand .custom-logo-link {
    display: inline-block;
    line-height: 0;
}
.art-header-brand .custom-logo {
    max-height: 48px;
    width: auto;
    height: auto;
}
.art-site-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none !important;
    color: var(--art-text) !important;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.art-site-title:visited {
    color: var(--art-text) !important;
}
.art-site-title:hover { text-decoration: none !important; opacity: 0.85; }
.art-site-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--art-main);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}
.art-site-title-text { color: var(--art-text); }

/* ------------------------------------------------------------------
   Global Navigation - 横並び・テキストのみのシンプルナビ
------------------------------------------------------------------ */
.art-nav {
    background: transparent;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.art-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.art-nav-list li a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--art-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.art-nav-list li a:visited {
    color: var(--art-text) !important;
}
.art-nav-list li a:hover {
    background: var(--art-accent-bg);
    color: var(--art-main-dark) !important;
    opacity: 1;
}
.art-nav-list li:not(:last-child) a {
    border-right: none;
}

/* ------------------------------------------------------------------
   Main
------------------------------------------------------------------ */
.art-main {
    padding: 0;
    background: var(--art-bg);
}
.art-main-inner {
    max-width: 720px;            /* slm:800px → 雑誌的に狭く */
    margin: 0 auto;
    padding: 48px 24px 88px;     /* 上下余白を増やし、ゆったりと */
}

/* Breadcrumb - 控えめに */
.art-breadcrumb {
    font-size: 11px;
    color: var(--art-text-muted);
    margin: 0 0 32px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}
.art-breadcrumb a {
    color: var(--art-text-muted);
    border-bottom: none;
}
.art-breadcrumb a:hover {
    color: var(--art-main);
    border-bottom: none;
}

/* ------------------------------------------------------------------
   Headings - エディトリアル/マガジン風
   slmの「左バー＋色」型から、緩急のあるタイポグラフィへ全面転換
------------------------------------------------------------------ */

/* H1: 大胆な中央揃え + 装飾線 */
.art-single-content h1,
.art-page-content h1,
.art-single-title,
.art-page-title,
.art-archive-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--art-text);
    margin: 0 0 36px;
    padding: 0 0 28px;
    line-height: 1.45;
    text-align: center;
    letter-spacing: 0.02em;
    position: relative;
    border-bottom: none;
}
.art-single-title::before,
.art-page-title::before,
.art-archive-title::before,
.art-single-content h1::before,
.art-page-content h1::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--art-text);
}
.art-single-title::after,
.art-page-title::after,
.art-archive-title::after,
.art-single-content h1::after,
.art-page-content h1::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--art-main);
}

/* H2: 上にスモールキャップ装飾、太字大きめ・下線なし */
.art-single-content h2,
.art-page-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--art-text);
    background: transparent;
    padding: 0;
    margin: 64px 0 24px;
    line-height: 1.45;
    border: none;
    border-radius: 0;
    border-left: none;
    letter-spacing: 0.01em;
    position: relative;
}
.art-single-content h2::before,
.art-page-content h2::before {
    content: "—";
    display: block;
    color: var(--art-main);
    font-size: 18px;
    line-height: 1;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.1em;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
}

/* H3: 控えめだがコントラストある書体、緑のドット先頭マーカー */
.art-single-content h3,
.art-page-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--art-text);
    padding: 0 0 0 22px;
    margin: 40px 0 16px;
    line-height: 1.55;
    border-left: none;
    border: none;
    background: transparent;
    position: relative;
}
.art-single-content h3::before,
.art-page-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 10px;
    background: var(--art-main);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(43, 170, 93, 0.15);
}

/* H4: 緑文字＋細い下線 */
.art-single-content h4,
.art-page-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--art-main-dark);
    margin: 28px 0 12px;
    line-height: 1.6;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--art-border);
}
.art-single-content h4::before,
.art-page-content h4::before {
    content: none;
}

/* H5: 控えめ・全角スペース感 */
.art-single-content h5,
.art-page-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--art-text-muted);
    border-bottom: none;
    padding: 0;
    margin: 20px 0 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.art-single-content h6,
.art-page-content h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--art-text-muted);
    margin: 16px 0 8px;
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------------
   Fake Heading（偽見出し）
   通常の<p>タグだが、見出し的に表示する。
   the_contentフィルタで自動付与される。
------------------------------------------------------------------ */
.art-single-content .art-fake-h,
.art-page-content .art-fake-h {
    font-size: 16px;
    font-weight: 700;
    color: var(--art-main-dark);
    margin: 24px 0 10px;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}
.art-single-content .art-fake-h::before,
.art-page-content .art-fake-h::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--art-main);
    font-size: 14px;
    line-height: 1.7;
}

/* ------------------------------------------------------------------
   Step Flow（ステップフロー）
   連番型偽見出しが3個以上連続する範囲を自動グループ化。
------------------------------------------------------------------ */
.art-single-content .art-step-flow,
.art-page-content .art-step-flow {
    background: var(--art-accent-bg);
    border: 1px solid var(--art-main);
    padding: 14px 18px;
    margin: 18px 0;
    box-sizing: border-box;
}
.art-single-content .art-step-flow > *:first-child,
.art-page-content .art-step-flow > *:first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}
.art-single-content .art-step-flow > *:last-child,
.art-page-content .art-step-flow > *:last-child {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}

.art-single-content .art-step-item,
.art-page-content .art-step-item {
    display: flex !important;
    gap: 12px;
    padding: 14px 0 18px;
    border-bottom: 1px dashed var(--art-main);
    position: relative;
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    box-sizing: border-box;
}
.art-single-content .art-step-item:first-child,
.art-page-content .art-step-item:first-child {
    padding-top: 0;
}
.art-single-content .art-step-item:last-child,
.art-page-content .art-step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
/* →矢印（境界線の上に重なる位置） */
.art-single-content .art-step-item:not(:last-child)::after,
.art-page-content .art-step-item:not(:last-child)::after {
    content: "↓";
    position: absolute;
    bottom: -10px;
    left: 12px;
    color: var(--art-main);
    font-size: 14px;
    background: var(--art-accent-bg);
    padding: 0 6px;
    line-height: 1;
    font-weight: bold;
}

/* 番号バブル */
.art-single-content .art-step-num,
.art-page-content .art-step-num {
    background: var(--art-main);
    color: #fff;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
    margin: 0 !important;
    box-sizing: border-box;
}

/* 右側コンテンツ */
.art-single-content .art-step-content,
.art-page-content .art-step-content {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    padding-top: 4px; /* 番号バブルとの垂直位置合わせ */
}
.art-single-content .art-step-content > *:first-child,
.art-page-content .art-step-content > *:first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* タイトル */
.art-single-content .art-step-title,
.art-page-content .art-step-title {
    font-weight: 500;
    color: var(--art-main);
    font-size: 15px;
    margin: 0 0 6px 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 6px !important;
    line-height: 1.5;
    padding: 0;
}

/* 本文 */
.art-single-content .art-step-body,
.art-page-content .art-step-body {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    margin: 0 !important;
    margin-block-start: 0 !important;
}
.art-single-content .art-step-body p,
.art-page-content .art-step-body p {
    margin: 0 0 6px 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 6px !important;
}
.art-single-content .art-step-body p:first-child,
.art-page-content .art-step-body p:first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}
.art-single-content .art-step-body p:last-child,
.art-page-content .art-step-body p:last-child {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}

/* ------------------------------------------------------------------
   Checklist Card - エディトリアル風（slmと別物）
   「項目タイトル + 本文」の段組みリスト
------------------------------------------------------------------ */
.art-single-content .art-checklist-card,
.art-page-content .art-checklist-card {
    background: transparent;
    border: none;
    border-top: 2px solid var(--art-text);
    border-bottom: 2px solid var(--art-text);
    border-radius: 0;
    padding: 24px 0;
    margin: 32px 0;
    box-sizing: border-box;
}
.art-single-content .art-checklist-card > *:first-child,
.art-page-content .art-checklist-card > *:first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}
.art-single-content .art-checklist-card > *:last-child,
.art-page-content .art-checklist-card > *:last-child {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}

.art-single-content .art-checklist-title,
.art-page-content .art-checklist-title {
    font-weight: 700;
    color: var(--art-text);
    font-size: 11px;
    line-height: 1.5;
    margin: 0 0 20px 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 20px !important;
    padding: 0 0 0 16px;
    border: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
}
.art-single-content .art-checklist-title::before,
.art-page-content .art-checklist-title::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--art-main);
    letter-spacing: -0.1em;
}

.art-single-content .art-checklist-item,
.art-page-content .art-checklist-item {
    margin: 0 0 20px 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 20px !important;
    padding: 0;
    counter-increment: art-checklist-counter;
}
.art-single-content .art-checklist-card,
.art-page-content .art-checklist-card {
    counter-reset: art-checklist-counter;
}
.art-single-content .art-checklist-item:last-child,
.art-page-content .art-checklist-item:last-child {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}

.art-single-content .art-checklist-item-title,
.art-page-content .art-checklist-item-title {
    position: relative;
    padding-left: 38px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.55;
    color: var(--art-text);
    margin: 0 0 6px 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 6px !important;
}
.art-single-content .art-checklist-item-title::before,
.art-page-content .art-checklist-item-title::before {
    content: counter(art-checklist-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--art-main);
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    letter-spacing: -0.02em;
}

.art-single-content .art-checklist-item-body,
.art-page-content .art-checklist-item-body {
    font-size: 14px;
    color: var(--art-text);
    line-height: 1.95;
    padding-left: 38px;
    margin: 0 !important;
    margin-block-start: 0 !important;
}

/* ------------------------------------------------------------------
   Inline List - br多発の単一段落をリスト化したもの
   テーブル風のシンプルな項目並び（左に細い緑線）
------------------------------------------------------------------ */
.art-single-content .art-inline-list,
.art-page-content .art-inline-list {
    list-style: none !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    background: var(--art-accent-bg);
    border-left: 3px solid var(--art-main);
}
.art-single-content .art-inline-list li,
.art-page-content .art-inline-list li {
    padding: 10px 18px !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    line-height: 1.6;
    background: transparent !important;
    position: static !important;
}
.art-single-content .art-inline-list li:last-child,
.art-page-content .art-inline-list li:last-child {
    border-bottom: none !important;
}
.art-single-content .art-inline-list li::before,
.art-page-content .art-inline-list li::before {
    content: none !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

/* ------------------------------------------------------------------
   Q&A
   ■■QAセクション■■内のH3を自動的にQ/Aブロックに装飾。
   定義リスト（<dl><dt><dd>）構造のため、セレクタもそれに合わせる。
   雑誌風: 巨大なQ./A.のドロップキャップ＋区切り線
------------------------------------------------------------------ */
.art-single-content .art-qa,
.art-page-content .art-qa {
    margin: 36px 0;
    border-left: none;
    background: transparent;
    padding: 24px 0;
    border-top: 2px solid var(--art-text);
    border-bottom: 2px solid var(--art-text);
    position: relative;
}
.art-single-content .art-qa-question,
.art-page-content .art-qa-question {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 0 0 16px;
    background: transparent;
    border-bottom: 1px dotted var(--art-border);
    margin: 0;
    font-style: normal;
}
.art-single-content .art-qa-answer,
.art-page-content .art-qa-answer {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 16px 0 0;
    margin: 0;
}
.art-single-content .art-qa-tag,
.art-page-content .art-qa-tag {
    flex-shrink: 0;
    display: inline-block;
    width: 36px;
    line-height: 1;
    text-align: left;
    font-style: italic;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: transparent !important;
    border: none !important;
}
.art-single-content .art-qa-tag::after,
.art-page-content .art-qa-tag::after {
    content: ".";
}
.art-single-content .art-qa-question .art-qa-tag,
.art-page-content .art-qa-question .art-qa-tag {
    color: var(--art-text);
}
.art-single-content .art-qa-answer .art-qa-tag,
.art-page-content .art-qa-answer .art-qa-tag {
    color: var(--art-main);
}
.art-single-content .art-qa-label,
.art-page-content .art-qa-label {
    flex: 1;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.6;
    color: var(--art-text);
    padding-top: 4px;
}
.art-single-content .art-qa-content,
.art-page-content .art-qa-content {
    flex: 1;
    font-size: 15px;
    color: var(--art-text);
    line-height: 1.95;
    padding-top: 6px;
}
.art-single-content .art-qa-content p:first-child,
.art-page-content .art-qa-content p:first-child { margin-top: 0; }
.art-single-content .art-qa-content p:last-child,
.art-page-content .art-qa-content p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   監修者・筆者ノート（aside.art-author-note）
   雑誌のサイドバー風ノート。罫線型。
------------------------------------------------------------------ */
.art-single-content .art-author-note,
.art-page-content .art-author-note {
    margin: 32px 0;
    padding: 20px 24px;
    background: rgba(43, 170, 93, 0.04);
    border: none;
    border-left: 3px solid var(--art-main);
    font-size: 14px;
    color: var(--art-text);
    line-height: 1.95;
    box-sizing: border-box;
}
.art-single-content .art-author-header,
.art-page-content .art-author-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dotted rgba(43, 170, 93, 0.4);
}
.art-single-content .art-author-mark,
.art-page-content .art-author-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--art-main);
    color: #fff;
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    line-height: 1;
}
.art-single-content .art-author-role,
.art-page-content .art-author-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--art-main-dark);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.art-single-content .art-author-body,
.art-page-content .art-author-body {
    font-size: 14px;
    line-height: 1.95;
}
.art-single-content .art-author-body p,
.art-page-content .art-author-body p {
    margin: 0 0 12px !important;
}
.art-single-content .art-author-body p:last-child,
.art-page-content .art-author-body p:last-child {
    margin-bottom: 0 !important;
}

/* 既存blockquoteは標準スタイル（装飾対象外blockquote用） */
.art-single-content blockquote:not(.art-author-note),
.art-page-content blockquote:not(.art-author-note) {
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--art-border);
    background: var(--art-accent-bg-2);
    color: var(--art-text-muted);
    font-size: 14px;
    font-style: normal;
}

/* ------------------------------------------------------------------
   注意喚起ボックス（aside.art-alert）
------------------------------------------------------------------ */
.art-single-content .art-alert,
.art-page-content .art-alert {
    background: #fff8e1;
    border: 1px solid #f3d779;
    border-radius: 4px;
    padding: 14px 16px;
    margin: 18px 0;
    position: relative;
    padding-top: 36px;
}
.art-single-content .art-alert-tag,
.art-page-content .art-alert-tag {
    position: absolute;
    top: 10px;
    left: 14px;
    background: #c98414;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 0.1em;
}
.art-single-content .art-alert-body,
.art-page-content .art-alert-body {
    font-size: 14px;
    line-height: 1.85;
    color: #4a3d10;
}
.art-single-content .art-alert-body p:first-child,
.art-page-content .art-alert-body p:first-child { margin-top: 0; }
.art-single-content .art-alert-body p:last-child,
.art-page-content .art-alert-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   注釈スタイル（※段落）
------------------------------------------------------------------ */
.art-single-content .art-note-para,
.art-page-content .art-note-para {
    font-size: 12px;
    color: #777;
    background: #f5f5f5;
    padding: 6px 10px;
    margin: 8px 0;
    line-height: 1.7;
    border-left: 3px solid #bbb;
    white-space: pre-line;
}

/* ------------------------------------------------------------------
   テーブル注釈（テーブル直後の※）
   テーブルとの距離を縮めて、文字を小さくする
------------------------------------------------------------------ */
.art-single-content .art-table-note,
.art-page-content .art-table-note {
    font-size: 11px;
    color: #888;
    background: transparent;
    padding: 4px 2px;
    margin: -10px 0 14px;
    line-height: 1.6;
    border: none;
    white-space: pre-line;
}

/* ------------------------------------------------------------------
   目次 - エディトリアル風 INDEX
   slmは「灰色背景＋緑タイトルバー＋数字番号」だが
   artは「線で囲まず、大きい番号と細い線のみのフラットなレイアウト」
------------------------------------------------------------------ */
.art-single-content .art-toc,
.art-page-content .art-toc {
    background: transparent;
    border: none;
    border-top: 1px solid var(--art-text);
    border-bottom: 1px solid var(--art-text);
    margin: 32px 0;
    padding: 24px 0;
}
.art-single-content .art-toc-title,
.art-page-content .art-toc-title {
    background: transparent;
    color: var(--art-text);
    padding: 0 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border: none;
}
.art-single-content .art-toc-toggle,
.art-page-content .art-toc-toggle {
    background: transparent;
    color: var(--art-text-muted);
    border: 1px solid var(--art-border);
    padding: 4px 12px;
    font-size: 10px;
    cursor: pointer;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.15s;
}
.art-single-content .art-toc-toggle:hover,
.art-page-content .art-toc-toggle:hover {
    background: var(--art-text);
    color: #fff;
    border-color: var(--art-text);
}
.art-single-content .art-toc-list,
.art-page-content .art-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    counter-reset: art-toc-h2;
}
.art-single-content .art-toc-list li,
.art-page-content .art-toc-list li {
    margin: 0 !important;
    line-height: 1.5 !important;
    padding-left: 0 !important;
}
/* 汎用 ul li::before の緑ドットが当たらないよう、目次liを完全リセット */
.art-single-content .art-toc-list > li::before,
.art-page-content .art-toc-list > li::before {
    content: none !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    position: static !important;
}
/* H2レベル: 大きな数字のインデックススタイル */
.art-single-content .art-toc-list li.art-toc-h2,
.art-page-content .art-toc-list li.art-toc-h2 {
    counter-increment: art-toc-h2;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 0 10px 56px !important;
    position: relative;
    border-bottom: 1px dotted var(--art-border);
}
.art-single-content .art-toc-list li.art-toc-h2::before,
.art-page-content .art-toc-list li.art-toc-h2::before {
    content: counter(art-toc-h2, decimal-leading-zero) !important;
    position: absolute !important;
    left: 0 !important;
    top: 12px !important;
    color: var(--art-main) !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    width: 44px !important;
    height: auto !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-style: italic !important;
    background: transparent !important;
    border-radius: 0 !important;
}
/* H3レベル: 細インデント・控えめ */
.art-single-content .art-toc-list li.art-toc-h3,
.art-page-content .art-toc-list li.art-toc-h3 {
    font-size: 13px;
    padding: 6px 0 6px 76px !important;
    color: var(--art-text-muted);
    position: relative;
    border-bottom: none;
}
.art-single-content .art-toc-list li.art-toc-h3::before,
.art-page-content .art-toc-list li.art-toc-h3::before {
    content: "" !important;
    position: absolute !important;
    left: 56px !important;
    top: 16px !important;
    width: 12px !important;
    height: 1px !important;
    background: var(--art-border) !important;
    border-radius: 0 !important;
}
.art-single-content .art-toc-list li:last-child,
.art-page-content .art-toc-list li:last-child {
    border-bottom: none;
}
.art-single-content .art-toc-list a,
.art-page-content .art-toc-list a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.15s;
}
.art-single-content .art-toc-list a:hover,
.art-page-content .art-toc-list a:hover {
    color: var(--art-main);
    border-bottom: none;
}
.art-single-content .art-toc.art-toc-collapsed .art-toc-list,
.art-page-content .art-toc.art-toc-collapsed .art-toc-list {
    display: none;
}

/* スクロール時の見出しの上余白 */
.art-single-content h2[id^="art-toc-"],
.art-page-content h2[id^="art-toc-"],
.art-single-content h3[id^="art-toc-"],
.art-page-content h3[id^="art-toc-"] {
    scroll-margin-top: 24px;
}

/* ------------------------------------------------------------------
   テーブル横スクロールラッパー（罫線なし版）
------------------------------------------------------------------ */
.art-single-content .art-table-wrap,
.art-page-content .art-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 24px;
    border: none;
}
.art-single-content .art-table-wrap table,
.art-page-content .art-table-wrap table {
    margin: 0;
    border: none;
    min-width: 500px;
}
/* テーブルセル内のリンク（URL・公式サイトなど）を確実に折り返し */
.art-single-content .art-table-wrap td a,
.art-page-content .art-table-wrap td a {
    word-break: break-all;
}

/* ------------------------------------------------------------------
   テーブルキャプション - エディトリアル風（タイトルラベル型）
------------------------------------------------------------------ */
.art-single-content .art-table-caption,
.art-page-content .art-table-caption {
    background: transparent;
    color: var(--art-text);
    padding: 0 0 8px;
    margin: 24px 0 0;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.5;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--art-text);
    display: block;
    box-sizing: border-box;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.art-single-content .art-table-caption + .art-table-wrap,
.art-page-content .art-table-caption + .art-table-wrap,
.art-single-content .art-table-caption + figure .art-table-wrap,
.art-page-content .art-table-caption + figure .art-table-wrap,
.art-single-content .art-table-caption + figure,
.art-page-content .art-table-caption + figure {
    margin-top: 0;
    border-top: none;
}
/* キャプション付きテーブルは基本デザイン（薄グレーthead）と統一 */
.art-single-content .art-table-caption + .art-table-wrap table,
.art-page-content .art-table-caption + .art-table-wrap table,
.art-single-content .art-table-caption + figure table,
.art-page-content .art-table-caption + figure table {
    margin: 0;
}

/* ------------------------------------------------------------------
   通常のリスト装飾（クラス無し ul / ol）
   art- 系のクラスがついていないリストにベーススタイル
------------------------------------------------------------------ */
.art-single-content ul:not([class*="art-"]):not([class*="wp-block-"]),
.art-page-content ul:not([class*="art-"]):not([class*="wp-block-"]) {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}
.art-single-content ul:not([class*="art-"]):not([class*="wp-block-"]) li,
.art-page-content ul:not([class*="art-"]):not([class*="wp-block-"]) li {
    position: relative;
    padding: 4px 0 4px 22px;
    margin: 2px 0;
    line-height: 1.85;
}
.art-single-content ul:not([class*="art-"]):not([class*="wp-block-"]) li::before,
.art-page-content ul:not([class*="art-"]):not([class*="wp-block-"]) li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--art-main);
}
.art-single-content ul:not([class*="art-"]):not([class*="wp-block-"]) li li::before,
.art-page-content ul:not([class*="art-"]):not([class*="wp-block-"]) li li::before {
    background: transparent;
    border: 1.5px solid var(--art-main);
    width: 7px;
    height: 7px;
}

/* ------------------------------------------------------------------
   リードカード - エディトリアル風（slmの「緑タイトルバー型」から完全脱皮）
   薄緑背景＋上にラベル＋✓は緑チェック→大文字小キャップ＆細い緑線
------------------------------------------------------------------ */
.art-single-content .art-lead-card,
.art-page-content .art-lead-card {
    border: none;
    border-top: 2px solid var(--art-text);
    border-bottom: 2px solid var(--art-text);
    background: transparent;
    margin: 32px 0;
    padding: 24px 0;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
}
.art-single-content .art-lead-card-title,
.art-page-content .art-lead-card-title {
    background: transparent;
    color: var(--art-text);
    padding: 0 0 16px;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.5;
    border: none;
    margin: 0 0 4px;
    box-shadow: none;
    display: block;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    position: relative;
}
.art-single-content .art-lead-card-title::before,
.art-page-content .art-lead-card-title::before {
    content: "—";
    color: var(--art-main);
    margin-right: 8px;
    letter-spacing: -0.1em;
}
.art-single-content .art-lead-card-body,
.art-page-content .art-lead-card-body {
    padding: 0;
    background: transparent;
    margin: 0;
    border: none;
}
.art-single-content .art-lead-card-body > *:first-child,
.art-page-content .art-lead-card-body > *:first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}
.art-single-content .art-lead-card-body > *:last-child,
.art-page-content .art-lead-card-body > *:last-child {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}
/* リードカード内のul: 緑のドット型 */
.art-single-content .art-lead-card-body ul,
.art-page-content .art-lead-card-body ul,
.art-single-content .art-lead-card .art-check-list,
.art-page-content .art-lead-card .art-check-list {
    margin: 0 !important;
    border: none;
    background: transparent;
    padding: 0;
    list-style: none;
    box-shadow: none;
}
.art-single-content .art-lead-card-body ul li,
.art-page-content .art-lead-card-body ul li,
.art-single-content .art-lead-card .art-check-list li,
.art-page-content .art-lead-card .art-check-list li {
    position: relative;
    padding: 4px 0 4px 28px;
    margin: 0 0 6px 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 6px !important;
    line-height: 1.85;
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 14px;
}
.art-single-content .art-lead-card-body ul li:last-child,
.art-page-content .art-lead-card-body ul li:last-child,
.art-single-content .art-lead-card .art-check-list li:last-child,
.art-page-content .art-lead-card .art-check-list li:last-child {
    margin-bottom: 0 !important;
}
/* 通常ul: 緑の小ドット */
.art-single-content .art-lead-card-body ul:not(.art-check-list) li::before,
.art-page-content .art-lead-card-body ul:not(.art-check-list) li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--art-main);
    border: none;
}
/* チェックリスト: 緑チェック（✓）大きめ */
.art-single-content .art-lead-card .art-check-list li,
.art-page-content .art-lead-card .art-check-list li {
    padding-left: 28px;
}
.art-single-content .art-lead-card .art-check-list li::before,
.art-page-content .art-lead-card .art-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--art-main);
    font-weight: 800;
    font-size: 16px;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
}

/* ------------------------------------------------------------------
   リードチェックリスト（art-lead-cardの外でも使える独立スタイル）
   「この記事を読めばわかること」直後のulに✓マーク付与
------------------------------------------------------------------ */
.art-single-content ul.art-check-list,
.art-page-content ul.art-check-list {
    list-style: none;
    padding: 14px 16px;
    background: var(--art-accent-bg);
    border: 1px solid var(--art-main);
    margin: 14px 0;
}
.art-single-content ul.art-check-list li,
.art-page-content ul.art-check-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.7;
}
.art-single-content ul.art-check-list li::before,
.art-page-content ul.art-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--art-main);
    font-weight: 500;
    font-size: 16px;
}
.art-single-content ul.art-check-list li:last-child,
.art-page-content ul.art-check-list li:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   参考資料リスト
/* ------------------------------------------------------------------
   参考資料リスト - エディトリアル風
   雑誌記事末尾の「Sources」風、番号付き＆細線区切り。
   汎用ul::beforeのドットを完全に無効化する。
------------------------------------------------------------------ */
.art-single-content ul.art-refs,
.art-page-content ul.art-refs {
    list-style: none !important;
    counter-reset: art-refs-counter;
    padding: 24px 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--art-text);
    margin: 32px 0 24px;
    position: relative;
}
.art-single-content ul.art-refs::before,
.art-page-content ul.art-refs::before {
    content: "Sources";
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--art-text-muted);
    margin: -32px 0 16px;
    background: #fff;
    width: max-content;
    padding-right: 12px;
}
.art-single-content ul.art-refs > li,
.art-page-content ul.art-refs > li {
    counter-increment: art-refs-counter;
    position: relative;
    padding: 6px 0 6px 38px !important;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.7;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px dotted var(--art-border) !important;
}
.art-single-content ul.art-refs > li:last-child,
.art-page-content ul.art-refs > li:last-child { 
    border-bottom: none !important; 
}
/* 汎用ul > li::beforeの緑ドットを完全に除去し、番号を出す */
.art-single-content ul.art-refs > li::before,
.art-page-content ul.art-refs > li::before {
    content: "[" counter(art-refs-counter) "]" !important;
    position: absolute !important;
    left: 0 !important;
    top: 7px !important;
    color: var(--art-main-dark) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    line-height: 1.7 !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    letter-spacing: 0.05em !important;
    font-style: italic !important;
}
.art-single-content ul.art-refs a,
.art-page-content ul.art-refs a {
    color: var(--art-text);
    text-decoration: none;
    border-bottom: 1px solid var(--art-border);
    transition: border-color 0.15s, color 0.15s;
}
.art-single-content ul.art-refs a:hover,
.art-page-content ul.art-refs a:hover {
    color: var(--art-main);
    border-bottom-color: var(--art-main);
}

/* ------------------------------------------------------------------
   Body Text - エディトリアル風
   余白広め、行間ゆったり、強調は控えめ
------------------------------------------------------------------ */
.art-single-content p,
.art-page-content p {
    margin: 0 0 24px;            /* slm:14px → 余白を大胆に拡張 */
}
.art-single-content strong,
.art-page-content strong {
    font-weight: 700;
    color: var(--art-text);      /* 緑色から黒太字へ */
    background: linear-gradient(transparent 60%, rgba(43, 170, 93, 0.18) 60%);
    padding: 0 1px;
}
.art-single-content em,
.art-page-content em {
    font-style: normal;
    color: var(--art-main-dark);
    font-weight: 700;
    background: transparent;     /* slmは黄色マーカー → なし */
    padding: 0;
    border-bottom: 2px solid var(--art-main);
}
.art-single-content code,
.art-page-content code {
    background: var(--art-accent-bg);
    padding: 2px 8px;
    border-radius: 0;            /* 角丸なし */
    font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
    font-size: 0.88em;
    color: var(--art-main-dark);
    font-weight: 600;
}
.art-single-content pre,
.art-page-content pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 18px 20px;
    font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    margin: 0 0 24px;
    border-radius: 0;
    border-left: 3px solid var(--art-main);
}
.art-single-content pre code,
.art-page-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ------------------------------------------------------------------
   Lists - 緑のマーカー、適度な余白
------------------------------------------------------------------ */
.art-single-content ul,
.art-page-content ul {
    margin: 0 0 24px;
    padding-left: 0;
    list-style: none;
}
.art-single-content ol,
.art-page-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}
/* 通常のulには緑ドットを表示するが、特殊な装飾リストでは無効化 */
.art-single-content ul:not(.art-refs):not(.art-check-list):not(.art-toc-list):not(.art-nav-list):not(.art-footer-nav-list) > li,
.art-page-content ul:not(.art-refs):not(.art-check-list):not(.art-toc-list):not(.art-nav-list):not(.art-footer-nav-list) > li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    line-height: 1.85;
}
.art-single-content ul:not(.art-refs):not(.art-check-list):not(.art-toc-list):not(.art-nav-list):not(.art-footer-nav-list) > li::before,
.art-page-content ul:not(.art-refs):not(.art-check-list):not(.art-toc-list):not(.art-nav-list):not(.art-footer-nav-list) > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--art-main);
    border-radius: 50%;
}
.art-single-content ol > li,
.art-page-content ol > li {
    margin-bottom: 8px;
    line-height: 1.85;
    padding-left: 6px;
}
.art-single-content ol > li::marker,
.art-page-content ol > li::marker {
    color: var(--art-main);
    font-weight: 700;
}
/* ネストしたリストでは ::before を再適用させない（無限ネストの安全策） */
.art-single-content ul ul > li::before,
.art-page-content ul ul > li::before {
    background: transparent;
    border: 1.5px solid var(--art-main);
    width: 5px;
    height: 5px;
}

/* ------------------------------------------------------------------
   Boxes
------------------------------------------------------------------ */
.art-box {
    padding: 14px 16px;
    margin: 0 0 14px;
    border-radius: 0;
}
.art-box-title {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}
.art-box-point {
    background: var(--art-accent-bg);
    border-left: 4px solid var(--art-main);
}
.art-box-point .art-box-title { color: var(--art-main); }
.art-box-warning {
    background: #fffbe8;
    border: 1px solid #f0d674;
}
.art-box-warning .art-box-title { color: #8a6d1c; }
.art-box-merit {
    background: #f0f8f0;
    border: 1px solid #b8d8b8;
}
.art-box-merit .art-box-title { color: #2d6a35; }
.art-box-note {
    background: #f5f5f5;
    border: 1px solid #ccc;
}
.art-box-note .art-box-title { color: #555; }

/* ------------------------------------------------------------------
   Blockquote
------------------------------------------------------------------ */
.art-single-content blockquote,
.art-page-content blockquote {
    border-left: 4px solid #ccc;
    background: #fafafa;
    padding: 14px 18px;
    margin: 0 0 14px;
    font-size: 14px;
    color: #555;
}
.art-single-content blockquote p:last-child,
.art-page-content blockquote p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Table - ボーダーレス・行ストライプ・thead細線のエディトリアル風
   slmは「全セル罫線+灰色thead」のビジネス風 → 完全別物
------------------------------------------------------------------ */
.art-single-content table,
.art-page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0 0 14px;
    background: transparent;
}
.art-single-content table th,
.art-page-content table th {
    background: transparent;
    color: var(--art-text);
    padding: 14px 16px 12px;
    border: none;
    border-bottom: 2px solid var(--art-text);
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.art-single-content table td,
.art-page-content table td {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid var(--art-border);
    background: transparent;
    line-height: 1.75;
    vertical-align: top;
}
/* 偶数行のストライプ */
.art-single-content table tbody tr:nth-child(even) td,
.art-page-content table tbody tr:nth-child(even) td {
    background: rgba(43, 170, 93, 0.04);
}
/* 1列目はラベル風 */
.art-single-content table tbody tr td:first-child,
.art-page-content table tbody tr td:first-child {
    background: transparent;
    font-weight: 600;
    color: var(--art-text);
    font-size: 13px;
}
.art-single-content table tbody tr:nth-child(even) td:first-child,
.art-page-content table tbody tr:nth-child(even) td:first-child {
    background: rgba(43, 170, 93, 0.04);
}
/* hoverは控えめに */
.art-single-content table tbody tr:hover td,
.art-page-content table tbody tr:hover td {
    background: rgba(43, 170, 93, 0.08);
}
.art-single-content table tbody tr:hover td:first-child,
.art-page-content table tbody tr:hover td:first-child {
    background: rgba(43, 170, 93, 0.08);
}

/* ------------------------------------------------------------------
   Button (.art-button or .button)
------------------------------------------------------------------ */
.art-button,
.art-single-content .wp-block-button .wp-block-button__link,
.art-page-content .wp-block-button .wp-block-button__link {
    display: inline-block;
    background: var(--art-main);
    color: #fff;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid var(--art-main);
    text-align: center;
    transition: opacity 0.2s;
}
.art-button:hover { opacity: 0.85; color: #fff; }
.art-button-outline {
    background: #fff;
    color: var(--art-main);
    border: 2px solid var(--art-main);
}
.art-button-outline:hover { background: var(--art-accent-bg); color: var(--art-main); }

/* ------------------------------------------------------------------
   Figure / Images
------------------------------------------------------------------ */
.art-single-content figure,
.art-page-content figure {
    margin: 0 0 16px;
}
.art-single-content figcaption,
.art-page-content figcaption {
    font-size: 12px;
    color: var(--art-text-muted);
    text-align: center;
    margin-top: 6px;
}

/* HR */
.art-single-content hr,
.art-page-content hr {
    border: none;
    border-top: 1px solid var(--art-border);
    margin: 18px 0;
}

/* ------------------------------------------------------------------
   Single / Page
------------------------------------------------------------------ */
.art-single,
.art-page {
    margin-bottom: 30px;
}
.art-single-meta,
.art-post-meta {
    font-size: 11px;
    color: var(--art-text-muted);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}
.art-single-meta time:not(:last-child) {
    margin-right: 18px;
    padding-right: 18px;
    border-right: 1px solid var(--art-border);
}
.art-single-thumb {
    margin: 0 -24px 40px;        /* 横はみ出しでダイナミックに */
    overflow: hidden;
}
.art-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.art-single-terms {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--art-border);
    font-size: 11px;
    color: var(--art-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}
.art-single-terms a {
    color: var(--art-text);
    text-decoration: none;
    border-bottom: 1px solid var(--art-border);
    margin: 0 4px;
    padding-bottom: 1px;
}
.art-single-terms a:hover {
    color: var(--art-main);
    border-bottom-color: var(--art-main);
}

/* ------------------------------------------------------------------
   Post List (Archive / Index)
------------------------------------------------------------------ */
.art-archive-header {
    margin-bottom: 22px;
}
.art-archive-desc {
    font-size: 14px;
    color: var(--art-text-muted);
}
.art-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.art-post-card {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--art-border);
}
.art-post-card:first-child { padding-top: 0; }
.art-post-thumb {
    flex: 0 0 160px;
}
.art-post-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}
.art-post-body {
    flex: 1;
    min-width: 0;
}
.art-post-title {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.5;
}
.art-post-title a {
    color: var(--art-text);
    text-decoration: none;
}
.art-post-title a:hover {
    color: var(--art-main);
}
.art-post-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.art-post-excerpt p { margin: 0; }

/* ------------------------------------------------------------------
   Pagination
------------------------------------------------------------------ */
.art-pagination {
    margin: 30px 0 10px;
    text-align: center;
}
.art-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.art-pagination .page-numbers {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid var(--art-border);
    color: var(--art-link);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
}
.art-pagination .page-numbers.current {
    background: var(--art-main);
    color: #fff;
    border-color: var(--art-main);
}
.art-pagination .page-numbers:hover:not(.current) {
    background: var(--art-accent-bg);
}

/* ------------------------------------------------------------------
   Search Form
------------------------------------------------------------------ */
.art-searchform {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 18px 0;
}
.art-search-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-right: none;
    outline: none;
}
.art-search-input:focus { border-color: var(--art-main); }
.art-search-button {
    padding: 9px 18px;
    background: var(--art-main);
    color: #fff;
    border: 1px solid var(--art-main);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.art-search-button:hover { opacity: 0.9; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/* ------------------------------------------------------------------
   404
------------------------------------------------------------------ */
.art-404 {
    text-align: center;
    padding: 30px 0;
}
.art-404-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--art-main);
    margin: 0 0 16px;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.art-footer {
    background: var(--art-footer-bg);
    border-top: none;
    color: var(--art-footer-text);
    padding: 56px 0 24px;
    margin-top: 64px;
}
.art-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.art-footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.15s, color 0.15s;
}
.art-footer a:hover {
    color: var(--art-main);
    border-bottom-color: var(--art-main);
}
.art-footer-brand {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.art-footer-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: none;
    letter-spacing: 0.02em;
    line-height: 1.3;
    display: inline-block;
}
.art-footer-title:hover {
    border: none;
    color: var(--art-main);
}
.art-footer-tagline {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}
.art-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 36px;
    font-size: 13px;
}
.art-footer-widgets .widget-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--art-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    margin: 0 0 12px;
    letter-spacing: 0.05em;
}
.art-footer-widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.art-footer-widgets ul li {
    padding: 6px 0;
    border-bottom: none;
}
.art-footer-nav-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-size: 13px;
}
.art-footer-nav-list li a {
    color: rgba(255, 255, 255, 0.85);
    border: none;
}
.art-footer-nav-list li a:hover {
    color: var(--art-main);
    border: none;
}
.art-copyright {
    text-align: left;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 0;
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------------
   ページトップへ戻るボタン（フローティング）
------------------------------------------------------------------ */
.art-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--art-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s, transform 0.15s;
    z-index: 100;
}
.art-back-to-top.art-back-to-top-visible {
    opacity: 1;
    visibility: visible;
}
.art-back-to-top:hover {
    transform: translateY(-2px);
    background: var(--art-main);
}
.art-back-to-top:hover .art-back-to-top-arrow {
    color: #fff;
}
.art-back-to-top-arrow {
    font-size: 20px;
    color: var(--art-text);
    line-height: 1;
    font-weight: 700;
    transition: color 0.15s;
}

/* ------------------------------------------------------------------
   WP Standard Classes
------------------------------------------------------------------ */
.alignleft { float: left; margin: 0 16px 12px 0; }
.alignright { float: right; margin: 0 0 12px 16px; }
.aligncenter { display: block; margin: 0 auto 12px; }
.alignwide { max-width: 100%; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--art-text-muted); text-align: center; margin-top: 6px; }
.sticky { display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.gallery-caption { font-size: 11px; color: var(--art-text-muted); }

/* ------------------------------------------------------------------
   Comments
------------------------------------------------------------------ */
.comments-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--art-border);
}
.comments-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 16px;
}
.comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.comment-list .comment {
    padding: 14px 0;
    border-bottom: 1px solid var(--art-border);
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 768px) {
    body { font-size: 15px; line-height: 1.8; }
    .art-header { padding: 14px 0; }
    .art-header-inner { padding: 0 16px; flex-wrap: wrap; gap: 12px; }
    .art-site-title { font-size: 18px; }
    .art-site-mark { width: 24px; height: 24px; font-size: 11px; }
    .art-nav-list { gap: 2px; }
    .art-nav-list li a {
        padding: 6px 10px;
        font-size: 13px;
    }
    .art-main-inner { padding: 24px 16px 48px; }
    .art-single-title, .art-page-title, .art-archive-title { font-size: 22px; }
    .art-single-content h1, .art-page-content h1 { font-size: 22px; }
    .art-single-content h2, .art-page-content h2 { font-size: 18px; padding: 9px 12px 9px 16px; }
    .art-single-content h3, .art-page-content h3 { font-size: 16px; }
    .art-post-card { flex-direction: column; gap: 10px; }
    .art-post-thumb { flex: 0 0 auto; }
    .art-post-thumb img { width: 100%; height: auto; max-height: 200px; }
    .art-footer { padding: 40px 0 20px; margin-top: 48px; }
    .art-footer-inner { padding: 0 16px; }
    .art-footer-title { font-size: 22px; }
    .art-footer-widgets { grid-template-columns: 1fr; gap: 24px; }
    .art-single-content table, .art-page-content table { font-size: 13px; }
    .art-single-content table th, .art-page-content table th,
    .art-single-content table td, .art-page-content table td { padding: 7px 9px; }
}

@media (max-width: 480px) {
    .art-header-inner { gap: 10px; }
    .art-nav { width: 100%; }
    .art-nav-list { width: 100%; justify-content: flex-start; }
}

/* ====================================================================
   Front Page (front-page.php)
   ==================================================================== */

.art-fp { display: block; margin: 0 -24px; }

/* ヒーローセクション - cheerforart風 大きな黒タイポ＋緑アクセント */
.art-fp-hero {
    background: #fff;
    padding: 80px 24px 64px;
    text-align: center;
    color: var(--art-text);
    margin: 0;
    border-bottom: 1px solid var(--art-border);
}
.art-fp-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.art-fp-hero-catchcopy {
    color: var(--art-text);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 18px;
    letter-spacing: 0.01em;
}
.art-fp-hero-catchcopy em,
.art-fp-hero-catchcopy strong,
.art-fp-hero-catchcopy .art-accent {
    font-style: normal;
    color: var(--art-accent);
    font-weight: 800;
}
.art-fp-hero-subtext {
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 32px;
    color: var(--art-text-muted);
    font-weight: 500;
}
.art-fp-hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.art-fp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.04em;
}
.art-fp-cta::after {
    content: "▶";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 11px;
    transition: transform 0.15s;
}
.art-fp-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(43, 170, 93, 0.25);
}
.art-fp-cta:hover::after {
    transform: translateX(2px);
}
.art-fp-cta-primary {
    background: var(--art-main);
    color: #fff !important;
}
.art-fp-cta-primary::after {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.art-fp-cta-secondary {
    background: #fff;
    color: var(--art-text) !important;
    border: 2px solid var(--art-text);
}
.art-fp-cta-secondary::after {
    background: var(--art-text);
    color: #fff;
}

/* セクション共通 */
.art-fp-section {
    padding: 56px 24px;
    border-bottom: 1px solid var(--art-border);
    max-width: 1100px;
    margin: 0 auto;
}
.art-fp-section:last-child { border-bottom: none; }
.art-fp-section-header {
    text-align: center;
    margin-bottom: 32px;
}
.art-fp-section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
}
.art-fp-section-title {
    color: var(--art-text);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.art-fp-section-subtitle {
    color: var(--art-main);
    font-size: 12px;
    letter-spacing: 0.2em;
    font-weight: 700;
}
.art-fp-section-more {
    font-size: 13px;
    color: var(--art-main-dark);
    text-decoration: none;
    font-weight: 600;
}
.art-fp-section-more:hover { text-decoration: underline; }

/* カテゴリーセクション - cheerforart風 楕円型ボタン（緑ボーダー＋左アイコン対応） */
.art-fp-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}
.art-fp-cat-card {
    background: #fff;
    border: 2px solid var(--art-main);
    border-radius: 999px;
    padding: 16px 28px;
    text-align: center;
    text-decoration: none !important;
    color: var(--art-main-dark);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    position: relative;
}
/* カテゴリーアイコン（オプション・左に配置） */
.art-fp-cat-card::before {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.15;
    transition: opacity 0.15s;
}
.art-fp-cat-card:hover {
    background: var(--art-main);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 170, 93, 0.25);
}
.art-fp-cat-card:hover::before {
    opacity: 0.3;
}
.art-fp-cat-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.04em;
}
.art-fp-cat-count {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 600;
}

/* 注目記事 - 大きめカード */
.art-fp-pickup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.art-fp-pickup-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.art-fp-pickup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.art-fp-pickup-thumb {
    aspect-ratio: 16/9;
    background: var(--art-accent-bg);
    overflow: hidden;
}
.art-fp-pickup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.art-fp-pickup-thumb-empty { background: var(--art-accent-bg); }
.art-fp-pickup-body { padding: 16px 4px; }
.art-fp-pickup-cat {
    display: inline-block;
    background: var(--art-main);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.art-fp-pickup-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    margin: 12px 0 8px;
    color: var(--art-text);
}
.art-fp-pickup-date {
    font-size: 12px;
    color: var(--art-text-muted);
    font-weight: 500;
}

/* 新着記事 */
.art-fp-recent-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}
.art-fp-recent-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none !important;
    color: inherit;
    padding: 12px;
    border-radius: 6px;
    transition: background 0.15s;
    min-width: 0;
}
.art-fp-recent-item:hover { background: var(--art-accent-bg); }
.art-fp-recent-thumb {
    width: 100px;
    min-width: 100px;
    aspect-ratio: 16/9;
    background: var(--art-accent-bg);
    border-radius: 4px;
    overflow: hidden;
}
.art-fp-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.art-fp-recent-thumb-empty { background: var(--art-accent-bg); }
.art-fp-recent-body { flex: 1; min-width: 0; }
.art-fp-recent-cat {
    display: inline-block;
    background: transparent;
    color: var(--art-main-dark);
    font-size: 11px;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.art-fp-recent-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    margin: 4px 0 4px;
    color: var(--art-text);
}
.art-fp-recent-date {
    font-size: 11px;
    color: var(--art-text-muted);
}

/* 自由コンテンツ・サイトについて */
.art-fp-free-content,
.art-fp-about-content {
    font-size: 15px;
    line-height: 1.95;
    color: var(--art-text);
    max-width: 720px;
    margin: 0 auto;
}
.art-fp-free-content p,
.art-fp-about-content p {
    margin: 0 0 14px;
}
.art-fp-free-content p:last-child,
.art-fp-about-content p:last-child { margin-bottom: 0; }

/* レスポンシブ */
@media (max-width: 768px) {
    .art-header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
    .art-nav { width: 100%; justify-content: flex-start; }
    .art-fp-hero { padding: 56px 20px 44px; }
    .art-fp-hero-catchcopy { font-size: 26px; }
    .art-fp-hero-subtext { font-size: 14px; }
    .art-fp-section { padding: 40px 20px; }
    .art-fp-section-title { font-size: 20px; }
    .art-fp-cat-grid { grid-template-columns: 1fr; }
    .art-fp-pickup-grid { grid-template-columns: 1fr; gap: 16px; }
    .art-fp-recent-list { grid-template-columns: 1fr; }
    .art-fp-recent-thumb { width: 90px; min-width: 90px; }
    .art-footer-widgets { grid-template-columns: 1fr 1fr; gap: 24px; }
    .art-back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media (max-width: 480px) {
    .art-fp-hero-ctas { flex-direction: column; align-items: stretch; }
    .art-fp-cta { justify-content: center; }
    .art-footer-widgets { grid-template-columns: 1fr; }
}
