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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.5rem;
  color: #1a56a8;
  margin-bottom: 16px;
  text-align: center;
}

h2 {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
}

/* タブ */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid #1a56a8;
  background: #fff;
  color: #1a56a8;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
  background: #1a56a8;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* カード */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #1a56a8;
}

/* ボタン */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: #1a56a8;
  color: #fff;
  width: 100%;
}

.btn-danger {
  background: #e53e3e;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* 連絡事項カード */
.notice-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.notice-title {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  flex: 1;
  margin-right: 8px;
}

.notice-date {
  font-size: 0.75rem;
  color: #999;
  white-space: nowrap;
}

.notice-body {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.notice-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-info {
  font-size: 0.85rem;
  color: #666;
}

.progress-info .confirmed {
  color: #2f855a;
  font-weight: bold;
}

.progress-info .unconfirmed {
  color: #e53e3e;
  font-weight: bold;
}

/* 確認者リスト */
.staff-checks {
  margin-top: 10px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.staff-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f8f8f8;
}

.staff-check-row:last-child {
  border-bottom: none;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a56a8;
  cursor: pointer;
}

.staff-name-text {
  font-size: 0.9rem;
}

.checked-stamp {
  font-size: 0.75rem;
  color: #2f855a;
  margin-left: auto;
}

/* スタッフリスト */
.staff-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.staff-item-name {
  font-size: 0.95rem;
}

/* 未確認バッジ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
}

.badge-red {
  background: #fed7d7;
  color: #c53030;
}

.badge-green {
  background: #c6f6d5;
  color: #276749;
}

.empty-msg {
  text-align: center;
  color: #aaa;
  padding: 32px 0;
  font-size: 0.9rem;
}

@media (max-width: 375px) {
  .notice-header {
    flex-direction: column;
    gap: 4px;
  }
}
