html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 120px; /* 60pxから120pxに増やしてフッターとの余白を確保 */
  font-weight: 500; /* 600から500に変更 - より読みやすく */
  background-color: #f8f9fa; /* 柔らかい背景色 */
  color: #212529;
  line-height: 1.6; /* 行間を広げて読みやすく */
}

/* ==================== フォーム要素 ==================== */
/* テキストボックス、セレクトボックス、テキストエリアの枠線 */
.form-control, .form-select, textarea.form-control {
  border-width: 2px;
  border-color: #495057;
  border-radius: 0.375rem; /* 角を少し丸く */
  padding: 0.625rem 0.875rem; /* パディングを増やして操作しやすく */
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:hover, .form-select:hover {
  border-color: #212529; /* ホバー時に濃く */
}

/* チェックボックスとラジオボタンの枠線 */
.form-check-input {
  border-width: 2px;
  border-color: #495057;
  width: 1.25rem; /* サイズを大きく */
  height: 1.25rem;
  margin-top: 0.125rem;
  cursor: pointer;
}

.form-check-input:hover {
  border-color: #212529;
}

/* フォーカス時のスタイル改善 */
.form-control:focus, .form-select:focus {
  border-width: 2px;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  outline: none;
}

.form-check-input:focus {
  border-width: 2px;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* ラベルのスタイル改善 */
label, .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
}

/* ==================== ボタン ==================== */
.btn {
  font-weight: 600;
  border-width: 2px;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  outline: none;
}

/* ==================== カード ==================== */
.card {
    border-width: 2px;
    /*border-color: #636363;  非常に濃いグレー（ほぼ黒に近い） */
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
  border-bottom-width: 2px;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-top-left-radius: calc(0.5rem - 2px);
  border-top-right-radius: calc(0.5rem - 2px);
}

.card-body {
  padding: 1.5rem;
}

/* ==================== テーブル ==================== */
.table {
  font-size: 0.95rem;
}

.table th {
  font-weight: 600;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 0.875rem;
}

.table td {
  padding: 0.75rem;
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* ==================== ナビゲーション ==================== */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
  background-color: #ffffff !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0d6efd !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0d6efd !important;
}

/* ==================== フッター ==================== */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #f8f9fa;
  padding: 1.5rem 0;
}

/* ==================== お客様選択カード ==================== */
.customer-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.customer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.customer-card .card-header h5 {
  font-size: 1.1rem;
}

.customer-card .card-body strong {
  color: #495057;
  display: inline-block;
  min-width: 80px;
}

/* ==================== ユーティリティ ==================== */
.text-danger {
  font-weight: 600;
}

small, .small {
  font-size: 0.85rem;
  font-weight: 400;
}

/* ==================== レスポンシブ調整 ==================== */
@media (max-width: 768px) {
  .btn-lg {
    padding: 0.625rem 1rem;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .table {
    font-size: 0.875rem;
  }
}

/* ==================== アクセシビリティ ==================== */
*:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* タッチデバイス用のタップ領域拡大 */
@media (pointer: coarse) {
  .btn, .form-check-input, .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
}