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

:root {
  --accent: #00C896;
  --bg: #0a0a0a;
  --card: #141414;
  --border: #222;
  --text: #fff;
  --muted: #888;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 100px;
  max-width: 430px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.date {
  font-size: 12px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* 円形プログレスバー */
.circles {
  display: flex;
  gap: 24px;
  align-items: center;
}

.circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.circle-label {
  font-size: 12px;
  color: var(--muted);
}

.circle-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

svg.ring {
  transform: rotate(-90deg);
}

svg.ring .track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

svg.ring .progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

/* 売上 */
.revenue-rate {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.revenue-sub {
  font-size: 13px;
  color: var(--muted);
}

.revenue-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}

/* アクティビティ */
.activity-grid {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.activity-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.activity-day-label {
  font-size: 10px;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.dot.active-yakuin { background: var(--accent); }
.dot.active-akasaka { background: #3d9be9; }
.dot.active-inq { background: #f0a500; }

/* legend */
.legend {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* タスク */
.task-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  font-size: 28px;
  font-weight: 800;
  width: 64px;
  height: 64px;
  margin-right: 12px;
}

.task-row {
  display: flex;
  align-items: center;
}

.task-text {
  font-size: 13px;
  color: var(--muted);
}

.task-text strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}

.task-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.task-item:last-child {
  border-bottom: none;
}

.task-item:active {
  opacity: 0.6;
}

.task-check {
  font-size: 18px;
  color: var(--accent);
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}

.task-item.done .task-check {
  color: var(--muted);
}

.task-item-label {
  font-size: 14px;
  color: var(--text);
}

.task-item.done .task-item-label {
  color: var(--muted);
  text-decoration: line-through;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,200,150,0.4);
  -webkit-tap-highlight-color: transparent;
}

/* モーダル */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10;
}

.modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #1a1a1a;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  z-index: 20;
}

.modal.open,
.modal.open ~ .modal-overlay,
.modal-overlay:has(~ .modal.open) {
  display: block;
}

.modal-overlay.open { display: block; }
.modal.open { display: block; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.form-label {
  font-size: 15px;
  color: var(--muted);
}

.form-select,
.form-input {
  background: #2a2a2a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  padding: 8px 12px;
  width: 160px;
}

.form-input {
  text-align: right;
}

.submit-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.submit-btn:disabled {
  opacity: 0.5;
}

/* トグル */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.error-msg {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}
