@charset "utf-8";
/*
Theme Name: syousai
*/

.wrapper {
  width: calc(100% - 20rem);
  color: #7f4600;
}
h2 {
  font-size: 5.6rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  margin-bottom: 5.6rem;
}

.works-wrapper {
  margin: auto;
  padding: 13% 4% 0;
  max-width: 150rem;
}

.works-wrapper span {
  font-size: 1.4rem;
  position: absolute;
  bottom: -3rem;
  left: 0;
  right: 0;
  font-weight: normal;
  color: #888;
}

h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 2.4rem;
  color: #7f4600;
  display: flex;
  justify-content: center;
}
.works-wrapper .detail-txt {
  font-size: 1.4rem;
  max-width: 96rem;
  width: 94%;
  margin: auto;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 4rem;
}
.works-wrapper .detail-txt p {
  font-size: 1.4rem;
  max-width: 96rem;
  width: 94%;
  margin: auto;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 4rem;
}

.detail-img {
  max-width: 100rem;
  width: 80%;
  max-height: 45rem;
  background-color: #ccc;
  margin: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 2.4rem;
  opacity: 0;
}
figure {
  width: 80%;
  height: 100%;
  text-align: center;
}
.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-movie {
  display: block;
  opacity: 0;
  margin: auto;
  max-width: 100rem;
  width: 80%;
  max-height: 45rem;
  aspect-ratio: 16 / 9;
  background-color: #ccc;
  margin-bottom: 6.4rem;
}

.detail-btn {
  display: block;
  background-color: #744c08;
  width: 24rem;
  margin: 4.8rem auto 4rem;
  height: 5.6rem;
  border-radius: 5.6rem;
  line-height: 5.6rem;
  transition: 0.4s;

  position: relative;
}
.detail-btn p {
  font-size: 1.4rem;
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.detail-btn:hover {
  background-color: #fff;
  border: 0.1rem solid #744c08;
}
.detail-btn:hover p {
  color: #744c08;
}
.detail-btn svg {
  width: 2rem;
  position: absolute;
  display: inline-block;
  left: 2rem;
  bottom: 50%;
  top: 50%;
  margin: auto;
  align-items: center;
}
.detail-btn:hover svg path {
  fill: #744c08;
}
.detail-btn:hover svg path:nth-of-type(2) {
  stroke: #744c08;
}
.detail-movie.activeDetail.DetailAniWorks {
  animation: detailAnime 0.4s forwards;
  transform: scale(1);
}
@keyframes detailAnime {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.detail-img.activeDetail.DetailAniWorks {
  animation: detailAnime 0.4s 0.1s forwards;
  opacity: 0;
}
@keyframes detailAnime {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (max-width: 1040px) {
  .detail-img {
    width: 94%;
    margin-bottom: 1.6rem;
  }
  figure {
    width: 94%;
  }
  .detail-movie {
    width: 94%;
    margin-bottom: 4.8rem;
  }
  .works-wrapper .detail-txt {
    font-size: 1.4rem;
    max-width: 800px;
    width: 94%;
    margin: auto;
    text-align: center;
    line-height: 2;
    margin-bottom: 3.2rem;
    line-height: 1.8;
  }
  h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  .works-wrapper span {
    font-size: 1.2rem;
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
  }
  .works-wrapper {
    margin: auto;
    padding: 20% 3% 0;
  }
  h2 {
    font-size: 4rem;
    color: #7f4600;

    text-align: center;

    margin-bottom: 4rem;
  }

  .detail-btn {
    width: 60%;
    margin: 4rem auto 4.8rem;
  }
  .detail-btn p {
    font-size: 13px;
  }
  .detail-movie .circle img {
    width: 80%;
  }
  .wrapper {
    width: calc(100% - 160px);
  }
}

@media screen and (max-width: 800px) {
  .wrapper {
    width: 100%;
  }
  .detail-btn {
    width: 50%;
    margin-top: 4rem;
  }
  .detail-btn p {
    font-size: 1.5rem;
  }
  .detail-movie .circle img {
    width: 80%;
  }
  .works-wrapper {
    margin: auto;
    padding: 18% 4% 0;
    max-width: 1500px;
  }
  h2 {
    font-size: 4.8rem;

    margin-bottom: 4rem;
  }
  h3 {
    margin-bottom: 3.2rem;
  }

  .works-wrapper .detail-txt {
    font-size: 1.4rem;
    margin-bottom: 4.8rem;
  }
}
@media screen and (max-width: 520px) {
  .wrapper {
    width: 100%;
  }
  .works-wrapper {
    margin: auto;
    padding: 28% 4% 0;
    max-width: 1500px;
  }
  .detail-movie .circle img {
    width: 60%;
    margin: auto;
  }
  h2 {
    font-size: 4rem;
    margin-bottom: 5.6rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .detail-btn {
    padding: 0;
    width: 50%;
    height: 4.4rem;
    line-height: 4.4rem;
  }
  .detail-btn p {
    font-size: 1.2em;
  }
  .works-wrapper .detail-txt {
    font-size: 1.2rem;
    width: 100%;
  }
  .detail-img {
    width: 100%;
    margin-bottom: 0.8rem;
  }
  .detail-movie {
    width: 100%;
    margin-bottom: 3.2rem;
  }
  figure {
    width: 100%;
  }
}
