.ex1 {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

[data-answer-group] {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.ex1 [aria-hidden="false"] .bg .man {
  transform: translate(0, 0);
  transition: all 600ms cubic-bezier(0.2, 1.47, 0.82, 0.89);
  transition-delay: 400ms;
}

.ex1 [aria-hidden="false"] .ex1--blackboard-balloon {
  opacity: 1;
  transform: translate(0, 0);
  transition: all 400ms cubic-bezier(0.58, 1.38, 0.59, 0.91);
  transition-delay: 600ms;
}

.ex1 .bg {
  position: relative;
  overflow: hidden;
  height: 22.4rem;
  width: 100%;
  background: url(./images/board.svg) no-repeat 50% 0 / 53.9rem;
}

/* .ex1--item[aria-hidden="true"] .bg {
  display: none;
} */

.ex1--item[aria-hidden="false"] {
  position: relative;
  z-index: 1;
}

.ex1--item[aria-hidden="true"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.ex1--item {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ex1--item .man {
  width: 14rem;
  height: 17rem;
  display: block;
  position: absolute;
  top: 6rem;
  left: 11rem;
  transform: translate(0, 14rem);
  transform-origin: 50% 100%;
}

.ex1--blackboard-balloon {
  position: absolute;
  width: 31.1rem;
  height: 12rem;
  background: url(./images/balloon.svg) no-repeat 0 0 / cover;
  top: 3.8rem;
  left: 26rem;
  padding: 1.2rem 2rem 1rem 2.8rem;
  text-align: center;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.8rem;
  opacity: 0;
  transform: translate(-2rem, 0);
}

.ex1--blackboard-balloon .katex-display {
  display: inline-block;
  margin: .8rem 0;
}

.ex1--blackboard-name {
  position: absolute;
  display: flex;
  width: 9.1rem;
  height: 5rem;
  border-top-right-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff;
  background-color: #395E58;
  align-items: center;
  justify-content: center;
  top: 2.6rem;
  left: 6.7rem;
}

.n1 .ex1--blackboard-name {
  background-color: #395E58;
}

.n2 .ex1--blackboard-name {
  background-color: #6A678F;
}

.n3 .ex1--blackboard-name {
  background-color: #687F56;
}

.n4 .ex1--blackboard-name {
  background-color: #72433F;
}

.ex1--ladder {
  margin-top: 4rem;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 6rem;
}

.ex1--ladder-bg {
  display: block;
  width: 67.2rem;
}

.ex1--head {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  top: 3rem;
  left: 0;
  gap: 2.7rem;
  padding-right: 3.6rem;
}

.ex1--line {
  display: block;
  pointer-events: none;
  position: absolute;
  top: 4.5rem;
  left: 9.1rem;
  width: 50rem;
}

.ex1--line img {
  width: 50rem;
  position: absolute;
  top: 0;
}

.ex1--head [data-toggle-target] {
  top: 0;
  left: 0;
  position: absolute;
}

.ex1--head-btn[data-value="1"] {
  background-color: #F2FDFF;
  border-color: #71C7D5;
}

.ex1--line svg {
  z-index: 1;
  position: relative;
}


[data-toggle-target="ex1_1_1"] .ex1--line path {
  stroke: #fff;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 850;
  stroke-dashoffset: 850;
  transition: none;
}

[data-toggle-target="ex1_1_2"] .ex1--line path {
  stroke: #fff;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 850;
  stroke-dashoffset: 850;
  transition: none;
}

[data-toggle-target="ex1_1_3"] .ex1--line path {
  stroke: #fff;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 1005;
  stroke-dashoffset: 1005;
  transition: none;
}

[data-toggle-target="ex1_1_4"] .ex1--line path {
  stroke: #fff;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 1005;
  stroke-dashoffset: 1005;
  transition: none;
}

.ex1--line {
  overflow: hidden;
}

[data-n="1"] .ex1--head-btn[data-value="1"]+[data-toggle-target] .ex1--line path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s linear;
}

[data-n="2"] .ex1--head-btn[data-value="2"]+[data-toggle-target] .ex1--line path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s linear;
}

[data-n="3"] .ex1--head-btn[data-value="3"]+[data-toggle-target] .ex1--line path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s linear;
}

[data-n="4"] .ex1--head-btn[data-value="4"]+[data-toggle-target] .ex1--line path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s linear;
}

.ex1--head-btn[data-value="1"]:disabled+[data-toggle-target] .ex1--line path {
  stroke-dashoffset: 0;
}

.ex1--head-btn[data-value="2"]:disabled+[data-toggle-target] .ex1--line path {
  stroke-dashoffset: 0;
}

.ex1--head-btn[data-value="3"]:disabled+[data-toggle-target] .ex1--line path {
  stroke-dashoffset: 0;
}

.ex1--head-btn[data-value="4"]:disabled+[data-toggle-target] .ex1--line path {
  stroke-dashoffset: 0;
}
.end .ex1--line path{opacity: .3;}

.ex1--head-btn[data-disabled="true"] {
  pointer-events: none;
  color: #ccc;
  transition: all 200ms;
}

/* .ex1--result-name span{display: none;} */
.on.ex1--head-btn[data-value="1"]+[data-toggle-target] .ex1--result-text {
  background-color: #F2FDFF;
  border-color: #71C7D5;
}

.on.ex1--head-btn[data-value="1"]+[data-toggle-target] .ex1--result-name {
  display: flex;
  background-color: #71C7D5;
}

.on.ex1--head-btn[data-value="1"]+[data-toggle-target] .ex1--result-name .n1 {
  display: inline-block;
}

.on.ex1--head-btn[data-value="2"] {
  background-color: #F0EFFF;
  border-color: #7E94CB;
}

.on.ex1--head-btn[data-value="2"]+[data-toggle-target] .ex1--result-text {
  background-color: #F0EFFF;
  border-color: #7E94CB;
}

.on.ex1--head-btn[data-value="2"]+[data-toggle-target] .ex1--result-name {
  display: flex;
  background-color: #7E94CB;
}

.on.ex1--head-btn[data-value="2"]+[data-toggle-target] .ex1--result-name .n2 {
  display: inline-block;
}

.on.ex1--head-btn[data-value="3"] {
  background-color: #F3FCEF;
  border-color: #A2D08D;
}

.on.ex1--head-btn[data-value="3"]+[data-toggle-target] .ex1--result-text {
  background-color: #F3FCEF;
  border-color: #A2D08D;
}

.on.ex1--head-btn[data-value="3"]+[data-toggle-target] .ex1--result-name {
  display: flex;
  background-color: #A2D08D;
}

.on.ex1--head-btn[data-value="3"]+[data-toggle-target] .ex1--result-name .n3 {
  display: inline-block;
}

.on.ex1--head-btn[data-value="4"] {
  background-color: #FFECDA;
  border-color: #E6915C;
}

.on.ex1--head-btn[data-value="4"]+[data-toggle-target] .ex1--result-text {
  background-color: #FFECDA;
  border-color: #E6915C;
}

.on.ex1--head-btn[data-value="4"]+[data-toggle-target] .ex1--result-name {
  display: flex;
  background-color: #E6915C;
}

.on.ex1--head-btn[data-value="4"]+[data-toggle-target] .ex1--result-name .n4 {
  display: inline-block;
}

.ex1--head {
  z-index: 2;
}

.ex1--head-btn,
.ex1--head label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14rem;
  height: 4.2rem;
  border: 1.2rem;
  border: .3rem solid #E6915C;
  background-color: #fff;
  font-size: 2rem;
  border-radius: 1.2rem;
}

.ex1--head-btn:hover,
.ex1--head-btn:active,
.ex1--head-btn:focus {
  outline: .2rem solid #fff !important;
  color: #fff;
  background-color: #E6915C;
  box-shadow: 0 .3rem 1.3rem rgba(242, 151, 108, 1);
}

.ex1--line {
  display: block;
  position: absolute;
}

.ex1--result-item.n1 {
  left: 1.6rem;
}

.ex1--result-item.n2 {
  left: 18.3rem;
}

.ex1--result-item.n3 {
  left: 35rem;
}

.ex1--result-item.n4 {
  left: 51.8rem;
}

.ex1--result-item {
  position: absolute;
  width: 14rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  top: 23rem;
}

.ex1--result-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14rem;
  border: .3rem solid #E6915C;
  background-color: #fff;
  font-size: 1.4rem;
  border-radius: 1.2rem;
  text-align: center;
  height: 10.2rem;
  padding: 1rem .4rem;
}

.ex1--result-text-value {
  text-align: center
}

.ex1--result-text-value .katex {
  position: relative;
  top: .1rem
}

.ex1--result-name {
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
  width: 100%;
  height: 4rem;
  border-radius: 1.2rem;
  display: none;
}

[data-toggle-target]:nth-of-type(1) .ex1--result-name {
  background-color: #A2D08D;
}

[data-toggle-target]:nth-of-type(2) .ex1--result-name {
  background-color: #71C7D5;
}

[data-toggle-target]:nth-of-type(3) .ex1--result-name {
  background-color: #F2976C;
}

[data-toggle-target]:nth-of-type(4) .ex1--result-name {
  background-color: #7E94CB;
}

.result-mathman {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 1.6rem;
  gap: 2.4rem 3.2rem;
}

.result-mathman>div {
  border-radius: 2rem;
  overflow: hidden;
  border: .3rem solid #71C7D5;
  background-color: #fff;
  width: 28rem;
}

.result-mathman dt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.3rem;
  font-size: 1.6rem;
  color: #000;
  background-color: #71C7D5;
}

.result-mathman dd {
  display: flex;
  height: 11.5rem;
}

.result-mathman dd .img img {
  width: 110%;
  margin-left: -5%;
  margin-top: -5%;
}

.result-mathman dd .img {
  width: 9.5rem;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #B1DDE5;
}

.result-mathman dd .txt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.result-mathman>div:nth-child(2) {
  border-color: #7E94CB;
}

.result-mathman>div:nth-child(2) dt {
  background-color: #7E94CB;
}

.result-mathman>div:nth-child(2) dd .img {
  background-color: #c5cce7;
}

.result-mathman>div:nth-child(3) {
  border-color: #A2D08D;
}

.result-mathman>div:nth-child(3) dt {
  background-color: #A2D08D;
}

.result-mathman>div:nth-child(3) dd .img {
  background-color: #d1e7c5;
}

.result-mathman>div:nth-child(4) {
  border-color: #F2976C;
}

.result-mathman>div:nth-child(4) dt {
  background-color: #F2976C;
}

.result-mathman>div:nth-child(4) dd .img {
  background-color: #fad7c2;
}

.page-source [translate="no"] {
  margin-left: .4rem;
  letter-spacing: 0
}

[data-mode="complete"] [data-result-answer="X"]+div .ex1--result-item .ex1--result-name {
  border: .2rem solid #D54551 !important;
  color: #D54551 !important;
  background: #fff !important;
}

.bul-dot .katex-display {
  display: inline-block;
}

.icon-arrow {
  display: inline-block;
  vertical-align: middle;
  margin: 0 1rem;
}

[data-mode="complete"] .ex1--result-name {
  pointer-events: none;
}

.bul-notice {
  position: absolute;
  top: 69rem;
  left: 50%;
  transform: translateX(-50%);
}

.q-all-area {background:url(./images/board-2.png) no-repeat 50% 0 / 53.9rem;width:71.2rem;margin:0 auto;height:32rem;padding:2rem 12rem 0 7rem;display:none;flex-direction:column;gap:.8rem;}
[data-mode="complete"] .q-all-area {display:flex}
[data-mode="complete"] .ex1--ladder,
[data-mode="complete"] .ex1{margin-top:0}
[data-mode="complete"] .ex1--item,
[data-mode="complete"] .bul-notice {display: none !important;}
.q-list-item {display:flex;gap:2rem;width:100%;align-items:center}
.q-list-item .ex1--blackboard-name {position:relative;flex-shrink:0;top:0;left:0}
.q-list-item .ex1--blackboard-name::before {content:'';background:url("./images/name-bullet.png") no-repeat 50% 50%;width:3.2rem;aspect-ratio:104/40;background-size:contain;position:absolute;right:4.8rem;top:100%}
.q-list-item .ex1--blackboard-name[data-color="n1"] {background-color:#395E58}
.q-list-item .ex1--blackboard-name[data-color="n2"] {background-color:#6A678F}
.q-list-item .ex1--blackboard-name[data-color="n3"] {background-color:#687F56}
.q-list-item .ex1--blackboard-name[data-color="n4"] {background-color:#72433F}
.q-list-item .ex1--blackboard-balloon {position:relative;opacity:1;height:6rem;background:#fff;border-radius:1.2rem;transform:translate(0, 0);width:100%;top:0;left:0}
.q-list-item .ex1--blackboard-balloon::before {content:'';background:url("./images/balloon-bullet.png") no-repeat 50% 50%;width:1.6rem;aspect-ratio:1/1;background-size:contain;position:absolute;left:-1.2rem;top:50%;margin-top:-1rem}