.makers {
  container-type: inline-size;
  container-name: makers-top;
  text-align: center;
  margin-top: 80px;
}
.makers .morebutton {
  background: #bf046a;
  border-radius: 1.8em;
}
.makers .morebutton a {
  padding: 0.4em 0;
  color: #fff;
}

.topClassMakers {
  display: flex;
  border: 2px solid #dbdddc;
  background: #fff;
  border-radius: 1rem;
  margin-bottom: 40px;
}
.topClassMakers div {
  text-align: left;
  max-width: 674px;
}
.topClassMakers h2 {
  color: #bf046a;
  border-bottom: 1px solid;
}
.topClassMakers h2 + p {
  margin-bottom: 20px;
}
.topClassMakers h2 + figure {
  margin-top: 20px;
}
.topClassMakers h3 {
  font-size: 1.4em;
}
.topClassMakers h4 {
  font-size: 1.2em;
}
.topClassMakers h3 + p, .topClassMakers h4 + p {
  font-size: 1.2em;
  vertical-align: middle;
  margin-bottom: 1em;
}
.topClassMakers aside {
  padding-top: 1.8rem;
}
.topClassMakers aside p a {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  font-size: 1.2em;
  color: #333;
}
.topClassMakers aside img {
  width: 220px;
}
.topClassMakers aside .morebutton {
  margin: 2rem 1rem 0;
}

.makersblock {
  display: flex;
  flex-wrap: wrap;
  margin-top: 80px;
  margin-bottom: 80px;
}
.makersblock div {
  display: flex;
  flex-direction: column;
  border: 2px solid #dbdddc;
  background: #fff;
  border-radius: 1rem;
  padding: 30px;
  width: 320px;
}
.makersblock div img {
  max-width: 260px;
}
.makersblock p a {
  display: flex;
  justify-content: center;
  font-size: 1.2em;
  color: #333;
}
.makersblock p:first-child a {
  display: block;
  height: 100px;
  position: relative;
}
.makersblock p:first-child a img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}
.makersblock p:nth-of-type(2) {
  padding-top: 10px;
}
.makersblock .morebutton {
  margin: 1.5rem 2rem 0;
}

.sns {
  display: flex;
  margin-top: 24px;
  justify-content: center;
}
.sns div {
  padding: 0 5px;
}
.sns svg {
  fill: #bbb;
}

@container (max-width: 767.98px) {
  .topClassMakers {
    flex-direction: column;
    flex-direction: column-reverse;
    width: 94%;
    padding: 30px 20px;
  }
  .topClassMakers aside {
    margin: 0 auto;
  }
  .topClassMakers h2 + p {
    font-size: 1.4rem;
  }
  .topClassMakers .photo4 img {
    width: 20cqw;
    height: auto;
  }
  .topClassMakers .photo3 img {
    width: 27cqw;
    height: auto;
  }
  .makersblock {
    flex-direction: column;
  }
  .makersblock div {
    margin: 0 auto 20px;
  }
}
@container (min-width: 768px) {
  .topClassMakers {
    flex-direction: column;
    flex-direction: column-reverse;
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 30px;
  }
  .topClassMakers div {
    margin-left: auto;
    margin-right: auto;
  }
  .topClassMakers aside {
    margin: 0 auto;
  }
  .topClassMakers h2 {
    font-size: 1.8rem;
  }
  .topClassMakers h2 + p {
    font-size: 1.8rem;
  }
  .topClassMakers .photo4 img {
    width: 20cqw;
    height: auto;
  }
  .topClassMakers .photo3 img {
    width: 27cqw;
    height: auto;
  }
  .makersblock {
    justify-content: center;
  }
  .makersblock div {
    margin: 0 20px 40px;
  }
}
@container (min-width: 1024px) {
  .makers article {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  .topClassMakers {
    flex-direction: row;
    justify-content: space-between;
  }
  .topClassMakers .photo4 img {
    width: 165px;
    height: auto;
  }
  .topClassMakers .photo3 img {
    width: 220px;
    height: auto;
  }
  .makersblock {
    justify-content: start;
  }
  .makersblock div {
    margin: 0 0 40px 0;
  }
  .makersblock div:nth-of-type(3n-1) {
    margin-left: 20px;
    margin-right: 20px;
  }
}
