body {
  font-size: 0.875rem;
  font-family: sans-serif;
  line-height: 1.5;
}

h1,
h2 {
  margin-block: 2.4rem 1rem;
  font-size: 1.125rem;
  font-weight: bold;
  word-break: keep-all;
  overflow-wrap: break-word;
}

header,
main {
  margin-inline: auto;
  max-width: 55rem;
  padding-inline: 1.25rem;
}

main {
  margin-bottom: 6.25rem;
}

.text-center {
  text-align: center;
}

/* CSVから生成したテーブル */
#tablist ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

#tablist li {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#tablist li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 15px;
  display: block;
  background-color: #ccc;
}

#tablist label {
  padding: 0em 0.4em;
  font-size: 1.25rem;
  cursor: pointer;
}

#tablist label:has(input:checked) {
  outline: 0;
  font-weight: bold;
}

#tablist input {
  width: 0;
  height: 0;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
}

#tablist section > h2 {
  margin-block: 2.2rem 1rem;
  line-height: 1.2;
  font-size: 1.5rem;
  font-weight: normal;
  text-align: start;
  border-bottom: 1px solid #000;
}

#tablist table {
  display: flex;
  flex-direction: column;
  text-align: start;
}

#tablist table thead,
#tablist table tbody {
  display: contents;
}

#tablist table tr {
  position: relative;
  padding: 1rem 0rem;
  display: block;
}

#tablist table tr::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  display: block;
  background-color: #ccc;
}

@media (min-width: 768px) {
  #tablist table tr {
    padding: 0;
    display: grid;
    grid-template-columns: 5.5rem repeat(auto-fit, minmax(0, 1fr));
  }
}

#tablist table th,
#tablist table td {
  padding: 0.3rem 0rem;
  display: block;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  #tablist table th,
  #tablist table td {
    padding: 0.6rem 1rem;
  }
}

#tablist table th {
  font-weight: bold;
  text-align: start;
}

/* B券店舗一覧 */
.b-stores {
  list-style: none;
  margin: auto;
  width: fit-content;
}

.b-stores li {
  margin: 0.6rem 0;
  padding: 0;
}
