@charset "utf-8";
body {
  font-family: sans-serif;
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

h2 {
  text-align: center;
  color: white;
  margin-bottom: 10px;
}

#search {
  display: block;
  margin: 0 auto 20px;
  padding: 8px;
  width: 280px;
  border-radius: 5px;
  border: none;
  outline: none;
  font-size: 14px;
}

#memoList {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.memo {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px; /* 内部要素の間隔 */
}

.memo:hover {
  transform: translateY(-3px);
}

textarea {
  width: 100%;
  box-sizing: border-box; /* パディング込みで幅調整 */
  height: 100px;
  border: none;
  resize: none;
  font-size: 14px;
  padding: 8px;
  border-radius: 5px;
  background: #f8f8f8;
  outline: none;
}

.date {
  font-size: 0.8em;
  color: gray;
  margin-bottom: 5px;
}

button {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  color: white;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

button:hover {
  opacity: 0.85;
}

#addMemo {
  display: block;
  margin: 20px auto;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

#status {
  text-align: center;
  margin-top: 10px;
  color: white;
  font-size: 0.9em;
}

.drag-over {
  border: 2px dashed #a18cd1;
}
