@charset "UTF-8";

:root {
  --story-brown: #6b3738;
  --story-pink: #eb97bf;
  --story-pale-pink: #fdf0f7;
  --story-light-pink: #ffdeed;
  --story-white: #fff;
}

.story-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.story-page {
  min-height: 70vh;
  overflow-x: hidden;
  padding-bottom: 12%;
  color: var(--story-brown);
  background-color: var(--story-pale-pink);
  background-image: url("../img__usa/fv__bg.png");
  background-size: 70%;
}

.story-page,
.story-page *,
.story-page *::before,
.story-page *::after {
  box-sizing: border-box;
}

.story-hero {
  text-align: center;
}

.story-title {
  width: min(100%, 750px);
  margin: 0 auto;
}

.story-title__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.story-hero__lead {
  margin: 14px auto 0;
  color: var(--story-brown);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.6;
}

.story-list {
  margin-top: 12px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-card {
  min-width: 0;
}

.story-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--story-pink);
  border-radius: 18px;
  color: var(--story-brown);
  background: var(--story-white);
  box-shadow: 0 6px 0 var(--story-light-pink);
  transition: transform .25s ease, box-shadow .25s ease;
}

.story-card__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--story-light-pink);
}

.story-card__thumbnail {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: var(--story-light-pink);
}

.story-card__thumbnail img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center center;
  transition: transform .35s ease;
}

.story-card__link:hover .story-card__thumbnail img {
  transform: scale(1.035);
}

.story-card__placeholder {
  color: var(--story-white);
  font-size: 6rem;
}

.story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 13px 15px;
}

.story-card__date {
  margin: 0 0 5px;
  color: #a57879;
  font-size: 1.1rem;
  font-weight: 700;
}

.story-card__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.story-card__excerpt {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #806263;
  font-size: 1.2rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-card__more {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 12px;
  color: var(--story-pink);
  font-size: 1.2rem;
  font-weight: 800;
}

.story-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 9%;
}

.story-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  height: auto;
  padding: 8px 12px;
  gap: 5px;
  border: 1px solid var(--story-pink);
  border-radius: 999px;
  color: var(--story-brown);
  background: var(--story-white);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.story-pagination .page-numbers:not(.prev):not(.next) {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
}

.story-pagination .page-numbers.prev,
.story-pagination .page-numbers.next {
  width: auto;
  min-width: max-content;
  padding: 9px 14px;
}

.story-pagination .page-numbers.current {
  color: var(--story-white);
  background: var(--story-pink);
}

.story-empty {
  width: min(100%, 680px);
  margin: 7% auto;
  padding: 35px 20px;
  border: 2px dashed var(--story-pink);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, .8);
  font-weight: 700;
}

.story-single {
  padding-top: max(10vh, 72px) !important;
}

.story-episode {
  padding-top: 5%;
}

.story-episode__header {
  width: min(100%, 760px);
  margin: 0 auto 28px;
  text-align: center;
}

.story-episode__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--story-pink);
  border-radius: 999px;
  color: var(--story-brown);
  background: var(--story-white);
  font-size: 1.2rem;
  font-weight: 700;
}

.story-episode__label {
  margin: 0;
  color: var(--story-pink);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .25em;
}

.story-episode__title {
  margin: 8px 0 6px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.story-episode__date {
  color: #a57879;
  font-size: 1.2rem;
  font-weight: 700;
}

.story-episode__intro {
  width: min(100%, 720px);
  margin: 0 auto 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  font-size: 1.4rem;
  line-height: 1.9;
}

.story-episode__intro > :first-child {
  margin-top: 0;
}

.story-episode__intro > :last-child {
  margin-bottom: 0;
}

.story-reader {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
  border: 2px solid var(--story-pink);
  border-radius: 22px;
  background: var(--story-white);
  box-shadow: 0 8px 0 var(--story-light-pink);
}

.story-reader__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.story-reader__stage {
  position: static;
  width: 100%;
  min-width: 0;
}

.story-reader__button {
  display: grid;
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 30px;
  height: 92px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--story-pink);
  border-radius: 999px;
  color: var(--story-brown);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 3px 10px rgba(107, 55, 56, .12);
  backdrop-filter: blur(3px);
  cursor: pointer;
  font: inherit;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.story-reader__button--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.story-reader__button--next {
  right: 0;
  transform: translate(50%, -50%);
}

.story-reader__button--prev:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.04);
  background: var(--story-white);
}

.story-reader__button--next:hover:not(:disabled) {
  transform: translate(50%, -50%) scale(1.04);
  background: var(--story-white);
}

.story-reader__button:disabled {
  opacity: .18;
  cursor: default;
}

.story-reader__counter {
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  text-align: center;
  color: #8c6667;
  background: var(--story-pale-pink);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.story-reader__viewport {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-radius: 12px;
  background: #fffafb;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.story-reader__viewport::-webkit-scrollbar {
  display: none;
}

.story-reader__viewport:focus-visible {
  outline: 3px solid var(--story-pink);
  outline-offset: 4px;
}

.story-reader__slide {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  align-items: flex-start;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.story-reader__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.story-reader__dots {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 13px auto 0;
  padding: 2px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.story-reader__dots::-webkit-scrollbar {
  display: none;
}

.story-reader__dot {
  width: 9px;
  min-width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8cfd1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.story-reader__dot:hover {
  opacity: .7;
}

.story-reader__dot.is-active {
  transform: scale(1.18);
  background: var(--story-brown);
}

.story-reader__dot:focus-visible {
  outline: 2px solid var(--story-pink);
  outline-offset: 3px;
}

.story-reader__hint {
  margin: 6px 0 0;
  text-align: center;
  color: #a57879;
  font-size: 1.2rem;
  font-weight: 700;
}

.story-episode-nav {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 42px auto 0;
}

.story-episode-nav__item a,
.story-episode-nav__list {
  display: flex;
  min-height: 54px;
  justify-content: center;
  border: 1px solid var(--story-pink);
  border-radius: 12px;
  color: var(--story-brown);
  background: var(--story-white);
  font-weight: 700;
}

.story-episode-nav__item a {
  flex-direction: column;
  padding: 10px 12px;
}

.story-episode-nav__item--next a {
  text-align: right;
}

.story-episode-nav__direction {
  color: var(--story-pink);
  font-size: 1.1rem;
}

.story-episode-nav__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.2rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.story-episode-nav__list {
  align-items: center;
  font-size: 1.2rem;
}

@media screen and (min-width: 751px) {
  .story-page {
    padding-bottom: 6%;
    background-size: 30%;
  }

  .story-title {
    width: 34%;
    max-width: 425px;
  }

  .story-list {
    margin-top: 5%;
  }

  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 30px;
  }

  .story-card__body {
    padding: 18px 18px 20px;
  }

  .story-card__title {
    font-size: 1.8rem;
  }

  .story-card__excerpt {
    font-size: 1.3rem;
  }

  .story-episode {
    padding-top: 3%;
  }

  .story-reader {
    padding: 20px;
  }
}

@media screen and (max-width: 420px) {
  .story-grid {
    column-gap: 10px;
  }

  .story-card__body {
    padding: 11px 10px 13px;
  }

  .story-card__title {
    font-size: 1.35rem;
  }

  .story-card__excerpt {
    display: none;
  }

  .story-reader {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 10px 14px;
    border-radius: 16px;
  }

  .story-reader__button {
    width: 26px;
    height: 74px;
    font-size: 2.5rem;
  }

  .story-reader__button--prev {
    left: 0;
  }

  .story-reader__button--next {
    right: 0;
  }

  .story-reader__dots {
    gap: 9px;
  }

  .story-episode-nav {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-card__link,
  .story-card__thumbnail img,
  .story-reader__viewport,
  .story-reader__button,
  .story-reader__dot {
    transition: none;
    scroll-behavior: auto;
  }
}
