html,
body,
#wrapper {
  height: 100%;
  background: var(--c-white);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45px;
  background: #0168b5;
  z-index: 99;
}

#logo {
  margin: auto;
  width: 180px;
}

main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 540px;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 108px 27px 36px;
  background: var(--c-white);
  box-sizing: border-box;
  transform: translateX(100%);
  /* animation */
  transition: transform 270ms var(--timing-function);
  overflow-y: scroll;
}

.box.active {
  transform: translateX(0);
}

.box.none {
  transform: translateX(-100%) !important;
}

.box .txt {
  line-height: 1.5;
  font-size: 1.7rem;
  text-align: justify;
}

.box .select {
  padding: 27px 0 0;
}

.box .opt {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 9px;
  font-size: 1.6rem;
  line-height: 1.5;
  border: 1px solid var(--c-iron);
  border-radius: 6px;
  transition: border-color 180ms var(--timing-function);
}

.box .opt::before {
  content: "";
  margin: 0 9px 0 0;
  min-width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--c-iron);
  transition:
    background-color 180ms var(--timing-function),
    border-color 180ms var(--timing-function);
}

.box .opt.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  bottom: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  background: url(../../assets/img/check.svg) no-repeat;
  background-size: cover;
  transition:
    opacity 180ms var(--timing-function);
}

.box .opt.active {
  border: 1px solid var(--c-blue);
}

.box .opt.active::before {
  background: var(--c-blue);
  border: 2px solid var(--c-blue);
}

.box .opt.active::after {
  opacity: 1;
}

/* top */
#top .ttl {
  margin: 0 0 27px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  color: #0168b5;
  z-index: 1;
}

#top .txt {
  line-height: 1.5;
  font-size: 1.6rem;
  text-align: justify;
}

#top .btn {
  margin: 45px auto 0;
  width: 180px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 1.6rem;
  color: var(--c-white);
  background: var(--c-blue);
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}

/* q */
#q1 {
  z-index: 2;
}

#q2 {
  z-index: 3;
}

#q3 {
  z-index: 4;
}

#q4 {
  z-index: 5;
}

#q5 {
  z-index: 6;
}

#q6 {
  z-index: 7;
}

#q7 {
  z-index: 8;
}

#q8 {
  z-index: 9;
}

#err,
#comp {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--c-white);
  z-index: 1100;
  /* animation */
  transition: opacity 270ms var(--timing-function);
  pointer-events: none;
  opacity: 0;
}

#err.active,
#comp.active {
  pointer-events: all;
  opacity: 1;
}

#err .content,
#comp .content {
  margin: -108px 0 0;
  padding: 27px;
}

#comp .tmb {
  margin: auto;
  width: 108px;
  height: 108px;
  object-fit: cover;
}

#comp .tmb img {
  width: 108px;
  height: 108px;
}

#err .txt,
#comp .txt {
  font-size: 1.8rem;
  line-height: 1.5;
  text-align: center;
}

#errBtn {
  margin: 45px auto 0;
  width: 180px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 1.6rem;
  color: var(--c-white);
  background: var(--c-red);
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}

#processing {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--c-white);
  z-index: 1050;
  /* animation */
  transition: opacity 270ms var(--timing-function);
  pointer-events: none;
  opacity: 0;
}

#processing::before {
  content: "";
  width: 27px;
  height: 27px;
  border: 3px solid var(--c-blue);
  border-top-color: var(--c-whisper);
  border-radius: 50%;
  animation: load 1080ms linear infinite;
}

#processing.active {
  pointer-events: all;
  opacity: 1;
}

@keyframes load {
  100% {
    transform: rotate(360deg);
  }
}

/* form */
.bttom {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  margin: 27px 0 0;
  height: 36px;
}

.bttom .btn,
.bttom #send {
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 1.6rem;
  color: var(--c-white);
  background: var(--c-blue);
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  transition: 180ms var(--timing-function);
}

.bttom .btn.ban {
  color: var(--c-gray);
  background: var(--c-whisper);
  pointer-events: none;
  box-shadow: none;
}

.bttom .btn[prev] {
  color: var(--c-blue);
  background: var(--c-whisper);
  box-shadow: none;
}

.bttom #send {
  background: linear-gradient(135deg, var(--c-teal), var(--c-blue));
}

.block {
  position: relative;
  margin: 27px 0 45px;
}

.block input,
.block select {
  padding: 0 12px;
  width: 100%;
  height: 45px;
  line-height: 45px;
  font-size: 1.6rem;
  border: 1px solid var(--c-iron);
  box-sizing: border-box;
  transition: 180ms var(--timing-function);
}

.block textarea {
  padding: 12px;
  width: 100%;
  min-height: 180px;
  line-height: 1.5;
  font-size: 1.6rem;
  border: 1px solid var(--c-iron);
  box-sizing: border-box;
  transition: border-color 180ms var(--timing-function);
  resize: vertical;
}

.block label {
  position: absolute;
  top: 0;
  left: 9px;
  bottom: 0;
  margin: auto;
  display: block;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  font-size: 1.4rem;
  color: var(--c-gray);
  background: var(--c-white);
  transition: 180ms var(--timing-function);
}

.block textarea+label {
  top: 12px !important;
  bottom: auto !important;
}

.block input:focus,
.block select:focus,
.block textarea:focus {
  border: 1px solid var(--c-blue);
}

.block input:focus+label,
.block select:focus+label,
.block textarea:focus+label {
  color: var(--c-blue) !important;
  transform: translateY(-24px);
}

.block input:not(:placeholder-shown)+label,
.block select:not(:placeholder-shown)+label,
.block textarea:not(:placeholder-shown)+label {
  color: var(--c-gray);
  transform: translateY(-24px);
}

.group {
  display: none;
}

.group.active {
  display: block;
}

/* progress */
#progress {
  position: fixed;
  top: 45px;
  left: 0;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid var(--c-iron);
  background: var(--c-white);
  z-index: 50;
  transform: translateX(100%);
  /* animation */
  transition: transform 270ms var(--timing-function);
}

#progress.active {
  transform: translateX(0);
}

#progress .inner {
  position: relative;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 273px;
  height: 50px;
  z-index: 3;
}

#progress .dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-iron);
  border: 2px solid var(--c-white);
  transition: 108ms var(--timing-function);
}

#progress .dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-white);
}

#progress .dot.active {
  background: var(--c-blue);
}

#progress .dot.dn {
  display: none;
}

#bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 270px;
  height: 3px;
  background: var(--c-iron);
  overflow: hidden;
  z-index: 1;
}

#bar span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 0;
  height: 3px;
  background: var(--c-blue);
  transition: 108ms var(--timing-function);
}

/* pop */
.pop {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .72);
  z-index: 1000;
  /* animation */
  transition: opacity 270ms var(--timing-function);
  pointer-events: none;
  opacity: 0;
}

.pop.active {
  pointer-events: all;
  opacity: 1;
}

.pop .pic {
  position: relative;
  margin: auto;
  width: 90%;
  max-height: 90%;
  background: var(--c-white);
  overflow-y: scroll;
  border-radius: 18px;
}

.pop .close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 27px;
  height: 27px;
  background: var(--c-whisper);
  border-radius: 50%;
}

.pop .close::before,
.pop .close::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 18px;
  height: 2px;
  background: var(--c-blue);
}

.pop .close::before {
  transform: rotate(45deg);
}

.pop .close::after {
  transform: rotate(-45deg);
}

.pop .txt {
  padding: 27px;
  line-height: 1.5;
  font-size: 1.6rem;
  text-align: center;
}

.pop .select {
  padding: 0 27px 18px;
}

.pop .opt {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 9px;
  font-size: 1.6rem;
  line-height: 1.5;
  border: 1px solid var(--c-iron);
  border-radius: 6px;
  transition: border-color 180ms var(--timing-function);
}

.pop .opt::before {
  content: "";
  margin: 0 9px 0 0;
  min-width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--c-iron);
  transition:
    background-color 180ms var(--timing-function),
    border-color 180ms var(--timing-function);
}

.pop .opt.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  bottom: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  background: url(../../assets/img/check.svg) no-repeat;
  background-size: cover;
  transition:
    opacity 180ms var(--timing-function);
}

.pop .opt.active {
  border: 1px solid var(--c-blue);
}

.pop .opt.active::before {
  background: var(--c-blue);
  border: 2px solid var(--c-blue);
}

.pop .opt.active::after {
  opacity: 1;
}

.lbl-1,
.lbl-2,
.lbl-3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.lbl-1 {
  color: var(--c-blue);
}

.lbl-2 {
  color: var(--c-red);
}

.lbl-3 {
  color: var(--c-yellow);
}

.fb {
  margin: 6px 0 9px;
  font-weight: 500;
}

.date {
  font-size: 1.4rem;
  color: var(--c-gray);
}

.inBox {
  pointer-events: none;
}

.link {
  position: relative;
  display: block;
  margin: 18px 0 0;
  padding: 9px 0;
  width: 144px;
  text-align: center;
  font-size: 1.6rem;
  color: var(--c-blue);
  background: var(--c-whisper);
  border-radius: 6px;
}

.picker {
  padding: 0 0 9px;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--c-iron);
}

.week span {
  display: block;
  padding: 6px 0;
  font-size: 1.5rem;
  text-align: center;
}

.week span:nth-child(1) {
  color: var(--c-red);
}

.week span:nth-child(7) {
  color: var(--c-blue);
}

.body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.body span {
  display: block;
  padding: 12px 0;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.body span:nth-child(7n + 1) {
  color: var(--c-red);
}

.body span:nth-child(7n) {
  color: var(--c-blue);
}

.body span.none {
  pointer-events: none;
  color: var(--c-gray) !important;
  opacity: .36;
}



/* last */
#last .note {
  margin: 18px 0;
  font-size: 1.4rem;
  line-height: 1.5;
}

#last a {
  font-size: 1.4rem;
  color: var(--c-blue);
  text-decoration: underline;
}

.unit {
  margin: 18px 0;
  border: 1px solid var(--c-iron);
}

.question {
  padding: 9px;
  font-size: 1.4rem;
  line-height: 1.5;
  background: rgba(0, 0, 0, .03);
  color: var(--c-gray);
  border-bottom: 1px solid var(--c-iron);
}

.answer {
  padding: 9px;
  font-size: 1.4rem;
  line-height: 1.5;
}