@charset "utf-8";
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
}

ul, li, ol {
  list-style: none;
  margin:0 ;
  padding:0 ;
}

.main_area {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

h1 {
  margin: 30px 0 20px 30px;
  font-size: 20px;
  font-weight: bold;
}

a {
  /*color: #337bc8;*/
  color:#337ab7;
  text-decoration: none;
}

ul {
  list-style: none;
}

.item img {
  transition: all  0.5s;
}

 .moriya-logo {
  text-align: right;
}
.moriya-logo img {
max-width:160px;
object-fit: contain;
  vertical-align: bottom;
  padding:.5% .5% 0 .5%;
}

@media only screen and (max-width: 767px) {
}

.main-image {
  width: 100%;
  margin:0 auto;
  position: relative;
}

.main-image img {
  width:100%;
  object-fit: contain;
}
.intro-container{
  width:100%;
  padding: 0 .5%;
}
.intro-container > .intro-txt{
  padding: 0.5em 0;
  margin:0 auto;
  line-height:1.8;
  font-size:1.1em;
}

.howto-use {
  position: absolute;
  bottom:-25px;
  right:20px;
  width:170px;
}

.howto-use img {
  object-fit: contain;
  width:100%;
}

section{
  padding: 0;
}
/*========kids二階層目============*/

#sub-title {
  width:100%;
  background:url(../../images/03_back1rgb.jpg);
  background-size: contain;
  position: relative;
  display: flex;
  flex-wrap:wrap;
  justify-content: flex-start;
  align-items: center;

}

#sub-title .sub-title-image {
  position: absolute;
  left:1.5rem;
  top:0;
  width:220px;
  height:160px
}

#sub-title .sub-title-image img {
  width:100%;
  height:100%;
  object-fit: cover;
}

#sub-title h1 {
  margin-left:calc(220px + 1rem);
  padding-left:1em;
  font-size:280%;
  font-weight:bold;
  color:#262626;
  padding-top:-0.5rem;
}

#sub-title h1 ruby > rt, .sub-text-wrap h4 ruby > rt {
  zoom:0.6;
  text-align: start;
}

#sub-title p {
  font-size:1.0em;
  line-height:1.8;
  margin-left:1rem;
  padding-top:1.5rem;
}

.sub-intro-txt {
  margin-left:calc(220px + 1rem);
  padding:0.5em 2em;
}

@media (max-width: 767px) {
  #sub-title .sub-title-image {
    right:0;
    /*top:0;*/
    bottom:0;
    padding:0;
    margin:0 0 0 auto;
  /*  width:180px;
    height:100px;*/
    width:100%;
    height:80px;
    overflow: hidden;
  }

  #sub-title .sub-title-image img {
    width:100%;
    object-fit: cover;

  }

  #sub-title h1 {
    margin-left:0.5em;
    padding-left:0;
    font-size:200%;
    padding-top:1%;
    color:#fff;
    z-index: 99;
    -webkit-text-stroke: 2px #000;
    text-stroke: 2px #000;
  paint-order: stroke;
  }

  #sub-title h1 ruby > rt, .sub-text-wrap h4 ruby > rt {
    zoom:0.6;
    text-align: start;
  }

  #sub-title p {
    font-size:1.0em;
    line-height:1.2;
    margin:0 auto 0.5em 0.5em;
    margin-left:1.5%;
    padding:.5rem;
  }

  .sub-intro-txt {
    margin-left:0;
    padding:0.5em 1em;
  }
}

.puzzle-body {
  width: 100%;
  margin: 0 auto;
  text-align:center;
}

h2 {
  margin-top: 2.5em;
  text-indent: 2em;
}

.ta-r {
  text-align:right;
}

.ta-l {
  width: 100%;
  margin: 0 auto;
  text-align:left;
}

@media(max-width:567px) {
  .ta-r a{
    display:block;
  }
}

.level-select {
  width: 100%;
}

.level-select p {
  font-size: 1.1em;
  margin-bottom: 0;
}

.level-select ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.level-select ul li {
  margin: 2%;
  width: 46%;
}

.level-select ul li button {
  width: 100%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

.level-select ul li button {
  display: inline-block;
  cursor: pointer;
  font-size: 1.2em;
  text-align: center;
  color: #000;
  background: #fff;
  margin: 1% 0 0 0;
  padding: 2%;
  border: 5px solid #7CE0B9;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: .2s;
}

.level-select ul li button:hover {
  opacity: 0.8;
  background: #ddd;
  transform: translateY(3px);
}

.level-select ul li button.selected {
  background: #0A8F3D;
  border: 5px solid #0A8F3D;
  color: #fff;
}

.start-reset {
  width: 100%;
}

.start-reset ul {
  width: 100%;
  max-width: 800px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0 auto 1% auto;
}

.start-reset ul li {
  margin: 0;
  width: 50%;
  padding: 0 8%;
}

.start-reset ul li button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

.start-reset ul li button {
  display: inline-block;
  width: 100%;
  cursor: pointer;
  font-size: 1.2em;
  text-align: center;
  color: #000;
  background: #fff;
  margin: 1% 0 0 0;
  padding: 3%;
  border: 2px solid #7CE0B9;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: .2s;
}

@media screen and(max-width: 420px) {
}

.start-reset ul li button:hover {
  opacity: 0.8;
  background: #ddd;
  transform: translateY(3px);
}

#complete {
  width: 100%;
  display: none;
}

#complete p {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0;
}

.ori-link a {
  display: inline-block;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
  color: #000;
  background: #fff;
  margin: 0 1% 1% 1%;
  padding: 0.5% 3%;
  border: 5px solid #7CE0B9;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: .2s;
}

.ori-link a:hover {
  opacity: 0.8;
  background: #ddd;
  transform: translateY(3px);
  text-decoration: none;
}

#sample {
  max-width: 600px;
}

.back {
  width: 100%;
  text-align: center;
  margin: 2% auto;
}

.back-top {
  display: inline-block;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  color: #000;
  background: #fff;
  margin: 1% auto;
  padding: 1% 5%;
  border: 5px solid #7CE0B9;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
}

.back-top:hover {
  opacity: 0.8;
  background: #ddd;
  transform: translateY(3px);
  text-decoration: none;
}

/*====2階層目のフレーム====
[class^="list-design"] .item .sub-image-frame{
  border:solid 6px #ffaa2b;
  border-radius: 40px;
}*/

/*=====footer=====*/
.footer_main {
  background: #008D54;
  margin:0;
  padding:0.5rem;
}

.footer_main p {
margin:2em 4em 2em auto;
height:30px;
color:#fff;
text-align: right;
}

ruby[data-ruby] rt {
  display: none;
}
 
ruby[data-ruby] {
  position: relative;
  display: inline-block;
}
 
ruby[data-ruby]::after {
  content: attr(data-ruby);
  position: absolute;
  transform: translate(-50%, -1.1em);
  display: block;
  left: 50%;
  top: 0;
  white-space: nowrap;
  font-size: 44%;
  letter-spacing: 0;
}

/*紙吹雪のスタイル*/
/*
.confetti {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
*/
/*
.confetti span {
  position: absolute;
  top: -100%;/*アニメーション以外の紙吹雪を非表示*/
/*  left: 0;
  z-index: 50;
}
*/
/*アニメーションの記述*/
/*
.confetti span:nth-child(2n + 1) {
  animation: confetti1 5s 0s linear infinite;
}

.confetti span:nth-child(2n + 2) {
  animation: confetti2 5s 0s linear infinite;
}
*/
/*紙吹雪を回転させる記述*/
/*
@keyframes confetti1 {
  0% {
    top: -10%;
    transform: translateX(0) rotateX(0) rotateY(0);
  }

  100% {
    top: 100%;
    transform: translateX(20px) rotateX(180deg) rotateY(360deg);
}
}

@keyframes confetti2 {
  0% {
    top: -10%;
    transform: translateX(0) rotateX(0) rotateY(0);
  }

  100% {
    top: 100%;
    transform: translateX(-20vw) rotateX(180deg) rotateY(360deg);
  }
}
*/
/*紙吹雪の配置*/
/*
.confetti span:nth-child(1) {
  left: 0%;
}

.confetti span:nth-child(2) {
  left: 10%;
}

.confetti span:nth-child(3) {
  left: 20%;
}

.confetti span:nth-child(4) {
  left: 30%;
}

.confetti span:nth-child(5) {
  left: 40%;
}

.confetti span:nth-child(6) {
  left: 50%;
}

.confetti span:nth-child(7) {
  left: 60%;
}

.confetti span:nth-child(8) {
  left: 70%;
}

.confetti span:nth-child(9) {
  left: 80%;
}

.confetti span:nth-child(10) {
  left: 90%;
}

.confetti span:nth-child(11) {
  left: 100%;
}
*/
/*紙吹雪の大きさ*/
/*
.confetti span:nth-child(3n + 1) {
  width: 2.5vw;
  height: 2.5vw;
}

.confetti span:nth-child(3n + 2) {
  width: 1.5vw;
  height: 1.5vw;
}

.confetti span:nth-child(3n + 3) {
  width: 1vw;
  height: 1w;
}
*/
/*紙吹雪の色*/
/*
.confetti span:nth-child(2n + 1) {
  background: red;
}

.confetti span:nth-child(2n + 2) {
  background: orange;
}

.confetti span:nth-child(2n + 3) {
  background: purple;
}

.confetti span:nth-child(2n + 4) {
  background: pink;
}

.confetti span:nth-child(2n + 5) {
  background: blue;
}

.confetti span:nth-child(2n + 6) {
  background: green;
}

.confetti span:nth-child(2n + 7) {
  background: yellow;
}
*/
/*アニメーションの秒数*/
/*
.confetti span:nth-child(2n + 1) {
  animation-duration: 5s;
}

.confetti span:nth-child(2n + 2) {
  animation-duration: 6s;
}

.confetti span:nth-child(2n + 3) {
  animation-duration: 10s;
}

.confetti span:nth-child(2n + 4) {
  animation-duration: 4s;
}
*/
/*紙吹雪が降り始めるまでの時間*/
/*
.confetti span:nth-child(2n + 1) {
  animation-delay: 0s;
}

.confetti span:nth-child(2n + 2) {
  animation-delay: 4s;
}

.confetti span:nth-child(2n + 3) {
  animation-delay: 6s;
}

.confetti span:nth-child(2n + 4) {
  animation-delay: 2s;
}

.confetti span:nth-child(2n + 5) {
  animation-delay: 6s;
}

.confetti span:nth-child(2n + 6) {
  animation-delay: 10s;
}

.confetti span:nth-child(2n + 7) {
  animation-delay: 2s;
}

.confetti span:nth-child(2n + 8) {
  animation-delay: 4s;
}

.confetti span:nth-child(2n + 9) {
  animation-delay: 11s;
}

.confetti span:nth-child(2n + 10) {
  animation-delay: 1s;
}

.confetti span:nth-child(2n + 11) {
  animation-delay: 5s;
}
*/
.confetti canvas {
  height: 100%;
  width: 100%;
  position: absolute;
}

#jigsaw-desc {
  width: 85%;
  margin: 2% auto;
  padding: 2% 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#jigsaw-desc img {
  max-width: 200px;
  margin-right: 2%;
}

.jigsaw-desc-wrapper {
  margin-left: 1%;
  padding: 1em 2em;
  border: 5px solid rgba(0,141,84,0.5);
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  #jigsaw-desc {
    display: block;
  }

  #jigsaw-desc img {
    display: block;
    margin: 0 auto;
  }
}