/* グローバルスタイル */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 20px;
}

h1 {
  color: #333;
}

p {
  color: #666;
}

input[type="text"],
input[type="number"],
textarea {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.w-100p {
  width: 100px;
}

.h-100p {
  height: 100px;
}

select {
  width: 100px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.addbutton {
  height: 35px;
  padding: 0 15px;
  color: #fff;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #5B98ED;
  cursor: pointer;
  transition: opacity 0.3s;
}

.removebutton {
  height: 35px;
  padding: 0 15px;
  color: #fff;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #F76C9C;
  cursor: pointer;
  transition: opacity 0.3s;
}

.flex {
  display: flex;
  justify-content: space-between;
}

.top {
  display: flex;
  align-items: center;
}

.preview-btn {
  display: none;
  width: 90px;
  padding: 0;
  background-color: deepskyblue;
  border: none;
  border-radius: 4px;
  height: 30px;
  margin: 0 0 8px 30px;
  color: white;
}

.preview-btn a {
  color: white;
}

/* テーブル */
dl,
dt,
dd,
ol,
ul,
li {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  background: transparent;
  vertical-align: baseline;
  font-weight: 0;
}

.listBox {
  position: relative;
  height: 65%;
}

.listBox>.inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.listBox .lists {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr;
  grid-template-areas:
    "g1"
    "g2";
  height: 100%;
}

.lists .listHeader {
  grid-area: g1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #DDD;
  border-right: 1px solid #DDD;
}

.lists .listHeader>div:nth-of-type(1) {
  flex-basis: 220px;
  width: 220px;
}

.lists .listHeader>div:nth-of-type(2) {
  flex-basis: 280px;
  width: 280px;
}

.lists .listHeader>div:nth-of-type(3) {
  flex: 1;
}

.lists .listHeader>div {
  flex-grow: 0;
  flex-shrink: 0;
  padding: 11px 16px;
  line-height: 1;
  background: #F5F6FA;
  border-left: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
  box-sizing: border-box;
  font-weight: 500;
  font-size: 0.875rem;
}

.lists .listBody {
  grid-area: g2;
  position: relative;
  font-size: 0.875rem;
}

.lists .listBody>.inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.lists .listBody>.inner>dl.list1 {
  display: flex;
  justify-content: space-between;
  border-right: 1px solid #DDD;
  border-bottom: 20px solid #DDD;
}

.lists .listBody>.inner>dl.list1>dt {
  flex-basis: 220px;
  width: 220px;
  border-left: 1px solid #DDD;
  border-right: 1px solid #DDD;
  /* border-bottom: 1px solid #DDD; */
  box-sizing: border-box;
  position: relative;
}

.lists .listBody>.inner>dl.list1>dt>div {
  position: sticky;
  top: 0;
  padding: 14px 16px;
}

.lists .listBody>.inner>dl.list1 span {
  display: inline-block;
  font-weight: 500;
}

.lists .listBody>.inner>dl.list1>dd {
  flex: 1;
}

.lists .listBody>.inner>dl.list1>dd>dl.list2 {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #DDD;
}

.lists .listBody>.inner>dl.list1>dd>dl.list2>dt {
  border-right: 1px solid #DDD;
  flex-basis: 280px;
  width: 280px;
  /* border-bottom: 1px dotted #DDD; */
  box-sizing: border-box;
  position: relative;
}

.lists .listBody>.inner>dl.list1>dd>dl.list2>dt>div {
  position: sticky;
  top: 0;
  padding: 14px 16px;
}

.lists .listBody>.inner>dl.list1>dd>dl.list2>dd {
  flex: 1;
}

.lists .listBody>.inner>dl.list1>dd>dl.list2>dd>dl.list3 {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #DDD;
}

.lists .listBody>.inner>dl.list1>dd>dl.list2>dd>dl.list3>dt {
  padding: 14px 16px;
  border-right: 1px solid #DDD;
  flex: 1;
}

.last-page,
.after-answer-page {
  margin: 75px auto;
}

.mode-choice-page {
  margin: 30px auto;
}

.ql-editor {
  background-color: white;
}

.plus-btn,
.minus-btn {
  border: none;
  background-color: #f8f9fa;
}

.plus-btn img,
.minus-btn img {
  width: 25px;
}


/* === ボタンを表示するエリア ============================== */
.switchArea {
  line-height: 22px;
  /* 1行の高さ          */
  letter-spacing: 0;
  /* 文字間             */
  text-align: center;
  /* 文字位置は中央     */
  font-size: 8px;
  /* 文字サイズ         */
  position: relative;
  /* 親要素が基点       */
  margin-left: 20px;
  /* 中央寄せ           */
  width: 80px;
  /* ボタンの横幅       */
}

/* === チェックボックス ==================================== */
.switchArea input[type="checkbox"] {
  display: none;
  /* チェックボックス非表示 */
}

/* === チェックボックスのラベル（標準） ==================== */
.switchArea label {
  display: block;
  /* ボックス要素に変更 */
  box-sizing: border-box;
  /* 枠線を含んだサイズ */
  height: 22px;
  /* ボタンの高さ       */
  border: 2px solid #78bd78;
  /* 未選択タブのの枠線 */
  border-radius: 11px;
  /* 角丸               */
}

/* === チェックボックスのラベル（OFFのとき） ================ */
.switchArea input[type="checkbox"]:checked+label {
  border-color: #999999
    /* 選択タブの枠線     */
}

/* === 表示する文字（標準） ================================ */
.switchArea label span:after {
  content: "ON";
  /* 表示する文字       */
  padding: 0 0 0 13px;
  /* 表示する位置       */
  color: #78bd78;
  /* 文字色             */
}

/* === 表示する文字（OFFのとき） ============================ */
.switchArea input[type="checkbox"]:checked+label span:after {
  content: "OFF";
  /* 表示する文字       */
  padding: 0 13px 0 0;
  /* 表示する位置       */
  color: #999999;
  /* 文字色             */
}

/* === 丸部分のSTYLE（標準） =============================== */
.switchArea #swImg {
  position: absolute;
  /* 親要素からの相対位置*/
  width: 14px;
  /* 丸の横幅           */
  height: 14px;
  /* 丸の高さ           */
  background: #78bd78;
  /* カーソルタブの背景 */
  top: 4px;
  /* 親要素からの位置   */
  left: 4px;
  /* 親要素からの位置   */
  border-radius: 7px;
  /* 角丸               */
  transition: .2s;
  /* 滑らか変化         */
}

/* === 丸部分のSTYLE（OFFのとき） =========================== */
.switchArea input[type="checkbox"]:checked~#swImg {
  transform: translateX(58px);
  /* 丸も右へ移動       */
  background: #999999;
  /* カーソルタブの背景 */
}