* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.app-container {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 16px;
  text-align: center;
}

.field {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  outline: none;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.button-large {
  font-size: 1.6rem;
  padding: 18px 12px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
}

.btn-start {
  background: #4caf50;
  color: #fff;
}

.btn-end {
  background: #f44336;
  color: #fff;
}

.btn-reload {
  margin-top: 16px;
  width: 100%;
  font-size: 1.4rem;
  padding: 14px 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #2196f3;
  color: #fff;
  font-weight: 600;
}

.status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #eee;
  font-size: 0.95rem;
  min-height: 56px;
  white-space: pre-line;
}

.status-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.status-message {
  font-size: 0.95rem;
}

.small-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #777;
  text-align: right;
}

.error {
  color: #d32f2f;
  font-weight: 600;
}

.success {
  color: #2e7d32;
  font-weight: 600;
}

/* 時刻表示の見た目だけ足す（任意） */
.time-view{ margin:6px 0; color:#0b4a6f; font-weight:500; }
.btn-primary{ background:#0ea5e9; color:#fff; border:none; }
.btn-primary:hover{ filter:brightness(0.95); }

/* 開始・終了の表示を大きく（約2倍） */
#statusMessage {
  font-size: 1.7rem;        /* ここでサイズ倍率を調整 */
  line-height: 1.35;
}
#statusMessage div {       /* 1行ずつの間隔 */
  margin: 6px 0;
}
#statusMessage strong {    /* 「開始」「終了」のラベルを少し強調 */
  font-weight: 700;
}

/* モバイルで少しだけ小さめに */
@media (max-width: 480px) {
  #statusMessage { font-size: 1.6rem; }
}

/* selectと同じスタイルをテキスト入力にも適用 */
select,
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  outline: none;
}

/* 作業者・備考ラベルに赤いアスタリスク */
label.field-label[for="memberSelect"]::before,
label.field-label[for="taskSelect"]::before {
  content: "*";
  color: #dc2626;      /* 赤 */
  margin-right: 6px;
  font-weight: 700;
}
