.story-inner {
  width: min(100% - 4rem, 96.5rem);
  margin: 0 auto;
}

.story-list__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem 2.4rem;
}
@media screen and (max-width: 767px) {
  .story-list__items {
    grid-template-columns: 100%;
    gap: 2.4rem;
  }
}

.story-list__anchor {
  display: block;
  height: 100%;
  border: 0.1rem solid #1e4eb8;
  background-color: #fff;
  box-shadow: 0.2rem 0.2rem 0 0 #1e4eb8;
  color: inherit;
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .story-list__anchor:hover .story-list__thumb > img {
    transform: scale(1.05);
  }
}

.story-list__thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.story-list__thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (min-width: 768px) {
  .story-list__thumb > img {
    transition: transform 0.2s;
  }
}

.story-list__info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 1.2rem;
  padding: 1.6rem 2.4rem;
  border-top: 0.1rem solid #1e4eb8;
}
@media screen and (max-width: 767px) {
  .story-list__info {
    padding: 1.6rem;
  }
}

.story-list__episode {
  padding-bottom: 0.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
}
@media screen and (max-width: 767px) {
  .story-list__episode {
    font-size: 1.2rem;
  }
}
.story-list__episode > span {
  font-size: 2rem;
}
@media screen and (max-width: 767px) {
  .story-list__episode > span {
    font-size: 1.8rem;
  }
}

.story-list__title {
  border-bottom: solid 0.4rem #ffdc00;
  color: #1e4eb8;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.story-panel {
  border: 0.2rem solid #1e4eb8;
  background-color: #fff;
}

.story-detail__heading {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0 2.4rem;
  padding: 0.8rem;
  background-color: #1e4eb8;
  color: #fff;
}
@media screen and (max-width: 767px) {
  .story-detail__heading {
    gap: 0 1.6rem;
  }
}

.story-detail__episode {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .story-detail__episode {
    padding-bottom: 0.1em;
    font-size: 1.4rem;
  }
}
.story-detail__episode > span {
  font-size: 2.8rem;
}
@media screen and (max-width: 767px) {
  .story-detail__episode > span {
    font-size: 1.8rem;
  }
}

.story-detail__title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .story-detail__title {
    font-size: 2rem;
  }
}

.story-detail__main {
  position: relative;
  z-index: 0;
  aspect-ratio: 16/9;
}

.story-detail__main__item {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s;
  opacity: 0;
  pointer-events: none;
  object-fit: cover;
  mix-blend-mode: plus-lighter;
}
.story-detail__main__item.is-current {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.story-detail__images {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.1rem;
  border-top: 0.1rem solid #1e4eb8;
  border-bottom: 0.1rem solid #1e4eb8;
  background-color: #1e4eb8;
}
@media screen and (max-width: 767px) {
  .story-detail__images {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story-detail__images__item {
  position: relative;
  z-index: 0;
  cursor: pointer;
}
.story-detail__images__item::before {
  content: "";
  position: absolute;
  z-index: 1;
  transition: opacity 0.2s;
  opacity: 0;
  background-color: rgba(30, 78, 184, 0.5);
  pointer-events: none;
  inset: 0;
  mix-blend-mode: hard-light;
}
@media screen and (min-width: 768px) {
  .story-detail__images__item {
    transition: filter 0.2s;
  }
  .story-detail__images__item:hover {
    filter: brightness(0.9);
  }
}
.story-detail__images__item.is-current {
  pointer-events: none;
}
.story-detail__images__item.is-current::before {
  opacity: 1;
}

.story-detail__body {
  display: flex;
  gap: 4rem;
  padding: 4rem;
}
@media screen and (max-width: 767px) {
  .story-detail__body {
    flex-direction: column;
    gap: 2.4rem;
    padding: 2rem;
  }
}

.story-detail__video {
  flex-shrink: 0;
  width: 27.2rem;
  border: 0.1rem solid #1e4eb8;
}
@media screen and (max-width: 767px) {
  .story-detail__video {
    width: 100%;
  }
}

.story-detail__video-title {
  background-color: #1e4eb8;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .story-detail__video-title {
    font-size: 1.4rem;
  }
}

.story-detail__description {
  font-size: 1.6rem;
  text-align: justify;
}
@media screen and (max-width: 767px) {
  .story-detail__description {
    font-size: 1.4rem;
  }
}

.story-detail__video-inner {
  padding: 1.6rem;
}

.story-detail__video-img {
  position: relative;
  z-index: 0;
  overflow: hidden;
  cursor: pointer;
}
.story-detail__video-img::before, .story-detail__video-img::after {
  content: "";
  position: absolute;
}
.story-detail__video-img::before {
  z-index: 1;
  background-color: rgba(30, 78, 184, 0.5);
  inset: 0;
  mix-blend-mode: hard-light;
}
.story-detail__video-img::after {
  z-index: 2;
  width: 2.8rem;
  margin: auto;
  background-color: #fff;
  inset: 0 0 0 3%;
  aspect-ratio: 1.732/2;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}
@media screen and (min-width: 768px) {
  .story-detail__video-img > img {
    transition: transform 0.2s;
  }
  .story-detail__video-img:hover > img {
    transform: scale(1.05);
  }
}

.story-detail__nav {
  display: flex;
  align-items: center;
  width: min(100% - 4rem, 96.5rem);
  margin: 5rem auto 0;
}
@media screen and (min-width: 768px) {
  .story-detail__nav + .story-detail__archive {
    margin-top: -4.8rem;
  }
}
@media screen and (max-width: 767px) {
  .story-detail__nav {
    margin-top: 3rem;
    padding-bottom: 1rem;
  }
}

.story-detail__nav__link {
  display: block;
  position: relative;
  z-index: 1;
  padding: 0 2.4rem;
  color: inherit;
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .story-detail__nav__link {
    transition: opacity 0.2s;
  }
  .story-detail__nav__link:hover {
    opacity: 0.7;
  }
}
@media screen and (max-width: 767px) {
  .story-detail__nav__link {
    padding: 0 1.6rem;
  }
}
.story-detail__nav__link::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  height: 1.2rem;
  margin: auto 0;
  background: url("../images/common/arw_01_b.svg") no-repeat;
  background-size: contain;
  aspect-ratio: 7/12;
}
.story-detail__nav__link.next::after {
  left: 0;
}
.story-detail__nav__link.prev {
  margin-left: auto;
  text-align: right;
}
.story-detail__nav__link.prev::after {
  right: 0;
  transform: scaleX(-1);
}
.story-detail__nav__link > span {
  display: block;
  line-height: 1.5;
}

.story-detail__nav__num {
  font-size: 1.4rem;
  font-weight: 700;
}
@media screen and (max-width: 767px) {
  .story-detail__nav__num {
    font-size: 1.2rem;
  }
}

.story-detail__nav__title {
  color: #1e4eb8;
  font-size: 1.6rem;
  font-weight: 700;
}
@media screen and (max-width: 767px) {
  .story-detail__nav__title {
    font-size: 1.4rem;
  }
}

.story-detail__archive {
  margin-top: 5rem;
}
@media screen and (max-width: 767px) {
  .story-detail__archive {
    margin-top: 3rem;
  }
}

.story-modal {
  display: grid;
  visibility: hidden;
  position: fixed;
  z-index: 999;
  grid-template-columns: min(100%, 100rem);
  transition: 0.3s ease;
  transition-property: opacity, visibility;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.7);
  inset: 0;
  place-content: center;
}
.story-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.story-modal__inner > iframe {
  width: 100%;
  height: auto;
  vertical-align: top;
  aspect-ratio: 16/9;
}

.story-modal__close {
  position: absolute;
  top: 4rem;
  right: 4rem;
  padding: 0 0.8rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .story-modal__close {
    top: 1.6rem;
    right: 1.6rem;
  }
}
