/* vmul 計算過程・答えの赤色表示 */
.vertical-arithmetic .ans {
  color: red;
}
/* デバッグモード用のスタイル */
.result.debug-mode {
  border: 2px dashed #3b82f6;
  background: white;
}
/* タブコンテンツの表示制御 */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
/* チェックボックスカスタムスタイル（shadcn/ui風） */
.checkbox-label {
  background-color: white;
}
input[type="checkbox"]:checked + .checkbox-label {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
input[type="checkbox"]:checked + .checkbox-label:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}
/* チェックマークアイコン */
input[type="checkbox"]:checked + .checkbox-label::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: white;
  font-weight: bold;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}
input[type="checkbox"]:not(:checked) + .checkbox-label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 2px solid #9ca3af;
  border-radius: 3px;
  vertical-align: middle;
  flex-shrink: 0;
  background-color: white;
}
/* JSON折りたたみ用スタイル */
.json-toggle-container {
  margin-top: 0;
}
.json-toggle-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: #4b5563;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  user-select: none;
}
.json-toggle-button:hover {
  background-color: #f3f4f6;
}
.json-toggle-icon {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 0.625rem;
}
.json-toggle-container.expanded .json-toggle-icon {
  transform: rotate(90deg);
}
.json-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
