/* 記事（templates/kiji.html）用: bc-ui.css → bc-ds.css のうち、記事が使う class の規則だけ。scripts/build_kiji_core_css.py が作る（手で直さない）。 */
:root {
  --bc-domain-zeikin: #a34d26;
  --bc-domain-roumu: #286e9e;
  --bc-domain-kurashi: #8e528c;
  --bc-domain-tani: #387b65;
  --bc-domain-sugaku: #6263ac;
  --bc-domain-hizuke: #8b691c;
  --bc-domain-koyomi: #b04456;
  --bc-domain-excel: #387e39;
  --bc-bg: #fff;
  --bc-surface: #f6f9fa;
  --bc-border: #d5dde1;
  --bc-text: #222;
  --bc-muted: #555;
  --bc-faint: #666;
  --bc-source-text: #444;
  --bc-brand: #176b87;
  --bc-brand-strong: #10516a;
  --bc-sun: #c62828;
  --bc-sat: #1565c0;
  --bc-good-bg: #edf5ee;
  --bc-good-text: #285b38;
  --bc-warn-bg: #5f6368;
  --bc-warn-text: #fff;
  --bc-caution-bg: #fff4e0;
  --bc-caution-text: #5d3a00;
  --bc-caution-line: #b26a00;
  --bc-info-bg: #edf4f8;
  --bc-info-text: #24536b;
  --bc-current-bg: #e7f2f5;
  --bc-current-text: #14566d;
  --bc-font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --bc-text-body: 1rem;
  --bc-text-small: .9rem;
  --bc-text-note: .85rem;
  --bc-text-source: .9375rem;
  --bc-text-h1: 1.5rem;
  --bc-text-h1-mobile: 1.3rem;
  --bc-text-h2: 1.25rem;
  --bc-text-h3: 1.1rem;
  --bc-leading: 1.7;
  --bc-leading-heading: 1.4;
  --bc-leading-table: 1.5;
  --bc-space-1: .25rem;
  --bc-space-2: .5rem;
  --bc-space-3: .75rem;
  --bc-space-4: 1rem;
  --bc-space-5: 1.5rem;
  --bc-space-6: 2rem;
  --bc-space-7: 3rem;
  --bc-radius-input: .25rem;
  --bc-radius-card: .5rem;
  --bc-radius-chip: 62.4375rem;
  --bc-target: 2.75rem;
  --bc-line: .0625rem;
  --bc-focus: .125rem;
}
.bc {
  color: var(--bc-text);
  background: var(--bc-bg);
  font: var(--bc-text-body)/var(--bc-leading) var(--bc-font);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: left;
}
.bc *, .bc *::before, .bc *::after { box-sizing: border-box; }
.bc h1, .bc h2, .bc h3 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bc-text);
  font-weight: 700;
  line-height: var(--bc-leading-heading);
  letter-spacing: .025rem;
}
.bc h1 { font-size: var(--bc-text-h1); }
.bc h2 { font-size: var(--bc-text-h2); }
.bc h3 { font-size: var(--bc-text-h3); }
.bc p, .bc ul, .bc ol, .bc dl { margin: 0; }
.bc p + p { margin-top: var(--bc-space-2); }
.bc small { font-size: var(--bc-text-note); }
.bc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--bc-target);
  max-width: 100%;
  color: var(--bc-brand);
  text-decoration: underline;
  text-underline-offset: .2rem;
  text-decoration-thickness: var(--bc-line);
}
.bc a:hover { text-decoration-thickness: var(--bc-focus); }
.bc :focus-visible {
  outline: var(--bc-focus) solid var(--bc-brand);
  outline-offset: var(--bc-space-1);
}
.bc code {
  font-size: var(--bc-text-note);
  color: var(--bc-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: normal;
}
.bc .bc-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: var(--bc-line) solid var(--bc-border);
  border-radius: var(--bc-radius-card);
  overscroll-behavior-inline: contain;
}
.bc .bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bc-space-2);
  min-height: var(--bc-target);
  margin: 0;
  padding: var(--bc-space-2) var(--bc-space-4);
  border: var(--bc-line) solid var(--bc-brand);
  border-radius: var(--bc-radius-input);
  background: var(--bc-bg);
  color: var(--bc-brand);
  font: 600 var(--bc-text-body)/var(--bc-leading-table) var(--bc-font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.bc .bc-btn:hover { background: var(--bc-current-bg); text-decoration: underline; text-underline-offset: .2rem; }
.bc .bc-btn:active { background: var(--bc-info-bg); }
.bc .bc-btn--primary { background: var(--bc-brand); color: var(--bc-bg); }
.bc .bc-btn--primary:hover, .bc .bc-btn--primary:active { background: var(--bc-brand-strong); }
.bc .bc-btn:disabled, .bc .bc-btn[aria-disabled="true"] {
  background: var(--bc-surface);
  border-color: var(--bc-border);
  color: var(--bc-faint);
  cursor: not-allowed;
  text-decoration: none;
}
.bc .bc-source, .bc .data-source-note { margin: .375rem 0 .625rem; font-size: var(--bc-text-source); color: var(--bc-source-text); line-height: var(--bc-leading); }
main.bc:not(.ds){--bc-section-gap:4rem}
@media (max-width:600px){main.bc:not(.ds){--bc-section-gap:3rem}}
main.bc:not(.ds)>:not(.bc-section,script,style)+:is(section.bc-stack,.ds-embed):not(.bc-section):has(>h2,>.ds-section>h2){margin-top:var(--bc-section-gap)}
main.bc:not(.ds)>:is(.bc-table-wrap,.bc-card,.bc-answer,figure)+h2{margin-top:var(--bc-section-gap)}
@media (max-width: 37.5rem){.bc h1, .bc .bc-answer__value, .bc .bc-type-sample--h1 { font-size: var(--bc-text-h1-mobile); }}
@media print{.bc-design-page .bc *:not(h1):not(.bc-answer):not(.bc-answer *):not(.bc-table-wrap):not(.bc-table-wrap *):not(:has(.bc-answer, .bc-table-wrap)) { display: none !important; }.bc .bc-table-wrap { overflow: visible; margin: 0 0 var(--bc-space-4); border: 0; border-radius: 0; box-shadow: none; }}
:root { --bc-wide-max: 1280px; }
@media screen and (min-width: 48.0625rem){body.header-wide .v2-header { box-sizing: border-box; width: min(calc(100vw - 48px), var(--bc-wide-max)); max-width: none;
    margin-left: calc(50% - min(calc(50vw - 24px), calc(var(--bc-wide-max) / 2))); margin-right: 0; }body.header-wide .v2-site-in { max-width: calc(var(--bc-wide-max) + 48px); }}
.bc.ds{--ds-space-tight:.5rem;--ds-space-item:1rem;--ds-space-group:2rem;--ds-space-section:4rem;--ds-text-body:1.0625rem;--ds-text-small:.9375rem;--ds-text-note:.85rem;--ds-text-h1:1.75rem;--ds-text-h2:1.375rem;--ds-text-h3:1.125rem;--ds-text-answer:1.625rem;--ds-leading-body:1.85;--ds-leading-heading:1.45;--ds-leading-small:1.7;--ds-col-main:720px;--ds-col-side:280px;--ds-col-gap:40px;--ds-wrap:1040px;font-size:var(--ds-text-body);line-height:var(--ds-leading-body)}
:root:has(main.bc.ds){color-scheme:only light;background:var(--bc-bg)}
body:has(main.bc.ds){background:var(--bc-bg);color:var(--bc-text)}
.bc.ds h1{font-size:var(--ds-text-h1);line-height:var(--ds-leading-heading)}
.bc.ds h2{font-size:var(--ds-text-h2);line-height:var(--ds-leading-heading)}
.bc.ds h3{font-size:var(--ds-text-h3);line-height:var(--ds-leading-heading)}
.bc.ds h1,.bc.ds h2,.bc.ds h3,.bc.ds .ds-answer__value,.bc.ds .ds-answer__label{word-break:auto-phrase}
.bc.ds .ds-section{margin-top:var(--ds-space-section);scroll-margin-top:var(--bc-space-6)}
.bc.ds .ds-section>h2{margin-bottom:var(--ds-space-item)}
.bc.ds .ds-section h3{margin:var(--ds-space-group) 0 var(--ds-space-item)}
.bc.ds .ds-section:not(.ds-steps)>*+*:not(h2):not(h3){margin-top:var(--ds-space-item)}
.bc.ds .ds-section p+p{margin-top:var(--ds-space-item)}
.bc.ds .ds-meta,.bc.ds .ds-side,.bc.ds .ds-table__howto,.bc.ds .ds-figure figcaption,.bc.ds .ds-answer__sub,.bc.ds .ds-next__desc{font-size:var(--ds-text-small);line-height:var(--ds-leading-small);color:var(--bc-muted)}
.bc.ds .ds-answer{padding:var(--bc-space-5);border:var(--bc-line) solid var(--bc-border);border-left:4px solid var(--bc-brand);border-radius:var(--bc-radius-card);background:var(--bc-surface)}
.bc.ds .ds-answer__label{font-size:var(--ds-text-small);color:var(--bc-muted);margin:0 0 var(--bc-space-2)}
.bc.ds .ds-answer__value{font-size:var(--ds-text-answer);line-height:var(--ds-leading-heading);font-weight:700;color:var(--bc-text);margin:0}
.bc.ds .ds-answer__sub{margin:var(--bc-space-3) 0 0}
.bc.ds .ds-answer__facts{display:flex;flex-wrap:wrap;gap:var(--bc-space-3);padding-top:var(--bc-space-3);margin-top:var(--bc-space-3);border-top:var(--bc-line) solid var(--bc-border)}
.bc.ds .ds-answer__facts div{display:flex;gap:var(--bc-space-2)}
.bc.ds .ds-answer__facts dt{color:var(--bc-muted);flex-shrink:0;white-space:nowrap}
.bc.ds .ds-answer__facts dd{margin:0;min-width:0;font-weight:700;color:var(--bc-text)}
.bc.ds .ds-answer__facts div:has(> dd > .ds-answer__name){flex-wrap:wrap;row-gap:0}
.bc.ds .ds-answer__facts dd:has(> .ds-answer__name){min-width:fit-content}
.bc.ds .ds-answer__facts div:has(> dd > .ds-answer__name) > dt{flex-shrink:1;min-width:0;white-space:normal}
.bc.ds .ds-nowrap{white-space:nowrap}
.bc.ds p a,.bc.ds .ds-cite a,.bc.ds .ds-source a,.bc.ds dd a{display:inline;min-height:0}
.bc.ds .ds-actions{display:flex;flex-wrap:wrap;gap:var(--ds-space-tight)}
.bc.ds .ds-actions .bc-btn{text-decoration:none}
.bc.ds .ds-side__title,.bc.ds .ds-next__title{font-size:var(--ds-text-small);line-height:1.5;font-weight:700;color:var(--bc-text);margin:0 0 var(--bc-space-2)}
.bc.ds .ds-toc ul,.bc.ds .ds-related ul{list-style:none;padding:0;margin:0}
.bc.ds .ds-toc li,.bc.ds .ds-related li{border-bottom:var(--bc-line) solid var(--bc-border)}
.bc.ds .ds-toc a,.bc.ds .ds-related a{display:flex;align-items:center;min-height:var(--bc-target);text-decoration:none;line-height:1.5}
.bc.ds .ds-toc a:hover,.bc.ds .ds-related a:hover{text-decoration:underline}
.bc.ds .ds-season a{justify-content:space-between;gap:var(--bc-space-3)}
.bc.ds .ds-kiji-side>.ds-season{margin:0 0 var(--ds-space-section)}
.bc.ds .ds-season__until{flex:none;font-size:var(--ds-text-small);line-height:var(--ds-leading-small);color:var(--bc-muted);white-space:nowrap}
.bc.ds .ds-related a.ds-related__media{gap:var(--bc-space-3);padding:var(--bc-space-2) 0}
.bc.ds .ds-related__media img{flex:none;display:block;width:4.5rem;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--bc-radius-card);background:var(--bc-surface)}
.bc.ds .ds-related__media span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-width:0}
.bc.ds .ds-related__desc{margin:calc(-1 * var(--ds-space-tight)) 0 0;padding-bottom:var(--ds-space-tight);font-size:var(--ds-text-small);line-height:var(--ds-leading-small);color:var(--bc-muted)}
.bc.ds .ds-next{margin-top:var(--ds-space-section)}
.bc.ds .ds-next ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:var(--bc-space-3);list-style:none;margin:0;padding:0}
.bc.ds .ds-next li{min-width:0}
.bc.ds .ds-next a{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:var(--bc-space-1);width:100%;height:100%;min-height:var(--bc-target);padding:var(--bc-space-3) var(--bc-space-4);border:var(--bc-line) solid var(--bc-border);border-radius:var(--bc-radius-card);text-decoration:none}
.bc.ds .ds-next a:hover{border-color:var(--bc-brand);background:var(--bc-surface)}
.bc.ds .ds-next__name{font-weight:700}
.bc.ds .ds-table .bc-table-wrap{margin:0;max-width:100%;overflow-x:auto}
.bc.ds .ds-table--folded .bc-table-wrap{position:relative;overflow-y:hidden}
.bc.ds .ds-table--folded tr.ds-fold-peek[hidden]{display:table-row!important}
.bc.ds .ds-table--folded .bc-table-wrap::after{content:"";position:sticky;display:block;bottom:0;height:var(--ds-fold-half,2rem);margin-top:calc(-1 * var(--ds-fold-half,2rem));background:linear-gradient(to bottom,transparent,var(--bc-bg));pointer-events:none}
.bc.ds .ds-table--folded .ds-table__unfold{position:relative;z-index:1;margin:calc(-1 * var(--bc-target) / 2) auto 0}
.bc.ds .ds-table:not(.ds-table--folded) .ds-table__unfold{margin-left:auto;margin-right:auto}
.bc.ds .ds-table .ds-nowrap{white-space:nowrap}
.bc.ds .ds-table td ul{margin:var(--ds-space-tight) 0 0;padding-left:1.2em}
.bc.ds .ds-table td li{margin:0}
.bc.ds .ds-tool input:where(:not([type=radio],[type=checkbox])),.bc.ds .ds-tool select{width:100%;max-width:none;min-height:var(--bc-target)}
.bc.ds .ds-tool input:where([type=radio],[type=checkbox]){width:1.25rem;height:1.25rem;min-height:0;flex:0 0 auto;margin:0;accent-color:var(--bc-brand)}
.bc.ds .ds-tool label:has(>input:where([type=radio],[type=checkbox])){display:inline-flex;flex-direction:row;align-items:center;gap:var(--bc-space-2);min-height:var(--bc-target)}
.bc.ds .ds-cite{font-size:var(--ds-text-note);line-height:1.7;color:var(--bc-source-text)}
.bc.ds .ds-section>.ds-cite{margin-top:var(--ds-space-item)}
.bc.ds #ohm-table{display:grid;gap:var(--bc-space-2);margin:var(--ds-space-item) 0 0}
.bc.ds #ohm-table>div{display:grid;grid-template-columns:minmax(0,10rem) minmax(0,1fr);gap:var(--bc-space-2);align-items:start}
.bc.ds #ohm-table dt,.bc.ds #ohm-table dd{margin:0;text-align:left}
.bc.ds #ohm-table small{display:block;font-size:var(--ds-text-note);color:var(--bc-muted);line-height:1.7}
@media (min-width:1100px){.bc.ds .ds-side__ad{min-height:600px}}
@media (min-width:1100px){.ds-ad-narrow{display:none}}
@media (min-width:1100px) and (min-height:680px) and (hover:hover){.bc.ds :is(.ds-side,.ds-kiji-side)>.ds-sticky{position:sticky;top:16px}}
@media (max-width:600px){.bc.ds{--ds-space-group:1.5rem;--ds-space-section:3rem;--ds-text-h1:1.5rem;--ds-text-h2:1.25rem;--ds-text-answer:1.375rem}.bc.ds .ds-answer{padding:var(--bc-space-4)}.bc.ds .ds-actions{flex-direction:column}.bc.ds .ds-actions .bc-btn{width:100%;box-sizing:border-box;text-align:center}}
.bc.ds{--ds-tl-bg:var(--bc-bg);--ds-tl-surface:var(--bc-surface);--ds-tl-line:var(--bc-border);--ds-tl-ink:var(--bc-text);--ds-tl-muted:var(--bc-muted);--ds-tl-accent:var(--bc-brand-strong);--ds-tl-soft:var(--bc-brand)}
.bc.ds .ds-actions__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bc.ds [hidden]{display:none!important}
.bc.ds .ds-table tr:has(.ds-rowpick)>*{padding-top:calc(var(--bc-space-3) / 2);padding-bottom:calc(var(--bc-space-3) / 2)}
.bc.ds .ds-table tr:has(.ds-rowpick)>th{width:1%;padding-right:var(--bc-space-1)}
.bc.ds .ds-more>summary{display:flex;align-items:center;gap:var(--ds-space-tight);min-height:var(--bc-target);cursor:pointer;font-weight:700;list-style:none}
.bc.ds .ds-more>summary::-webkit-details-marker{display:none}
.bc.ds .ds-more>summary::before{content:"▶";display:inline-block;font-size:.75em;color:var(--bc-muted);transition:transform .15s}
.bc.ds .ds-more[open]>summary::before{transform:rotate(90deg)}
.bc.ds .ds-more>summary+*{margin-top:var(--ds-space-tight)}
@media (max-width:600px){.bc.ds .ds-table .bc-table-wrap:has(>.ds-cards){border:0;border-radius:0;overflow:visible}}
@media (max-width:374px){.bc.ds #kime p:has(>strong:first-child){overflow-x:clip}}
.bc.ds .ds-table tr[aria-current]{font-weight:700;background:var(--bc-current-bg)}
.bc.ds .ds-table__unfold{display:flex;width:100%;margin-top:var(--ds-space-item)}
.bc.ds .bc-table-wrap>.ds-table__unfold{width:calc(100% - 2 * var(--ds-space-item));margin:var(--ds-space-item)}
@media (min-width:37.5rem){.bc.ds .ds-table__unfold,.bc.ds .bc-table-wrap>.ds-table__unfold{width:auto;min-width:16rem}}
.content-wrap:has(>main.bc.ds)>.ad-slot-middle{margin-bottom:var(--bc-space-5)}
@media print{.bc.ds .ds-table .bc-table-wrap{max-height:none!important;overflow:visible}.bc.ds .ds-table tr[data-fold][hidden]{display:table-row!important}.bc.ds .ds-table .ds-table__unfold{display:none!important}.bc.ds #eto-table tr[data-fold][hidden]{display:table-row!important}.bc.ds .ds-table:has(#eto-table) .ds-table__unfold{display:none!important}.bc.ds ins.adsbygoogle,.bc.ds .ds-side__ad,.bc.ds .pc-ad-after-tool,.bc.ds .sp-ad-after-tool,.bc.ds .doc-sc-ad,.bc.ds .ds-actions,.bc.ds .ds-toc,.bc.ds .ds-side{display:none!important}body:has(main.bc.ds) :is(.v2-site,.v2-context){display:none!important}}
@media print{html[data-print-only] body *{visibility:hidden}html[data-print-only] .is-print-target,html[data-print-only] .is-print-target *{visibility:visible}html[data-print-only] .is-print-target{position:absolute;top:0;left:0;width:100%}html[data-print-only] .is-print-target .ds-actions{display:none}}
.bc.ds .ds-choose{padding:var(--bc-space-4);border:var(--bc-line) solid var(--bc-border);border-left:4px solid var(--bc-brand);border-radius:var(--bc-radius-card);background:var(--bc-surface)}
.bc.ds .ds-choose__axis{margin:0;padding:0;border:0;min-width:0}
.bc.ds .ds-choose__axis legend{padding:0;margin:0 0 var(--bc-space-1);font-size:var(--ds-text-small);color:var(--bc-muted);line-height:var(--ds-leading-small)}
.bc.ds .ds-choose__img{display:block;width:100%;height:auto;border:var(--bc-line) solid var(--bc-border);background:#fff}
.bc.ds .ds-choose__form{margin:0;font-weight:700;line-height:var(--ds-leading-heading)}
.bc.ds .ds-choose__spec{margin:var(--bc-space-1) 0 0;font-size:var(--ds-text-small);color:var(--bc-muted);line-height:var(--ds-leading-small)}
.bc.ds .ds-choose__big{grid-column:1/-1}
.bc.ds .ds-choose__bigimg{display:block;width:100%;max-width:40rem;height:auto;border:var(--bc-line) solid var(--bc-border);background:#fff}
.bc.ds .ds-choose__img{cursor:zoom-in}
.bc.ds .ds-choose__note{margin:var(--bc-space-1) 0 0;font-size:var(--ds-text-small);line-height:var(--ds-leading-small)}
@media (min-width:37.5rem){.bc.ds .ds-choose__axis{display:grid;grid-template-columns:7rem minmax(0,1fr);align-items:center}.bc.ds .ds-choose__axis legend{float:left;margin:0}}
@keyframes ds-timer-flash{to{visibility:hidden}}
.bc.ds dl#ans-rows dd{font-weight:400}
@keyframes ds-cd-flash{to{visibility:hidden}}
@media print{.content-wrap>main.ds:has(.ds-santa__tool){display:block!important}}
.bc.ds:has(#jz-figure) #ans-rows>div>dd{align-self:start;overflow-wrap:normal}
.bc.ds:has(#jz-figure) #ans-sub{max-width:100%;width:auto}
.bc.ds{--ds-board-bg:#0f2f3a;--ds-board-ink:#fff;--ds-board-sub:#dfeff4;--ds-board-line:rgba(255,255,255,.6);--ds-board-soft:rgba(255,255,255,.06);--ds-board-start:#00796b;--ds-board-pause:#f9a825;--ds-board-stop:#c62828;--ds-board-note:#ffe082;--ds-board-accent:#7fd3e8;--ds-board-best:#a5d6a7;--ds-board-worst:#ef9a9a;--ds-board-mono:"SF Mono","Roboto Mono",Menlo,Consolas,monospace}
.bc.ds .ds-tool--board :where(p,li,span,label,legend,summary,caption,th,td){color:inherit}
.bc.ds #kt-sample{margin:calc(var(--bc-space-2) * -1) 0 0;font-size:.8125rem}
.bc.ds #my-facts>div>dd{align-self:start}
