* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 22px 24px 40px;
  font-family: "M PLUS Rounded 1c", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #5b4a4a;
  background: #fffdfb;
  line-height: 1.8;
  font-size: 14px;
}

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

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

p {
  margin: 8px 0;
}

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

li {
  margin: 4px 0;
}

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

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

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

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

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

.meta {
  color: #9c8d8d;
  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)専用の図解パーツ。他の規約ページには影響しない。 */

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

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

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


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


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


.demo-arrow {
  font-size: 18px;
  font-weight: 800;
  color: #e85d84;
  flex-shrink: 0;
}

.status-chip .num { color: #e85d84; }
.status-chip.easy { border-color: #3fa06b; color: #3fa06b; }
.status-chip.hard { border-color: #d9534f; color: #d9534f; }
.status-chip.muted { border-color: #e6d7d5; color: #9c8d8d; }

/* 秒数の増減やランキングの決めかたなど、行形式の簡易表。 */
.payout-example {
  background: #fff6fa;
  border: 2px solid #ffe3ec;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0;
}

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

.payout-example .row .val { font-weight: 800; text-align: right; }
.payout-example .row > span:first-child { flex: 1; }
.payout-example .row .val.plus { color: #3fa06b; }
.payout-example .row .val.minus { color: #d9534f; }

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


/* 実画面のスクショ。幅いっぱいに広げず、スマホ画面くらいの大きさで中央に置く。 */
.shot {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 10px auto 4px;
  border: 2px solid #ffe3ec;
  border-radius: 14px;
}

/* つながりかたの図。ゲームの盤を小さくしたもの(5x5)。消える5個は .on で色をつける。 */
.mini-grids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 12px 0;
}
.mini-grid-item { text-align: center; font-size: 12px; font-weight: 700; color: #e85d84; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 22px);
  grid-auto-rows: 22px;
  gap: 2px;
  padding: 4px;
  margin-bottom: 4px;
  background: #fdf3e4;
  border: 2px solid #ffd9b8;
  border-radius: 8px;
}
.mini-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  border-radius: 5px;
}
.mini-grid span.on { background: #ffe3ec; box-shadow: inset 0 0 0 2px #e85d84; }
