* {
  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;
}

h3 {
  font-size: 14px;
  font-weight: 700;
  color: #e85d84;
  margin: 18px 0 6px;
}

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;
}

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

.action-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid #ffe3ec;
  font-size: 12px;
  color: #5b4a4a;
  min-width: 90px;
}

.action-chip strong {
  color: #e85d84;
  font-size: 13px;
}

.figure-arrow {
  color: #e85d84;
  font-weight: 800;
  font-size: 16px;
}

.callout {
  margin: 14px 0;
  padding: 12px 14px;
  background: #fff6fa;
  border: 2px dashed #f3a8ba;
  border-radius: 14px;
  font-size: 13px;
}

.callout strong {
  color: #e85d84;
}

/* 顎のクールダウンを、ラウンドの並びとして視覚化する小さなドット列。 */
.cooldown-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
  padding: 16px 14px;
  background: #fff6fa;
  border: 2px solid #ffe3ec;
  border-radius: 16px;
}

.cooldown-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #9c8d8d;
}

.cooldown-dot .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #ffffff;
  border: 2px solid #ffe3ec;
}

.cooldown-dot.used .dot {
  background: #e85d84;
  border-color: #e85d84;
  color: #ffffff;
}

.cooldown-dot.blocked .dot {
  background: #f3f0ef;
  border-color: #e6dedc;
  color: #b6a9a4;
}

.cooldown-dot.ready .dot {
  background: #e3f5ea;
  border-color: #3fa06b;
  color: #3fa06b;
}

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

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

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