/* 規約・ポリシー・ルール・リリースノートの共通スタイル。
   本体(styles.css)とは別ファイルにしている。これらのページはポップアップ(iframe)の中で
   開かれるので、本体の画面レイアウトを持ち込むと二重に枠が付いてしまう。
   他のクォッカ作品の legal.css と同じものを使い、図解パーツだけ持っていない。 */

* {
  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: #5b4a4a;
  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;
}

/* 進行状況の札。投稿のルールのページで、一覧に出るものと同じ見た目で説明するために使う。 */
.status-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.chip-open { color: #e85d84; background: #fff6fa; border: 2px solid #ffe3ec; }
.chip-checking { color: #2f7bab; background: #e2f1fb; border: 2px solid #bfe0f4; }
.chip-planned { color: #a9781a; background: #ffe9b8; border: 2px solid #ffdc93; }
.chip-done { color: #3d7f5d; background: #dff3e7; border: 2px solid #c4e6d3; }
.chip-declined { color: #9c8d8d; background: #f4f0ee; border: 2px solid #e8e0dc; }

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

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