:root{--bg:#ffffff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--link:#2563eb;--card:#ffffff;--badge:#f3f4f6;--max:1100px;}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP",Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.75;}
a{color:var(--link);text-decoration:none;}
a:hover{text-decoration:underline;}
.container{max-width:var(--max);margin:0 auto;padding:0 14px;}
.site-header{border-bottom:1px solid var(--line);background:#fff;}
.header-inner{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;}
.brand{display:flex;flex-direction:column;gap:2px;}
.brand a{color:var(--text);}
.brand-title{font-size:18px;font-weight:700;line-height:1.2;}
.brand-desc{font-size:12px;color:var(--muted);}
.nav{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;}
.search-form{display:flex;gap:6px;align-items:center;}
.search-form input[type="search"]{width:220px;max-width:40vw;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:14px;}
.search-form button{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;}
.layout{display:grid;grid-template-columns:minmax(0,1fr)320px;gap:20px;padding:18px 0;}
@media(max-width:960px){
.layout{grid-template-columns:1fr;}
.search-form input[type="search"]{width:100%;max-width:100%;}
}
.main h1{font-size:22px;margin:0 0 10px;}
.main .archive-title{font-size:18px;margin:0 0 12px;color:var(--muted);}
.card{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:12px 14px;}
.card+.card{margin-top:12px;}
.card-title{font-size:16px;font-weight:700;margin:0 0 4px;line-height:1.45;}
.meta{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:6px;}
.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;}
.badge{display:inline-block;padding:2px 8px;background:var(--badge);border:1px solid var(--line);border-radius:999px;font-size:12px;color:var(--text);}
.entry{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;}
.entry img{max-width:100%;height:auto;}
.excerpt{color:var(--text);font-size:14px;margin:6px 0 0;}
.pagination{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap;}
.pagination a,.pagination span{border:1px solid var(--line);border-radius:10px;padding:6px 10px;font-size:13px;}
.sidebar .widget{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;}
.sidebar .widget+.widget{margin-top:12px;}
.sidebar .widget-title{font-size:14px;font-weight:700;margin:0 0 10px;}
.site-footer{border-top:1px solid var(--line);padding:18px 0;color:var(--muted);font-size:13px;}
.notice-box{border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px 14px;margin:12px 0;}
.notice-box .title{font-size:14px;font-weight:700;margin:0 0 8px;}
.notice-box ul{margin:0;padding-left:18px;}
.notice-box li{margin:4px 0;}
.kv-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.kv{display:inline-flex;gap:6px;align-items:center;padding:2px 8px;border:1px solid var(--line);background:var(--badge);border-radius:999px;font-size:12px;}
.kv .k{color:var(--muted);}
/* =========================================================
   Tags (global unified) - keep current style
   ========================================================= */ .post-tags a,.entry a[rel="tag"],.tagcloud a{display:inline-block;position:relative;padding:4px 10px 4px 12px;margin:4px 6px 4px 0;font-size:12px;line-height:1.4;color:#374151;background:#fef3c7;border:1px solid #fde68a;border-radius:4px;text-decoration:none;}
.post-tags a::before,.entry a[rel="tag"]::before,.tagcloud a::before{content:"";position:absolute;left:-6px;top:50%;transform:translateY(-50%);width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:6px solid #fde68a;}
/* hover: slightly darker */ .post-tags a:hover,.entry a[rel="tag"]:hover,.tagcloud a:hover{background:#fde68a;border-color:#fcd34d;text-decoration:none;}
.post-tags a:hover::before,.entry a[rel="tag"]:hover::before,.tagcloud a:hover::before{border-right-color:#fcd34d;}
/* =========================================================
   Entry headings & blockquote
   ========================================================= */
.entry h1{font-size:2.5rem;margin:0 0 2rem;line-height:1.35;}
.entry h2{font-size:2rem;margin:26px 0 2rem;padding-left:10px;border-left:4px solid #2563eb;}
.entry h3{font-size:1.75rem;margin:22px 0 2rem;padding-left:8px;border-left:3px solid #60a5fa;}
.entry h4{font-size:1.5rem;margin:18px 0 2rem;color:#1f2937;}
.entry h5{font-size:1.35rem;margin:16px 0 2rem;color:#374151;}
.entry h6{font-size:1.3rem;margin:14px 0 2rem;color:#6b7280;}
.entry .content p{font-size:1.2rem;margin:0 0 1.5rem;line-height:2.5rem;}
.entry .content figure{margin-bottom:2rem;}
.entry .content blockquote,.wp-block-quote{position:relative;margin:16px 0;padding:14px 16px 14px 44px;background:#f9fafb;border:1px solid #e5e7eb;border-left:4px solid #9ca3af;border-radius:10px;color:#111827;}
.entry .content blockquote::before,.wp-block-quote::before{content:"“";position:absolute;left:12px;top:8px;font-size:34px;line-height:1;color:#9ca3af;}
.entry .content blockquote::after,.wp-block-quote::after{content:"”";margin-left:2px;color:#9ca3af;}
.entry .content blockquote p,.wp-block-quote p{font-size:1.2rem;margin:0 0 1.5rem;line-height:1.1rem;}
.entry .content blockquote p:last-child,.wp-block-quote p:last-child{margin-bottom:0;}
.entry .content blockquote a,.wp-block-quote a{color:#b91c1c;background:#fee2e2;padding:1px 4px;border-radius:4px;text-decoration:underline;word-break:break-all;overflow-wrap:anywhere;}
.entry .content blockquote a:hover,.wp-block-quote a:hover{background:#fecaca;color:#7f1d1d;text-decoration:underline;}
/* =========================================================
   Article TOC (.toc) - unchanged
   ========================================================= */ .toc{border:1px solid #e5e5e5;padding:16px;margin:20px 0;border-radius:10px;background:#fff;}
.toc-title{font-weight:700;margin-bottom:10px;}
.toc-list,.toc-sub{margin:0;padding-left:18px;}
.toc-item{margin:6px 0;}
.toc-sub{margin-top:6px;}
/* =========================================================
   Home category blocks
   ========================================================= */ .home-category-block{margin:24px 0 40px;}
.home-category-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px;}
.home-category-title{margin:0;font-size:1.2rem;}
.home-category-more-link{font-size:.95rem;}
.home-post-cards{display:grid;gap:12px;}
.home-post-card{position:relative;border:1px solid rgba(0,0,0,.08);border-radius:12px;overflow:hidden;background:#fff;}
.home-post-card-link{position:absolute;inset:0;z-index:2;}
.home-post-card-inner{display:flex;gap:12px;padding:14px;align-items:stretch;position:relative;z-index:1;}
.home-post-card-left{flex:1 1 auto;min-width:0;}
.home-post-title{margin:0 0 8px;font-size:1.05rem;line-height:1.35;}
.home-post-meta{display:grid;gap:8px;font-size:.92rem;opacity:.9;}
.home-post-tags{display:flex;flex-wrap:wrap;gap:6px;}
.home-post-tag{position:relative;z-index:3;text-decoration:none;font-size:.9rem;}
.home-post-tag:hover{text-decoration:underline;}
.home-post-card-right{flex:0 0 220px;max-width:220px;}
.home-post-thumb img{display:block;width:100%;height:140px;object-fit:cover;border-radius:10px;}
.home-post-excerpt{font-size:.95rem;line-height:1.5;opacity:.9;height:140px;overflow:hidden;}
@media(max-width:700px){
.home-post-card-inner{flex-direction:column;}
.home-post-card-right{flex-basis:auto;max-width:none;}
.home-post-thumb img,.home-post-excerpt{height:auto;}
}
/* =========================================================
   Sidebar: widget lists reset (lightweight)
   ========================================================= */ .sidebar .widget ul{list-style:none;margin:0;padding:0;}
.sidebar .widget li{margin:0;padding:0;}
/* =========================================================
   Sidebar: Categories
   - default: dark bg + white text
   - states: invert (white bg + dark text)
   - remove 4-side borders & radius
   - children indent by 1 char
   ========================================================= */ .widget-categories .widget-list-categories a{display:block;padding:10px 10px;margin:0;border:none;/* remove 4-side border */ border-radius:0;/* remove radius */ color:#fff;background:#b91c1c;text-decoration:none;}
/* separator line (optional, helps readability without "4-side border") */ .widget-categories .widget-list-categories li+li>a{border-top:1px solid rgba(255,255,255,.18);}
.widget-categories .widget-list-categories a:hover,.widget-categories .widget-list-categories a:focus-visible,.widget-categories .widget-list-categories a:active{background:#fff;color:#b91c1c;text-decoration:none;}
.widget-categories .current-cat>a,.widget-categories .current-cat-parent>a{background:#b91c1c;color:#fff;}
/* 1-char like indent */ .widget-categories .children a{padding-left:1.6em;}
/* =========================================================
   Sidebar: TOC(Page list)
   - border: bottom only
   - no radius
   - parent/child background boundary
   - children indent
   ========================================================= */ .widget-toc .widget-list-toc a{display:block;padding:10px 10px;margin:0;border:none;border-bottom:1px solid rgba(0,0,0,.10);/* bottom only */ border-radius:0;color:var(--text);background:#fff;text-decoration:none;}
.widget-toc .widget-list-toc>li>a{background:#fff1f2;}
.widget-toc .widget-list-toc .children a{background:#fff7f7;padding-left:1.6em;}
.widget-toc .widget-list-toc a:hover,.widget-toc .widget-list-toc a:focus-visible,.widget-toc .widget-list-toc a:active{background:#ffe4e6;text-decoration:none;}
.widget-toc .current_page_item>a,.widget-toc .current_page_parent>a{background:#ffe4e6;}