.story-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #E8F6FF 10%, #7BD1FF 30%, #50B8FF 100%);
}
.story-section::after {
  content: "";
  position: absolute;
  inset: -0.8rem;
  background: repeating-linear-gradient(to bottom, #b6e3fd 0 2px, transparent 2px 8px);
  filter: blur(2px);
  pointer-events: none;
}
.story-section__background {
  position: absolute;
  top: -9rem;
  right: 0;
  z-index: 0;
}
.story-section__background picture,
.story-section__background img {
  display: block;
  width: 100%;
}
@media screen and (max-width: 768px) {
  .story-section__background {
    top: 0;
  }
}
.story-section__inner {
  width: 100%;
  max-width: 120rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  padding: 6rem 4rem 12rem;
}
@media screen and (max-width: 768px) {
  .story-section__inner {
    padding: 3.6rem 1.4rem 7rem;
  }
}
.story-section__title {
  font-size: 7rem;
  line-height: 1;
  text-align: center;
  color: #3AA7F2;
}
@media screen and (max-width: 768px) {
  .story-section__title {
    font-size: 3.6rem;
  }
}

.story-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 103rem;
  margin: 4rem auto 0;
}
@media screen and (max-width: 768px) {
  .story-nav {
    gap: 0.4rem;
    max-width: none;
    margin-top: 3rem;
  }
}
.story-nav__item {
  --tl: #fff;
  --br: #5C7182;
  --t: 0.3rem;
  --b: 0.3rem;
  --o: 0.15rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12rem;
  height: 4.4rem;
  color: #fff;
  background: #0085F9;
  font-size: 1.8rem;
  letter-spacing: 0.025em;
  text-decoration: none;
}
.story-nav__item::before, .story-nav__item::after {
  content: "";
  position: absolute;
  inset: 0.1rem;
  pointer-events: none;
}
.story-nav__item::before {
  background: var(--br);
  clip-path: polygon(100% var(--o), 100% 100%, var(--o) 100%, var(--o) calc(100% - var(--o)), var(--t) calc(100% - var(--o)), var(--t) calc(100% - var(--b)), calc(100% - var(--b)) calc(100% - var(--b)), calc(100% - var(--b)) var(--t), calc(100% - var(--o)) var(--t), calc(100% - var(--o)) var(--o));
}
.story-nav__item::after {
  background: var(--tl);
  clip-path: polygon(0 0, 100% 0, 100% var(--o), calc(100% - var(--o)) var(--o), calc(100% - var(--o)) var(--t), var(--t) var(--t), var(--t) calc(100% - var(--o)), var(--o) calc(100% - var(--o)), var(--o) 100%, 0 100%);
}
@media screen and (max-width: 768px) {
  .story-nav__item {
    --t: 0.2rem;
    --b: 0.2rem;
    --o: 0.1rem;
    width: calc((100% - 0.4rem * 3) / 4);
    height: 3.2rem;
    font-size: 1.4rem;
    white-space: nowrap;
  }
}
@media (hover: hover) {
  .story-nav__item:hover {
    --tl: #2B4A6E;
    --br: #35BCFF;
    --b: 0.1rem;
  }
  .story-nav__item:hover::before, .story-nav__item:hover::after {
    inset: 0;
  }
}
@media (hover: none) {
  .story-nav__item:active {
    --tl: #2B4A6E;
    --br: #35BCFF;
    --b: 0.1rem;
  }
  .story-nav__item:active::before, .story-nav__item:active::after {
    inset: 0;
  }
}
.story-nav__item:active::before, .story-nav__item:active::after {
  display: none;
}
.story-nav__item.is-active {
  --tl: #704024;
  --br: #FFA84B;
  --b: 0.1rem;
  background: #FF5F00;
}
.story-nav__item.is-active::before, .story-nav__item.is-active::after {
  inset: 0;
}

.story-window {
  max-width: 110rem;
  margin: 4rem auto 0;
  border: 0.4rem solid #3AA7F2;
  border-radius: 2rem;
  overflow: hidden;
  background-color: #3aa7f2;
}
@media screen and (max-width: 768px) {
  .story-window {
    margin-top: 3rem;
    border-radius: 1.2rem;
  }
}
.story-window__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 6.4rem;
  padding: 0 1.4rem;
  background: linear-gradient(to right, #0F91EA 0%, #3AA7F2 100%);
  color: #fff;
}
@media screen and (max-width: 768px) {
  .story-window__bar {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 0.2rem;
    height: auto;
    padding: 0 0 1.8rem;
    text-align: center;
  }
}
.story-window__label {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-right: 8rem;
  font-size: 2.8rem;
  white-space: nowrap;
}
.story-window__label img {
  width: 4.8rem;
  height: auto;
  margin-top: -0.6rem;
}
@media screen and (max-width: 768px) {
  .story-window__label {
    justify-self: center;
    margin-right: 0;
    font-size: 2rem;
  }
  .story-window__label img {
    position: absolute;
    top: 0.6rem;
    left: 0.8rem;
    width: 3rem;
    margin-top: 0;
  }
}
.story-window__title {
  font-size: 2.8rem;
  line-height: 1.3;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .story-window__title {
    font-size: 2rem;
    white-space: normal;
  }
}
.story-window__controls {
  justify-self: end;
  display: flex;
  gap: 0.4rem;
}
.story-window__controls img {
  width: 2.6rem;
  height: 2.6rem;
}
@media screen and (max-width: 768px) {
  .story-window__controls {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    gap: 0.2rem;
  }
  .story-window__controls img {
    width: 2rem;
    height: 2rem;
  }
}
.story-window__body {
  padding: 4rem 3.6rem;
  background-color: #fff;
  border: 2rem solid #E7E7E7;
}
@media screen and (max-width: 768px) {
  .story-window__body {
    padding: 1.6rem 1.2rem 1.5rem;
    border-width: 1.6rem 1.4rem;
  }
}
.story-window__text {
  font-size: 1.8rem;
  letter-spacing: -0.001em;
}
@media screen and (max-width: 768px) {
  .story-window__text {
    font-size: 1.3rem;
  }
}
.story-window__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 6rem;
}
@media screen and (max-width: 768px) {
  .story-window__images {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-top: 2rem;
  }
}
.story-window__image picture,
.story-window__image img {
  width: 100%;
  height: auto;
}
