body {
  font-family: 'Segoe UI', sans-serif;
  /* background-color: #f4f8f6; */
  background-color: #fdfaf6;
  color: #333;
  padding: 20px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}
main,
.info-box,
.word-list{
  width: 100%;
  max-width: 800px;
  text-align: left;
}

h1 {
  font-family: 'Georgia', serif;
  font-size: 2em;
  color: #4a4a4a;
}
h2{
  color: #4a4a4a;
}

li{
    margin-top: 2rem;
}
.example-words{
    margin-top: 1rem;
    display: block;
}
.info-box {
  background-color: #f0e8ef;
  border-left: 5px solid #b37fac;
  padding: 15px;
  margin-bottom: 20px;
}

.button-group {
  text-align: center;
  margin-bottom: 20px;
}

.button-group button {
  margin: 5px;
  padding: 10px 15px;
  background-color: #b37f9c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.button-group button:hover {
  background-color: #9e517d;
}

.word-list {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 5px;
}
.word-list textarea{
  width: 100%;
  height: auto;
  padding: 12px;
  border: none;
  box-sizing: border-box;
  margin-top: 12px;
}
  .highlight {
    background-color: #fffa9e;
    font-weight: bold;
  }
  .example {
    display: block;
    margin: 4px 0;
  }

.toeic-top{
    margin-top: 5rem;
    text-align: center;
}
.toeic-top a{
    text-decoration: none;
}
.top-button{
    /* margin-top: 3rem;
    text-align: center; */
    padding: 10px 15px;
    background-color: #daa6b8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}    
.top-button:hover{
    background-color: #f3e0dc;
}

footer {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
  padding: 20px 15px;
  background-color: #e2d1e0;
  text-align: center;
  font-family: 'Yomogi', sans-serif;
  font-size: 0.95em;
  border-top: 1px dashed #ccc;
  color: #444;
}

@media screen and (max-width:480px){
  body{
    padding: 10px;
  }
  .info-box,
  .word-list,
  footer,
  .button-group{
    max-width: 100%;
    padding: 12px;
    font-size: 0.95em;
  }
  h1{
    font-size: 1.4em;
    line-height: 1.3;
  }
  .button-group{
    flex-direction: column;
    align-items: center;
  }
  .button-group button{
    width: 100%;
    max-width: 300px;
    font-size: 1em;
  }
  .example{
    font-size: 0.9em;
  }
  .highlight{
    padding: 2px 3px;
    font-size: 0.95em;
  }
  footer{
    font-size: 0.85em;
    text-align: center;
  }
}
