@charset "UTF-8";
@keyframes open-anime {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

*, *::after, *::before {
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
  font-size: 1.5rem;
  line-height: 1.7;
  color: #fffff9;
  background-color: #432;
  -webkit-text-size-adjust: 100%;
  animation: open-anime ease-in 1s;
}
a {
  text-decoration: none;
  color: #e80;
}
img {
  max-width: 100%; /* for RWD */
  height: auto; /* for RWD */
  vertical-align: bottom;
}
h2 {
  font-family: 'Cormorant Garamond', 'Kaisei Tokumin', serif;
  font-size: 3rem;
  text-align: center;
  margin: 0 0 2.4rem 0;
}
h2 span {
  display: block;
  border-top: #fffff9 1px solid;
  padding-top: 5px;
  font-size: 2rem;
  font-weight: 400;
}
section {
  padding: 60px 30px 80px;
}
.white {
  background: #fffff9;
  color: #432;
}
.white h2 span {
  border-top: #432 1px solid;
}

/* fadeUp */
.fadeUp{
  animation-name:fadeUpAnime;
  animation-duration:0.5s;
  animation-fill-mode:forwards;
}
  
@keyframes fadeUpAnime{
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* スクロールをしたら出現する要素にはじめに透過0を指定 */
.fadeUpTrigger{
  opacity: 0;
}

/* header */
header {
  position: relative;
  padding: 10px 10px 50px;
}
header picture img {
  width: 100%;
}
.title-logo {
  position: absolute;
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  left: 0;
  bottom: 0;
  z-index: 5;
}
/* main menu */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  width: 100%;
  background: rgba(68, 51, 34, .95);
  z-index: 99;
  transition: 0.5s ease;/*滑らかに表示*/
  -webkit-transform: translateX(100%);
  transform: translateX(100%);/*画面より100%外へ押し出し非表示にさせる*/
  overflow-x: hidden;
}
.main-nav li {
  font-family: 'Cormorant Garamond', 'Kaisei Tokumin', serif;
  list-style: none;
  font-size: 3vh;
  line-height: 1;
  margin: 0 0 3vh;
}
.main-nav li span {
  font-size: 2vh;
  color: #fffff9;
}
.nav-footer {
  margin: 0 4rem;
  padding: 0;
  bottom: 0;
}
.nav-footer a {
  position: relative;
  display: block;
  padding: 2vh 2vh 2vh 8vh;
  width: 100%;
  color: #fffff9;
  background: #e80;
  border-radius: 5px;
}
.nav-footer a::before {
  font-family: "Font Awesome 5 Free";
  position: absolute;/*絶対位置*/
  left: 4vh;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
}
.nav-footer li:first-of-type a::before {
  font-weight: 400;
  content: "\f0eb";
}
.nav-footer li:last-of-type a::before {
  font-weight: 900;
  content: "\f077";
}
.nav-footer li:last-of-type a {
  border-left: #432 1px solid;
}
/*OPEN時の動き*/
.main-nav.open {
  -webkit-transform: translateX(0%);
  transform: translateX(0%);/*メニューを元の位置へ戻す*/
}
/*ボタン外側*/
.openbtn {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  background:#e80;
  border-radius: 0 0 0 5px;
  cursor: pointer;
  width: 50px;
  height: 50px;
}
/*ボタン内側*/
.openbtn span {
  display: inline-block;
  transition: all .4s;/*アニメーションの設定*/
  position: absolute;
  left: 10px;
  height: 2px;
  background: #fff;
  width: 60%;
}
.openbtn span:nth-of-type(1) {
  top:8px;
}
.openbtn span:nth-of-type(2) {
  top:16px;
}
.openbtn span:nth-of-type(3) {
  top:24px;
}
.openbtn span:nth-of-type(3)::after {
  content:"Menu";/*3つ目の要素のafterにMenu表示を指定*/
  font-weight: bold;
  position: absolute;
  top:6px;
  left:-2px;
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
}
/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
.openbtn.active span:nth-of-type(1) {
  top: 10px;
  left: 12px;
  transform: translateY(6px) rotate(-45deg);
  width: 50%;
}
.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn.active span:nth-of-type(3){
  top: 22px;
  left: 12px;
  transform: translateY(-6px) rotate(45deg);
  width: 50%;
}
.openbtn.active span:nth-of-type(3)::after {
  content:"Close";/*3つ目の要素のafterにClose表示を指定*/
    transform: translateY(0) rotate(-45deg);
  top:7px;
  left: 10px;
}
/* story */
.dialogue {
  font-size: 130%;
  font-family: 'Kaisei Tokumin', serif;
  text-shadow: 2px 2px 4px #432;
}
/* character */
.watson-prof, .holmes-prof {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
}
.watson-prof img, .holmes-prof img {
  position: absolute;
  width: auto;
  height: 100%;
}
.watson-prof img{
  left: -30px;
}
.holmes-prof img {
  right: -30px;
}
.profile {
  position: absolute;
  display: inline-block;
  z-index: 5;
  text-shadow:
          2px 2px 2px #fffff9, -2px -2px 2px #fffff9,
         -2px 2px 2px #fffff9,  2px -2px 2px #fffff9,
          2px 0px 2px #fffff9, -2px -0px 2px #fffff9,
          0px 2px 2px #fffff9,  0px -2px 2px #fffff9;
}
.watson-prof dl {
  left: 70px;
}
.holmes-prof dl {
  right: 70px;
}
.profile dt {
  font-size: 2.4rem;
  font-family: 'Cormorant Garamond', 'Kaisei Tokumin', serif;
  margin: 0 0 15px 0;
  line-height: 1.5;
}
.profile dt span {
  display: block;
  font-size: 2rem;
}
.watson-prof dt {
  text-align: right;
}
.watson-prof dd,
.holmes-prof dd {
  margin: 0;
}
/* howto */
.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.howto-image1,
.howto-item {
  grid-column: 1 / 3;
}
a.hint {
  display: block;
  padding: 10px;
  border-radius: 50px;
  text-align: center;
  background: #e80;
  color: #fffff9;
}
a.hint::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f0eb";
  margin: 0 10px 0 0;
}
/* download */
.game-dl,
.pdf-dl {
  margin: 0 0 40px;
}
.dl-btn {
  margin: 20px auto;
  max-width: 350px;
}
.dl-btn span {
  display: block;
  font-weight: bold;
}
.dl-btn a {
  position: relative;
  display: block;
  border-radius: 5px;
  padding: 10px 20px;
  background: #e80;
  color: #fffff9;
}
.game-dl a::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  display: block;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 4px;
  border: #fffff9 1px solid;
}
.game-dl a::after {
  content: "\f105";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 2rem;
  position: absolute;
  top: calc(50% - 1em);
  right: 15px;
}
.pdf-dl a {
  padding: 7px 12px;
}
.pdf-dl .dl-btn {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.game-dl img,
.pdf-dl img{
  display: block;
  margin: 0 auto 20px;
  width: 100%;
  margin: 0 auto;
}
.overview {
  position: relative;
  width: 100%;
  padding: 20px;
  border: 4px solid #432;
  z-index: 0;
}
.overview dl {
  margin: 0;
  display: grid;
  grid-template: repeat(7, max-content) / 10rem 1fr;
  gap: 0;
}
.overview::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  content: '';
  border: 2px solid #432;
}
.overview dt {
  font-weight: bold;
}
.overview dt,
.overview dd {
  position: relative;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid #432;
  display: flex;
  align-items: center;
  z-index: 1;
}
/* guideline */
#guideline ul {
  padding: 0 0 20px;
  margin: 0;
}
#guideline ul li {
  list-style: none;
  font-size: 2.4rem;
}
#guideline ul li::before {
  font-family: "Font Awesome 5 Free";
  margin: 0 10px 0 0;
  color: #e80;
}
.gl-ok li::before {
  font-weight: 400;
  content: "\f111";
}
.gl-ng li::before {
  font-weight: 900;
  content: "\f00d";
}

/* credit */
h3 {
  display: inline-block;
  border-top: #432 2px solid;
  border-bottom: #432 2px solid;
  font-size: 1.8rem;
  text-align: left;
  padding: 1px 15px;
  margin: 20px 0 0;
}
.center {
  text-align: center;
}

/* footer */
.page-footer {
  background: #015;
  color: #fff;
  padding: 50px 30px;
  text-align: center;
}
.footer-logo img {
  max-width: 300px;
  margin: 0 auto;
}
.footer-info a {
  display: inline-block;
  margin: 20px 10px 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  color: #fff;
  line-height: 50px;
  text-align: center;
}
.twitter {
  background: #1aa1f2;
}
.mail {
  background: #20b2aa;
}

/* HINT PAGE---------- */
.hintpage {
  background: #fffff9;
  color: #432;
}
.hintpage section {
  padding-top: 20px;
  padding-bottom: 20px;
}
/* 吹き出し */
.watson, .holmes {
  width: 100%;
  margin: 0 0 2rem;
  overflow: hidden;
}
.watson .faceicon {
  float: left;
  margin-right: -60px;
  width: 50px;
}
.holmes .faceicon {
  float: right;
  margin-left: -60px;
  width: 50px;
}
.watson .faceicon img,
.holmes .faceicon img{
  width: 100%;
  height: auto;
  border: solid 3px #eee;
  border-radius: 50%;
}
.holmes {
  text-align: right;
}
.watson p,
.holmes p {
  display: inline-block;
  position: relative;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
}
.watson p {
  margin: 0 0 0 65px;
  border: #66cdaa 2px solid;
}
.holmes p {
  margin: 0 65px 0 0;
  border: #dda0dd 2px solid;
  text-align: left;
}
.watson p::before,
.holmes p::before {
  content: "";
  position: absolute;
  top: 14px;
  border: 8px solid transparent;
  z-index: 2;
}
.watson p::before {
  left: -17px;
  border-right: 10px solid #FFF;
}
.holmes p::before {
  right: -17px;
  border-left: 10px solid #FFF;
}
.watson p::after,
.holmes p::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 12px; 
  border: 10px solid transparent;
  z-index: 1;
}
.watson p::after {
  left: -22px;
  border-right: 12px solid #66cdaa;
}
.holmes p::after {
  right: -22px;
  border-left: 12px solid #dda0dd;
}
/* ヒントの表示 */
.hidden_box {
  margin: 0;
  padding: 0;
}
/*ボタン装飾*/
.hidden_box label {
  display: block;
  margin: 0 0 1.5rem;
  padding: 15px;
  cursor :pointer;
  background: #efefef;
  border-radius: 5px;
}
.hidden_box label.little {
  width: 100px;
  padding: 5px;
  border-radius: 100px;
  background: #e80;
  color: #fff;
  text-align: center;
}
.hidden_box label.hint1 {
  border: #e80 1px solid;
  background: #fff;
  color: #e80;
  text-align: center;
  cursor: default;
}
.holmes label {
  padding: 0;
  margin: 0;
  background: transparent;
}
/*ボタンホバー時*/
.hidden_box label:hover {
  background: #ccc;
}
.hidden_box label.little:hover {
  background: #e80;
  opacity: .8;
}
.hidden_box label.hint1:hover {
  background: #fff;
  color: #e80;
}
.holmes label:hover {
  background: transparent;
}
/*チェックは見えなくする*/
.hidden_box input {
  display: none;
}
/*中身を非表示にしておく*/
.hidden_box .hidden_show {
  height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.8s;
}
/*クリックで中身表示*/
.hidden_box input:checked ~ .hidden_show {
  padding: 0;
  margin: 0 0 2rem;
  height: auto;
  opacity: 1;
}

/* メディアクエリ-------------------- */
@media(min-width:760px) {
  body {
    font-size: 1.6rem;
  }
  section {
    padding: 100px 12%;
    position: relative;
  }
  /* header */
  .main-nav {
    width: 420px;
  }
  .title-logo {
    width: 70vw;
    left: 50%;
    transform: translateX(-50%);
  }
  /*ボタン外側*/
  .openbtn {
    width: 60px;
    height: 60px;
  }
  /*ボタン内側*/
  .openbtn span {
    left: 12px;
  }
  .openbtn span:nth-of-type(1) {
    top:12px;
  }
  .openbtn span:nth-of-type(2) {
    top:21px;
  }
  .openbtn span:nth-of-type(3) {
    top:29px;
  }
  .openbtn span:nth-of-type(3)::after {
    top: 4px;
    left:-2px;
    font-size: 1.3rem;
  }
  /*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
  .openbtn.active span:nth-of-type(1) {
    top: 15px;
    left: 14px;
  }
  .openbtn.active span:nth-of-type(3){
    top: 27px;
    left: 14px;
  }
  .openbtn.active span:nth-of-type(3)::after {
    top: 5px;
    left: 12px;
  }
  .nav-footer a {
    padding: 1rem 1rem 1rem 8vh;
  }
  /* story */
  #story p {
    text-align: center;
    line-height: 2.4;
  }
  /* character */
  .watson-prof, .holmes-prof {
    height: 600px;
  }
  .watson-prof img{
    left: 0;
  }
  .holmes-prof img {
    right: 0;
  }
  .profile {
    max-width: 460px;
  }
  .watson-prof dl {
    left: 250px;
  }
  .holmes-prof dl {
    right: 250px;
  }
  .profile dt {
    font-size: 3.2rem;
  }
  .profile dt span {
    font-size: 2.8rem;
  }
  /* howto */
  .howto-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, max-content);
    gap: 20px;
  }
  .howto-image1 {
    grid-column: 2 / 7;
    grid-row: 1 / 2;
  }
  .howto-item {
    grid-column: 2 / 6;
    grid-row: 2 / 3;
  }
  .howto-image2 {
    grid-column: 1 / 4;
    grid-row: 3 / 5;
  }
  .howto-image3 {
    grid-column: 4 / 7;
    grid-row: 4 / 6;
  }
  /* download */
  .overview {
    grid-column: 1 / 7;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  .overview dl {
    grid-template-rows: repeat(4, 1fr);
  }
  .overview dt,
  .overview dd {
    padding: 10px;
  }
  .two-space {
    grid-row: span 2;
  }
  /* credit */
  .credit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  /* footer */
  .page-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 50px 12%;
    position: relative;
  }
  .page-footer div {
    padding: 10px 30px;
  }
  .footer-logo {
    display: flex;
    align-items: center;
  }
  .footer-info {
    border-left: #fff 1px solid;
  }

  /* hint */
  .hintpage h1 {
    width: 100%;
  }
  .hintpage h1 img {
    display: block;
    width: 70%;
    margin: 0 auto;
  }
  /* 吹き出し */
  .watson .faceicon {
    margin-right: -90px;
    width: 80px;
  }
  .holmes .faceicon {
    margin-left: -90px;
    width: 80px;
  }
  .watson .faceicon img,
  .holmes .faceicon img{
    width: 100%;
    height: auto;
    border: solid 3px #eee;
    border-radius: 50%;
  }
  .watson p,
  .holmes p {
    max-width: 70%;
    padding: 21px 20px;
    margin-bottom: 10px;
  }
  .watson p {
    margin: 5px 0 0 95px;
  }
  .holmes p {
    margin: 5px 95px 0 0;
  }
  .watson p:before,
  .holmes p:before {
    top: 29px; 
  }
  .watson p:after,
  .holmes p:after {
    top: 27px; 
  }
}
@media(min-width:1025px) {
  body {
    line-height: 2;
  }
  h2 {
    position: absolute;
    top: 0;
    left: 5%;
    writing-mode: vertical-rl;
    font-size: 5.4vw;
    text-align: left;
    color: rgba(222, 184, 135, .5);
  }
  h2 span {
    display: block;
    position: absolute;
    top: 5%;
    left: 4.5vw;
    white-space: nowrap;
    z-index: 1;
    border-top: none;
    padding-top: 5px;
    font-size: 3vw;
    font-weight: 400;
    color: #fffff9;
  }
  .white h2 {
    right: 7%;
  }
  .white h2 span {
    right: 0;
    border-top: none;
    color: #432;
  }
  .wrapper {
    padding: 0 0 0 10vw;
  }
  .white .wrapper {
    padding: 0 10vw 0 0;
  }
  a {
    transition: .5s;
  }
  a:hover {
    opacity: .5;
  }
  /* header */
  header {
    padding: 20px;
  }
  .title-logo {
    width: 60vw;
  }
  .title-logo img {
    width: 100%;
  }
  /* story */
  #story {
    background: url('../images/bg_living.jpg') no-repeat fixed center top;
    background-size: cover;
    position: relative;
    z-index: 1;
  }
  /* howto */
  #howto {
    background: url('../images/bg_play.jpg') no-repeat fixed center top;
    background-size: cover;
    position: relative;
    z-index: 1;
  }
  .howto-grid {
    gap: 40px;
  }
  .howto-image1 {
    grid-column: 3 / 7;
  }
  .howto-item {
    grid-column: 1 / 7;
  }
  a.hint {
    width: 300px;
    margin: 0 auto;
  }
  /* download */
  .dl-wrap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-content: center;
    gap: 2rem;
  }
  .game-dl,
  .pdf-dl {
    min-height: 300px;
  }
  .game-dl {
    grid-column: 1 / 4;
  }
  .pdf-dl {
    grid-column: 4 / 7;
  }
  .pdf-btn {
    margin: 15px 10% 0;
  }
  .game-dl img,
  .pdf-dl img{
    height: 350px;
    object-fit: contain;
  }
  /* credit */
  #credit .wrap {
    z-index: 1;
  }
  /* footer */
  .footer-info {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-info p:last-of-type {
    grid-column: 3 / 4;
  }

  /* hint---------------- */
  .hintpage header {
    padding-top: 5%;
  }
  .hintpage h1 img {
    width: 50%;
  }
}