* {
  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: #2c1b1b;
  background: #fff8e7;
  line-height: 1.8;
  font-size: 14px;
}

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

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

p {
  margin: 8px 0;
}

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

li {
  margin: 4px 0;
}

a {
  color: #a5822a;
  font-weight: 600;
}

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

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

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

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

.meta {
  color: #8a7060;
  font-size: 13px;
}

.disclaimer {
  background: #fbe0e0;
  border: 2px solid #e6c8b0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #6b4a2f;
  margin-top: 22px;
}

/* 以下は遊び方ページ(rules.html)専用の図解パーツ。他の規約ページには影響しない。 */

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

.rules-hero .hero-icon {
  font-size: 44px;
  flex-shrink: 0;
}

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

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

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

.demo-die {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff8e7;
  border: 2px solid #a5822a;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 6px;
  flex-shrink: 0;
}

.demo-die .pip {
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  width: 6px;
  height: 6px;
  background: transparent;
}

.demo-die .pip.on {
  background: #b23a3a;
}

.demo-plus,
.demo-equals {
  font-size: 18px;
  font-weight: 700;
  color: #a5822a;
  flex-shrink: 0;
}

.demo-result {
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.demo-result.cho {
  color: #b23a3a;
}

.demo-result.han {
  color: #2e7d5b;
}

.payout-example {
  background: #fffaf0;
  border: 2px solid #f4e3a1;
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
}

.payout-example .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.payout-example .row.total {
  border-top: 1px dashed #d9c48a;
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 800;
}

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

.status-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #a5822a;
  background: #fffaf0;
}

/* スマホなど幅の狭い画面向け。参加画面から開くポップアップ(iframe)内でも、
   iframeの幅を基準にこの指定が効く。 */
@media (max-width: 480px) {
  body {
    padding: 18px 14px 32px;
  }

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

  .rules-hero {
    gap: 10px;
  }

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