@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;
  }
}

#jigsaw-main {
  width: 85%;
  margin: 2% auto;
}
#jigsaw-main p {
  text-align: center;
}
.select {
  text-align: center;
}

.select-text {
  font-size: 1.5em;
  font-weight: bold;
  position: relative;
  padding: 1em 1em 0.6em 1em;
  display: inline-block;
  border: 5px solid rgba(0,141,84,0.5);
  border-radius: 10px;
}

.select-text::after {
  position: absolute;
  content: '';
  top: calc(100% + 5px);
  left: calc(50% - 15px);
  border: 15px solid transparent;
  border-top: 15px solid rgba(0,141,84,0.5);
  width: 0;
  height: 0;
}
#jigsaw-main ul {
  width: 85%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  justify-content: center;
}

#jigsaw-main ul li {
  width: 31%;
  aspect-ratio: 4 / 3;
  margin: 1%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .2s;
  border-radius: 10px;
}

#jigsaw-main ul li:hover {
  opacity: 0.8;
  transform: translateY(3px);
}

#jigsaw-main ul li:first-child {
  background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url(../images/t01.webp);
  background-size: cover;
}

#jigsaw-main ul li:nth-child(2) {
  background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url(../images/t02.webp);
  background-size: cover;
}

#jigsaw-main ul li:nth-child(3) {
  background-image: linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0.1)), url(../images/t03.webp);
  background-size: cover;
}

#jigsaw-main ul li:nth-child(4) {
  background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url(../images/t04.webp);
  background-size: cover;
}

#jigsaw-main ul li:nth-child(5) {
  background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url(../images/t05.webp);
  background-size: cover;
}

#jigsaw-main ul li:nth-child(6) {
  background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url(../images/t06.webp);
  background-size: cover;
}

#jigsaw-main ul li a {
  display: flex;
  align-items:center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-shadow: 3px 5px 5px rgba(0,0,0,0.4);
  text-decoration: none;
  color: #fff;
  font-size: calc(0.25vw + 1.5rem);
  font-weight: bold;
  line-height: 2;
  vertical-align: middle;
  border-radius: 10px;
}

#jigsaw-main ul li:nth-child(3) a img {
  width: 90%;
}

#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: 1310px) {
  #jigsaw-main ul {
    width: 95%;
  }

}

@media screen and (max-width: 1024px) {
  #jigsaw-main ul {
    width: 85%;
  }

  #jigsaw-main ul li {
    width: 48%;
  }
}

@media screen and (max-width: 768px) {
  #jigsaw-main ul {
    width: 100%;
  }

  #jigsaw-main ul li {
    width: 48%;
  }

  #jigsaw-desc {
    display: block;
  }

  #jigsaw-desc img {
    display: block;
    margin: 0 auto;
  }

}

@media screen and (max-width: 670px) {
  #jigsaw-main ul {
    display: block;
    width: 95%;
  }
  #jigsaw-main ul li {
    width: 100%;
    margin: 2% auto 5% auto;
  }
}

/*====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;
}
