/* Source Box Tool - 記事末尾の出典・編集基準
   2枚のカード（出典＝開閉式／編集基準＝固定）を同じデザインでそろえる。
   フォントはサイトを継承、文字は12px。色は変数で上書きできる（例：.sbt-box{--sbt-accent:#d0577a;}） */
.sbt-box{
  --sbt-accent:#2a6f8f;
  --sbt-accent-soft:#eaf3f7;
  --sbt-ink:#2f3a42;
  --sbt-muted:#66737d;
  --sbt-rule:#dde4e9;
  --sbt-surface:#f6f9fa;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:2.5em 0 1.5em;
  font-size:12px;
  line-height:1.75;
  color:var(--sbt-ink);
}
.sbt-box p,
.sbt-box li,
.sbt-box a,
.sbt-box summary{font-size:inherit;}
.sbt-box p{margin:0;}

/* カード共通 */
.sbt-card{
  border:1px solid var(--sbt-rule);
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}

/* 見出し行（出典は押せる、編集基準は固定） */
.sbt-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:10px 14px;
  background:var(--sbt-surface);
  font-weight:700;
  list-style:none;
}
summary.sbt-head{cursor:pointer;}
.sbt-head::-webkit-details-marker{display:none;}
.sbt-head-title{flex:1;min-width:0;}
.sbt-head-meta{
  flex-shrink:0;
  font-weight:400;
  color:var(--sbt-muted);
  white-space:nowrap;
}
.sbt-head-sep{margin:0 .15em;}
.sbt-chevron{
  display:inline-flex;
  color:var(--sbt-muted);
  font-size:14px;
  transition:transform .2s ease;
}
.sbt-sources[open] .sbt-chevron{transform:rotate(180deg);}
summary.sbt-head:hover .sbt-head-title{color:var(--sbt-accent);}
summary.sbt-head:focus-visible{outline:2px solid var(--sbt-accent);outline-offset:-2px;}

/* アイコン */
.sbt-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:24px;height:24px;
  border-radius:50%;
  background:var(--sbt-accent-soft);
  color:var(--sbt-accent);
  font-size:14px;
}
.sbt-icon svg{display:block;}
.sbt-icon-sm{
  width:auto;height:auto;
  margin-right:5px;
  background:none;
  font-size:13px;
}

/* 中身 */
.sbt-body{
  padding:12px 14px 14px;
  border-top:1px solid var(--sbt-rule);
}
.sbt-date-all{
  display:flex;
  align-items:center;
  padding:6px 10px;
  border-radius:6px;
  background:var(--sbt-surface);
  color:var(--sbt-muted);
}
.sbt-group + .sbt-group,
.sbt-date-all + .sbt-group{margin-top:12px;}
.sbt-group-label{
  display:flex;
  align-items:center;
  font-weight:700;
  color:var(--sbt-muted);
}
.sbt-box .sbt-list{
  margin:4px 0 0;
  padding:0;
  list-style:none;
}
.sbt-box .sbt-list li{
  position:relative;
  margin:3px 0;
  padding:0 0 0 18px;
  overflow-wrap:anywhere;
}
.sbt-box .sbt-list li::before{
  content:"";
  position:absolute;
  left:5px;top:.8em;
  width:4px;height:4px;
  border-radius:50%;
  background:var(--sbt-rule);
}
.sbt-box .sbt-list li::marker{content:none;}
.sbt-link{
  color:var(--sbt-accent);
  text-decoration:underline;
  text-decoration-color:rgba(42,111,143,.35);
  text-underline-offset:.25em;
}
.sbt-link:hover{text-decoration-color:currentColor;}
.sbt-ext{
  display:inline-flex;
  vertical-align:-.1em;
  margin-left:3px;
  font-size:11px;
  opacity:.7;
}
.sbt-date{color:var(--sbt-muted);white-space:nowrap;}
.sbt-sr{
  position:absolute;
  width:1px;height:1px;
  margin:-1px;padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* 編集基準 */
.sbt-body-text{color:var(--sbt-muted);}
.sbt-editorial-text + .sbt-editorial-text{margin-top:6px;}
.sbt-editorial a{
  color:var(--sbt-accent);
  text-decoration:underline;
  text-decoration-color:rgba(42,111,143,.35);
  text-underline-offset:.25em;
}

/* スマホ：見出しが折り返さないよう、見出し行の確認日は省く（開くと中に表示される） */
@media (max-width:480px){
  .sbt-head-date{display:none;}
}

@media (prefers-reduced-motion:reduce){
  .sbt-chevron{transition:none;}
}
