ul.segment-items {
  display: flex;
  margin: auto;
  max-width: 640px;
  flex-wrap: wrap;
  list-style: none;
  flex-direction: row;
}

ul.segment-items li {
  margin: 0px;
  width: 40%;
  padding: 0.5em;
  box-sizing: border-box;
}

ul.segment-items {
  display: block;
  column-count: 2;
  margin: auto;
  max-width: 640px;
  flex-wrap: wrap;
  list-style: none;
}

ul.segment-items li {
  margin: 0px;
  width: 100%;
  padding: 0.2em;
  box-sizing: border-box;
}

label.segment-item-label {
  padding: 0.5em;
  border: 1px solid #adadad;
  border-radius: 6px;
  background-color: white !important;
  color: #383a76 !important;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  justify-content: center;
  height: 3em;
}

label.segment-item-label:has(input[type="checkbox"]:checked) {
  background-color: #383a76 !important;
  color: white !important;
}

label.segment-item-label:hover {
  background-color: #e6e6e6 !important;
}

label.segment-item-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* announcement */
.announcement-box {
    padding: 0.5em 1em;
    margin: 2em 0;
    background: #fff8e8;
    border: dashed 2px #ffc06e;/*点線*/
}
.announcement-box p {
    margin: 0; 
    padding: 0;
}

/* supplement */
.supplement ul li {
    padding: .3em .3em .3em 0;
}
/* valid */
.valid {
  color: red;
}