* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: #f5f5f5;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.25rem;
}

/* ★ トップのハイライトメモ表示欄 ★ */
.highlight-note {
  background: #262626;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #ffb74d;
}

.highlight-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #ffecb3;
}

.highlight-text {
  font-size: 0.95rem;
  margin: 0;
  white-space: pre-wrap;
}

.today {
  padding: 1rem;
  border-radius: 8px;
  background: #1e1e1e;
}

.date-row {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* ★ メモ入力ブロック ★ */
.trigger-memo-block {
  margin-bottom: 1rem;
}

.trigger-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

#trigger-textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #444;
  padding: 0.5rem;
  font-size: 0.95rem;
  resize: vertical;
  background: #121212;
  color: #f5f5f5;
}

#trigger-textarea::placeholder {
  color: #777;
}

.count-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.count-label {
  font-size: 1rem;
}

.count-value {
  font-size: 1.6rem;
  font-weight: bold;
}

.primary-btn,
.secondary-btn {
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  background: #4caf50;
  color: #fff;
  margin-top: 0.5rem;
}

.primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.secondary-btn {
  margin-top: 0.5rem;
  background: #424242;
  color: #fff;
}

.message {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #ffd54f;
}

.sub-message {
  min-height: 1.1em;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  color: #90caf9;
}

.timestamps ul,
.history ul {
  list-style: none;
  padding-left: 0;
}

#timestamp-list li,
#history-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #333;
  font-size: 0.9rem;
}

#timestamp-list li:last-child,
#history-list li:last-child {
  border-bottom: none;
}
