/* 公開サイト（タグ辞典）の見た目。tools/export_site.py が assets/site.css として書き出す */
:root {
  --ink: #26303f;
  --muted: #6c7280;
  --line: #e2dccd;
  --paper: #fbf9f3;
  --card: #ffffff;
  --accent: #2e837b;
  --accent-dark: #256d66;
  --adult: #9b3f55;
  --navy: #1d2638;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; line-height: 1.6; }
a { color: var(--accent-dark); }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.site-header { color: #fff; background: var(--navy); }
.site-header-inner, .site-main, .site-footer-inner { width: min(1760px, 100%); margin: 0 auto; padding: 0 16px; }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.site-title { margin: 0; font-size: 1.15rem; }
.site-title a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.site-icon { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); flex: none; }
.site-badge { margin-left: 8px; padding: 1px 8px; color: #fff; background: var(--adult); border-radius: 999px; font-size: .7rem; vertical-align: 2px; }
.site-badge.premium { background: var(--accent); }
.premium-link { padding: 5px 12px; color: var(--navy); background: #f4d98b; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; }
.site-header-links { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* ＝メニュー：押すと小さなパネルが開き、「説明」でサイトの説明をヘッダーの下に出す */
.site-menu { position: relative; }
.site-menu > summary { display: grid; place-items: center; width: 34px; height: 30px; color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 6px; font-size: 1.1rem; cursor: pointer; list-style: none; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 120px; padding: 6px; background: #fff; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.site-menu-panel button, .site-menu-panel a { display: block; box-sizing: border-box; width: 100%; padding: 8px 10px; color: var(--navy); background: none; border: 0; border-radius: 6px; text-align: left; font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }
.site-menu-panel button:hover, .site-menu-panel a:hover { background: #eef1f6; }
/* 説明の窓（＝メニューの「説明」）：画面の上に重ね、中をスクロールする */
.site-about { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 30, .55); }
.site-about[hidden] { display: none; }
.site-about-box { position: relative; box-sizing: border-box; width: min(560px, 100%); max-height: min(80vh, 640px); overflow-y: auto; padding: 20px 20px 16px; color: var(--ink); background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); font-size: .88rem; line-height: 1.7; }
.site-about-box h2 { margin: 0 32px 8px 0; font-size: 1.05rem; }
.site-about-box h3 { margin: 16px 0 6px; font-size: .95rem; }
.site-about-box p { margin: 0; }
.site-about-box dl { margin: 0; }
.site-about-box dt { margin-top: 10px; font-weight: 700; }
.site-about-box dd { margin: 2px 0 0; }
.about-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 4px; padding: 0; list-style: none; }
.site-about-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; color: var(--ink); background: #f1f3f7; border: 0; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.site-lead { margin: 16px 0 10px; color: var(--muted); font-size: .88rem; }
.site-main { padding-bottom: 40px; }

.ad-slot { margin: 16px 0; text-align: center; }
.ad-slot:empty { display: none; }

/* 一覧：左に分類、右にタグ */
.list-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
/* 会員版だけ、右に選んだタグの画像と呪文の欄を出す */
.list-layout.with-detail { grid-template-columns: 220px minmax(0, 1fr) minmax(320px, 400px); }
/* 左の列：分類（残りの高さでスクロール）とその下の広告枠 */
.side-column { position: sticky; top: 10px; max-height: calc(100vh - 20px); display: flex; flex-direction: column; gap: 10px; }
.side-column .ad-slot { flex: none; margin: 0; }
.side-nav { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 8px; background: var(--navy); border-radius: 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
/* 分類の一覧の見出し。広い画面では折りたためない見出しとして、スクロールしても上に残す */
.side-nav summary { position: sticky; top: -8px; z-index: 1; margin: -8px -8px 2px; padding: 10px 16px 8px; color: #fff; background: var(--navy); border-radius: 10px 10px 0 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; font-weight: 700; list-style: none; pointer-events: none; }
.side-nav summary::-webkit-details-marker { display: none; }
.side-nav summary small { margin-left: 4px; color: #8f9ab0; font-size: .7rem; font-weight: 400; }
.side-nav-body { display: grid; gap: 1px; }
.nav-heading { margin: 12px 8px 4px; color: #f4d98b; font-size: .72rem; font-weight: 700; }
.nav-item { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 5px 8px 5px 18px; color: #d6dcea; background: none; border: 0; border-radius: 6px; font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.nav-item small { color: #8f9ab0; font-size: .7rem; }
.nav-item:hover { background: rgba(255, 255, 255, .08); }
.nav-item[aria-current="true"] { color: #fff; background: var(--accent); }
.nav-item[aria-current="true"] small { color: #e5f3f1; }
.nav-section { padding-left: 8px; color: #fff; font-weight: 700; }
/* 無料版の大項目（選べない見出し） */
.nav-heading-only { cursor: default; }
.nav-heading-only:hover { background: none; }
.nav-section { margin-top: 8px; }
/* 大まかな流れ（人体 → 服や小物 → 構図 → 背景など）の見出し */
.nav-block { display: flex; align-items: center; gap: 6px; margin: 16px 8px 2px; color: #f4d98b; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.nav-block::after { content: ""; flex: 1; height: 1px; background: rgba(244, 217, 139, .35); }
.list-title { margin: 6px 0 0; font-size: 1.05rem; }
.filters { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; background: var(--paper); }
.filters input, .filters select { min-height: 40px; padding: 8px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; }
.filters input { flex: 1 1 240px; }
/* 詳細設定（並び順・絞り込み） */
/* 絞り込み（使っているタグの下） */
.advanced { margin: 8px 0 4px; background: #f4efe0; border: 1px solid var(--line); border-radius: 8px; }
.advanced summary { padding: 7px 12px; color: var(--accent-dark); font-size: .8rem; font-weight: 700; cursor: pointer; }
.advanced-summary { margin-left: 8px; color: var(--muted); font-weight: 400; }
.advanced-body { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0 12px 10px; }
.advanced-body label { display: grid; gap: 2px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.advanced-body select { min-height: 34px; padding: 5px 8px; font-size: .82rem; }
.result-count { margin: 4px 0 10px; color: var(--muted); font-size: .8rem; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tag-card { display: grid; overflow: hidden; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.tag-card:hover { border-color: var(--accent); }
/* 画像は縦長（幅いっぱい・高さ256px）に切り抜いて見せる */
.tag-card img { width: 100%; height: 256px; display: block; object-fit: cover; background: #eee8da; }
.tag-card.no-sample { border-style: dashed; }
.no-sample-box { display: grid; place-items: center; height: 256px; color: #aaa391; background: #f3efe4; font-size: .75rem; }
.tag-card-text { display: grid; gap: 1px; padding: 7px 9px 9px; }
.tag-card code { overflow-wrap: anywhere; font-size: .8rem; font-weight: 700; }
.tag-card small { color: var(--muted); font-size: .72rem; }
.tag-card .marks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.mark { padding: 0 6px; color: #fff; background: #8a8f99; border-radius: 4px; font-size: .64rem; font-weight: 700; }
.mark.adult { background: var(--adult); }
.mark.good { background: var(--accent); }
.mark.weak { background: #d18a2c; }
.mark.none { background: #a8493d; }
.mark.side { background: #8c6dae; }
.more-button[hidden] { display: none; }
.more-button { display: block; margin: 18px auto 0; padding: 8px 20px; color: #fff; background: var(--accent); border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }

/* タグのページ */
.breadcrumb { margin: 14px 0 0; font-size: .8rem; }
.tag-head h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 6px 0 4px; font-size: 1.6rem; }
.tag-head h1 small { color: var(--muted); font-size: .95rem; font-weight: 600; }
.tag-head .marks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.tag-facts { margin: 0 0 12px; color: var(--muted); font-size: .82rem; }
/* タグのページの先頭の説明文 */
.tag-lead { margin: 0 0 14px; font-size: .9rem; line-height: 1.8; }
.copy-button { padding: 5px 12px; color: var(--accent-dark); background: #fff; border: 1px solid var(--accent); border-radius: 6px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 256px), 1fr)); gap: 12px; margin: 14px 0; }
.samples figure { margin: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.samples img { width: 100%; height: auto; display: block; background: #eee8da; }
.samples figcaption { padding: 5px 9px; color: var(--muted); font-size: .76rem; }
.samples figcaption b { color: var(--ink); }
.prompt-block { margin: 14px 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.prompt-block h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .88rem; }
.prompt-block h2 span { color: var(--muted); font-size: .74rem; font-weight: 600; }
.prompt-block p { margin: 0 0 8px; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.prompt-block .negative { color: var(--muted); }
.base-block dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
.base-block dt { color: var(--muted); font-size: .76rem; font-weight: 700; }
.base-block dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.premium-note { margin: 14px 0; padding: 10px 14px; color: var(--muted); background: #f4efe0; border-radius: 10px; font-size: .82rem; }
.related { margin: 20px 0; }
.related h2 { font-size: .95rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.related a { display: inline-block; padding: 3px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; text-decoration: none; }

.site-footer { margin-top: 30px; padding: 20px 0; color: #c9d0dd; background: var(--navy); font-size: .76rem; }
.site-footer a { color: #fff; }

/* 年齢確認 */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(20, 26, 38, .96); }
.age-gate[hidden] { display: none; }
.age-gate-box { width: min(440px, 100%); padding: 24px; color: var(--ink); background: #fff; border-radius: 12px; text-align: center; }
.age-gate-box h2 { margin: 0 0 8px; font-size: 1.1rem; }
.age-gate-box p { margin: 0 0 16px; font-size: .88rem; }
.age-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.age-gate-actions button, .age-gate-actions a { padding: 9px 18px; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.age-gate-actions button { color: #fff; background: var(--adult); border: 0; }
.age-gate-actions a { color: var(--ink); background: #eee8da; }
body.gated .site-main { filter: blur(18px); }

@media (max-width: 760px) {
  .list-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .side-column { position: static; max-height: none; }
  .side-nav summary { position: static; margin: 0; padding: 6px 8px; border-bottom: 0; font-size: .88rem; list-style: revert; pointer-events: auto; cursor: pointer; }
  .side-nav summary::-webkit-details-marker { display: revert; }
  .side-nav[open] .side-nav-body { max-height: 60vh; overflow-y: auto; }
}

@media (max-width: 600px) {
  .tag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tag-head h1 { font-size: 1.3rem; }
}

/* 右の欄（会員版）：選んだタグのサンプル画像と呪文（一覧の横に固定。狭い画面では上に重ねて開く） */
.tag-detail { position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow-y: auto; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.detail-empty { margin: 30px 8px; color: var(--muted); font-size: .85rem; text-align: center; }
.detail-close { display: none; float: right; width: 34px; height: 34px; color: var(--ink); background: #eee8da; border: 0; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.detail-path { margin: 0; color: var(--muted); font-size: .74rem; }
.detail-title { margin: 2px 0 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.detail-ja { margin: 0 0 4px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.tag-detail .marks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
/* 右の欄のタグのコピーと、Danbooru Wiki へのリンク（会員版） */
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wiki-link { color: var(--accent); font-size: .85rem; font-weight: 700; }
.detail-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.detail-images figure { margin: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.detail-images img { width: 100%; height: auto; display: block; background: #eee8da; }
.detail-images figcaption { padding: 3px 7px; color: var(--muted); font-size: .7rem; }
.detail-images figcaption b { color: var(--ink); }
.no-sample-note { margin: 14px 0; padding: 18px; color: var(--muted); background: #f3efe4; border-radius: 8px; font-size: .82rem; text-align: center; }
.detail-link { margin: 12px 0 0; font-size: .8rem; }
.tag-card { cursor: pointer; }
.tag-card.no-sample { cursor: default; }
.with-detail .tag-card.no-sample { cursor: pointer; }
.tag-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

@media (max-width: 1100px) {
  .list-layout.with-detail { grid-template-columns: 200px minmax(0, 1fr); }
  .tag-detail { position: fixed; inset: 0; z-index: 50; display: none; max-height: none; border-radius: 0; }
  .tag-detail.open { display: block; }
  .detail-close { display: block; }
  body.detail-open { overflow: hidden; }
}
@media (max-width: 760px) {
  .list-layout, .list-layout.with-detail { grid-template-columns: minmax(0, 1fr); }
}

/* 無料版の拡大表示 */
.image-viewer { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; grid-template-rows: minmax(0, 1fr) auto auto; align-items: center; padding: 16px; background: rgba(15, 20, 30, .92); }
.viewer-ad { grid-column: 1 / -1; grid-row: 3; margin: 10px auto 0; text-align: center; }
.viewer-ad:empty { display: none; }
.image-viewer.with-ad img { max-height: calc(100vh - 200px); }
.image-viewer[hidden] { display: none; }
.image-viewer img { grid-column: 2; grid-row: 1; max-width: 100%; max-height: calc(100vh - 90px); margin: 0 auto; object-fit: contain; }
.viewer-caption { grid-column: 1 / -1; grid-row: 2; margin: 10px 0 0; color: #e6e9f0; font-size: .85rem; text-align: center; }
.viewer-caption code { color: #fff; font-weight: 700; }
/* 管理人に報告のボタン（拡大表示と会員版の右の欄）と、理由を選ぶ小さな画面 */
.report-dialog { width: min(420px, calc(100vw - 32px)); padding: 18px; color: var(--ink); background: #fff; border: 0; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.report-dialog::backdrop { background: rgba(15, 20, 30, .6); }
.report-dialog h2 { margin: 0 0 4px; font-size: 1.05rem; }
.report-dialog .report-tag { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.report-dialog fieldset { display: grid; gap: 6px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid #e2dccd; border-radius: 8px; }
.report-dialog legend { padding: 0 4px; font-size: .8rem; font-weight: 700; }
.report-dialog fieldset label { display: flex; gap: 8px; align-items: center; font-size: .88rem; cursor: pointer; }
.report-comment { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; }
.report-comment textarea { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid #e2dccd; border-radius: 6px; font: inherit; font-weight: 400; }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.report-actions button { padding: 6px 16px; border: 1px solid #e2dccd; border-radius: 999px; background: #fff; font: inherit; cursor: pointer; }
.report-actions button[type="submit"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.report-note { margin: 10px 0 0; color: var(--muted); font-size: .72rem; }
/* 管理人に報告：枠で囲み、見出し・露出・効き具合・その他 の4行 */
.report-box { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-left: 12px; padding: 6px 10px; border: 1px solid rgba(243, 194, 194, .45); border-radius: 8px; }
.report-label { color: #f3c2c2; font-size: .72rem; font-weight: 700; }
.report-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.report-row-label { margin-right: 2px; color: #f3c2c2; font-size: .72rem; }
.report-quick { padding: 2px 8px; color: #f3c2c2; background: none; border: 1px solid rgba(243, 194, 194, .5); border-radius: 999px; font: inherit; font-size: .72rem; cursor: pointer; }
.report-quick:hover:not(:disabled) { color: #fff; background: rgba(200, 70, 70, .5); }
.report-quick:disabled { cursor: default; opacity: .7; }
.detail-images .report-box { display: flex; margin: 4px 0 0; border-color: rgba(160, 72, 72, .35); }
.detail-images .report-label, .detail-images .report-row-label, .detail-images .report-quick { color: #a04848; border-color: rgba(160, 72, 72, .35); }
.detail-images .report-quick:hover:not(:disabled) { color: #fff; background: #b35454; }
.viewer-prev, .viewer-next { width: 44px; height: 64px; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 8px; font-size: 2rem; cursor: pointer; }
.viewer-prev { grid-column: 1; grid-row: 1; }
.viewer-next { grid-column: 3; grid-row: 1; }
.viewer-prev[hidden], .viewer-next[hidden] { visibility: hidden; display: block; }
.viewer-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; color: #fff; background: rgba(255, 255, 255, .15); border: 0; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
body.viewer-open { overflow: hidden; }
.tag-divider { grid-column: 1 / -1; margin: 10px 0 0; padding: 4px 10px; color: #fff; background: var(--accent); border-radius: 6px; font-size: .78rem; font-weight: 700; }
.tag-divider:first-child { margin-top: 0; }
/* 一覧の画像10行ごとに挟む広告枠 */
.grid-ad { grid-column: 1 / -1; text-align: center; }
/* プロンプトのセットの切り替え（選ぶだけ） */
.set-switch { margin: 6px 0 4px; }
.set-switch[hidden] { display: none; }
.set-switch label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--accent-dark); font-size: .8rem; font-weight: 700; }
.set-switch select { min-height: 32px; padding: 4px 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .82rem; }
.nav-parent { margin: 4px 0 0; padding: 2px 8px 2px 18px; color: #9aa6bd; font-size: .72rem; font-weight: 700; }
/* 会員版の親の見出し（押すと下のグループをまとめて見る） */
.nav-item.nav-parent { margin: 4px 0 0; padding: 3px 8px 3px 18px; color: #c3cbe0; font-size: .74rem; font-weight: 700; }
.nav-item.nav-child { padding-left: 30px; }
/* セットで使っているタグ（読むだけ。選択・コピーできない） */
.set-switch b { color: var(--ink); }
.set-parts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 8px 0 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; user-select: none; -webkit-user-select: none; }
.set-parts dt { color: var(--muted); font-size: .74rem; font-weight: 700; padding-top: 4px; }
.set-parts dd { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.chip { display: inline-grid; padding: 2px 10px; color: var(--ink); background: #f7f3e8; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; line-height: 1.25; }
.chip small { color: var(--muted); font-size: .64rem; }
.chip.negative { color: #2f5d9a; background: #e6eef9; border-color: #b8cbe6; }
.chip-none, .set-note { color: var(--muted); font-size: .76rem; }
.set-note { margin: 6px 0 0; }
/* 使っているタグ：絞り込みと同じ枠で囲む */
.set-parts-box { margin: 8px 0 0; background: #f4efe0; border: 1px solid var(--line); border-radius: 8px; }
.set-parts-box > summary { padding: 7px 12px; color: var(--accent-dark); font-size: .8rem; font-weight: 700; cursor: pointer; }
.set-parts-box .set-parts { margin: 0 12px 10px; }
/* 無料版の会員向けの選択肢（灰色）と、選んだときの案内 */
.advanced-body option[data-member] { color: #a3a8b3; }
.member-hint { flex-basis: 100%; margin: 0 12px 10px; padding: 8px 12px; color: #6b4d00; background: #fff4cf; border: 1px solid #f0d27a; border-radius: 8px; font-size: .8rem; }
.member-hint[hidden] { display: none; }
.mark.count { color: var(--ink); background: #ebe5d6; font-weight: 600; }
.other-site-link { margin-right: 8px; padding: 5px 12px; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; }
/* 投稿数の電池（縦長。下からたまる量と色が目安：極＝1/4 ピンク・小＝2/4 赤・普＝3/4 黄・多＝満タン 緑） */
.post-bars { position: relative; display: inline-block; width: 8px; height: 12px; vertical-align: -2px; background: #fff; border: 1px solid #8a8f99; border-radius: 2px; }
.post-bars::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; border-radius: 1px; }
.post-bars[data-level="1"]::after { height: 2px; background: #f08fb0; }
.post-bars[data-level="2"]::after { height: 4px; background: #e0493a; }
.post-bars[data-level="3"]::after { height: 6px; background: #e6b422; }
.post-bars[data-level="4"]::after { height: 8px; background: #2e9d5b; }
.mark.count { padding: 1px 5px; }

/* 毎日の更新：一覧の上のお知らせ・NEW の印・更新履歴 */
.site-update { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; padding: 8px 12px; background: #fff8e1; border: 1px solid #f1d98a; border-radius: 8px; font-size: .85rem; }
.site-update[hidden] { display: none; }
.site-update b { color: #9a6b00; }
.site-update button { margin-left: auto; padding: 3px 12px; color: #fff; background: var(--accent); border: 0; border-radius: 999px; font: inherit; font-size: .8rem; cursor: pointer; }
.mark.new { background: #e0822b; }
.update-list { margin: 10px 0 0; padding: 0; list-style: none; }
.update-list button { display: flex; gap: 10px; width: 100%; padding: 8px 6px; color: var(--ink); text-align: left; background: none; border: 0; border-bottom: 1px solid #eee; font: inherit; cursor: pointer; }
.update-list button:hover { background: #f6f8fb; }
.update-list b { min-width: 3.2em; }
/* 更新のひとこと（更新のひとこと.txt）。お知らせでは下の行に、更新履歴では件数の下に出す */
.update-note { display: block; color: var(--muted); font-size: .85em; white-space: pre-wrap; }
.site-update .update-note { flex-basis: 100%; }

/* グループごとのタグ一覧（groups/。検索エンジン向けの静的なページ） */
.group-title { margin: 8px 0 10px; font-size: 1.3rem; }
.group-title small { color: var(--muted); font-size: .85rem; font-weight: 600; }
.group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.group-list a { display: grid; gap: 2px; padding: 6px; color: inherit; background: #fff; border: 1px solid #e2dccd; border-radius: 8px; text-decoration: none; }
.group-list img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.group-list code { font-size: .78rem; overflow-wrap: anywhere; }
.group-list small { color: var(--muted); font-size: .72rem; }
.group-more { margin: 14px 0; }
.group-section h2 { margin: 18px 0 6px; font-size: 1rem; }
.group-section ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.footer-links { margin: 0 0 6px; }
