/* =====================================================================
   チバリヨ - S1 ホーム (Phase 2-B-3.1)
   モバイル UI アクセント: teal #1D9E75
   ===================================================================== */

.s1h-root {
  padding: 16px 16px 24px;
}

/* ----- ページヘッダー ----- */
.s1h-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.s1h-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1A202C;
}

.s1h-page-date {
  margin-top: 2px;
  font-size: 12.5px;
  color: #718096;
}

.s1h-refresh {
  width: 36px;
  height: 36px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.s1h-refresh svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #4A5568;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s1h-refresh:active {
  background: #F7FAFC;
}

/* ----- エラー / ローディング / 空状態 ----- */
.s1h-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FDECEC;
  color: #A32D2D;
  font-size: 13px;
}

.s1h-loading {
  padding: 40px 0;
  text-align: center;
  color: #A0AEC0;
  font-size: 13.5px;
}

.s1h-empty {
  padding: 18px 14px;
  text-align: center;
  color: #A0AEC0;
  font-size: 13px;
}

/* ----- セクション共通 ----- */
.s1h-section {
  margin-bottom: 20px;
}

.s1h-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.s1h-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #2D3748;
}

.s1h-section-sub {
  font-weight: 500;
  font-size: 12px;
  color: #A0AEC0;
}

.s1h-section-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #E1F5EE;
  color: #0F6E56;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.s1h-section-link {
  margin-left: auto;
  border: none;
  background: none;
  color: #1D9E75;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  -webkit-tap-highlight-color: transparent;
}

.s1h-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
}

/* ----- 1. アラート ----- */
.s1h-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s1h-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid;
}

.s1h-alert.is-warn {
  background: #FFF9EC;
  border-color: #F3E1B8;
}

.s1h-alert.is-danger {
  background: #FDF0F0;
  border-color: #F1C4C4;
}

.s1h-alert-icon {
  font-size: 16px;
  line-height: 1.4;
}

.s1h-alert-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}

.s1h-alert-text strong {
  font-size: 13px;
  color: #2D3748;
}

.s1h-alert.is-danger .s1h-alert-text strong {
  color: #A32D2D;
}

.s1h-alert-text span {
  color: #718096;
}

/* ----- 2. 今日のタスク ----- */
.s1h-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #EDF2F7;
}

.s1h-task:last-of-type {
  border-bottom: none;
}

.s1h-task-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #CBD5E0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s;
}

.s1h-task-check:active {
  border-color: #1D9E75;
  background: #E1F5EE;
}

.s1h-task-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.s1h-task-title {
  font-size: 14px;
  font-weight: 600;
  color: #2D3748;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s1h-task-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.s1h-task-due.is-overdue {
  color: #C53030;
  font-weight: 600;
}

.s1h-task-sep {
  color: #CBD5E0;
}

.s1h-task-client {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s1h-more {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-top: 1px solid #EDF2F7;
  background: #FAFBFC;
  color: #1D9E75;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.s1h-more:active {
  background: #F0F4F8;
}

/* ----- 3. 今月の進捗 ----- */
.s1h-pace-badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.s1h-pace-badge.is-pace-good {
  background: #E1F5EE;
  color: #0F6E56;
}

.s1h-pace-badge.is-pace-warn {
  background: #FAEEDA;
  color: #854F0B;
}

.s1h-pace-badge.is-pace-danger {
  background: #FCEBEB;
  color: #A32D2D;
}

.s1h-progress-card {
  padding: 14px;
}

.s1h-metric {
  margin-bottom: 14px;
}

.s1h-metric-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.s1h-metric-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #718096;
}

.s1h-metric-value {
  font-size: 17px;
  font-weight: 700;
  color: #1A202C;
}

.s1h-metric-target {
  font-size: 13px;
  font-weight: 600;
  color: #A0AEC0;
}

.s1h-metric-rate {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: #4A5568;
}

.s1h-bar {
  height: 7px;
  border-radius: 4px;
  background: #EDF2F7;
  overflow: hidden;
}

.s1h-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.s1h-bar-fill.is-empty    { width: 0; }
.s1h-bar-fill.is-low      { background: #F0A8A8; }
.s1h-bar-fill.is-mid      { background: #F0CD8A; }
.s1h-bar-fill.is-high     { background: #6FCBA8; }
.s1h-bar-fill.is-complete { background: #1D9E75; }

.s1h-progress-footer {
  padding-top: 10px;
  border-top: 1px solid #EDF2F7;
  font-size: 12px;
  color: #A0AEC0;
}

/* ----- 4. チームの動き ----- */
.s1h-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid #EDF2F7;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.s1h-activity-row:last-child {
  border-bottom: none;
}

.s1h-activity-row:active {
  background: #FAFBFC;
}

.s1h-activity-name {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #2D3748;
}

.s1h-activity-count {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  background: #E1F5EE;
  color: #0F6E56;
  font-size: 11px;
  font-weight: 700;
}

.s1h-activity-headline {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: #718096;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
