* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 22px 24px 40px;
  font-family: "Zen Maru Gothic", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #4a4438;
  background: #fffdf8;
  line-height: 1.8;
  font-size: 14px;
}

h1 {
  font-size: 20px;
  font-weight: 800;
  color: #5c8a3a;
  margin: 0 0 10px;
}

h2 {
  font-size: 15px;
  font-weight: 700;
  color: #5c8a3a;
  margin: 26px 0 8px;
  border-bottom: 2px solid #e2efd7;
  padding-bottom: 4px;
}

p {
  margin: 8px 0;
}

ul, ol {
  padding-left: 1.4em;
  margin: 8px 0;
}

li {
  margin: 4px 0;
}

a {
  color: #5c8a3a;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

th, td {
  border: 1px solid #e2efd7;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #e2efd7;
  width: 30%;
  white-space: nowrap;
}

hr {
  border: none;
  border-top: 2px solid #e2efd7;
  margin: 22px 0;
}

.meta {
  color: #9c948a;
  font-size: 13px;
}

.disclaimer {
  background: #fff6ea;
  border: 2px solid #ffe9d1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #8a6d4a;
  margin-top: 22px;
}

/* 以下は遊び方ページ(rules.html)専用の図解パーツ。 */

.rules-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.rules-hero h1 {
  margin: 0 0 4px;
}

.figure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
  padding: 18px 14px 26px;
  background: #f4faee;
  border: 2px solid #e2efd7;
  border-radius: 16px;
}

.figure-caption {
  text-align: center;
  color: #9c948a;
  font-size: 12px;
  margin: -4px 0 18px;
}

.demo-cell {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #cdeed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  flex-shrink: 0;
}

.demo-cell.ok {
  background: #d6f0c2;
  border: 2px solid #7db34a;
}

.demo-cell.ng {
  background: #f2e4e4;
  border: 2px solid #cc8a8a;
}

.figure-arrow {
  font-size: 20px;
  color: #5c8a3a;
  flex-shrink: 0;
}

.status-chip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #e2efd7;
  font-weight: 700;
  font-size: 12px;
  color: #5c8a3a;
}

.payout-example {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
}

.payout-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f4faee;
  font-size: 13px;
}

.tag-table th {
  width: 40%;
}

@media (max-width: 480px) {
  body {
    padding: 18px 14px 32px;
  }

  th {
    width: 34%;
    white-space: normal;
  }

  .rules-hero {
    gap: 10px;
  }

  .figure-row {
    gap: 8px;
    padding: 16px 10px 26px;
  }
}
