@charset "UTF-8";

/* ===============================================
Base
=============================================== */
/*
Reset
- ---------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  overflow-X: hidden;
  max-width: 1920px;
  margin: 0 auto;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ------------------------------
font-family
---------------------------------*/
* {
  font-family: "Zen Maru Gothic", "Noto Sans JP", "游ゴシック", "Yu Gothic", "游ゴシック体", "YuGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Meiryo UI", "メイリオ", "Meiryo", "sans-serif";
  font-weight: 500;
  scroll-behavior: smooth;
}

/* ------------------------------
canvas
---------------------------------*/
#p-hero {
  display: block;
  width: 100%;
}

.l-container {
  width: 100%;
  height: 100%;
}

/* ------------------------------
cursor
---------------------------------*/
body {
cursor: url(../images/hand.png), auto;
}


/* ------------------------------
centering
---------------------------------*/
.l-container {
  width: 80%;
  margin: 0 auto;
}

/* ------------------------------
title
---------------------------------*/
.c-tab {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 82%;
  position: relative;
  max-width: 900px;
  min-width: 800px;
  margin-bottom: 24em;
}

.p-tab__title {
  order: -1;
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.p-tab__content {
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 0 16px 16px 16px;
  height: 420px;
}


.p-tab__text {
  width: 80%;
  line-height: 2;
  font-size: 1.2em;
  color: #333;
}
/* ----------------------------------------------------------- */
/* フォーカスや音声読み上げは残したまま非表示にする。 */
.p-tab__radio {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  overflow: hidden;
  padding: 0;
  clip: rect(0, 0, 0, 0);
}

input[id="howto-radio"]:checked + .howto {
  padding: 10px 0;
}

input[id="toparent-radio"]:checked + .toparent {
  padding: 10px 0;
}

input[id="question-radio"]:checked + .question {
  padding: 10px 0;
}

.p-tab__label {
  display: inline-block;
  padding: 28px;
  cursor: pointer;
  width: 10rem;
  font-size: 1.2em;
  color: #333;
}

/* ------------------------------
content
---------------------------------*/
.howto {
  background-color: #FFFF00;
  border: 2px solid #FFFF00;
}

.p-tab__content1 {
  background-color: #FFFFd6;
}

.toparent {
  background-color: #92E0FF;
  border: 2px solid #92E0FF
}

.p-tab__content2 {
  background-color: #e0f6ff;
}

.question{
  background-color: #FFBBDD;
  border: 2px solid #FFBBDD;
}

.p-tab__content3 {
  background-color: #FFF4FA;
}


#howto-radio:checked ~ .p-tab__content1{
  display: flex;
}

#toparent-radio:checked ~ .p-tab__content2{
  display: flex;
}

#question-radio:checked ~ .p-tab__content3{
  display: flex;
}

input[type="radio"]:focus + .p-tab__title{ 
  border: 2px solid #A27BA2;
}

/* ------------------------------
button position
---------------------------------*/
.p-tab__question {
  position: relative;
}

.p-question__button {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5em;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid #FFBBDD;
  color: #212121;
  background-color: #FFBBDD;
  z-index: 100;
}

.p-question__button a:hover {
  background-color: #212121;
  
}

.p-section__button {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.p-section__game {
  text-align: center;
  position: relative;
  margin: 12em 0;
}

.p-section__gameTitle {
  font-size: 40px;
}

/* ------------------------------
parade(animation)
---------------------------------*/
@keyframes loop {
  /* from {
    background-position: -100 bottom;
  } */
  to {
    background-position: 4599px bottom;
  }
}

/* ------------------------------
footer
---------------------------------*/
.p-footer {
  width: 100%;
}

.p-footer::after {
  content: "";
  display: block;
  width: 100%;
  height: 58px;
  background-image: url(../images/grass.png);
}

.p-footer__copyright {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform:translate(-50%,-50%);
  z-index: 100;
  color: #212121;
  text-align: center;
}

/* ------------------------------
p-notsupported
---------------------------------*/
.gorilla{
  width: 68%;
}

.p-notsupported__comment {
  padding-bottom: 30px;
  white-space: nowrap;
}

/* ------------------------------
mq
---------------------------------*/
@media screen and (min-width: 0px) {
  #l-header {
    display: none;
  }

  .p-main {
    display: none;
  }

  .p-notsupported {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform:translate(-50%,-50%);
    text-align: center;
  }

  .p-footer {
    position: fixed;
    bottom: 0;
  }

  .p-footer::before {
    display: none;
  }
}

@media screen and (min-width: 992px) {
  #l-header {
    display: block;
  }

  .p-main {
    display: block;
    flex: 1;
  }

  .p-notsupported {
    display: none;
  }

  .p-footer {
    position: relative; 
  }

  .p-footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 400px;
    background-image: url(../images/parade.png);
    background-size: auto 400px;
    animation: loop 60s linear infinite;
    background-repeat: repeat-x;
    background-position: bottom;
    position: absolute;
    top: -350px;
    z-index: -100;
  }
}

/* ------------------------------
game
---------------------------------*/
#game {
  width: 960px;
  height: 600px;
}

/* ------------------------------
screen-reader-text
---------------------------------*/
.screen-reader-text{
  position: absolute;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  width: 1px;
  height: 1px;
}

