@charset "UTF-8";
/* page.css */
body {
	background: #9f4500;
}
#header {
  max-width: 1366px;
  padding: 0;
}
#header h1 {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3rem 4rem;
}
#content {
  margin: 0;
  background: #9f4500 url(../images/content_bg.jpg) no-repeat center top;
  background-size: 1366px auto;
  padding: 8rem 2rem 5rem;
}
#opening h2 {
  width: 62rem;
  padding-top: 6rem;
  margin: 0 auto 2rem;
  font-size: 2.7rem;
}
#opening .text {
  line-height: 2.15;
  margin: 2rem auto 4rem;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.75);
}
#opening .btn_start {
  margin: 2rem auto 0;
}

#ending {
  margin: 0;
  background: #9f4500 url(../images/ending_bg.jpg) no-repeat center top;
  background-size: 1366px auto;
  padding: 8rem 2rem 5rem;
}

#ending h2 {
  width: 62rem;
  padding-top: 6rem;
  margin: 0 auto 38rem;
  font-size: 2.7rem;
}
#ending .text {
  line-height: 2.15;
  margin: 2rem auto 4rem;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.75);
}
#ending .fin {
  width: 20rem;
  margin: 12rem auto 8rem;
}
#ending .btn_after {
  width: 46rem;
  margin: 2rem auto 0;
}

#afterword {
  background-image: linear-gradient(0deg, #9f4500, #d35b00 40%, #f0831e 90%);
  padding: 8rem 4rem 5rem;
}
#message {
  max-width: 860px;
  margin: 0 auto 8rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  box-sizing: border-box;
  padding: 4rem 7.5rem;
  color: #1a1a1a;
}
#message h2 {
  max-width: 480px;
  margin: 1rem auto 4rem;
  font-size: 3rem;
}
#message h2 img {
  margin-bottom: 1rem;
}
#message .text {
  line-height: 2.15;
  margin: 2rem auto 4rem;
  text-align: justify;
}
#afterword .btn_enquete {
  width: 54rem;
  margin: 0 auto -2rem;
}
#afterword .btn_post {
  width: 54rem;
  margin: 0 auto;
}

@media screen and (max-width:960px) {
  #content {
    background-size: 170% auto;
  }
  #opening .text {
    font-size: 2.2rem;
  }
  #ending {
    background-size: 150% auto;
  }
  #ending h2 {
    padding-top: 2rem;
    margin: 0 auto 30rem;
  }
  #ending h2 img {
    margin-bottom: -2rem;
  }

  #ending .text {
    font-size: 2.2rem;
  }
  #message .text {
    font-size: 2.2rem;
  }
}


.btn_close {
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(50%,-50%);
  width: 8rem;
  height: 8rem;
  background: rgba(66, 33, 11, 1);
  cursor: pointer;
  border-radius: 50%;
}
.btn_close::before, 
.btn_close::after { /* 共通設定 */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem; /* 棒の幅（太さ） */
  height: 6rem;
  background: #fff;
}
.btn_close::before {
  transform: translate(-50%,-50%) rotate(45deg);
}
.btn_close::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}


.nazobox {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
}
.nazobox .monitor {
  aspect-ratio: 900 / 590;
  margin: 0 auto;
  background: url(../images/nazo_bg.png) no-repeat center top;
  background-size: 100% auto;
  position: relative;
}
.nazobox .ans {
  position: absolute;
  left: 14%;
  top: 2.5%;
  width: 72%;
  display: none;
}
.nazobox .ans.active {
  display: block;
}
.nazobox .ans .btn_close {
  right: 0;
  top: 0;
  transform: translate(-10%,10%);
}
.nazobox .monitor .link {
  position: absolute;
  right: 6%;
  bottom: 20%;
  font-weight: bold;
  font-size: 1.8rem;
  display: none;
}
.nazobox .monitor .link.active {
  display: block;
}


.nazobox .btn {
  position: relative;
  margin-top: -1.5rem;
}

.nazobox .btn_hintbox {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nazobox .btn_hint {
  width: 37.8rem;
  position: relative;
  border-radius: 9999em;
  overflow: hidden;
}

.nazobox .btn_hint img{
  cursor: pointer;
}

.nazobox.clear .btn_hintbox,
.nazobox .btn_choice,
.nazobox.close .btn_choice {
  display: none;
}
.nazobox.clear .btn_choice {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nazobox.close .btn_hint::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #d35b00;
  opacity: 0.9;
}

.nazobox .btn_nazo,
.nazobox .btn_key {
  width: 38rem;
  background: linear-gradient(180deg,rgba(66, 33, 11, 1) 0%, rgba(150, 61, 14, 1) 100%);
  padding: 2rem;
  box-sizing: border-box;
  margin: 0 0.6rem;
  cursor: pointer;
}
.nazobox .btn_nazo img,
.nazobox .btn_key img {
  width: 14rem;
  opacity: 0.25;
}
.nazobox .btn_nazo.active,
.nazobox .btn_key.active {
  border: #f7c18e 0.3rem solid;
}
.nazobox .btn_nazo.active img,
.nazobox .btn_key.active img {
  opacity: 1;
}
.nazobox .hint {
  width: 80%;
  border: #b3b3b3 0.2rem solid;
  background: rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
  padding: 5rem;
  position: absolute;
  left: 50%;
  top: 55rem;
  transform: translateX(-50%);
  display: none;
  z-index: 10;
}
.nazobox .hint.active {
  display: block;
}
.nazobox .hint h3 {
  width: 15.1rem;
  margin: 0 auto 3rem;
}
.nazobox .hint h4 {
  background: linear-gradient(180deg,rgba(66, 33, 11, 1) 0%, rgba(150, 61, 14, 1) 100%);
  padding: 1.5rem;
  margin: 2rem 0 1rem;
  font-size: 2.4rem;
  cursor: pointer;
}
.nazobox .hint .text {
  display: none;
  color: #1a1a1a;
  text-align: left;
  line-height: 1.8;
}
.nazobox .hint .text img {
  display: block;
  width: 60%;
  margin: 1rem auto;
}
.nazobox .form {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 2rem;
}
.nazobox .form input[type="text"] {
  font-family: "Noto Sans JP", sans-serif;
  appearance: none;
  outline: none;
  border: none;
  background: #fff;
  text-align: left;
	display: block;
  width: 59rem;
	font-size: 2rem;
	padding: 0.5rem 2rem;
  box-sizing: border-box;
  border-radius: 0;
  color: #808080;
  position: relative;
}

.nazobox .form button {
  cursor: pointer;
  width: 16.5rem;
  font-family: "Noto Sans JP", sans-serif;
  border: none;
  background: linear-gradient(180deg,rgba(66, 33, 11, 1) 0%, rgba(150, 61, 14, 1) 100%);
  padding: 1.5rem;
  font-size: 2rem;
  color: #fff;
  position: relative;
}
.nazobox .form .input{
  position: relative;
  margin: 0 1rem;
  display: flex;
}
.nazobox.clear .form .input::after,
.nazobox.close .form .input::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #d35b00;
  opacity: 0.9;
}


@media screen and (max-width:960px) {
  .nazobox .hint {
    top: 41rem;
  }
  .nazobox .form input[type="text"] {
    width: 40rem;
    font-size: 2.2rem;
  }
  .nazobox .form button {
    font-size: 2.2rem;
  }
}