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"] {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: 0.2s;
  background: #fff;
}

input[type="text"]:focus {
  border-color: #0078d7;
  box-shadow: 0 0 4px rgba(0, 120, 215, 0.4);
}

#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;
}

.section {
  margin-bottom: 3rem;
}

#result1 p,
#result2 p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 4px 0;
}