* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 16px 14px 60px;
  background: #fff;
  color: #222;
  line-height: 1.6;
  font-size: 16px;
}

.hidden { display: none; }

#status {
  padding: 40px 10px;
  text-align: center;
  color: #666;
  font-size: 15px;
}

h1 { font-size: 20px; margin: 0 0 4px; }

h2 {
  font-size: 16px;
  margin: 26px 0 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ddd;
}

.req {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #fff;
  background: #c62828;
  padding: 1px 7px;
  border-radius: 3px;
  vertical-align: middle;
}

.ename { font-size: 15px; color: #444; margin: 0 0 4px; font-weight: bold; }

.drill {
  display: inline-block;
  background: #e8f0fe;
  color: #1a2a4a;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.whoami { font-size: 13px; color: #777; margin: 0 0 12px; }

.hint { font-size: 13px; color: #777; margin: 4px 0 8px; }

.warn {
  border: 2px solid #1a2a4a;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 4px;
  background: #f7f9fc;
}

.warn.ng {
  border-color: #c62828;
  background: #ffebee;
  color: #c62828;
  margin-top: 10px;
}

/* 【3】開閉式のチェックボックス */

details#dmgBox {
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
}

details#dmgBox summary {
  cursor: pointer;
  padding: 13px 14px;
  font-size: 16px;
  list-style: none;
  position: relative;
  color: #1a2a4a;
}

details#dmgBox summary::-webkit-details-marker { display: none; }

details#dmgBox summary::after {
  content: "▼";
  position: absolute;
  right: 14px;
  font-size: 12px;
  color: #888;
}

details#dmgBox[open] summary::after { content: "▲"; }

details#dmgBox[open] summary { border-bottom: 1px solid #e0e0e0; }

.checks { padding: 4px 0 8px; }

.checks label {
  display: block;
  padding: 11px 14px;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.checks label:last-child { border-bottom: none; }

.checks input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: -5px;
}

.checks label.on { background: #eef3fa; }

/* 【2】いまの居場所 */

/* 【4】伝えたいこと */

textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-family: inherit;
  line-height: 1.6;
}

/* 【1】【2】選択肢ボタン */

.choices { display: flex; flex-wrap: wrap; gap: 8px; }

button.choice {
  padding: 11px 16px;
  font-size: 15px;
  color: #1a2a4a;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  cursor: pointer;
}

button.choice.on {
  color: #fff;
  background: #1a2a4a;
  border-color: #1a2a4a;
}

/* 送信 */

button.send {
  display: block;
  width: 100%;
  margin-top: 26px;
  padding: 15px;
  font-size: 17px;
  color: #fff;
  background: #1a2a4a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button.send:disabled { background: #999; }

.sendmsg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.sendmsg.ok { color: #2e7d32; }
.sendmsg.ng { color: #c62828; }
