/* =====================================================================
   style.css — SNS文字数カウント ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（集計は sg-result）。
   ===================================================================== */

/* クリアボタン + 保存チェックの並び */
.sg-inline-check {
  margin-left: 14px;
}
.sg-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sg-fg, #222);
  background: var(--sg-surface, #fff);
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 8px;
  cursor: pointer;
}
.sg-btn-secondary:hover {
  border-color: var(--sg-muted, #999);
}

/* 集計サマリ（空白除く/改行/ハッシュタグ/URL） */
.sg-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 14px;
  margin-top: var(--sg-space-3, 12px);
  border-top: 1px solid var(--sg-border, #e5e7eb);
  padding-top: var(--sg-space-3, 12px);
}
.sg-summary__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sg-summary__key {
  font-size: 0.78rem;
  color: var(--sg-muted, #777);
}
.sg-summary__val {
  font-size: 1.05rem;
  font-weight: 600;
}

/* SNS別リスト */
.sg-limits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sg-limit {
  padding: 4px 0;
}
.sg-limit__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sg-limit__name {
  font-weight: 600;
}
.sg-limit__count {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  color: var(--sg-muted, #555);
  white-space: nowrap;
}

/* プログレスバー */
.sg-limit__bar {
  position: relative;
  height: 8px;
  margin: 6px 0 4px;
  background: var(--sg-border, #e5e7eb);
  border-radius: 999px;
  overflow: hidden;
}
.sg-limit__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: #2f9e44; /* ok: 緑 */
  transition: width 0.12s ease-out;
}
.sg-limit.is-warn .sg-limit__fill {
  background: #f08c00; /* warn: 橙 */
}
.sg-limit.is-over .sg-limit__fill {
  background: #e03131; /* over: 赤 */
}

.sg-limit__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.sg-limit__remain {
  font-weight: 600;
  color: var(--sg-muted, #555);
  white-space: nowrap;
}
.sg-limit.is-warn .sg-limit__remain {
  color: #e8590c;
}
.sg-limit.is-over .sg-limit__remain {
  color: #e03131;
}
.sg-limit__note {
  color: var(--sg-muted, #888);
}

/* 数え方の補足リスト */
.sg-notelist {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.8;
}
.sg-notelist li {
  margin: 0.35em 0;
}
