@charset "utf-8";

/** ***************************************************************************
 * 共用
 * ************************************************************************* */

#main {
  padding: 45px 0 25px;
  background-color: rgb(var(--accentcolor-4));
}

@media screen and (min-width:768px) {

  #main {
    padding: 70px 0 50px;
  }

}

/** ***************************************************************************
 * 診断プログラム
 * ************************************************************************* */

#shindan {
  padding: 35px 20px 25px;
  border-radius: 30px;
  border: 4px solid rgb(var(--accentcolor-1));
  background-color: rgb(var(--accentcolor-5));
  position: relative;
  z-index: 0;
}

@media screen and (min-width:768px) {

  #shindan {
    padding: 70px 50px 40px;
    border-radius: 40px;
  }

}

/**
 * 質問番号
 */

#shindan div.counter {
  width: 3em;
  height: 3em;
  padding-bottom: 0.2em;
  color: #fff;
  letter-spacing: 0;
  line-height: 0;
  font-size: 1.286em;
  font-weight: 900;
  border-radius: 9999px;
  background-color: rgb(var(--accentcolor-1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 1;
  top: -1.5em;
  left: calc(50% - 1.5em);
}

@media screen and (min-width:768px) {

  #shindan div.counter {
    width: 2.75em;
    height: 2.75em;
    font-size: 2em;
    top: -1.375em;
    left: calc(50% - 1.375em);
  }

}

/**
 * 質問
 */

#shindan div.question {
  line-height: 1.4;
  font-size: 1.138em;
  font-weight: 900;
  text-align: center;
}

@media screen and (min-width:768px) {

  #shindan div.question {
    font-size: 1.34em;
  }

}

/**
 * 回答ボタン
 */

#shindan div.answer {
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
}

#shindan div.answer a {
  width: 5.25em;
  height: 5.25em;
  padding: 1em 1em 1.2em;
  cursor: pointer;
  line-height: 1;
  font-size: 1.571em;
  font-weight: 900;
  border-radius: 9999px;
  border: 4px solid rgb(var(--accentcolor-2));
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.3s ease-in-out 0.0s,
    background-color 0.3s ease-in-out 0.0s;
  color: rgb(var(--accentcolor-2));
  background-color: #fff;
}

#shindan div.answer a:hover {
  color: #fff;
  background-color: rgb(var(--accentcolor-2));
}

@media screen and (min-width:768px) {

  #shindan div.answer {
    margin-top: 35px;
    justify-content: space-between;
  }

  #shindan div.answer a {
    font-size: 2.89em;
    border-width: 8px;
  }

}

/**
 * あと〇問
 */

#shindan div.progress {
  margin-top: 15px;
}

@media screen and (min-width:768px) {

  #shindan div.progress {
    margin-top: 45px;
  }

}

/* あと〇問 */

#shindan div.progress div.text {
  line-height: 1;
  font-size: 1.125em;
  font-weight: 700;
  text-align: center;
}

@media screen and (min-width:768px) {

  #shindan div.progress div.text {
    font-size: 1.34em;
  }

}

/* 進捗バー */

#shindan div.progress div.bar {
  height: 18px;
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
  border: 2px solid rgb(var(--accentcolor-1));
  background-color: rgb(var(--accentcolor-7));
  position: relative;
  z-index: 0;
}

#shindan div.progress div.bar::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("../image/progress-goal.png") 0 0 / 100% 100% no-repeat;
  position: absolute;
  z-index: 1;
  top: -20px;
  right: -16px;
}

#shindan div.progress div.bar span {
  width: 25%;
  height: 100%;
  background-color: rgb(var(--accentcolor-1));
  display: block;
}

@media screen and (min-width:768px) {

  #shindan div.progress div.bar {
    max-width: 530px;
    height: 27px;
    margin-top: 15px;
    border-width: 4px;
  }

  #shindan div.progress div.bar::before {
    width: 34px;
    height: 34px;
    top: -34px;
    right: -30px;
  }

}
