body {
  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue",
               "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* ラベル */
label {
  font-weight: bold;
  display: block;
  margin-top: 20px;
  margin-bottom: 5px;
  color: #444;
}

/* 入力欄 */
input[type="text"],
input,
select {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: 0.2s;
  background: #fff;
  margin-bottom: 10px;
}

input:focus,
select:focus {
  border-color: #0078d7;
  box-shadow: 0 0 4px rgba(0, 120, 215, 0.4);
}

/* ボタン */
button {
  padding: 10px 16px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  background: #0078d7;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 5px;
}

button:hover {
  background: #005fa3;
}

/* セクション見出し */
h2 {
  margin-top: 40px;
  margin-bottom: 10px;
  color: #333;
}

/* テーブル */
table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #f5f5f5;
  font-weight: bold;
  color: #444;
}

tr:hover {
  background: #f0f7ff;
}

/* カラー丸 */
.color-circle {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ccc;
  margin-left: 8px;
  vertical-align: middle;
}

/* 検索画面の既存スタイル（そのまま） */
#result1, #result2 {
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border-left: 4px solid #0078d7;
  border-radius: 4px;
  max-width: 400px;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 5px;
  max-width: 400px;
}

ul li {
  background: #fff;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: 0.15s;
}

ul li:hover {
  background: #e8f3ff;
}

.word-red {
  color: #E74C3C;
  font-weight: bold;
}

.word-green {
  color: green;
}

/* 詳細表示の文字を大きくする */
#result1 h2,
#result2 h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 8px;
}

#result1 p,
#result2 p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 4px 0;
}
/* ▼ サジェスト一覧（検索結果） ▼ */
#suggestList {
  margin-top: 10px;
  max-width: 400px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  overflow: hidden;
}

.suggest-item {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: 0.15s;
  font-size: 15px;
  color: #333;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover {
  background: #e8f3ff;
}

/* ▼ 選択後のアクションエリア ▼ */
#actionArea {
  margin-top: 15px;
  padding: 12px;
  max-width: 400px;
  background: #fff;
  border-left: 4px solid #0078d7;
  border-radius: 6px;
  border: 1px solid #ddd;
}

#actionArea p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: bold;
}

/* アクションボタン（編集・削除） */
#actionArea button {
  margin-right: 10px;
  margin-top: 5px;
}

.word-red {
  color: #E74C3C;
  font-weight: bold;
}

.word-black {
  color: #333; /* または black */
  font-weight: bold;
}

.word-green {
  color: green;
  font-weight: bold;
}
