:root {
  --color-gold: #a8821c;
}

.p-special_cap {
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 60px;
}
@media only screen and (max-width:767px) {
  .p-special_cap {
    margin-bottom: 2.5rem;
  }
}

.p-special_gallery {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 42px 1fr 42px 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 42px;
}
.p-special_gallery.--illust {
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}
.p-special_gallery + .p-special_gallery {
  margin-top: 42px;
}
@media only screen and (max-width:767px) {
  .p-special_gallery + .p-special_gallery {
    margin-top: 2.5rem;
  }
}
.p-special_gallery.--wide {
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
}
@media only screen and (max-width:767px) {
  .p-special_gallery {
    -ms-grid-columns: 1fr 2.66vw 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2.66vw;
  }
  .p-special_gallery.--illust {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
.p-special_gallery-item {
  cursor: pointer;
}
.--illust .p-special_gallery-item {
  cursor: default;
}
@media only screen and (min-width:768px) {
  .p-special_gallery-item:hover .p-special_gallery-img_in img {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  .--illust .p-special_gallery-item:hover .p-special_gallery-img_in img {
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }
  .p-special_gallery-item:hover .p-special_gallery-name {
    color: var(--color-gold);
  }
}
.p-special_gallery-img {
  padding: 3px;
  border: 1px solid var(--color-gold);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.--illust .p-special_gallery-img {
  cursor: pointer;
}
@media only screen and (min-width:768px) {
  .--illust .p-special_gallery-img:hover .p-special_gallery-img_in img {
    -webkit-transform: translate(-50%, -50%) scale(1.1);
            transform: translate(-50%, -50%) scale(1.1);
  }
}
.p-special_gallery-img_in {
  position: relative;
  display: block;
  overflow: hidden;
  border: 3px solid var(--color-gold);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.p-special_gallery-img_in img {
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transition: -webkit-transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), -webkit-transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.--illust .p-special_gallery-img_in {
  background: url(../img/red_pattern.jpg) center top repeat;
  width: 100%;
  height: auto;
  padding-top: 100%;
}
.--illust .p-special_gallery-img_in img {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  max-height: 100%;
  max-width: 100%;
}
.p-special_gallery-name {
  margin-top: 16px;
  padding: 0 7px;
  font-size: 14px;
  line-height: 1.6;
  -webkit-transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
@media only screen and (max-width:767px) {
  .p-special_gallery-name {
    margin-top: 0.8rem;
    font-size: 12px;
  }
}
.p-special_gallery__modal img {
  image-rendering: -webkit-optimize-contrast;
}
@media only screen and (min-width:768px) {
  .p-special_gallery__modal img {
    max-height: 90vh;
    width: auto;
    margin: auto;
  }
}
.p-special_gallery__modal.--wide img {
  image-rendering: -webkit-optimize-contrast;
}
@media only screen and (min-width:768px) {
  .p-special_gallery__modal.--wide img {
    max-height: unset;
    width: 100%;
    height: auto;
  }
}
.p-special_gallery-no {
  padding-right: 15px;
  font-family: "EB Garamond", "Noto Serif JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 36px;
  text-align: left;
  z-index: 2;
}
@media screen and (max-width: 767px) {
  .p-special_gallery-no {
    top: -5px;
    font-size: 28px;
  }
}
.p-special_gallery-no::before {
  content: "#";
  font-family: "EB Garamond", "Noto Serif JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 80%;
  vertical-align: top;
}
.p-special_gallery-artist {
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
  -webkit-transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  color: #c80000;
  text-decoration: none;
  letter-spacing: 0.1rem;
  font-size: 22px;
}
.p-special_gallery-artist::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  position: absolute;
  top: -1px;
  left: auto;
  right: -20px;
  border: none;
  background: url(../img/bddvd/ex_link.svg) no-repeat center/contain;
}
@media only screen and (min-width:768px) {
  .p-special_gallery-artist:hover {
    color: #c80000;
    opacity: 0.5;
  }
}
.p-special_gallery-artist small {
  font-size: 80%;
  vertical-align: baseline;
}
.p-special_gallery-illusttxt {
  margin-top: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

body .m-modal .m-modal__content {
  width: 100%;
  max-width: 90vw;
}