@media print {
  html, body {
    height: auto;
  }

  body {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    zoom: 0.56;
  }

  body .result-content {
    margin-top: 10px;
  }

  .result .answer {
    font-size: 14px;
    line-height: 10px;
  }

  .result-left .script {
    padding: 15px 10px;
  }
}

@media print and (-ms-high-contrast: none) {
  body #middle {
    padding: 0 5px;
    background-color: #ffffff;
    max-width: 890px;
  }

  body .check-title-r {
    margin-bottom: 10px;
    font-size: 20px !important;
  }

  body .result-head {
    height: auto;
  }

  body .result-head::after {
    left: 20% !important;
  }

  body .result-head * {
    position: static;
  }

  body .result-head .score img {
    margin: 0;
    width: 35%;
  }

  body .result-head .score p {
    font-size: 30px;
    margin-left: 5px;
  }

  body .result-head .score p span {
    font-size: 14px;
    margin-left: 5px;
  }

  body .result-head .score,
  body .result-head .one-point {
    float: left;
    padding: 10px;
    box-sizing: border-box;
    /* position: static; */
  }

  body .result-head .score {
    width: 20%;
    padding-top: 2%;
    padding-left: 3%;
    box-sizing: border-box;
  }

  body .result-head .one-point {
    font-size: 16px;
    padding-left: 10%;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 70% !important;
    line-height: 1.7em;
  }

  body h3 {
    font-size: 18px;
    margin: 10px 0 5px;
  }

  body .result-row h4 {
    font-size: 14px;
    line-height: 30px;
  }

  body .result-row h5 {
    font-size: 12px;
    margin-bottom: 6px;
  }

  body .result-row:first-of-type,
  body .result-row:first-of-type .result-left {
    height: 30px !important;
  }

  body p {
    font-size: 14px;
    line-height: initial;
  }

  body .result-content p + p {
    margin-top: 6px !important;
  }

  body .result-content {
    margin: 10px 0 0;
  }

  body .result-left .script {
    padding: 10px 15px;
  }

  body .result-left {
    height: 5em !important;
  }

  body .result-left:first-of-type {
    width: 85%;
  }

  body .result-left:last-of-type {
    width: 15%;
  }

  body .result-left:last-of-type p,
  body .result-left:last-of-type div {
    width: 50%;
  }

  @supports (-ms-ime-align: auto) {
    body p {
      font-size: 12px;
    }

    body h3 + p {
      line-height: 1.2;
    }

    body .result-left {
      height: 4.5em !important;
    }
  }
  @-moz-document url-prefix() {
    body p {
      font-size: 12px;
    }
    body h3 + p {
      line-height: 1.2;
    }
    body .result-left {
      height: 4.5em !important;
    }
  }
  body .result-head .score {
    padding-top: 4%;
  }

  body .result-head .score p {
    margin-left: 0;
    font-size: 25px;
  }

  body .result-head .score img {
    vertical-align: top;
    width: 33%;
  }

  body p {
    font-size: 12px;
  }

  body h3 + p {
    line-height: 1.2;
  }

  body .result-left {
    height: 4em !important;
  }

  @page {
    size: A4;
    margin: 12.7mm 9.7mm;
  }

  body {
    zoom: 1 !important;
  }

  body, .result-content {
    page-break-inside: auto;
    page-break-after: auto;
  }
}

@media print and (-webkit-min-device-pixel-ratio: 0) {
  _:lang(x) + _:-webkit-full-screen-document, h3 {
    margin: 15px 0 5px !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, .result-head {
    height: 140px !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, h1.check-title-r, h3, h4.result-left > span, .one-point {
    font-size: 14px !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, h5, .question {
    font-size: 12px;
  }

  _:lang(x) + _:-webkit-full-screen-document, .check-title-r {
    margin-bottom: 5px !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, .score {
    top: 50% !important;
    left: 22px !important;
    position: absolute;
    transform: translateY(-50%) !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, .score > p {
    font-size: 22px !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, .score img {
    margin: 0 !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, .one-point {
    line-height: 1.4em !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, .answer {
    font-size: 12px;
    margin-top: 0.5em !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, .result-content {
    margin: 20px 0 0 !important;
  }

  _:lang(x) + _:-webkit-full-screen-document, body, .result-content {
    page-break-inside: auto;
    page-break-after: auto;
  }

  @page {
    size: A4;
    margin: 10mm 9.7mm;
  }
}


@page {
}

.sp,
.sp.btn {
  display: none;
}

.pc {
  display: block;
}

#middle p + p {
  margin-top: 25px;
}


/* -------------------------------------------------------------------------------------------------
   Results
   ---------------------------------------------------------------------------------------------- */

#middle {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  background-color: #ffffff;
  padding: 0 40px;
  margin: 24px auto 0;
  box-sizing: border-box;
}

.check-title-r {
  font-size: 26px;
  margin-bottom: 30px;
}

.result-head {
  width: 100%;
  height: 220px;
  background: #eafbfb;
  position: relative;
  overflow: hidden;
}

.result-head::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: url("../../assets/images/result-head.png") left center / cover no-repeat;
  position: absolute;
  left: 280px;
  top: 0;
  z-index: 1;
}

.score img {
  margin: 75px 0 0 40px;
  max-width: 69px;
}

.score p {
  display: inline-block;
  color: #5cc9c7;
  font-weight: bold;
  font-size: 68px;
  margin-left: 20px;
  /*  transform: translateY(50%); */
}

.score span {
  color: #b5b3b3;
  font-size: 36px;
  margin-left: 10px;
}

.result-head .one-point {
  color: #ffffff;
  font-size: 22px;
  line-height: 45px;
  font-weight: bold;
  text-shadow: rgba(0, 70, 68, 0.2) 0 0 20px;
  position: absolute;
  z-index: 9;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
}

h3 {
  font-size: 24px;
  margin: 40px 0 20px;
  color: #0a8a89;
}

.note {
  text-indent: -1em;
  padding-left: 1em;
}

.result-row:nth-child(odd),
.bg-grey {
  background-color: #f8f8f8;
}

.result-content {
  margin: 78px 0 20px;
  box-sizing: border-box;
  border-top: 1px #949494 solid;
  border-left: 1px #949494 solid;
}

.result-row {
  overflow: hidden;
  box-sizing: border-box;
  border-left: 1px solid #949494;
  border-bottom: 1px solid #949494;
}

.result-row:first-of-type {
  background: #10a19e;
  width: 100%;
  height: 50px;
}

.result-left {
  float: left;
  box-sizing: border-box;
  border-right: 1px #949494 solid;
}

.result-left .script {
  padding: 20px 30px;
}

.result-row:first-of-type .result-left {
  height: 50px;
  display: block;
}

.result-row h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  line-height: 50px;
}

h4.result-left {
  text-align: center;
}

.result-left:first-of-type {
  width: 75%;
}

.result-left:last-of-type {
  display: table;
  width: 25%;
}

h5 {
  color: #707070;
  font-size: 15px;
  font-weight: normal;
  margin: 0 0 12px;
  line-height: 1;
}

.question span {
  color: #41b9b6;
}

.question span {
  font-weight: bold;
}

.question,
.answer {
  line-height: 1;
}

.question {
  color: #088a89;
}

.answer {
  color: #c9389f;
  font-weight: bold;
}

.result-content p + p {
  margin-top: 12px;
}

.result-left:last-of-type p,
.result-left:last-of-type div {
  display: table-cell;
  height: 100%;
  text-align: center;
  vertical-align: middle;
}

.result-left:last-of-type p {
  width: 62%;
  border-right: 1px #949494 solid;
}

.result-left:last-of-type div {
  width: 33%;
}

.result-left:last-of-type img {
  vertical-align: middle;
  width: 50%;
}


@media only screen and (max-width: 768px) {
  .result-head .one-point {
    right: 4px;
  }
}

@media only screen and (max-width: 600px) {
  .sp {
    display: block;
  }

  .pc {
    display: none;
  }

  .check-title {
    font-size: 20px;
  }

  #middle {
    margin-top: 20px;
    padding-bottom: 20px;
  }

  #middle p + p {
    margin-top: 20px;
  }

  /**************************************** result */
  #middle {
    margin-top: 20px;
    padding: 16px 16px 20px;
  }

  .check-title-r {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .result-head {
    height: 100%;
  }

  .result-head::after {
    background: url("../../assets/images/check_result_bg_sp.png") center top / cover no-repeat;
    left: 0;
  }

  .score {
    position: relative;
    z-index: 9;
    text-align: center;
    margin-top: 38px;
  }

  .score img {
    margin: 0;
    width: 45px;
    vertical-align: text-bottom;
  }

  .score p {
    font-size: 55px;
    margin-left: 4px;
    width: auto;
  }

  .score span {
    font-size: 30px;
  }

  .result-head .one-point {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    position: relative;
    margin-top: 115px;
    top: 0;
    right: 0;
    padding-bottom: 25px;
    width: 100%;
  }

  h3 {
    font-size: 16px;
    margin: 20px 0 10px;
  }

  .result-content {
    margin: 40px -10px 20px;
  }

  .result-row:first-of-type {
    height: 45px;
  }

  .result-row:first-of-type > h4 {
    display: table !important;
    height: 100% !important;
  }

  .result-row:first-of-type > h4 span {
    display: table-cell;
    vertical-align: middle;
  }

  .result-row h4 {
    font-size: 11px;
    line-height: 17px;
  }

  .result-left .child {
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    display: block;
  }

  .result-left:last-of-type {
    padding-left: 0;
    position: relative;
  }

  .result-left .script {
    padding: 20px 10px;
  }

  h5 {
    font-size: 12px;
    margin: 0 0 10px;
  }

  .question {
    font-size: 13px;
    line-height: 21px;
  }


  .result-content p + p {
    margin-top: 8px;
  }

  .result-left:last-of-type p,
  .result-left:last-of-type div {
    position: absolute;
    width: 100%;
    height: 50%;
  }

  .result-left:last-of-type p {
    font-size: 14px;
    border-bottom: 1px #8f8f8f solid;
    border-right: none;
  }

  .result-left:last-of-type div {
    top: 50%;
  }
}
