﻿/* ボタン */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: #0284c7; /* sky-600 */
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #0369a1; /* sky-700 */
}
.btn-primary:active {
  background-color: #075985; /* sky-800 */
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f1f5f9; /* slate-100 */
  color: #334155; /* slate-700 */
  border: 1px solid #e2e8f0; /* slate-200 */
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: #e2e8f0; /* slate-200 */
}
.btn-secondary:active {
  background-color: #cbd5f0;
}

/* アイコンボタン（削除） */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
}
.icon-button:disabled {
  cursor: default;
  opacity: 0.3;
}
.icon-button:not(:disabled):hover {
  background-color: #fee2e2; /* rose-100 */
}
.icon-trash {
  width: 1rem;
  height: 1rem;
  fill: #f97373; /* rose-400 */
}

/* テーブル */
.table-header-cell {
  padding: 0.35rem 0.5rem;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
}
.table-body-cell {
  padding: 0.3rem 0.5rem;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
}

/* 入力欄（テーブル用） */
.table-input {
  width: 100%;
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
  border-radius: 0.375rem;
  border: 1px solid #cbd5f5;
  background-color: #ffffff;
  box-sizing: border-box;
}
.table-input:focus {
  outline: none;
  border-color: #0ea5e9; /* sky-500 */
  box-shadow: 0 0 0 1px #0ea5e9;
}

/* 単価入力欄 */
.price-input {
  width: 6rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid #cbd5f5;
  background-color: #ffffff;
  box-sizing: border-box;
}
.price-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px #0ea5e9;
}

/* サマリカード（電気料金） */
.summary-card {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc; /* slate-50 */
}
.summary-label {
  font-size: 0.7rem;
  color: #64748b; /* slate-500 */
  margin-bottom: 0.125rem;
}
.summary-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a; /* slate-900 */
}
.summary-unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}

/* プリセット保存エリア */
.preset-name-input {
  min-width: 14rem;
  max-width: 20rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid #cbd5f5;
  background-color: #ffffff;
  box-sizing: border-box;
}
.preset-name-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px #0ea5e9;
}

.preset-select {
  min-width: 14rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 0.375rem;
  border: 1px solid #cbd5f5;
  background-color: #ffffff;
  box-sizing: border-box;
}
.preset-select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px #0ea5e9;
}

.input-ime-on {
  ime-mode: active; /* 日本語入力ONを要求（主要ブラウザで有効） */
}

