/* 親の暮らしサポート帖：日本語サイドバー v1.5.3。既存トップ・記事のスタイルには触れない。 */
:where(.site-sidebar,.sidebar-stack) {
  --ogsd-ink: #443A30;
  --ogsd-green: #708B65;
  --ogsd-accent: #B94B30;
  --ogsd-border: #E8DED2;
  --ogsd-mist: #FFF9F1;
  --ogsd-shadow: 0 10px 28px rgba(80,59,41,.055);
  gap: 16px;
}
:where(.site-sidebar,.sidebar-stack) > :is(.og-widget, .profile-card, .sidebar-recent, .sidebar-cta, .sidebar-disclosure) {
  min-width: 0;
  background: #fffdfa;
  border: 1px solid var(--ogsd-border);
  border-radius: 18px;
  box-shadow: var(--ogsd-shadow);
  overflow: hidden;
}
:where(.site-sidebar,.sidebar-stack) > .og-widget {
  padding: 20px !important;
  transition: box-shadow .24s ease, border-color .24s ease;
}
:where(.site-sidebar,.sidebar-stack) > .og-widget:hover {
  border-color: #dccbbb;
  box-shadow: 0 12px 28px rgba(80,59,41,.09);
}
:where(.site-sidebar,.sidebar-stack) :is(.og-widget-title,.widget-title,.wp-block-heading,.profile-title) {
  color: var(--ogsd-ink);
  font-family: "Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .045em;
  font-weight: 750;
}
.ogsd-panel {min-width:0;}
.ogsd-head {display:flex;align-items:center;gap:10px;padding:0 0 14px;margin-bottom:6px;border-bottom:1px solid #eee5dc;}
.ogsd-icon {width:34px;height:34px;display:inline-grid;place-items:center;flex:none;color:var(--ogsd-green);background:#EEF3EA;border-radius:11px;}
.ogsd-heading {margin:0;font:750 16px/1.45 "Noto Sans JP","Hiragino Sans",sans-serif;color:var(--ogsd-ink);letter-spacing:.05em;}
.ogsd-post-list {display:grid;gap:0;}
.ogsd-post {display:grid;grid-template-columns:70px minmax(0,1fr) 8px;align-items:center;gap:11px;min-width:0;padding:13px 0;border-bottom:1px solid #f0e9e2;color:var(--ogsd-ink);transition:background .2s ease;}
.ogsd-post:last-child {border-bottom:0;}
.ogsd-thumb {display:block;width:70px;height:66px;object-fit:cover;border-radius:10px;background:#F0ECE5;}
.ogsd-thumb-fallback {display:grid;place-items:center;color:#68815f;font-weight:700;font-size:12px;background:linear-gradient(135deg,#e8f0e5,#f8ede2);}
.ogsd-post-copy {display:block;min-width:0;}
.ogsd-post-name {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:13px;font-weight:700;line-height:1.58;letter-spacing:0.01em;overflow-wrap:anywhere;}
.ogsd-post-meta {display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;margin-top:6px;color:#918476;font-size:10px;line-height:1.4;}
.ogsd-post-meta span {color:#6B845F;background:#EDF4E9;padding:2px 7px;border-radius:5px;}
.ogsd-post-arrow {color:#BBA997;font-size:20px;font-weight:400;transition:transform .2s ease,color .2s ease;}
.ogsd-post:hover .ogsd-post-name,.ogsd-post:focus-visible .ogsd-post-name {color:var(--ogsd-accent);}
.ogsd-post:hover .ogsd-post-arrow {color:var(--ogsd-accent);transform:translateX(2px);}
.ogsd-foot-link {display:flex;align-items:center;justify-content:center;gap:12px;margin-top:13px;border:1px solid #DBE3D6;border-radius:999px;min-height:36px;color:#5F7956;font-size:12px;font-weight:750;letter-spacing:.03em;transition:background .2s ease,color .2s ease;}
.ogsd-foot-link:hover {background:#708B65;color:#fff;}
.ogsd-category-list,.ogsd-archive-list,.ogsd-comment-list {list-style:none!important;padding:0!important;margin:11px 0 0!important;}
.ogsd-category-list li,.ogsd-archive-list li,.ogsd-comment-list li {list-style:none!important;padding:0!important;margin:0!important;}
.ogsd-category {display:flex;align-items:center;gap:8px;min-height:38px;padding:7px 9px;border-radius:10px;color:#51483E;font-size:12px;line-height:1.55;text-decoration:none!important;transition:background .18s ease,color .18s ease;}
.ogsd-cat-name {flex:1;min-width:0;overflow-wrap:anywhere;font-weight:650;}
.ogsd-cat-count {min-width:25px;padding:2px 6px;text-align:center;background:#F3F0EA;color:#8B7C6B;border-radius:999px;font-size:10px;font-variant-numeric:tabular-nums;}
.ogsd-cat-arrow {color:#A69A8F;font-size:18px;line-height:1;}
.ogsd-category:hover,.ogsd-category.is-current {background:#F1F4ED;color:#56734C;}
.ogsd-category:hover .ogsd-cat-count {background:#fff;color:#617956;}
.ogsd-archive-list li {margin-top:2px!important;}
.ogsd-archive-count{margin-left:auto;color:#8B7C6B;background:#F3F0EA;padding:2px 7px;font-size:10px;border-radius:999px;}
.ogsd-archive-list li a {display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:37px;padding:5px 8px;border-radius:10px;color:#62564B;font-size:12px;text-decoration:none!important;transition:background .2s ease;}
.ogsd-archive-list li a::before {content:"";width:5px;height:5px;background:#A5B8A0;border-radius:50%;margin-right:4px;flex:none;}
.ogsd-archive-list li a:hover {background:#F2F5EF;color:#5B7651;}
.ogsd-comment-list li + li {border-top:1px solid #EFE8E2;}
.ogsd-comment-list a {display:grid;gap:5px;padding:12px 3px;color:#51483E;font-size:12px;}
.ogsd-comment-quote {line-height:1.7;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;}
.ogsd-comment-name {font-size:11px;color:#8B7C6B;}
/* Gutenbergブロック/第三者ウィジェットを含むサイドバーの最低限の統一 */
:where(.site-sidebar,.sidebar-stack) .og-widget :is(.wp-block-latest-posts,.wp-block-categories-list,.wp-block-archives-list),
:where(.site-sidebar,.sidebar-stack) .widget_block ul {padding:0!important;margin:10px 0 0!important;list-style:none!important;}
:where(.site-sidebar,.sidebar-stack) .widget_block li,
:where(.site-sidebar,.sidebar-stack) .widget_recent_entries li,
:where(.site-sidebar,.sidebar-stack) .widget_categories li {padding:8px 0;border-bottom:1px solid #f0e9e2;font-size:12px;line-height:1.7;overflow-wrap:anywhere;list-style:none!important;}
:where(.site-sidebar,.sidebar-stack) .widget_block li:last-child {border-bottom:0;}
:where(.site-sidebar,.sidebar-stack) .widget_block a {color:#554c40;text-decoration:none;}
:where(.site-sidebar,.sidebar-stack) .widget_block a:hover {color:var(--ogsd-accent);}
:where(.site-sidebar,.sidebar-stack) a:focus-visible {outline:2px solid var(--ogsd-accent);outline-offset:3px;}
@media (max-width:1080px) {
  .ogsd-post {grid-template-columns:62px minmax(0,1fr) 7px;gap:9px;}
  .ogsd-thumb {width:62px;height:60px;}
}
@media (max-width:820px) {
  .site-sidebar .og-widget {padding:18px!important;}
  .ogsd-post {grid-template-columns:74px minmax(0,1fr) 9px;gap:13px;}
  .ogsd-thumb {width:74px;height:66px;}
  .ogsd-post-name {font-size:14px;}
  .ogsd-category-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;}
}
@media (max-width:380px) {
  .ogsd-category-list {grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce) {
  .ogsd-post,.ogsd-category,.ogsd-foot-link,.ogsd-post-arrow {transition:none!important;}
}

/* v1.5.3 search: legible, aligned, no tiny split buttons on narrow sidebars. */
:where(.site-sidebar,.sidebar-stack) .ogsd-search-form {
  display:flex; gap:8px; margin-top:13px; width:100%; min-width:0;
}
:where(.site-sidebar,.sidebar-stack) .ogsd-search-form input[type="search"] {
  box-sizing:border-box; display:block; flex:1 1 auto; min-width:0; width:100%;
  min-height:42px; margin:0; padding:9px 12px; border:1px solid #dfd7cc;
  background:#fff; color:#443A30; border-radius:10px; font-size:13px;
}
:where(.site-sidebar,.sidebar-stack) .ogsd-search-form input[type="search"]:focus-visible {
  outline:2px solid #B94B30; outline-offset:1px;
}
:where(.site-sidebar,.sidebar-stack) .ogsd-search-form button {
  flex:none; min-width:64px; min-height:42px; padding:9px 11px; margin:0;
  display:inline-flex; align-items:center; justify-content:center; gap:3px;
  background:#708B65; color:#fff; border:0; border-radius:10px;
  font-size:12px; font-weight:700; line-height:1.2; cursor:pointer;
  transition:background .2s ease,transform .2s ease;
}
:where(.site-sidebar,.sidebar-stack) .ogsd-search-form button:hover {background:#597550;transform:translateY(-1px);}
:where(.site-sidebar,.sidebar-stack) .ogsd-search-form button:focus-visible {outline:2px solid #B94B30;outline-offset:3px;}
/* Empty block wrappers cannot reserve layout height. */
:where(.site-sidebar,.sidebar-stack) .og-widget:empty {display:none!important;}
@media (max-width:380px) {
  :where(.site-sidebar,.sidebar-stack) .ogsd-search-form {flex-wrap:wrap;}
  :where(.site-sidebar,.sidebar-stack) .ogsd-search-form button {width:100%;}
}
