/* =====================================================
   STORY PAGE — assets/css/story.css
   ===================================================== */

/* =====================================================
   HERO / MV
   ===================================================== */

.story-mv {
  position: relative;
  background: #133813;
  height: clamp(220px, 30.9vw, 593px);
  overflow: hidden;
}

.story-mv__photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(899px, 46.8vw);
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-mv__deco {
  position: absolute;
  left: 13%;
  top: 33%;
  width: 52%;
  opacity: 0.5;
  pointer-events: none;
  display: block;
}

@media (max-width: 767px) {
  .story-mv {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }

  .story-mv__photo {
    width: 100%;
    left: 0;
    transform: none;
  }

  .story-mv__deco {
    left: 5%;
    width: 70%;
    top: 63%;
  }
}

/* =====================================================
   TITLE DECORATION  (STORY OF MAHOROBA)
   ===================================================== */

.story-title-deco {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 5.5vw, 105px);
  padding-inline: 24px;
}

.story-title-deco img {
  max-width: min(950px, 80vw);
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .story-title-deco {
    margin-top: 32px;
  }

  .story-title-deco img {
    max-width: 90vw;
  }
}

/* =====================================================
   INTRO SECTION
   ===================================================== */

.story-intro {
  text-align: center;
  padding-top: clamp(32px, 4.5vw, 86px);
  padding-bottom: clamp(40px, 5vw, 80px);
}

.story-intro__lead-wrap {
  margin-inline: auto;
  max-width: 1004px;
  padding-inline: clamp(16px, 2.5vw, 40px);
}

.story-intro__lead {
  font-family: var(--font-mincho);
  font-size: clamp(0.875rem, 1.25vw, 1.5rem);
  line-height: 2.25;
  color: #4d4c4c;
  letter-spacing: 0.02em;
}

.story-intro__wan {
  margin: clamp(28px, 4vw, 78px) auto 0;
  max-width: min(531px, 80vw);
}

.story-intro__wan img {
  width: 100%;
  height: auto;
  display: block;
}

.story-intro__note {
  margin: clamp(24px, 3.5vw, 63px) auto 0;
  border: 1px solid #4d4c4c;
  max-width: min(1514px, calc(100% - 48px));
  padding: clamp(16px, 2.3vw, 44px) clamp(16px, 3vw, 48px);
}

.story-intro__note p {
  font-family: var(--font-gothic);
  font-size: clamp(0.75rem, 0.83vw, 1rem);
  line-height: 1.75;
  color: #4d4c4c;
}

@media (max-width: 767px) {
  .story-intro {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .story-intro__lead {
    font-size: 0.9375rem;
    line-height: 2;
  }

  .story-intro__note {
    max-width: calc(100% - 32px);
    padding: 16px;
    text-align: left;
  }

  .story-intro__note p {
    font-size: 0.8125rem;
  }
}

/* =====================================================
   STORIES GRID
   ===================================================== */

.story-list {
  padding-bottom: 80px;
}

.story-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(12px, 3.33vw, 64px);
  row-gap: clamp(48px, 6vw, 100px);
  max-width: 1514px;
  margin-inline: auto;
  padding-inline: clamp(16px, 10.57vw, 203px);
}

@media (min-width: 568px) and (max-width: 1023px) {
  .story-list__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(16px, 3vw, 40px);
    row-gap: 48px;
    padding-inline: clamp(16px, 4vw, 48px);
  }
}

@media (max-width: 567px) {
  .story-list__grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
    padding-inline: 20px;
  }
}

/* =====================================================
   STORY CARD
   ===================================================== */

a.story-card__link {
  display: block;
}

.story-card {
  display: flex;
  flex-direction: column;
}

/* Title (above photo) */
.story-card__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.25rem, 1.98vw, 2.375rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  color: #4d4c4c;
  margin-bottom: clamp(10px, 0.94vw, 18px);
}

/* Image wrapper */
.story-card__img-wrap {
  position: relative;
  aspect-ratio: 462 / 341;
  overflow: hidden;
  display: block;
}

.story-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom overlay bar */
.story-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-card__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    186deg,
    rgba(92, 90, 90, 0.55) 50%,
    rgba(139, 139, 139, 0.55) 50%
  );
  mix-blend-mode: multiply;
}

/* First story: green overlay */
.story-card--first .story-card__overlay::after {
  background: linear-gradient(
    186deg,
    rgba(19, 56, 19, 0.65) 50%,
    rgba(31, 101, 31, 0.65) 50%
  );
}

.story-card__ornament {
  position: relative;
  z-index: 1;
  height: 14px;
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
}

/* Area label */
.story-card__area {
  font-family: var(--font-mincho);
  font-size: clamp(0.875rem, 1.25vw, 1.5rem);
  font-weight: 700;
  line-height: 1.75;
  text-align: center;
  color: #4d4c4c;
  margin-top: clamp(10px, 1.46vw, 28px);
}

/* Description */
.story-card__desc {
  font-family: var(--font-mincho);
  font-size: clamp(0.75rem, 0.83vw, 1rem);
  line-height: 1.75;
  text-align: center;
  color: #4d4c4c;
  margin-top: clamp(6px, 1.04vw, 20px);
}

@media (max-width: 767px) {
  .story-card__title {
    font-size: 1.375rem;
    margin-bottom: 8px;
  }

  .story-card__area {
    font-size: 1rem;
    margin-top: 10px;
  }

  .story-card__desc {
    font-size: 0.875rem;
    text-align: left;
    margin-top: 8px;
  }
}

/* =====================================================
   TO BE CONTINUED
   ===================================================== */

.story-continued {
  margin-bottom: clamp(40px, 5vw, 80px);
  padding-inline: clamp(16px, 10.57vw, 203px);
}

.story-continued__inner {
  max-width: 1514px;
  margin-inline: auto;
  border: 1px solid #4d4c4c;
  padding: clamp(24px, 3vw, 47px) clamp(20px, 4vw, 64px);
  text-align: center;
}

.story-continued__heading {
  margin-bottom: clamp(14px, 2.5vw, 43px);
}

.story-continued__en {
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 1.98vw, 2.375rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #4d4c4c;
  line-height: 1.3;
}

.story-continued__ja {
  font-family: var(--font-mincho);
  font-size: clamp(0.875rem, 1.04vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #4d4c4c;
  margin-top: 4px;
}

.story-continued__desc {
  font-family: var(--font-mincho);
  font-size: clamp(0.75rem, 0.83vw, 1rem);
  line-height: 1.75;
  color: #4d4c4c;
}

@media (max-width: 767px) {
  .story-continued {
    padding-inline: 16px;
    margin-bottom: 40px;
  }

  .story-continued__inner {
    padding: 24px 16px;
  }

  .story-continued__en {
    font-size: 1.5rem;
  }

  .story-continued__ja {
    font-size: 0.9375rem;
  }

  .story-continued__desc {
    font-size: 0.875rem;
    text-align: left;
  }
}

/* =====================================================
   BREADCRUMB
   ===================================================== */

.story-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 32px;
  padding-top: 4px;
}

.story-breadcrumb__home {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.story-breadcrumb__home img {
  width: auto;
  height: 18px;
  object-fit: contain;
  display: block;
}

.story-breadcrumb__sep {
  font-size: 0.75rem;
  color: #4d4c4c;
  opacity: 0.6;
  flex-shrink: 0;
}

.story-breadcrumb__link {
  font-family: var(--font-gothic);
  font-size: 0.9375rem;
  color: #4d4c4c;
  letter-spacing: 0.047em;
  white-space: nowrap;
  text-decoration: none;
}

.story-breadcrumb__link:hover {
  text-decoration: underline;
}

.story-breadcrumb__current {
  font-family: var(--font-gothic);
  font-size: 0.9375rem;
  color: #4d4c4c;
  letter-spacing: 0.047em;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .story-breadcrumb {
    gap: 8px;
    padding-bottom: 24px;
  }

  .story-breadcrumb__current {
    font-size: 0.8125rem;
  }
}
