:root {
  --color-bg-page: #f0f2f5;
  --color-text-main: #1c1e21;
  --color-text-muted: #65676b;
  
  --color-card-bg: #ffffff;
  --color-card-shadow: rgba(0, 0, 0, 0.1);
  --color-card-radius: 12px;

  /* フォーム */
  --color-field-bg: #f5f6f7;
  --color-field-border: #dddfe2;
  --color-primary-bg: #4d9b7a;
  --color-primary-hover: #3f8b6b;
  --color-form-text: #fff;
  --color-field-text: #1c1e21;

  /* フォーカス */
  --color-focus-border: #4d9b7a;
  --color-focus-shadow: rgba(77, 155, 122, 0.2);

  /* ボタン */
  --btn-radius: 8px;
  --btn-shadow: rgba(0, 0, 0, 0.1);

  /* テーブル */
  --table-header-bg: #f8f9fa;
  --table-header-text: #4b4f56;
  --table-row-border: #ebedf0;
  --table-row-hover: #f5f6f7;

  /* 状態カラー */
  --status-success-bg: #e7f3ff;
  --status-success-text: #1877f2;
  --status-draft-bg: #f0f2f5;
  --status-draft-text: #65676b;
  --status-ordered-bg: #fff8e1;
  --status-ordered-text: #f57c00;
  --status-danger-bg: #fff0f0;
  --status-danger-text: #d93025;
}

body {
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  padding: 24px;
  line-height: 1.6;
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--color-card-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 24px 0;
  color: #1c1e21;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #1c1e21;
}

.table-modern-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border: 1px solid var(--table-row-border);
  border-radius: var(--color-card-radius);
  position: relative; /* 影の見切れ防止 */
}

.table-modern {
  width: 100%;
  min-width: 1400px; /* PCでの十分な横幅を確保 */
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

/* スクロール時にコードと項目（品目）を固定 */
.table-modern th.col-code,
.table-modern td.col-code {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 20;
  border-right: 1px solid var(--table-row-border);
}

.table-modern th.col-service,
.table-modern td.col-service {
  position: sticky;
  left: 100px; /* col-code の幅 */
  background-color: #fff;
  z-index: 20;
  border-right: 2px solid var(--table-row-border);
  box-shadow: 4px 0 8px rgba(0,0,0,0.05);
}

.table-modern th.col-code,
.table-modern th.col-service {
  z-index: 30;
  background-color: var(--table-header-bg);
}

/* コード列も固定したい場合はこちら（今回は項目のみの要望だが、左端にあるので調整が必要かも） */
/* 一旦項目のみ固定。コードは左に流れる形に。 */

.table-modern input[type="text"],
.table-modern input[type="number"],
.table-modern select {
  width: 100%;
  min-width: 60px;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--color-field-border);
  border-radius: 6px;
  font-size: 1.4rem;
  box-sizing: border-box;
  background-color: #f9f9f9; /* 入力欄を少しグレーにしてSNS風に */
  transition: all 0.2s;
}

.table-modern input[type="text"]:focus,
.table-modern input[type="number"]:focus,
.table-modern select:focus {
  border-color: var(--color-primary-bg);
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.1);
}

.table-modern td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--table-row-border);
  white-space: nowrap; /* セル内での意図しない改行を防ぐ */
  background-color: inherit;
  overflow: visible; /* サジェストリストを表示するために必要 */
}

/* サイズ入力欄の調整 */
.col-size div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.col-size input {
  width: 50px !important;
  text-align: center;
  padding: 4px !important;
}

/* 数量・単位の調整 */
.col-qty input,
.col-unit input {
  text-align: center;
}

/* 金額などの読取専用フィールド */
.table-modern input[readonly] {
  background-color: transparent;
  border: none;
  font-weight: 700;
  cursor: default;
}

@media (max-width: 768px) {
  .table-modern {
    min-width: 800px;
  }
  
  /* モバイルで非表示にする列 */
  .col-code, .col-size, .col-spec, .col-unit-price, .col-cost-unit-price, .col-internal, .col-supplier {
    display: none;
  }
  
  .col-service {
    position: relative !important; /* スマホでは固定解除 */
    left: auto !important;
    min-width: 200px;
    border-right: none !important;
  }
  
  /* モバイル用編集ボタン列を表示 */
  .col-mobile-edit {
    display: table-cell !important;
    text-align: center;
    width: 60px;
  }
}

/* PC等ではモバイル編集ボタンを隠す */
.col-mobile-edit {
  display: none;
}

.table-modern th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--table-row-border);
  text-align: left;
}

.table-modern td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--table-row-border);
  color: var(--color-text-main);
  font-size: 1.4rem;
  vertical-align: middle;
}

.table-modern tr:last-child td {
  border-bottom: none;
}

.table-modern tr:hover {
  background-color: var(--table-row-hover);
}

.table-modern tr:hover td.col-code,
.table-modern tr:hover td.col-service {
  background-color: var(--table-row-hover);
}

/* ボタンのSNS風デザイン */
.btn-sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 1.4rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
  box-shadow: 0 2px 4px var(--btn-shadow);
}

/* ダッシュボード戻るボタン専用 */
.btn-dashboard {
  background-color: #ffffff;
  color: var(--color-text-main);
  border: 1px solid var(--color-field-border);
  padding: 8px 16px;
  font-size: 1.3rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}

.btn-dashboard:hover {
  background-color: var(--color-bg-page);
  border-color: #bcc0c4;
  transform: translateX(-2px);
}

.btn-dashboard::before {
  content: "🏠";
  font-size: 1.4rem;
}

/* 戻るボタン全般 */
.btn-back {
  color: var(--color-text-muted);
  font-size: 1.3rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.2s;
}

.btn-back:hover {
  background-color: var(--table-row-hover);
  color: var(--color-text-main);
  transform: translateX(-2px);
}

/* クイック編集用 */
.editable-cell {
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  padding-right: 20px !important;
}

.editable-cell:hover {
  background-color: #f8f9fa !important;
}

.editable-cell::after {
  content: '✎';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--color-text-muted);
}

.editable-cell:hover::after {
  opacity: 0.5;
}

.editable-input {
  width: 100%;
  height: 32px !important;
  padding: 4px 8px !important;
  font-size: 1.4rem !important;
  border: 2px solid var(--color-primary-bg) !important;
  border-radius: 4px !important;
  outline: none !important;
  box-sizing: border-box;
}

.editable-input-container {
  display: flex;
  align-items: center;
}

/* モーダル基本スタイル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8); /* 周辺を白っぽく */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px); /* ぼかしを少し強めに */
}

.modal-overlay.is-open {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 24px;
  animation: modal-fade-in 0.3s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-bg-page);
  padding-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--color-text-main);
}

.modal-body {
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-textarea {
  width: 100%;
  height: 200px;
  padding: 12px;
  border: 1px solid var(--color-field-border);
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1.6;
  resize: vertical;
}

.modal-textarea:focus {
  border-color: var(--color-primary-bg);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.btn-sns-primary {
  background-color: var(--color-primary-bg);
  color: #fff;
}

.btn-sns-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(77, 155, 122, 0.3);
}

.btn-sns-primary:active {
  transform: translateY(0);
}

.btn-sns-secondary {
  background-color: #ebedf0;
  color: #4b4f56;
}

.btn-sns-secondary:hover {
  background-color: #dadde1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-sns-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary-bg);
  color: var(--color-primary-bg);
  box-shadow: none;
}

.btn-sns-outline:hover {
  background-color: rgba(77, 155, 122, 0.05);
  box-shadow: 0 4px 8px rgba(77, 155, 122, 0.1);
}

.btn-sns-danger {
  background-color: #fff0f0;
  color: #d93025;
}

.btn-sns-danger:hover {
  background-color: #ffe5e5;
  box-shadow: 0 4px 8px rgba(217, 48, 37, 0.1);
}

/* 検索フォームの調整 */
.search-box {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.search-field input {
  height: 40px;
  padding: 8px 12px;
}

/* バッジ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
}

.badge-success {
  background-color: #e7f3ff;
  color: #1877f2;
}

.badge-muted {
  background-color: #f0f2f5;
  color: #65676b;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

h1 {
  font-size: 20px;
  margin-bottom: 16px;
}

h2 {
  font-size: 16px;
  margin: 24px 0 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 8px;
}

th,
td {
  border: 1px solid #ccc;
  padding: 4px 6px;
}

td {
  padding: 1em 0.5em;
}

th {
  background: var(--color-primary-bg);
  color: var(--color-form-text);
}

tr.row-link {
  cursor: pointer;
  transition: 150ms;
}

tr.row-link:hover {
  background: var(--table-row-hover);
}

button,
input[type="submit"] {
  cursor: pointer;
}

.dashboard-menu {
  display: grid;
  place-content: center;
}

section header {
  text-align: center;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

li {
  list-style: none;
  padding: 0;
  margin-bottom: 1em;
}

a {
  text-decoration: none;
}

.welcome-message {
  text-align: center;
}

.alloc-controls button {
  width: 100%;
}

svg {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.col-quote-no {
  width: 10em;
}

.col-id {
  width: 2em;
  text-align: center;
  font-size: 1.2rem;
}

.col-title {
  font-size: 1.6rem;
  font-weight: bold;
  width: 36rem;
}

.col-client {
  width: 24rem;
}

.col-date {
  font-size: 1.2rem;
  width: 12rem;
}

.container-action {
  display: flex;
  gap: 1em;
  align-items: center;
}

.container-action .button {
  width: max-content;
  height: max-content;
  padding: 0.15em 0.5em;
  color: var(--btn-primary-bg);
  background: none;
  border: 0.15em solid var(--btn-primary-bg);
  display: flex;
  align-items: center;
  font-size: 1.3rem;
}

/* --------------------------------------------
   フォーム全体の共通スタイル
-------------------------------------------- */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  height: 44px; /* 高さを統一 */
  padding: 10px 12px;
  border: 1px solid var(--color-field-border);
  background: var(--color-field-bg);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-field-text);
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
}

textarea {
  height: auto;
  min-height: 120px;
}

/* --------------------------------------------
   ステップ・プロセス管理
-------------------------------------------- */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 20px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

/* 縦線 */
.step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: #ebedf0;
  z-index: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-item.is-complete .step-number {
  background: var(--color-primary-bg);
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* --------------------------------------------
   モバイル対応 (レスポンシブ)
-------------------------------------------- */
@media (max-width: 768px) {
  body {
    padding: 12px;
}

  h1 {
    font-size: 2rem;
}

  .card {
    padding: 16px;
    margin-bottom: 16px;
}

  /* グリッドを縦並びに */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* テーブルを横スクロール可能に */
  .table-modern-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}

  .table-modern {
    min-width: 600px;
}

  /* ボタンを大きく押しやすく */
  .btn-sns {
  width: 100%;
    padding: 12px;
  }

  /* 検索ボックスの調整 */
  .search-box {
    flex-direction: column;
    align-items: stretch;
}

  .search-field {
    width: 100% !important;
}

  .search-field input, 
  .search-field select {
    width: 100% !important;
}
}

/* 一覧テーブル共通 */
.table-list {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.table-list th,
.table-list td {
  padding: 8px 10px;
  border: 1px solid var(--table-row-border);
  text-align: left;
  vertical-align: top;
}

/* ヘッダー */
.table-list th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-weight: 600;
}

/* 行ホバー */
.table-list tbody tr:hover {
  background: var(--table-row-hover);
}

/* 操作カラム */
.table-list td:last-child {
  white-space: nowrap;
}

/* テーブル内のボタン */
.table-list .button-base {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 0.3em 0.8em;
  font-size: 1.1rem;
  box-shadow: none;
}

/* PDFアイコン周り */
.table-list .action-pdf {
  display: inline-block;
  margin-left: 4px;
}

.table-list .action-pdf svg {
  width: 18px;
  height: auto;
  vertical-align: middle;
}

/* --------------------------------------------
   単価・原価
-------------------------------------------- */
/* 単価・原価入力用：右端に「円」表示 */
.field-with-yen {
  position: relative;
  display: inline-block;
  width: 100%;
}

.field-with-yen input[type="number"] {
  width: 100%;
  padding-right: 32px;
  /* 円のぶん右に余白 */
}

/* 擬似要素で「円」表示 */
.field-with-yen::after {
  content: "円";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  pointer-events: none;
}

/* 社内のみ 等で使う共通チェックボックス */
.input-check {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #8ec5b1;
  background: #fff;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

.input-check:checked {
  background: #4d9b7a;
  border-color: #4d9b7a;
}

.input-check:checked::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}


/* --------------------------------------------
   項目（サービス）検索UI
-------------------------------------------- */
.service-picker,
.supplier-picker {
  position: relative;
}

.service-picker .js-service-input,
.supplier-picker .js-supplier-input {
  width: 100%;
}

/* サジェストリスト (ポータル表示用) */
.service-suggest-list,
.supplier-suggest-list {
  position: absolute;
  z-index: 10000;
  max-height: 300px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-field-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 1.3rem;
  overflow-y: auto;
  display: none;
  min-width: 450px;
  pointer-events: auto;
}

/* 項目検索が動いている行の前面表示 */
tr:has(.is-open) {
  z-index: 50;
  position: relative;
}

.service-suggest-list.is-open,
.supplier-suggest-list.is-open {
  display: block;
}

.service-suggest-list li,
.supplier-suggest-list li {
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.service-suggest-list li span.name,
.supplier-suggest-list li span.name {
  flex: 1 1 auto;
}

.service-suggest-list li span.meta,
.supplier-suggest-list li span.meta {
  flex: 0 0 auto;
  color: #777;
  font-size: 11px;
}

.service-suggest-list li:hover,
.supplier-suggest-list li:hover {
  background: var(--table-row-hover);
}


/* --------------------------------------------
   数値入力画面
-------------------------------------------- */

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* 金額・数量などの入力欄を右揃えにする */
input[type=number],
input.input-number,
input.js-qty,
input.js-unit-price,
input.js-cost-unit-price,
input.js-amount,
input.js-cost-amount,
input.js-profit-amount {
  text-align: right;
}

.money-input {
  text-align: right;
}

.field-with-yen input {
  text-align: right;
  padding-right: 2em;
}

.field-with-yen::after {
  content: "円";
}

.notice {
  padding: 10px 15px;
  margin: 0 0 15px 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.notice-success {
  background: #e6f7e6;
  color: #1c7c1c;
  border: 1px solid #b5e3b5;
}

input[readonly] {
  font-size: 16px;
  font-weight: 400;
  border-color: transparent;
  background: var(--color-form-auto-bg);
  color: var(--color-form-auto-text);
  text-align: right;
  pointer-events: none;
}

input[readonly]::after {
  content: "円";
}

input[readonly]:focus {
  outline: none;
}

.item-owned-name {
  font-size: 1.8rem;
  line-height: 1.75;
  font-weight: bold;
}

.editor-list {
  margin-bottom: 1em;
  font-size: 1.7rem;
}

.editor-list select,
.editor-list input {
  font-size: 1.9rem;
  font-weight: bold;
}


/* --------------------------------------------
   見積書
-------------------------------------------- */
.quote-item-block {
  border: 1px solid #ccc;
  padding: 1.5em 1em;
  margin-bottom: 12px;
  border-radius: 0.5em;
}

.alloc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.alloc-table th,
.alloc-table td {
  border: 1px solid #ddd;
  padding: 4px;
}

.alloc-controls {
  margin-top: 4px;
}

/* --------------------------------------------
   サービスマスタ
-------------------------------------------- */
.form-service-edit {
  max-width: 480px;
  margin: 0 auto;
}

.list-label {
  margin-bottom: 1em;
}

input[type="date"] {
  height: 60px;
  padding: 0 12px;
  font-size: 20px;
}

.required {
  color: #fff;
  background: #e60023;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.is-negative {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 2px rgba(217, 48, 37, .15);
}

/* =========================
   Buttons (safe wrapper)
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;

  /* 既存ボタン群と近い見た目に寄せる */
  padding: 0.55em 1.1em;
  border-radius: 999px;

  text-decoration: none;
  cursor: pointer;
  user-select: none;

  /* 既存変数を使用（全体トーンを統一） */
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 0;
  box-shadow: 0 0 6px var(--btn-shadow);

  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.2;

  transition: 300ms;
}

.btn:hover {
  background-color: color-mix(in srgb, var(--btn-primary-bg), white 25%);
}

.btn:focus-visible {
  outline: 3px solid var(--color-focus-shadow);
  outline-offset: 2px;
}

/* サイズ */
.btn--sm {
  padding: 0.35em 0.9em;
  font-size: 1.2rem;
  font-weight: normal;
}

/* primary（同じだが明示） */
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn--primary:hover {
  background-color: color-mix(in srgb, var(--btn-primary-bg), white 25%);
}

/* danger（既存トーンを崩さず、赤系だけ） */
.btn--danger {
  background: #e60023;
  color: #fff;
}

.btn--danger:hover {
  background: color-mix(in srgb, #e60023, white 18%);
}

/* ghost（塗り無し） */
.btn--ghost {
  background: none;
  color: var(--btn-primary-bg);
  border: 0.15em solid var(--btn-primary-bg);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, .03);
}

/* disabled */
.btn[disabled],
.btn.is-disabled {
  opacity: .5;
  pointer-events: none;
  box-shadow: none;
}

/* テーブルに埋もれない＆セル内に押し込まれない */
td {
  overflow: visible;
}