.nf_inner {
  width: 90%;
  margin: 0 auto;
}

.error_box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 6rem;
}

.child_1 {
  order: 1;
}

.child_2 {
  order: 2;
}

.error-left {
  width: 74%;
  position: relative;
}

.heading {
  line-height: 1;
  margin-bottom: 1.4em;
  font-size: min(3vw, 30px);
  font-weight: bold;
  color: #2860bf;
}

.heading span {
  color: #ff0000;
}

.error-left p {
  margin: 0 0 3rem;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 3;
}

.error-right {
  width: 22%;
}

p.game {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 3;
}

p.game span {
  font-weight: bold;
  color: #2860bf;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  appearance: none;
}

.btn,
a.btn,
button.btn {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding: 2rem 4rem 2rem 3rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  box-sizing: border-box;
  font-feature-settings: "palt";
}

.button_top {
  width: 340px;
  background-color: #fff;
}

.btn_top,
a.btn_top,
button.btn_top {
  color: #fff;
  background-image: url(../images/arrow.png);
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 8px auto;
  background-color: #2860bf;
  opacity: 1;
}

.btn_top:hover,
a.btn_top:hover,
button.btn_top:hover {
  color: #fff;
  background-image: url(../images/arrow.png);
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 8px auto;
  background-color: #2860bf;
  opacity: 0.7;
}

.btn2,
a.btn2,
button.btn2 {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding: 1.4rem 4rem 1.4rem 3rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  box-sizing: border-box;
  font-feature-settings: "palt";
}

.button_form {
  width: 340px;
  margin: 0 auto 2rem;
  background-color: #fff;
}

.button_post {
  width: 340px;
  margin: 0 auto;
  background-color: #fff;
}

.btn_post,
a.btn_post,
button.btn_post {
  color: #fff;
  background-image: url(../images/arrow.png);
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 8px auto;
  background-color: #000;
  border: #000 solid 2px;
  opacity: 1;
}

.btn_post:hover,
a.btn_post:hover,
button.btn_post:hover {
  color: #fff;
  background-image: url(../images/arrow.png);
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 8px auto;
  background-color: #000;
  border: #000 solid 2px;
  opacity: 0.7;
}

.button_retry {
  width: 200px;
  margin: 0 auto 2rem;
  background-color: #fff;
}

.btn_retry,
a.btn_retry,
button.btn_retry {
  color: #2860bf;
  background-image: url(../images/arrow_retry.png);
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 8px auto;
  border: #2860bf solid 2px;
}

.btn_retry:hover,
a.btn_retry:hover,
button.btn_retry:hover {
  color: #fff;
  background-image: url(../images/arrow_retry.png);
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 8px auto;
  border: #2860bf solid 2px;
  background-color: #2860bf;
}

.btn3,
a.btn3,
button.btn3 {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding: 1.4rem 4rem 1.4rem 3rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  box-sizing: border-box;
  font-feature-settings: "palt";
}

.button_note {
  width: 160px;
  margin: 2rem auto 2rem;
  background-color: #fff;
}

.btn_note,
a.btn_note,
button.btn_note {
  color: #000;
  background-image: url(../images/arrow_b.png);
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 8px auto;
  border: #000 solid 1px;
}

.btn_note:hover,
a.btn_note:hover,
button.btn_note:hover {
  color: #fff;
  background-image: url(../images/arrow.png);
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 8px auto;
  border: #000 solid 1px;
  background-color: #000;
}

#game-cover {
  position: fixed;
  background-color: #ffffff;
  z-index: 5;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  pointer-events: auto;
}

#game-page {
  width: 600px;
  height: 260px;
  text-align: center;
  margin: 20px 0;
  border: 2px solid #404248;
}

#entry-page {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.entry-inner {
  width: 60%;
  height: auto;
  padding: 1rem 1rem 5rem 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url(../images/bg.jpg), url(../images/bg_logo.jpg);
  background-position: top left -10%, bottom right;
  background-repeat: no-repeat;
  background-size: 50% auto, 24% auto;
  background-color: #fff;
  text-align: center;
  overflow: auto;
  font-feature-settings: "palt";
}

.score-text {
  display: block;
  line-height: 1.6;
  font-size: min(4vw, 28px);
  font-weight: bold;
  color: #2860bf;
}

#score {
  line-height: 1.6;
  font-size: min(2.8vw, 40px);
  font-size: 40px;
  color: red;
  font-weight: bold;
}

.form-text {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: bold;
  color: #404248;
}

.input-text {
  border: 1px solid #bbb;
  height: 48px;
  font-size: 16px;
  padding: 0 0.6em;
  width: 340px;
  color: #404248;
  margin: 0 auto;
  box-sizing: border-box;
}

.form-text:focus {
  outline: none;
  box-shadow: 0 0 5px #bbb;
}

.form-text::placeholder {
  color: #535353;
}

.required::after {
  content: '必須';
  background-color: red;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  min-width: 10px;
  padding: 3px 7px;
  margin: 0px 5px 5px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
  border-radius: 6px;
  display: inline-block;
}

.prize {
  position: relative;
  width: 100%;
  margin: 3rem 0 2rem;
  line-height: 1.4;
  font-size: min(2.4vw, 22px);
  color: #000;
  font-weight: bold;
}

.prize p {
  font-size: 60%;
  font-weight: normal;
}

.prize span {
  color: red;
}

.prize_img {
  width: 90%;
  margin: 2rem auto 0;
}

.prize_img img {
  width: 56%;
  max-width: 600px;
  border: #bbb 1px solid;
}

.post_box {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

p.note {
  width: 64%;
  margin: 0 auto;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.6;
  text-indent: -1em;
  padding-left: 1em;
}

.privacy {
  width: 100%;
  text-align: center;
  margin: 4rem auto 0;
  font-size: 16px;
  font-weight: bold;
}

a.privacy_link {
  color: #2860bf;
  text-decoration: underline;
}

a.privacy_link:active {
  color: #2860bf;
  text-decoration: underline;
}

a.privacy_link:hover {
  color: #ff0000;
  text-decoration: underline;
}

.guid {
  width: 100%;
  line-height: 1.6;
  font-size: 14px;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}

.guid_box {
  width: 100%;
  padding: 0 0 1em;
}

.guid_box p:first-child {
  padding: 0 0 .3em;
  font-size: 110%;
  font-weight: bold;
}

.guid_top {
  padding: 0 0 .3em;
  font-size: 110%;
  font-weight: bold;
}

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

.copy {
  width: 100%;
  margin: 6rem 0 0;
  text-align: center;
  font-size: 12px;
}

.close {
  position: sticky; 
  width: 100%;
  top: 0;
  text-align: right;
  z-index: 99;
}

.close img {
  width: 40px;
}

.end_text {
  position: absolute;
  width: 30%;
  top: 10%;
  left: 35%;
  transform:rotate(-6deg);  
  padding: 4%;
  background-color: rgba(255, 255, 255, 0.8);
  border: #d10000 4px solid;
  box-sizing: border-box;
}

@media screen and (min-width: 1px) and (max-width: 750px) {

  .nf_inner {
    width: 90%;
    margin: 0 auto;
    padding: 20px 0 40px;
  }

  .error_box {
    display: flex;
    flex-flow: column;
  }

  .child_1 {
    order: 2;
  }

  .child_2 {
    order: 1;
  }

  .error-left {
    width: 100%;
    position: relative;
  }

  .heading {
    margin: 1.6em 0 .6em;
    font-size: min(5.63vw, 18px);
    line-height: 1.4;
  }

  .error-left p {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 3;
  }

  .error-right {
    width: 100%;
    margin: 0 0 .6rem;
    text-align: center;
  }

  .error-right img {
    width: 64%;
  }

  p.game {
    font-size: 14px;
  }

  .btn,
  a.btn,
  button.btn {
    font-size: 16px;
  }

  #game-page {
    width: 330px;
    height: 240px;
    text-align: center;
    margin: 20px auto;
    border: 2px solid #404248;
  }

  .btn,
  a.btn,
  button.btn {
    font-size: min(5.63vw, 18px);
    padding: 1.4rem 0 1.4rem 0;
  }

  .button_top {
    width: 80%;
  }

  .btn2,
  a.btn2,
  button.btn2 {
    font-size: min(5.63vw, 18px);
    padding: 1.4rem 0 1.4rem 0;
  }

  .button_form {
    width: 90%;
    margin: 0 auto 2rem;
  }

  .button_post {
    width: 90%;
    margin: 0 auto;
  }

  .button_retry {
    width: 90%;
    margin: 0 auto 2rem;
  }

  .btn3,
  a.btn3,
  button.btn3 {
    font-size: min(5vw, 16px);
    padding: 1.4rem 0 1.4rem 0;
  }

  .button_note {
    width: 60%;
    margin: 2rem auto 2rem;
  }

  #game-page {
    width: 320px;
    height: 240px;
    text-align: center;
    margin: 20px auto;
    border: 4px solid #404248;
  }

  .entry-inner {
    width: 90%;
    height: 80%;
    padding: 0 1rem 3rem;
    background-position: top -20px left -50px, bottom right;
    background-repeat: no-repeat;
    background-size: 100% auto, 60% auto;
    box-sizing: border-box;
  }

  .score-text {
    font-size: min(7.5vw, 24px);
  }

  #score {
    font-size: min(12.5vw, 40px);
  }

  .form-text {
    font-size: min(5vw, 16px);
  }

  .input-text {
    font-size: min(5.63vw, 16px);
    width: 90%;
  }

  ::placeholder {
    color: #ccc;
  }

  .form-text:focus {
    outline: none;
    box-shadow: 0 0 5px #bbb;
  }

  .form-text::placeholder {
    color: #535353;
  }

  .required::after {
    font-size: min(3.75vw, 12px);
  }

  .prize {
    margin: 3rem 0 2rem;
    font-size: min(6.25vw, 20px);
  }

  .prize p {
    font-size: min(3.2vw, 12px);
    font-weight: normal;
  }

  .prize_img {
    width: 90%;
    margin: 2rem auto 0;
  }

  .prize_img img {
    width: 100%;
  }

  p.note {
    width: 90%;
    font-size: min(4.38vw, 14px);
  }

  .privacy {
    font-size: min(4.38vw, 14px);
  }


.close {
  top: 10px;
}


  .close img {
    width: 35px;
  }

  .end_text {
    position: absolute;
    width: 90%;
    top: 10%;
    left: 5%;
    transform:rotate(-6deg);  
    padding: 8%;
    border: #d10000 3px solid;
  }

}

@media screen and (min-width: 751px) and (max-width: 1024px) {

  .end_text {
    width: 50%;
    left: 25%;
  }

}

@media screen and (min-width: 1025px) {
  .nf_inner {
    max-width: 1000px;
    padding: 40px 0 40px;
  }

  .entry-outer {
    max-width: 1000px;
  }

}