* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6fa;
  color: #2d3436;
  min-height: 100vh;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 4px;
}

header .date {
  font-size: 0.9rem;
  color: #636e72;
}

/* 追加フォーム */
.add-member {
  margin-bottom: 20px;
}

#addForm {
  display: flex;
  gap: 8px;
}

#memberName {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  border: 2px solid #dfe6e9;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

#memberName:focus {
  border-color: #4a90d9;
}

#addForm button {
  padding: 10px 20px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

#addForm button:hover {
  background: #357abd;
}

/* サマリー */
.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ボード */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.empty-msg {
  color: #b2bec3;
  text-align: center;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* メンバーカード */
.member-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 5px solid #dfe6e9;
  transition: border-color 0.2s;
}

.member-card.status-出社 { border-left-color: #2ecc71; }
.member-card.status-外出 { border-left-color: #e67e22; }
.member-card.status-在宅 { border-left-color: #3498db; }
.member-card.status-不在 { border-left-color: #95a5a6; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.member-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.delete-btn {
  background: none;
  border: none;
  color: #b2bec3;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.delete-btn:hover {
  color: #e17055;
}

.status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-btn {
  flex: 1;
  min-width: 60px;
  padding: 6px 4px;
  border: 2px solid #dfe6e9;
  border-radius: 8px;
  background: #f5f6fa;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.status-btn:hover {
  opacity: 0.8;
}

.status-btn.active-出社 { background: #2ecc71; border-color: #2ecc71; color: #fff; font-weight: 700; }
.status-btn.active-外出 { background: #e67e22; border-color: #e67e22; color: #fff; font-weight: 700; }
.status-btn.active-在宅 { background: #3498db; border-color: #3498db; color: #fff; font-weight: 700; }
.status-btn.active-不在 { background: #95a5a6; border-color: #95a5a6; color: #fff; font-weight: 700; }

.status-label {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
}

.label-出社 { background: #2ecc71; }
.label-外出 { background: #e67e22; }
.label-在宅 { background: #3498db; }
.label-不在 { background: #95a5a6; }

@media (max-width: 480px) {
  header h1 { font-size: 1.3rem; }
  .board { grid-template-columns: 1fr; }
}
