/* 全体のリセットと基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  padding: 20px;
}

/* 中央に寄せるコンテナ */
.container {
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #444;
}

/* 入力エリア */
.input-area {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 10px;
  font-family: inherit;
}

textarea:focus {
  outline: none;
  border-color: #888;
}

/* 追加ボタン */
button#addBtn {
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

button#addBtn:hover {
  background-color: #555;
}

/* メモ1件分のカード */
.memo-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

/* メモの本文 */
.memo-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap; /* 改行をそのまま表示 */
  word-break: break-word;
}

/* 日付の表示 */
.memo-date {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 6px;
}

/* 削除ボタン */
.delete-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

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

/* メモがないときのメッセージ */
.empty-message {
  text-align: center;
  color: #aaa;
  margin-top: 40px;
  font-size: 0.95rem;
}
