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

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

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

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

.search-area {
  margin-bottom: 12px;
}

.search-area input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.form-area {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-area input,
.form-area textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
}

.form-area button {
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.form-area button:hover {
  background: #3578c1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.faq-question {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #4a90d9;
}

.faq-question::before {
  content: "Q. ";
}

.faq-answer {
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.faq-answer::before {
  content: "A. ";
  font-weight: bold;
  color: #888;
}

.faq-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.delete-btn {
  background: none;
  border: 1px solid #e05c5c;
  color: #e05c5c;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.delete-btn:hover {
  background: #e05c5c;
  color: #fff;
}

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

.highlight {
  background: #fff4a3;
  border-radius: 3px;
}

@media (max-width: 375px) {
  h1 {
    font-size: 1.2rem;
  }
}
