.works .number {
  -webkit-transition: 0s;
  -webkit-transition: -webkit-transform 0s cubic-bezier(0, 1, 0.5, 1);
  z-index: 999;
  position: absolute;
  width: 100%;
  height: 29vw;
  margin: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: 0s;
  transition: -webkit-transform 0s cubic-bezier(0, 1, 0.5, 1);
  transition: transform 0s cubic-bezier(0, 1, 0.5, 1);
  transition: transform 0s cubic-bezier(0, 1, 0.5, 1), -webkit-transform 0s cubic-bezier(0, 1, 0.5, 1);
}
.works .number svg {
  position: absolute;
  width: 27.5vw;
  height: auto;
}
.works .number#number-1 {
  margin-top: 7vw;
}
.works .number#number-1 svg {
  right: 13%;
}
.works .number#number-2 {
  margin-top: 80vw;
}
.works .number#number-2 svg {
  left: 13%;
}
.works .number#number-3 {
  margin-top: -10vw;
}
.works .number#number-3 svg {
  right: 13%;
}
.works .number#number-4 {
  margin-top: 64vw;
}
.works .number#number-4 svg {
  left: 13%;
}
.works .popup-wrap {
  position: relative;
}
.works .contents-wrapper {
  margin-top: 0;
}
.works .contents-wrapper .contents {
  -ms-flex-wrap: wrap;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
      flex-wrap: wrap;
  margin-right: 4%;
  margin-left: 4%;
  gap: 1%;
  line-height: 1.7;
}
.works .contents-wrapper .contents .content {
  width: 19.2%;
  height: auto;
  margin-top: 1%;
  overflow: hidden;
}
.works .contents-wrapper .contents .content a :hover {
  opacity: 0.4;
}
.works .contents-wrapper .contents .content img {
  -o-object-fit: cover;
  display: block;
  width: 17.792vw;
  height: 17.792vw;
  overflow: hidden;
     object-fit: cover;
}
.works .contents-wrapper .caption-wrapper {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
          justify-content: space-between;
  margin-top: 6%;
  margin-right: 4%;
  margin-bottom: 8%;
  margin-left: 4%;
}
.works .contents-wrapper .caption-wrapper h3 {
  padding: 0.97vw 1.85vw;
  font-size: 1.84vw;
}
.works .contents-wrapper .caption-wrapper p {
  width: 65%;
  margin-left: 5%;
  font-weight: 400;
  line-height: 2;
  line-height: 2;
  text-align: left;
}
@media screen and (max-width: 480px) {
  .works .number#number-2 {
    margin-top: 180vw;
  }
  .works .number#number-3 {
    margin-top: 40vw;
  }
  .works .number#number-4 {
    margin-top: 164vw;
  }
  .works .contents-wrapper .contents::after {
    display: inline-block;
    width: 30%;
    content: "";
  }
  .works .contents-wrapper .contents {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 0;
  }
  .works .contents-wrapper .contents .content {
    width: 31.8%;
    margin-top: 2.4%;
  }
  .works .contents-wrapper .contents .content img {
    width: 29vw;
    height: 29vw;
  }
  .works .contents-wrapper .caption-wrapper h3 {
    padding: 1.57vw 2.5vw;
    font-size: 5.65vw;
  }
  .works .contents-wrapper .caption-wrapper {
    display: block;
  }
  .works .contents-wrapper .caption-wrapper p {
    width: 100%;
    margin-top: 2.5%;
    margin-right: auto;
    margin-left: auto;
  }
  .works .contents-wrapper .caption-wrapper p {
    font-size: 3.75vw;
    line-height: 1.7;
  }
  .works .contents-wrapper .caption-wrapper {
    display: block;
    margin-top: 13.5%;
    margin-bottom: 10%;
  }
  .works .contents-wrapper .caption-wrapper p {
    margin-top: 5.5%;
  }
}
@media screen and (min-width: 480px) and (max-width: 768px) {
  .works .contents-wrapper .caption-wrapper h3 {
    padding: 1.2vw 2vw;
    font-size: 2.1vw;
  }
  .works .contents-wrapper .caption-wrapper {
    display: block;
  }
  .works .contents-wrapper .caption-wrapper p {
    width: 100%;
    margin-top: 2.5%;
    margin-right: auto;
    margin-left: auto;
    font-size: 1.8rem;
  }
  .works .contents-wrapper .caption-wrapper p {
    font-size: 2.2rem;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .works .contents-wrapper .caption-wrapper p {
    font-size: 2rem;
  }
}
@media screen and (min-width: 1025px) {
  .works .contents-wrapper .caption-wrapper p {
    font-size: 1.7rem;
  }
}
@media screen and (min-width: 1500px) {
  .works .contents-wrapper .caption-wrapper p {
    font-size: 1.95rem;
  }
}
.c-popup-tooltip {
  visibility: hidden;
  z-index: 10;
  position: absolute;
  padding: 10px 15px;
  border: solid #000 1px;
  background-color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  word-spacing: -0.15vw;
  pointer-events: none;
}

.bottom-right-popup {
  -webkit-transition: opacity 0.2s ease-in-out;
  display: none;
  z-index: 9999;
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.bottom-right-popup .popup-image {
  width: 100%;
  height: auto;
}
.bottom-right-popup.show {
  display: block;
  opacity: 1;
}
.bottom-right-popup .popup-content {
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 100%;
  max-width: 475px;
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.bottom-right-popup .popup-close {
  -webkit-box-align: center;
      -ms-flex-align: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  z-index: 10;
  position: absolute;
  top: -32px;
  right: 0;
          align-items: center;
          justify-content: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: none;
  background: none;
  background-color: #000;
  cursor: pointer;
}
.bottom-right-popup .popup-close .close-icon {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}
.bottom-right-popup .popup-close:hover {
  background-color: #fff;
}
.bottom-right-popup .popup-close:hover .close-icon {
  color: #000;
}
.bottom-right-popup .popup-body {
  background: #000;
}
.bottom-right-popup .popup-body:hover {
  background-color: #fff;
}
.bottom-right-popup .popup-body:hover .popup-text {
  color: #000;
}
.bottom-right-popup .popup-text-wrapper {
  padding: 12px 12px 12px 16px;
}
.bottom-right-popup .popup-text {
  color: #fff;
  font-weight: 400;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  font-family: "hiragino";
  font-family: "Noto Sans JP", sans-serif;
  text-align: right;
}
.bottom-right-popup .popup-text.is-single-line {
  text-align: left;
}
.bottom-right-popup .popup-text-first {
  white-space: nowrap;
}
.bottom-right-popup .popup-text-second {
  white-space: nowrap;
}
.bottom-right-popup .popup-sp-only {
  display: none;
}
.bottom-right-popup.fade-in {
  -webkit-animation: opacity 0.3s ease-out forwards;
          animation: opacity 0.3s ease-out forwards;
}
.bottom-right-popup.fade-out {
  -webkit-animation: opacity 0.3s ease-in forwards;
          animation: opacity 0.3s ease-in forwards;
}
@media screen and (max-width: 480px) {
  .bottom-right-popup {
    right: 15px;
    bottom: 15px;
    max-width: calc(100vw - 30px);
  }
  .bottom-right-popup .popup-text-wrapper {
    padding: 10px 12px 10px 12px;
  }
  .bottom-right-popup .popup-text-second {
    margin-right: -9px;
  }
  .bottom-right-popup .popup-sp-only {
    display: block;
  }
}
/* Magnific Popup CSS */
.mfp-bg {
  z-index: 1042;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0b0b;
  opacity: 0.8;
}

.mfp-wrap {
  -webkit-backface-visibility: hidden;
  z-index: 1043;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  outline: none !important;
}

.mfp-container {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 8px;
  text-align: center;
}

.mfp-container:before {
  display: inline-block;
  height: 100%;
  content: "";
  vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
  display: none;
}

.mfp-content {
  display: inline-block;
  z-index: 1045;
  position: relative;
  margin: 0 auto;
  text-align: left;
  vertical-align: middle;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto;
}

.mfp-ajax-cur {
  cursor: progress;
}

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -webkit-zoom-out;
  cursor: zoom-out;
}

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
  cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
      user-select: none;
}

.mfp-loading.mfp-figure {
  display: none;
}

.mfp-hide {
  display: none !important;
}

.mfp-preloader {
  z-index: 1044;
  position: absolute;
  top: 50%;
  right: 8px;
  left: 8px;
  width: auto;
  margin-top: -0.8em;
  color: #CCC;
  text-align: center;
}

.mfp-preloader a {
  color: #CCC;
}

.mfp-preloader a:hover {
  color: #FFF;
}

.mfp-s-ready .mfp-preloader {
  display: none;
}

.mfp-s-error .mfp-content {
  display: none;
}

button.mfp-close,
button.mfp-arrow {
  -webkit-appearance: none;
  -webkit-box-shadow: none;
  -ms-touch-action: manipulation;
  display: block;
  z-index: 1046;
  padding: 0;
  overflow: visible;
  border: 0;
  outline: none;
  background: transparent;
          box-shadow: none;
  cursor: pointer;
      touch-action: manipulation;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.mfp-close {
  -webkit-transition: 0s;
  position: fixed;
  top: 10%;
  right: 4%;
  width: 44px;
  height: 44px;
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-weight: 100;
  font-size: 7.8rem;
  line-height: 44px;
  font-family: Arial, Baskerville, monospace;
  text-align: center;
  /* position: absolute; */
  /* right: 0;
  top: 0; */
  text-decoration: none;
  opacity: 0.8;
  transition: 0s;
}

.mfp-close:hover,
.mfp-close:focus {
  opacity: 0.25;
}

.mfp-close:active {
  top: 1px;
}

.mfp-close-btn-in .mfp-close {
  color: #333;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  right: -6px;
  width: 100%;
  padding-right: 6px;
  color: #FFF;
  text-align: right;
}

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.mfp-arrow {
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: 0.2s ease-out;
  position: absolute;
  top: 50%;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: 110px;
  margin: 0;
  margin-top: -55px;
  padding: 0;
  opacity: 0.8;
  transition: 0.2s ease-out;
}

.mfp-arrow:active {
  margin-top: -54px;
}

.mfp-arrow:hover,
.mfp-arrow:focus {
  opacity: 0.25;
}

.mfp-arrow:before,
.mfp-arrow:after {
  display: block;
  top: 0;
  /* position: absolute; */
  left: 0;
  width: 0;
  height: 0;
  content: "";
  /* margin-top: 35px;
  margin-left: 35px;
  border: medium inset transparent; */
}

.mfp-arrow:after {
  /* border-top-width: 13px;
  border-bottom-width: 13px;
  top: 8px; */
}

.mfp-arrow:before {
  /* border-top-width: 21px;
  border-bottom-width: 21px;
  opacity: 0.7;  */
}

.mfp-arrow-left {
  position: fixed;
  left: 4%;
  width: 0;
  margin-left: 6px;
}

.mfp-arrow-left:after {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
  display: inline-block;
  width: 26px;
  height: 26px;
          transform: rotate(45deg);
  border-bottom: 4px solid #000;
  /* margin: 0 10px; */
  border-left: 4px solid #000;
}

.mfp-arrow-left:before {
  /* display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 10px;
    border-left: 4px solid #000;
    border-bottom: 4px solid #000;
    transform: rotate(45deg); */
}

.mfp-arrow-right {
  -webkit-transform: scale(-1, 1);
      -ms-transform: scale(-1, 1);
  position: fixed;
  right: 4%;
  width: 0;
  margin-right: 6px;
          transform: scale(-1, 1);
}

.mfp-arrow-right:after {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
  display: inline-block;
  width: 26px;
  height: 26px;
          transform: rotate(45deg);
  border-bottom: 4px solid #000;
  /* margin: 0 10px; */
  /* border-top: 4px solid #000;
  border-right: 4px solid #000; */
  border-left: 4px solid #000;
  /* border-left: 17px solid #FFF;
  margin-left: 39px; */
}

.mfp-arrow-right:before {
  /* border-left: 27px solid #3F3F3F; */
  /* display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 10px;
    border-top: 4px solid #000;
    border-right: 4px solid #000;
    transform: rotate(45deg); */
}

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
  width: 100%;
  max-width: 900px;
  line-height: 0;
}

.mfp-iframe-holder .mfp-close {
  top: -40px;
}

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
}

.mfp-iframe-scaler iframe {
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
          box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* Main image in popup */
img.mfp-img {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 40px 0 40px;
  line-height: 0;
}

/* The shadow behind the image */
.mfp-figure {
  line-height: 0;
}

.mfp-figure:after {
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  display: block;
  z-index: -1;
  position: absolute;
  top: 40px;
  right: 0;
  bottom: 40px;
  left: 0;
  width: auto;
  height: auto;
  background: #444;
          box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  content: "";
}

.mfp-figure small {
  display: block;
  color: #BDBDBD;
  font-size: 12px;
  line-height: 14px;
}

.mfp-figure figure {
  margin: 0;
}

.mfp-bottom-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: -36px;
  cursor: auto;
}

.mfp-title {
  word-wrap: break-word;
  padding-right: 36px;
  color: #F3F3F3;
  line-height: 18px;
  text-align: left;
}

.mfp-image-holder .mfp-content {
  max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer;
}

@media all and (max-width: 900px) {
  .mfp-arrow {
    /* -webkit-transform: scale(0.75); */
  }

  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    -ms-transform-origin: 0;
        transform-origin: 0;
  }

  .mfp-arrow-right {
    /* -webkit-transform-origin: 0;
    transform-origin: 0; */
  }

  .mfp-container {
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-right: 0;
    padding-left: 0;
  }

  .mfp-img-mobile img.mfp-img {
    padding: 0;
  }

  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0;
  }

  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px;
  }

  .mfp-img-mobile .mfp-bottom-bar {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    position: fixed;
    top: auto;
    bottom: 0;
    margin: 0;
    padding: 3px 5px;
    background: rgba(0, 0, 0, 0.6);
  }

  .mfp-img-mobile .mfp-bottom-bar:empty {
    padding: 0;
  }

  .mfp-img-mobile .mfp-counter {
    top: 3px;
    right: 5px;
  }

  .mfp-img-mobile .mfp-close {
    position: fixed;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    line-height: 35px;
    text-align: center;
  }
}
