@charset "utf-8";
/* CSS Document */

/* Base */
.sp-only {
  display: none;
}
.t-mode-rwd[data-type="simple"] .l-footer {
  position: relative;
  z-index: 1001;
}
@media screen and (max-width: 767px) {
  html[lang="ja"] .m-header-logo {
    margin-left: 0 !important;
    left: 12px !important;
  }
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
}

/* Title */
.contents-title {
	font-size: 3.2rem;
	font-weight: 400;
	text-align: center;
}
@media screen and (max-width: 767px) {
  .contents-title {
    font-size: 2.2rem;
    margin-top: 30px;
  }
}

/* Contents */
#contents .m-box {
  margin-top: 25px;
  position: relative;
}
#contents .m-box::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  content: '';
  background: rgba(55,55,55,.3);
  transition: .5s;
  z-index: 100;
}
#contents .m-box.lock::after {
  width: 100%;
}
#contents .m-box.lock {
  pointer-events: none;
}
#contents .m-box[data-type="narrow"] .m-box-inner {
  padding: 13px 10px 0;
}
#contents .m-box[data-type="narrow"] label {
  margin-bottom: 13px;
  display: inline-block;
  margin-right: 15px;
}

/* Question with Image */
.test-flex {
  display: flex;
  margin-top: 15px;
}
.test-flex > * {
  margin-top: 0;
  width: 60%;
}
.test-flex > p:first-child {
  width: 40%;
  padding-right: 20px;
}
.test-flex[data-type="portrait"] > p:nth-child(2) {
  width: auto;
  display: inline-block;
}
.test-flex[data-type="portrait"] > p:first-child {
  max-width: 220px;
}
@media screen and (max-width: 767px) {
  .test-flex {
    flex-direction: column;
  }
  .test-flex > * {
    margin-top: 15px;
    width: 100%;
  }
  .test-flex > p:first-child {
    width: 100%;
    margin: 0 auto;
    padding-right: 0;
  }
  .test-flex[data-type="portrait"] > p:first-child {
    max-width: 200px;
  }
}

/* Result */
.result-box {
  display: none;
}
.result-box .correct, .result-box .incorrect {
  display: none;
}
.result-box.correct .correct, .result-box.incorrect .incorrect {
  display: flex;
  justify-content: center;
  align-items: center;
}
.result-box.correct .correct em, .result-box.incorrect .incorrect em {
  font-size: 2.4rem;
  letter-spacing: 0.4rem;
}
.result-box.correct .correct::before, .result-box.incorrect .incorrect::before {
  width: 100px;
  height: 100px;
  margin-right: 20px;
}
.result-box.correct .correct::before {
  content: url("../img/icn_correct.svg");
}
.result-box.incorrect .incorrect::before {
  content: url("../img/icn_incorrect.svg");
}
@media screen and (max-width: 767px) {
  .result-box.correct .correct em, .result-box.incorrect .incorrect em {
    font-size: 1.8rem;
    letter-spacing: 0.15rem;
  }
  .result-box.correct .correct::before, .result-box.incorrect .incorrect::before {
    width: 60px;
    height: 60px;
    margin-right: 10px;
  }
}

/* Comment Box */
.commentary-box {
  background: #f2f2f2;
  padding: 25px;
  margin-top: 30px;
}
.commentary-box > *:first-child {
  margin-top: 0;
}
.commentary-box .m-hdg {
  font-size: 1.8rem;
}
@media screen and (max-width: 767px) {
  .commentary-box {
    padding: 10px;
  }
}

/* Flex Check List */
.m-flex-input {
  margin: 20px 0 -20px -20px;
  display: flex;
  flex-wrap: wrap;
}
.m-flex-input > li {
  width: 50%;
  padding: 0 0 20px 20px;
  position: relative;
}
.m-flex-input > li::after {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  position: absolute;
  left: 20px;
  bottom: 20px;
  content: '';
  cursor: pointer;
}
.m-flex-input > li > .m-img {
  margin: 0 0 12px;
  position: relative;
}
.m-flex-input > li > .m-img.check::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 5px solid #117A18;
  box-sizing: border-box;
}
.m-flex-input > li > .m-img.check::before {
  content: '選択中';
  color: #fff;
  background-color: #117A18;
  font-size: 1.5rem;
  font-weight: 400;
  padding: 6px 30px 4px;
  border-radius: 20px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 50;
}
@media screen and (max-width: 767px) {
  .m-flex-input {
    margin: 0 0 -20px;
    flex-direction: column;
  }
  .m-flex-input > li {
    width: 100%;
    padding: 0 0 20px;
  }
  .m-flex-input > li::after {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    position: absolute;
    left: 20px;
    bottom: 20px;
    content: '';
    cursor: pointer;
  }
  .m-flex-input > li > .m-img.check::after {
    border: 4px solid #117A18;
  }
  .m-flex-input > li > .m-img.check::before {
    font-size: 1.4rem;
    padding: 6px 28px 4px;
    top: 15px;
    left: 15px;
  }
}

/* Result Comment */
.result-text {
  text-align: center;
  margin-top: 70px;
  font-size: 1.6rem;
}
.result-text > em {
  font-size: 2.2rem;
}

/* All Correct */
#final-result {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition-property: background;
  transition-duration: .5s;
  z-index: -1000;
}
#final-result.is-active {
  z-index: 1000;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
}
.result-img {
  width: 60%;
  max-width: 600px;
  height: 100%;
  max-height: 55vh;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  display: none;
}
.result-img > svg {
  width: 100%;
}
@media (orientation: portrait) {
  .result-img {
    width: 70%;
  }
}
@media screen and (max-width: 767px) {
  .result-img {
    width: 90%;
  }
}
.close-btn {
  text-align: center;
  margin-top: 30px;
}
.close-btn button {
  color: #fff;
  font-size: 2.2rem;
  padding: 12px 60px 10px;
  background: #000;
  border-radius: 50px;
}
@media screen and (max-width: 767px) {
  .close-btn button {
    font-size: 1.6rem;
  }
}