/* ============================================================
   912design Cappuccino Restomod Project
   story.css - STORYページ専用スタイル
   ============================================================ */

/* 手書き風フォント（記事ヒーローの筆記体） */
@import url('https://fonts.googleapis.com/css2?family=Nothing+You+Could+Do&display=swap');

.story-page {
  background-color: #d5d5d3; /* fixed背景の最上部1px隙間対策（テクスチャ平均色） */
  background-image: url('../images/top/story-texture.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-black);
  padding-top: 70px; /* 固定ヘッダー分 */
}

/* ============================================================
   記事ヒーロー
   ============================================================ */
.story-hero {
  position: relative;
  width: 100%;
  height: 593px;
  overflow: hidden;
}

.story-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-hero__script {
  position: absolute;
  right: 40px;
  bottom: 28px;
  font-family: 'Nothing You Could Do', cursive;
  font-size: 49px;
  color: var(--color-white);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   記事本文
   ============================================================ */
.story-article {
  max-width: var(--container-pc);
  margin: 0 auto;
  padding: 64px 103px 90px;
}

.story-article__number {
  position: relative;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.1;
  color: var(--color-main);
  margin-left: 33px;
}

.story-article__number::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 24px;
  width: 77px;
  height: 1px;
  background-color: #1a1a1a;
  transform: rotate(-50deg);
}

.story-article__title {
  font-family: var(--font-ja);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.75;
  margin-top: 20px;
}

.story-article__body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-black);
  line-height: 35px;
  margin-top: 40px;
}

/* 本文の段落・ブロック間に余白（共通リセットで margin:0 になっているため） */
.story-article__body > * + * {
  margin-top: 1.4em;
}

/* 空行用の空段落も1行分の高さを保つ */
.story-article__body p:empty {
  min-height: 1em;
}

/* 箇条書き（リセットで消えたマーカーを復活） */
.story-article__body ul,
.story-article__body ol {
  padding-left: 1.5em;
}

.story-article__body ul {
  list-style: disc;
}

.story-article__body ol {
  list-style: decimal;
}

.story-article__body li + li {
  margin-top: 0.3em;
}

.story-article__body a {
  color: var(--color-main);
  text-decoration: underline;
}

/* 本文に挿入した画像は幅に収める */
.story-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.story-article__figure {
  margin: 60px 0 0;
}

.story-article__figure img {
  width: 100%;
  aspect-ratio: 1000 / 492;
  object-fit: cover;
  border-radius: 15px;
}

/* Next Episode リンク */
.story-article__next {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 56px;
  font-family: var(--font-ja);
  font-size: 25px;
  font-weight: 700;
  color: var(--color-black);
}

.story-article__next::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--color-black);
}

/* ============================================================
   関連動画
   ============================================================ */
.story-movie {
  max-width: var(--container-pc);
  margin: 0 auto;
  padding: 0 103px 90px;
}

.story-movie__heading {
  font-family: var(--font-ja);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-black);
}

.story-movie__card {
  display: inline-block;
  margin-top: 32px;
}

.story-movie__thumb {
  width: 433px;
  max-width: 100%;
  aspect-ratio: 433 / 244;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.story-movie__title {
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  margin-top: 14px;
}

/* ============================================================
   ほかのエピソード
   ============================================================ */
.story-others {
  max-width: var(--container-pc);
  margin: 0 auto;
  padding: 0 103px 110px;
}

.story-others__grid {
  display: flex;
  gap: 42px;
}

.story-others__item {
  width: 291px;
}

.story-others__number {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--color-main);
  margin-bottom: 10px;
}

.story-others__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 291 / 142;
  border-radius: 10px;
  overflow: hidden;
}

.story-others__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* COMING SOON オーバーレイ */
.story-others__item--coming .story-others__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.42);
}

.story-others__coming {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
}

.story-others__title {
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.65;
  margin-top: 12px;
}

/* ============================================================
   SP対応
   ============================================================ */
@media (max-width: 768px) {

 .story-page {
    padding-top: 50px;
    background-size: contain;
    background-repeat: repeat;  
} 
  .story-hero {
    height: 300px;
  }

  .story-hero__script {
    font-size: 22px;
    right: 16px;
    bottom: 12px;
  }

  .story-article,
  .story-movie,
  .story-others {
    padding-left: 24px;
    padding-right: 24px;
  }

  .story-article {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .story-article__number {
    font-size: 44px;
  }

  .story-article__title {
    font-size: 24px;
  }

  .story-article__next {
    font-size: 19px;
  }

  .story-movie {
    padding-bottom: 56px;
  }

  .story-movie__heading {
    font-size: 22px;
  }

  .story-movie__thumb {
    width: 100%;
  }

  .story-others {
    padding-bottom: 72px;
  }

  .story-others__grid {
    flex-direction: column;
    gap: 36px;
  }

  .story-others__item {
    width: 100%;
  }
}
