/* GENERATED by tools/help_site/build.py — 編集元は tools/help_site/assets/site.css */
/* ============================================================
   鉄道運行管理シミュレーター ヘルプサイト 共有スタイル
   編集元: tools/help_site/assets/site.css（docs/assets/site.css は生成物）

   テーマ: ライトが既定。ダークは :root[data-theme="dark"] の変数ブロックに
   まとめてあり、build.py が同内容を @media (prefers-color-scheme: dark) の
   :root:not([data-theme="light"]) にも自動展開する（OS設定追従 + 手動トグル）。
   ============================================================ */

:root {
    /* ---- ライトテーマ（既定） ---- */
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface2: #e8ecf4;
    --accent: #2f6bb0;
    --accent2: #3f7d2c;
    --green: #3f7d2c;
    --orange: #c2570e;
    --text: #1d2433;
    --text-dim: #5a6372;
    --border: #d5dae6;
    --warn: #b45309;
    --strong: #10151f;
    --row-alt: rgba(15, 23, 42, 0.035);
    --code-fg: #1d4ed8;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --radius: 8px;

    /* バッジ（汎用） */
    --badge-red-bg: #fee2e2;     --badge-red-fg: #b91c1c;
    --badge-orange-bg: #ffedd5;  --badge-orange-fg: #c2410c;
    --badge-yellow-bg: #fef3c7;  --badge-yellow-fg: #a16207;
    --badge-green-bg: #dcfce7;   --badge-green-fg: #15803d;
    --badge-blue-bg: #dbeafe;    --badge-blue-fg: #1d4ed8;
    /* バッジ（路線・用途別） */
    --badge-yukigaya-bg: #fce7f3;  --badge-yukigaya-fg: #9d174d;
    --badge-tamagawa-bg: #f3e8ff;  --badge-tamagawa-fg: #7e22ce;
    --badge-rinkan-bg: #ccfbf1;    --badge-rinkan-fg: #0f766e;
    --badge-shibuyoko-bg: #ffe4e6; --badge-shibuyoko-fg: #be123c;
    --badge-coupling-bg: #ffedd5;  --badge-coupling-fg: #c2410c;
}

:root[data-theme="dark"] {
    /* ---- ダークテーマ（旧サイトのパレットを踏襲） ---- */
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface2: #22263a;
    --accent: #4a90d9;
    --accent2: #6ab04c;
    --green: #6ab04c;
    --orange: #f97316;
    --text: #e8eaf6;
    --text-dim: #9ca3af;
    --border: #2e3250;
    --warn: #f59e0b;
    --strong: #ffffff;
    --row-alt: rgba(255, 255, 255, 0.02);
    --code-fg: #93c5fd;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

    --badge-red-bg: #7f1d1d;     --badge-red-fg: #fca5a5;
    --badge-orange-bg: #7c2d12;  --badge-orange-fg: #fdba74;
    --badge-yellow-bg: #713f12;  --badge-yellow-fg: #fde68a;
    --badge-green-bg: #14532d;   --badge-green-fg: #86efac;
    --badge-blue-bg: #1e3a5f;    --badge-blue-fg: #93c5fd;

    --badge-yukigaya-bg: #6b1236;  --badge-yukigaya-fg: #fbcfe8;
    --badge-tamagawa-bg: #4a0f52;  --badge-tamagawa-fg: #e9d5ff;
    --badge-rinkan-bg: #0d4f43;    --badge-rinkan-fg: #99f6e4;
    --badge-shibuyoko-bg: #6b1024; --badge-shibuyoko-fg: #fecdd3;
    --badge-coupling-bg: #7c2d12;  --badge-coupling-fg: #fed7aa;
}

/* ---- 基本 ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}
html[lang="en"] body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }
html[lang="ko"] body { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
html[lang="zh-Hant"] body { font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif; }
html[lang="zh-Hans"] body { font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif; }

/* stickyヘッダーにアンカーが隠れないようにする（全サイト共通の修正） */
[id] { scroll-margin-top: 80px; }

/* ---- ヘッダー ---- */
header {
    background: var(--surface2);
    border-bottom: 2px solid var(--accent);
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}
header .icon { font-size: 22px; }
header .titles h1 { font-size: 17px; font-weight: bold; color: var(--text); line-height: 1.3; }
header .titles h1 a { color: inherit; text-decoration: none; }
header .titles p { font-size: 12px; color: var(--text-dim); margin: 2px 0 0; }
header .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* テーマ切替ボタン */
.theme-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
}
.theme-btn:hover { border-color: var(--accent); }
.theme-btn .when-dark { display: none; }
:root[data-theme="dark"] .theme-btn .when-dark { display: inline; }
:root[data-theme="dark"] .theme-btn .when-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-btn .when-dark { display: inline; }
    :root:not([data-theme="light"]) .theme-btn .when-light { display: none; }
}

/* 言語切替ドロップダウン */
.lang-menu { position: relative; }
.lang-menu > summary {
    list-style: none;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    user-select: none;
    white-space: nowrap;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { border-color: var(--accent); }
.lang-menu[open] > summary { border-color: var(--accent); }
.lang-menu .menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 140px;
    padding: 6px;
    z-index: 200;
}
.lang-menu .menu a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
}
.lang-menu .menu a:hover { background: var(--surface2); color: var(--accent); }
.lang-menu .menu a.current { color: var(--accent); font-weight: bold; }

/* ---- レイアウト ---- */
.layout {
    display: flex;
    max-width: 1180px;
    margin: 0 auto;
}

nav.sidebar {
    width: 240px;
    min-width: 210px;
    padding: 28px 16px;
    position: sticky;
    top: 65px;
    align-self: flex-start;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
}
nav.sidebar ul { list-style: none; }
nav.sidebar li + li { margin-top: 2px; }
nav.sidebar a {
    display: block;
    padding: 5px 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}
nav.sidebar a:hover { background: var(--surface2); color: var(--accent); }
nav.sidebar a.active { background: var(--surface2); color: var(--accent); font-weight: bold; }
nav.sidebar .section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding: 18px 12px 4px;
    font-weight: bold;
}
nav.sidebar .section-title:first-child { padding-top: 0; }
nav.sidebar .group-label {
    font-size: 11px;
    color: var(--text-dim);
    padding: 8px 12px 2px;
}
nav.sidebar .nav-home { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 12px; }
nav.sidebar .nav-home a { color: var(--accent); }

main {
    flex: 1;
    padding: 28px 28px 48px;
    min-width: 0;
}

/* パンくず */
.breadcrumb { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- 本文 ---- */
section { margin-bottom: 52px; }

h2 {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
    margin: 28px 0 10px;
}
h3.op-major {
    border-top: 2px solid var(--border);
    color: var(--accent);
    font-size: 20px;
    margin-top: 44px;
    padding-top: 28px;
}

p { margin-bottom: 12px; color: var(--text); }
strong { color: var(--strong); }
main a { color: var(--accent); }
main ul, main ol { padding-left: 1.5em; margin: 8px 0; }
main ul li, main ol li { margin-bottom: 4px; }
main img { max-width: 100%; }

hr { border: none; border-top: 1px solid var(--border); margin: 8px 0 40px; }

/* ---- 部品 ---- */
.flow-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 16px 0;
    font-family: monospace;
    font-size: 14px;
    line-height: 2.0;
    white-space: pre;
    overflow-x: auto;
}

/* step-list 基本形（番号バッジを左に絶対配置） */
.step-list { list-style: none; counter-reset: step; margin: 12px 0; padding-left: 0; }
.step-list li {
    counter-increment: step;
    position: relative;
    padding-left: 36px;
    margin-bottom: 10px;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    background: var(--accent);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* step-list フレックス形（マップ別ガイドで使用。step-content や画像を含む大きめの手順） */
.cat-maps .step-list li,
.cat-maps .step-list > li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-left: 0;
    margin-bottom: 28px;
}
.cat-maps .step-list li::before,
.cat-maps .step-list > li::before {
    position: static;
    flex-shrink: 0;
    min-width: 28px;
    width: auto;
    height: 28px;
    font-size: 13px;
    margin-top: 2px;
}
.step-list .step-content { flex: 1; }
.step-list img {
    width: 100%;
    max-width: 720px;
    display: block;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.step-list.coupling > li::before { background: var(--orange); color: #1a1a1a; }

.callout {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 16px;
    margin: 14px 0;
    font-size: 13.5px;
    color: var(--text-dim);
}
.callout.warn { border-left-color: var(--warn); }
.callout.tip { border-left-color: var(--green); }
.callout.coupling { border-left-color: var(--orange); }
.callout strong { color: var(--text); }

.highlight-callout {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.18), rgba(74, 144, 217, 0.10));
    border: 1px solid var(--orange);
    border-radius: var(--radius);
    margin: 0 0 28px;
    padding: 18px 22px;
}
.highlight-callout .label {
    background: var(--orange);
    border-radius: 999px;
    color: #1a1a1a;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    padding: 2px 10px;
}
.highlight-callout a {
    border-bottom: 1px solid var(--orange);
    color: var(--text);
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
    text-decoration: none;
}
.highlight-callout a:hover { color: var(--orange); }

.tldr {
    background: linear-gradient(135deg, #1e3a5f 0%, #14532d 100%);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 32px;
    font-size: 16px;
    color: #e8eaf6; /* 背景が固定色なので文字色も固定 */
}
.tldr strong { color: #86efac; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14px;
}
th {
    background: var(--surface2);
    padding: 10px 14px;
    text-align: left;
    color: var(--text-dim);
    font-weight: bold;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
tr:last-child td, tr:last-child th { border-bottom: none; }
tr:nth-child(even) td, tr:nth-child(even) th { background: var(--row-alt); }
td.more a { color: var(--accent); font-size: 13px; text-decoration: none; }
td.more a:hover { text-decoration: underline; }
.page-streaming th { width: 30%; white-space: nowrap; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 6px;
}
.badge-red    { background: var(--badge-red-bg);    color: var(--badge-red-fg); }
.badge-orange { background: var(--badge-orange-bg); color: var(--badge-orange-fg); }
.badge-yellow { background: var(--badge-yellow-bg); color: var(--badge-yellow-fg); }
.badge-green  { background: var(--badge-green-bg);  color: var(--badge-green-fg); }
.badge-blue   { background: var(--badge-blue-bg);   color: var(--badge-blue-fg); }
/* 路線・用途別バッジ（マップ別ガイド） */
.badge-yukigaya  { background: var(--badge-yukigaya-bg);  color: var(--badge-yukigaya-fg); }
.badge-tamagawa  { background: var(--badge-tamagawa-bg);  color: var(--badge-tamagawa-fg); }
.badge-rinkan    { background: var(--badge-rinkan-bg);    color: var(--badge-rinkan-fg); }
.badge-shibuyoko { background: var(--badge-shibuyoko-bg); color: var(--badge-shibuyoko-fg); }
.badge-nakanobu  { background: var(--badge-yellow-bg);    color: var(--badge-yellow-fg); }
.badge-general   { background: var(--badge-yellow-bg);    color: var(--badge-yellow-fg); }
.badge-shunting  { background: var(--badge-green-bg);     color: var(--badge-green-fg); }
.badge-air       { background: var(--badge-blue-bg);      color: var(--badge-blue-fg); }
.badge-up        { background: var(--badge-green-bg);     color: var(--badge-green-fg); }
.badge-down      { background: var(--badge-yellow-bg);    color: var(--badge-yellow-fg); }
.badge-end       { background: var(--badge-blue-bg);      color: var(--badge-blue-fg); }
.badge-coupling  { background: var(--badge-coupling-bg);  color: var(--badge-coupling-fg); }

.lvl-badge {
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    padding: 2px 8px;
    vertical-align: middle;
    background: var(--green);
}
.page-map-editor-tutorial2 .lvl-badge,
.page-map-editor-tutorial3 .lvl-badge { background: var(--warn); }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
}
.faq-q { font-weight: bold; color: var(--accent); margin-bottom: 6px; }
.faq-a { color: var(--text-dim); font-size: 14px; }

code {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 7px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: var(--code-fg);
}
kbd {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    color: var(--text);
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 12px;
    padding: 1px 6px;
}
.code-block {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--code-fg);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    margin: 12px 0;
    overflow-x: auto;
    padding: 16px 18px;
    white-space: pre;
}
.path-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--badge-green-fg);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    margin: 12px 0;
    padding: 14px 18px;
    word-break: break-all;
}

figure {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 16px 0;
    padding: 16px;
    text-align: center;
}
figure svg { display: block; height: auto; margin: 0 auto; max-width: 560px; width: 100%; }
figcaption { color: var(--text-dim); font-size: 12.5px; margin-top: 10px; }
.svg-label { fill: var(--text); font-family: inherit; font-size: 13px; }
.svg-dim { fill: var(--text-dim); font-family: inherit; font-size: 11.5px; }
.page-map-editor-start .svg-dim { font-size: 11px; }
.page-map-editor-tutorial1 .svg-dim,
.page-map-editor-tutorial2 .svg-dim,
.page-map-editor-tutorial3 .svg-dim { font-size: 10.5px; }
.page-map-editor-tutorial1 .svg-label,
.page-map-editor-tutorial2 .svg-label,
.page-map-editor-tutorial3 .svg-label { font-size: 12px; }

/* スクリーンショット（クリックで拡大） */
figure.shot { background: none; border: none; padding: 0; }
figure.shot img {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: zoom-in;
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: min(640px, 78vh);
    max-width: 760px;
    transition: opacity 0.15s;
    width: auto;
}
figure.shot img:hover { opacity: 0.85; }
.shot-ph {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 13px;
    padding: 26px 16px;
    text-align: center;
}
.shot-ph .cam { display: block; font-size: 26px; margin-bottom: 6px; opacity: 0.7; }
.shot-ph .fn {
    color: var(--accent);
    display: inline-block;
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 12px;
    margin-top: 8px;
}
.placeholder-image {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 14px;
    margin: 16px 0;
    padding: 60px 20px;
    text-align: center;
}

.concept {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 18px 0;
    padding: 16px 18px;
}
.concept h3 { margin-top: 0; }
.concept .more { font-size: 13px; }
.concept .more a { color: var(--accent); text-decoration: none; }
.concept .more a:hover { text-decoration: underline; }

.color-swatch {
    border: 1px solid var(--border);
    border-radius: 3px;
    display: inline-block;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
    width: 14px;
}

.term { color: var(--strong); font-weight: bold; white-space: nowrap; }
.term .ruby { color: var(--text-dim); display: block; font-size: 11px; font-weight: normal; }

/* ライトボックス（画像拡大） */
.lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox img {
    border: none;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
    max-height: 94vh;
    max-width: 96vw;
}
.lightbox .lb-close {
    color: #fff;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    opacity: 0.8;
    position: absolute;
    right: 22px;
    top: 14px;
}
.lightbox .lb-close:hover { opacity: 1; }
.lightbox .lb-hint {
    bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    left: 0;
    position: absolute;
    right: 0;
    text-align: center;
}

/* ---- トップページ（ポータル） ---- */
.portal { max-width: 1100px; margin: 0 auto; padding: 36px 28px 48px; }
.portal .lead { color: var(--text-dim); margin-bottom: 28px; }
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
}
.card h2 {
    border-bottom: none;
    font-size: 17px;
    margin-bottom: 10px;
    padding-bottom: 0;
}
.card ul { list-style: none; padding-left: 0; margin: 0; }
.card li { margin: 0; }
.card li a {
    display: block;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}
.card li a:hover { background: var(--surface2); color: var(--accent); }
.card li.sub a { padding-left: 22px; font-size: 13px; color: var(--text-dim); }
.card li.sub a:hover { color: var(--accent); }
.card .group-label {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-dim);
    margin: 10px 0 2px;
}
.contact-banner {
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    margin-top: 28px;
    padding: 16px 20px;
    font-size: 14px;
}
.contact-banner a { color: var(--accent); font-weight: bold; }

/* お問い合わせフォーム */
.form-container { background: #fff; padding: 10px; border-radius: var(--radius); margin-top: 20px; }
.form-container iframe { width: 100%; border: none; }

/* ---- フッター ---- */
footer {
    background: var(--surface2);
    color: var(--text-dim);
    text-align: center;
    padding: 32px 20px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

/* ---- モバイル ---- */
@media (max-width: 800px) {
    nav.sidebar { display: none; }
    main { padding: 20px 16px; }
    header { padding: 12px 14px; }
    header .titles p { display: none; }
    .page-streaming th { width: auto; white-space: normal; }
    .portal { padding: 24px 16px; }
}

/* ---- 別製品「鉄道運行管理シミュレーターPro」のページ配色 ----
   本編（青）と視覚的にはっきり区別し、DLC との誤認を防ぐためのアクセント差し替え（金系）。
   body に .theme-pro が付くのは product: "pro" のページのみ（build.py が付与）。 */
body.theme-pro {
    --accent: #a56a0b;
    --accent2: #8a5a0a;
    --code-fg: #9a5b06;
}
:root[data-theme="dark"] body.theme-pro {
    --accent: #e0b04a;
    --accent2: #c99a3c;
    --code-fg: #e6bb63;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body.theme-pro {
        --accent: #e0b04a;
        --accent2: #c99a3c;
        --code-fg: #e6bb63;
    }
}

/* ↓ build.py が :root[data-theme="dark"] から自動展開（OSのダーク設定追従用） */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* ---- ダークテーマ（旧サイトのパレットを踏襲） ---- */
        --bg: #0f1117;
        --surface: #1a1d27;
        --surface2: #22263a;
        --accent: #4a90d9;
        --accent2: #6ab04c;
        --green: #6ab04c;
        --orange: #f97316;
        --text: #e8eaf6;
        --text-dim: #9ca3af;
        --border: #2e3250;
        --warn: #f59e0b;
        --strong: #ffffff;
        --row-alt: rgba(255, 255, 255, 0.02);
        --code-fg: #93c5fd;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    
        --badge-red-bg: #7f1d1d;     --badge-red-fg: #fca5a5;
        --badge-orange-bg: #7c2d12;  --badge-orange-fg: #fdba74;
        --badge-yellow-bg: #713f12;  --badge-yellow-fg: #fde68a;
        --badge-green-bg: #14532d;   --badge-green-fg: #86efac;
        --badge-blue-bg: #1e3a5f;    --badge-blue-fg: #93c5fd;
    
        --badge-yukigaya-bg: #6b1236;  --badge-yukigaya-fg: #fbcfe8;
        --badge-tamagawa-bg: #4a0f52;  --badge-tamagawa-fg: #e9d5ff;
        --badge-rinkan-bg: #0d4f43;    --badge-rinkan-fg: #99f6e4;
        --badge-shibuyoko-bg: #6b1024; --badge-shibuyoko-fg: #fecdd3;
        --badge-coupling-bg: #7c2d12;  --badge-coupling-fg: #fed7aa;
    }
}
