/* === CSS変数定義 === */
:root {
  --color-text-main: #141415;
  --color-text-muted: #5B5F66;
  --color-text-sub: #3B4147;
  --color-text-light: #A0A7B3;
  --color-bg-input: #F0F1F4;
  --color-primary: rgba(201, 217, 255, 0.8);
  --color-primary-bg: #E6F0FF;
  --color-selected-bg: #rgba(201, 217, 255, 0.8);
  --color-selected-text: #FAFBFD;
}

/* === タイムピッカー固有スタイル === */
.time-popup {
  width: 240px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.time-lists {
  display: flex;
  flex-direction: row;
  max-height: 200px;
  gap: 0;
  flex: 1;
}

.time-list {
  flex: 1;
  width: 50%;
  overflow-y: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.time-list.hours { 
  border-right: 1px solid #E5E7EB;
  padding-right: 0.5rem;
}

.time-list.minutes { 
  border-left: 1px solid #E5E7EB;
  padding-left: 0.5rem;
}

/* スクロールバー非表示 */
.time-list::-webkit-scrollbar { 
  display: none; 
}

.time-list { 
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}

.time-item {
  padding: 0.375rem 0.25rem;
  text-align: center;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-bottom: 0.25rem;
  color: #3B4147;
  transition: background-color 0.2s, color 0.2s;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-item:hover:not(.selected) { 
  background-color: rgba(220, 223, 229, 0.8);
  color: #141415;
}

.time-item.selected { 
  background-color: #324C7D; 
  color: #FFFFFF; 
  font-weight: bold;
}

.time-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #E5E7EB;
  justify-content: flex-end;
}

.time-button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.time-button.cancel {
  background-color: #FAFBFD;
  color: #141415;
  border: 1px solid #D2D5DA;
}

.time-button.cancel:hover {
  background-color: #F0F1F4;
}

.time-button.confirm {
  background-color: rgba(201, 217, 255, 0.8);
  color: #141415;
}

.time-button.confirm:hover {
  background-color: #5f1f1f;
}
