/* ============================================================
 * 事例タグクラウド（.om-case-tagcloud）
 *
 * 出所: scripts/regenerate-case-tag-cloud.py が本文へ <style> として
 *       書き出していたものを 2026-08-07 に移設した。移設前後で 1 宣言も変えていない。
 *
 * 移設した理由:
 *   本文への <style> 直書きは統治ルールの不変量 2 が禁じている
 *   （docs/wordpress-governance/04_block-editor-rules.md）。
 *   このスクリプトは「タグ追加時に再実行する」継続運用のもので、実行のたびに
 *   本文へ <style> が入り直す構造だった。スクリプトを止めるのではなく
 *   CSS の置き場をここへ移し、スクリプト側は装飾を持たない HTML だけを出す。
 *
 * 適用先: 再利用ブロック post 14000「タグクラウド」。
 *   本文からの参照（wp:block ref）は 0 件だが、**テンプレートから
 *   get_post(14000) で直接描画**されている（archive-case.php:69 / archive.php:73 /
 *   content-case-legacy.php:142）。/case/ と /tag/<slug>/ で実際に出ている。
 *   post_content を検索しても見えない差込なので、読込条件を投稿単位で書くと
 *   1 つも拾えない。無条件 enqueue にしてある（理由の全文は my-snow-monkey.php 側）。
 *
 * 色は移設時点の実装値（v2 トークン系）のまま。v3 移行の対象になった時に
 * まとめて置き換える。単独で先に変えると見た目が変わる。
 * ============================================================ */

.om-case-tagcloud { margin: 24px 0 40px; }
.om-case-tagcloud-section { margin-bottom: 32px; }
.om-case-tagcloud-section h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1A5276;
    margin: 0 0 16px;
    padding: 8px 0 8px 14px;
    border-left: 4px solid #B8860B;
    background: linear-gradient(to right, rgba(184,134,11,0.04), transparent);
}
.om-case-tagcloud-subgroup { margin: 12px 0 18px; }
.om-case-tagcloud-subgroup h4 {
    font-size: 14px;
    font-weight: 700;
    color: #5A6270;
    margin: 8px 0 8px;
    padding-left: 6px;
    border-left: 3px solid #D4E6F1;
}
.om-case-tagcloud-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 4px 0;
}
.om-tag {
    display: inline-flex;
    align-items: baseline;
    padding: 6px 12px;
    border: 1px solid #2980B9;
    border-radius: 16px;
    background: white;
    color: #1A5276;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.15s;
    white-space: nowrap;
}
.om-tag:hover {
    background: #1A5276;
    color: white;
    border-color: #1A5276;
}
.om-tag-hash {
    margin-right: 2px;
    opacity: 0.7;
    font-weight: 700;
}
.om-tag-count {
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.7;
}
@media (max-width: 700px) {
    .om-case-tagcloud-section h3 { font-size: 17px; }
    .om-tag { font-size: 12px; padding: 5px 10px; }
}
