.modal-window {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 11;
}

.modal-window-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, .85);
}

.modal-item-list {
  counter-reset: modal;
}

.modal-item-list li .modal-item-title::before {
  display: block;
  content: "0" counter(modal);
  counter-increment: modal;
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 20px;
}

.modal-item-list li:nth-child(n + 10) .modal-item-title::before {
  content: counter(modal);
}

@media screen and (max-width: 979px) {
  .modal-window-inner {
    padding-top: 60px;
    overflow: scroll;
  }

  .modal-body {
    color: #fff;
    overflow: scroll;
    height: calc(100vh - 110px - 100vw);
    padding: 30px 18px 80px;
  }

  .slick-slide .modal-body {
    margin-top: 70px;
    padding: 0 18px calc(30px + 120px);
  }

  .modal-item-list li .modal-item-title::before {
    display: none;
  }

  .modal-item-title {

    font-size: 14px;
    line-height: calc(22/ 14);
  }

  .modal-item-lead {
    margin: 30px 0;
    font-size: 12px;
    line-height: calc(18/ 12);
  }
}

@media screen and (min-width: 980px) {
  .modal-window-inner {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 12;
    transform: translate(-50%, -50%);
    width: 920px;
    height: 620px;
  }

  .modal-item-inner {
    display: flex;
    justify-content: space-between;
  }

  .modal-media {
    min-width: 590px;
    min-height: 590px;
  }

  .modal-body {
    margin-top: auto;
    color: #fff;
    padding-left: 30px;
    text-align: left;
  }

  .modal-item-title {
    font-size: 14px;
    line-height: calc(22/ 14);
  }

  .modal-item-lead {
    margin: 30px 0;
    font-size: 14px;
    line-height: calc(22/ 14);
  }

  .modal-body .special-button-link {
    text-align: right;
    position: relative;
    bottom: 0;
    left: 0;
    transform: none;
  }
}

.modal-window-close {
  position: fixed;
  top: 55px;
  right: 0;
  width: 53px;
  height: 53px;
  background-color: #fff;
  display: none;
  z-index: 11;
}

[data-display-state="block"] .modal-window-close {
  display: block;
}

.modal-window-close > img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-arrows {
  position: absolute;
}

.modal-prev,
.modal-next {
  border: 0;
  color: transparent;
  background-size: 100%;
  font: 0/0 a;
  text-shadow: none;
  cursor: pointer;
  transition: opacity .1s cubic-bezier(0, 0, .2, 1);
}

.modal-prev:hover,
.modal-next:hover {
  opacity: .5;
}

@media screen and (max-width: 979px) {
  .modal-arrows {
    position: absolute;
    width: 100%;
    top: calc(100vw + 60px);
    height: 70px;
  }

  .modal-prev,
  .modal-next {
    top: 50%;
    transform: translate(0, -50%);
    position: absolute;
  }

  .modal-prev {
    left: 18px;
  }

  .modal-next {
    right: 18px;
  }
}

@media screen and (min-width: 980px) {
  .modal-arrows {
    font-size: 0;
    width: 590px;
    text-align: right;
  }

  .modal-prev,
  .modal-next {
    margin-top: 12px;
    display: inline-block;
  }

  .modal-next {
    margin-left: 12px;
  }
}


/* インジケータ */

.slick-dots {
  height: 6px;
}

.slick-dots > li {
  display: inline-block;
  line-height: 1;
  width: 6px;
  height: 6px;
}

.slick-dots > li > button {
  display: none;
}

.slick-dots > li + li {
  margin-left: 3px;
}

.slick-dots > li::before {
  position: absolute;
  top: 0;

  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 100%;
  content: "";
}

.slick-dots > li.slick-active::before {
  border: none;
  background-color: #fff;
}

@media screen and (max-width: 979px) {
  .slick-dots {
    position: absolute;
    top: calc(100vw + 32px);
    left: 50%;
    text-align: center;
    transform: translate(-50%, 0);
  }
}

@media screen and (min-width: 980px) {
  .slick-dots {
    position: absolute;
    bottom: -25px;
    transform: translate(0, -100%);
  }
}

/* tieup-contents fix */
@media screen and (max-width: 979px) {
  .modal-window.modal-window-tieup {
    height: 85vh;
    overflow-y: scroll;
  }

  .modal-window.modal-window-tieup .modal-window-inner {
    overflow: initial;
  }

  .modal-window.modal-window-tieup .modal-body-tieup {
    overflow: initial;
    padding-bottom: 0;
    height: initial;
}
