/* media query */
.width {
  max-width: 1400px;
  width: calc(100% - 40px);
  margin-inline: auto;
}

.works-wrapper {
  padding-top: 82px;
}
@media all and (max-width: 767px) {
  .works-wrapper {
    padding-top: 60px;
  }
}
.works-main {
  padding: 40px 0;
  background-size: auto auto;
  background-color: rgb(37, 159, 224);
  background-image: repeating-linear-gradient(90deg, transparent, transparent 50px, rgb(0, 144, 217) 50px, rgb(0, 144, 217) 100px);
}
@media all and (max-width: 767px) {
  .works-main {
    padding: 30px 0;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 40px, rgb(0, 144, 217) 40px, rgb(0, 144, 217) 80px);
  }
}
.works-main__ttl {
  text-align: center;
  color: #fff;
  font-size: 4rem;
  font-weight: 900;
}
@media all and (max-width: 767px) {
  .works-main__ttl {
    font-size: 3.2rem;
  }
}
.works-intro {
  padding: 40px 0;
}
@media all and (max-width: 767px) {
  .works-intro {
    padding: 30px 0;
  }
}
.works-intro__inner {
  max-width: 1000px;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  border: 5px solid #f3c19c;
  border-radius: 15px;
}
@media all and (max-width: 767px) {
  .works-intro__inner {
    padding: 15px;
    border-width: 4px;
  }
}
.works-intro__ttl {
  text-align: center;
  word-break: keep-all;
  font-size: 2.4rem;
  font-weight: 700;
}
@media all and (max-width: 767px) {
  .works-intro__ttl {
    font-size: 2rem;
  }
}
.works-intro__list {
  margin-top: 15px;
  margin-inline: auto;
  inline-size: -webkit-fit-content;
  inline-size: -moz-fit-content;
  inline-size: fit-content;
  font-size: 1.8rem;
}
@media all and (max-width: 767px) {
  .works-intro__list {
    margin-top: 10px;
    font-size: 1.6rem;
  }
}
.works-intro__list > li {
  padding-left: 1.2em;
  margin-top: 5px;
  position: relative;
}
.works-intro__list > li:first-of-type {
  margin-top: 0;
}
.works-intro__list > li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #E07E59;
  position: absolute;
  top: 8px;
  left: 0;
  border-radius: 50%;
}
@media all and (max-width: 767px) {
  .works-intro__list > li::before {
    width: 12px;
    height: 12px;
    top: 7px;
  }
}
.works-outer {
  padding: 60px 0;
  background: #C7ECFE;
}
@media all and (max-width: 767px) {
  .works-outer {
    padding: 30px 0 50px;
  }
}
.works-options__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
@media all and (max-width: 767px) {
  .works-options__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.works-options__item {
  word-break: keep-all;
  text-align: center;
  cursor: pointer;
  display: grid;
  place-content: center;
  padding: 20px;
  border-radius: 9999px;
  background: #fff;
  color: #008DD5;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  position: relative;
  box-shadow: 4px 4px 8px rgba(37, 159, 224, 0.2);
}
@media all and (max-width: 767px) {
  .works-options__item {
    padding: 15px;
    font-size: 1.6rem;
    box-shadow: 2px 2px 4px rgba(37, 159, 224, 0.2);
  }
}
.works-options__item.--kaiketsu {
  color: #1E469B;
}
.works-options__item.--entame {
  color: #E95A9A;
}
.works-options__item.--lower {
  color: #DD000E;
}
.works-options__item.--upper {
  color: #ff6c00;
}
.works-options__item.--active {
  background: #008DD5;
  color: #fff;
}
.works-options__item.--active.--kaiketsu {
  background: #1E469B;
}
.works-options__item.--active.--entame {
  background: #E95A9A;
}
.works-options__item.--active.--lower {
  background: #DD000E;
}
.works-options__item.--active.--upper {
  background: #ff6c00;
}
.works-contents {
  display: none;
}
.works-contents.--open {
  display: block;
  margin-top: 60px;
}
@media all and (max-width: 767px) {
  .works-contents.--open {
    margin-top: 40px;
  }
}
.works-kind {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 60px 0 25px;
  padding-left: 30px;
  position: relative;
}
@media all and (max-width: 767px) {
  .works-kind {
    font-size: 2.2rem;
    margin: 40px 0 20px;
    padding-left: 25px;
  }
}
.works-kind::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 100%;
  background: #259FE0;
  position: absolute;
  top: 0;
  left: 0;
}
@media all and (max-width: 767px) {
  .works-kind::before {
    width: 8px;
  }
}
.works-list {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px 20px;
}
@media all and (max-width: 480px) {
  .works-list {
    gap: 20px 15px;
  }
}
.works-item {
  width: calc((100% - 40px) / 3);
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 4px 4px 8px rgba(37, 159, 224, 0.2);
}
@media all and (max-width: 767px) {
  .works-item {
    width: calc((100% - 20px) / 2);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 4px rgba(37, 159, 224, 0.2);
  }
}
@media all and (max-width: 480px) {
  .works-item {
    width: calc((100% - 15px) / 2);
  }
}
.works-item.--kaiketsu .works-category__item {
  background: #1E469B;
}
.works-item.--entame .works-category__item {
  background: #E95A9A;
}
.works-item.--lower .works-category__item {
  background: #DD000E;
}
.works-item.--upper .works-category__item {
  background: #ff6c00;
}
.works-movie > a {
  display: block;
  position: relative;
}
.works-movie > a::after {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background: url("../img/btn_movie.svg") center center/contain no-repeat;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}
@media all and (max-width: 767px) {
  .works-movie > a::after {
    width: 40px;
    height: 40px;
  }
}
@media all and (max-width: 480px) {
  .works-movie > a::after {
    width: 30px;
    height: 30px;
  }
}
.works-movie img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 16/9;
}
.works-category {
  margin-top: 15px;
}
@media all and (max-width: 767px) {
  .works-category {
    margin-top: 10px;
  }
}
.works-category__item {
  box-sizing: border-box;
  text-align: center;
  padding: 4px 8px;
  background: #008DD5;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
@media all and (max-width: 767px) {
  .works-category__item {
    font-size: 1.3rem;
  }
}
.works-ttl {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 10px;
}
@media all and (max-width: 767px) {
  .works-ttl {
    font-size: 1.6rem;
    margin-top: 8px;
  }
}
.works-hidden {
  margin-top: 10px;
}
@media all and (max-width: 767px) {
  .works-hidden {
    margin-top: 8px;
  }
}
.works-hidden.--open {
  display: block;
}
.works-hidden.--open .works-txt {
  display: block;
  text-overflow: clip;
  overflow: visible;
  white-space: normal;
}
.works-txt {
  font-size: 1.4rem;
  line-height: 1.8;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: all 0.3s ease-out;
}
@media all and (max-width: 767px) {
  .works-txt {
    font-size: 1.3rem;
  }
}
.works-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}
@media all and (max-width: 1000px) {
  .works-block {
    gap: 8px 10px;
    flex-direction: column-reverse;
  }
}
@media all and (max-width: 767px) {
  .works-block {
    margin-top: 10px;
  }
}
.works-good {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
@media all and (max-width: 1000px) {
  .works-good {
    width: 100%;
  }
}
.works-good .good-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  position: relative;
}
@media all and (max-width: 767px) {
  .works-good .good-btn {
    width: 32px;
    height: 32px;
  }
}
.works-good .good-btn.--active::after {
  scale: 1;
}
.works-good .good-btn.--animate::after {
  -webkit-animation: goodMove 0.3s ease-out forwards;
          animation: goodMove 0.3s ease-out forwards;
}
@-webkit-keyframes goodMove {
  0% {
    scale: 0;
  }
  80% {
    scale: 1.5;
  }
  100% {
    scale: 1;
  }
}
@keyframes goodMove {
  0% {
    scale: 0;
  }
  80% {
    scale: 1.5;
  }
  100% {
    scale: 1;
  }
}
.works-good .good-btn::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  background: url("../img/good.svg") center center/contain no-repeat;
  position: absolute;
  inset: 0;
  margin: auto;
}
@media all and (max-width: 767px) {
  .works-good .good-btn::before {
    width: 28px;
    height: 28px;
  }
}
.works-good .good-btn::after {
  content: "";
  display: inline-block;
  scale: 0;
  width: 32px;
  height: 32px;
  background: url("../img/good_active.svg") center center/contain no-repeat;
  position: absolute;
  inset: 0;
  margin: auto;
}
@media all and (max-width: 767px) {
  .works-good .good-btn::after {
    width: 28px;
    height: 28px;
  }
}
.works-good .good-txt {
  flex-grow: 1;
  font-size: 1.4rem;
}
@media all and (max-width: 767px) {
  .works-good .good-txt {
    font-size: 1.3rem;
  }
}
.works-acc {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
}
@media all and (max-width: 1000px) {
  .works-acc {
    width: 100%;
    justify-content: flex-end;
  }
}
@media all and (max-width: 767px) {
  .works-acc {
    gap: 5px;
    font-size: 1.3rem;
  }
}
.works-acc.--active > span::before {
  top: calc(50% - 1px);
  rotate: 180deg;
}
.works-acc > span {
  display: block;
  width: 32px;
  height: 32px;
  background: #231815;
  border-radius: 50%;
  position: relative;
}
@media all and (max-width: 767px) {
  .works-acc > span {
    width: 28px;
    height: 28px;
  }
}
.works-acc > span::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 7px 0 7px;
  border-color: #fff transparent transparent transparent;
  position: absolute;
  top: calc(50% + 1px);
  left: 50%;
  translate: -50% -50%;
  transition: all 0.3s ease-out;
}
@media all and (max-width: 767px) {
  .works-acc > span::before {
    border-width: 9px 6px 0 6px;
  }
}
.works .footer {
  padding: 30px 20px;
}
.works .footer-management {
  margin-top: 20px;
}
.works .footer-copy {
  margin-top: 30px;
}