/* ============================================================
   912design Cappuccino Restomod Project
   top.css - トップページ専用スタイル
   ============================================================ */


/* ============================================================
   1. HERO セクション
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 641px;
  overflow: hidden;
}

/* 背景レイヤー（写真・青シェイプを分離） */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 青シェイプ（ノコギリ刃エッジ入りSVG・透過70%はSVG側に内包） */
.hero__shape {
  position: absolute;
}

/* 左の大きな三角形（デザイン上 903x658 @ -85,-48 / 1206x641 基準の%換算） */
.hero__shape--left {
  left: -7.05%;
  top: -7.49%;
  width: 74.88%;
  height: 102.65%;
}

/* 右下の三角形（313x198・右下アンカー） */
.hero__shape--right {
  right: 0;
  bottom: 0;
  width: 25.95%;
  height: 30.89%;
}

/* --- 再訪時（初回以外）はヒーロー演出をスキップして即完成表示 ---
   head内スクリプトが<html>に .hero-intro-done を付ける。
   各アニメの素の状態＝完成状態なので animation を止めるだけでよい。 */
.hero-intro-done .hero__photo,
.hero-intro-done .hero__shape--left,
.hero-intro-done .hero__shape--right,
.hero-intro-done .hero__cf-banner {
  animation: none;
}

/* --- ロゴがh1からヘッダー左上へ移動する演出 ---
   top.jsが<html>に .has-logo-flight を付け、h1を通り過ぎたら .is-flying で
   引き継いで素早く定位置へ移動する（JS無効時はヘッダーロゴが通常表示）。 */
.has-logo-flight .header__logo {
  opacity: 0;
  pointer-events: none;
}

.has-logo-flight .header__logo.is-flying {
  opacity: 1;
  pointer-events: auto;
  transform-origin: 0 0;
  will-change: transform;
}

/* 戻り時はh1のロゴ自身がヘッダー位置から自然位置へ収束する */
.has-logo-flight .hero__logo {
  transform-origin: 0 0;
}

/* ロゴがヘッダーに収まると同時に、半透明の黒背景を出す */
.header {
  transition: background-color var(--transition);
}

.header.is-solid {
  background-color: rgba(0, 0, 0, 0.5);
}

/* ヒーロー演出中はスクロールを固定（top.jsが<html>に付与し、終了後に外す） */
.is-hero-locked,
.is-hero-locked body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

/* --- ファーストビュー アニメーション --- */

/* 写真：ふわっとズームアウトしながらフェードイン */
.hero__photo {
  animation: heroPhotoIn 1.4s ease-out both;
}

/* 青シェイプ：写真フェードイン完了後（1.4s〜）に
   ② 左シェイプが左上から → ③ 右下シェイプが右下から、
   画面外からシャープにスライドイン */
.hero__shape--left {
  animation: heroShapeLeftIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both;
}

.hero__shape--right {
  animation: heroShapeRightIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.8s both;
}

/* クラファンバナー：タイプライター完了後にフェードアップ */
.hero__cf-banner {
  animation: heroFadeUp 0.8s ease-out 5s both;
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroShapeLeftIn {
  from {
    transform: translate(-100%, -100%);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes heroShapeRightIn {
  from {
    transform: translate(100%, 100%);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- タイプライター演出（top.jsが1文字ずつ .tw-char に分割） --- */
.tw-char {
  visibility: hidden;
}

.tw-char.is-typed {
  visibility: visible;
}

/* 入力中カーソル */
.tw-char.is-caret::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background-color: var(--color-white);
  margin-left: 4px;
  vertical-align: -0.05em;
  animation: twBlink 0.8s step-end infinite;
}

@keyframes twBlink {
  50% {
    opacity: 0;
  }
}

/* 動きを減らす設定のユーザーにはアニメーションを無効化 */
@media (prefers-reduced-motion: reduce) {
  .hero__photo,
  .hero__shape--left,
  .hero__shape--right,
  .hero__cf-banner {
    animation: none;
  }

  .tw-char {
    visibility: visible;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0 var(--space-lg);
}

.hero__catch {
  position: absolute;
  top: 91px;
  left: 83px;
  font-family: var(--font-ja);
  font-size: var(--fs-heading);
  font-weight: 700;
  color: var(--color-white);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

.hero__title {
  position: absolute;
  top: 211px;
  left: 80px;
  font-family: var(--font-display);
  color: var(--color-white);
  line-height: 1;
  letter-spacing: var(--ls-display);
}

/* 行スパンのみブロック化（タイプライターの .tw-char には効かせない） */
.hero__title > span {
  display: block;
}

.hero__title .line-1 { font-size: var(--fs-hero-lg); line-height: 90px; }
.hero__title .line-2 { font-size: var(--fs-hero-xl); line-height: 107px; }
.hero__title .line-3 { font-size: var(--fs-hero-md); line-height: 83px; }

/* 912designロゴ（Projectの右隣）タイプ完了後にフェードイン */
.hero__logo {
  display: inline-block;
  width: 157px;
  height: 56px;
  margin-left: 28px;
  vertical-align: baseline;
  transition: opacity 0.4s ease;
}

.hero__logo.tw-hidden {
  opacity: 0;
}

/* 初回演出の準備中（head で付与→top.js が引き継いだら外す）は文字・ロゴを隠す。
   top.js 読み込み前に完成状態が一瞬描画されるのを防ぐ */
.hero-intro-play .hero__catch,
.hero-intro-play .hero__title {
  visibility: hidden;
}

/* クラファンバナー（ヒーロー右下） */
.hero__cf-banner {
  position: absolute;
      bottom: 3%;
    right: 3%;
  width: 405px;
  background-color: var(--color-overlay);
  padding: 18px 19px 21px;
}

.hero__cf-label {
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.hero__cf-amount {
  text-align: center;
  margin-bottom: var(--space-md);
}

.hero__cf-amount .label {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
}

.hero__cf-amount .amount {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-white);
}


/* ============================================================
   2. NEWS セクション
   ============================================================ */
.news {
  background-color: #242424;
  padding: 41px 0 44px;
  position: relative;
  overflow: hidden;
}

/* 左側の斜め装飾 */
.news__deco {
  position: absolute;
  left: 0;
    bottom: 0;
    width: 31%;
    height: 296px;
  transform: scaleX(-1);
  pointer-events: none;
}

.news__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-pc);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: 46px;
}

/* 左カラム（見出し・一覧リンク・矢印） */
.news__head {
  flex-shrink: 0;
  padding-left: 71px;
}

.news__heading {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neueは400のみ。h2既定の擬似ボールドを解除して他ページと統一 */
  font-size: 94px;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
}

.news__more {
  display: inline-block;
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin: 6px 0 14px 7px;
  transition: opacity var(--transition);
}

.news__more:hover {
  opacity: 0.6;
}

.news__arrows {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 7px;
}

.news__arrow {
  width: 34px;
  height: 34px;
  transition: opacity var(--transition);
}

.news__arrow img {
  width: 100%;
  height: 100%;
}

.news__arrow--prev img {
  transform: scaleX(-1);
}

.news__arrow:hover {
  opacity: 0.6;
}

/* カルーセルのビューポート（はみ出しをクリップ） */
.news__viewport {
  flex: 1;
  overflow: hidden;
  padding-top: 15px;
}

/* 記事カード（トラック） */
.news__list {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.5, 1, 0.89, 1);
  will-change: transform;
}

.news__item {
  /* ビューポート幅に3枚がぴったり収まる可変幅（gap 30px × 2＝60px）。
     4枚目が端で少しだけ見切れるのを防ぐ */
  width: calc((100% - 60px) / 3);
  flex-shrink: 0;
}

/* 矢印：端まで来たら不活性、スクロール不要なら非表示 */
.news__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

[data-carousel].is-static .news__arrows {
  display: none;
}

.news__item-thumb {
  position: relative;
  width: 100%;
  height: 140px;
  background-color: var(--color-white);
  border-radius: 10px 0 10px 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* ホバーでカード全体（サムネ＋テキスト）が少し浮き上がる */
.news__item a {
  display: block;
  transition: transform 0.3s ease;
}

.news__item a:hover,
.news__item a:focus-visible {
  transform: translateY(-3px);
}

.news__item-tag {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 71px;
  height: 27px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.12px;
  color: var(--color-white);
  background-color: var(--color-main);
  padding: 0 10px;
}

.news__item-date {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--color-white);
  letter-spacing: var(--ls-display);
  display: block;
}

.news__item-title {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.6;
}


/* ============================================================
   3. PROJECT セクション
   ============================================================ */
.project {
  position: relative;
}

/* ドットパターン（共通） */
.project__dots {
  position: absolute;
  inset: 0;
  background-image: url('../images/top/dot-pattern.png');
  background-size: 15px 15px;
  background-position: top left;
  z-index: 2;
  pointer-events: none;
}

/* --- Section01：プロジェクトとは --- */
.project__intro {
  position: relative;
  height: 657px;
  overflow: hidden;
}

.project__intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 青の斜めオーバーレイ（ノコギリ刃エッジ）。ドットフィルターより上に重ねる。
   PC=<img>、SP=<picture>で比率別SVGを切り替え */
.project__intro-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.project__intro-overlay img {
  display: block;
  width: 100%;
  height: 100%;
}

.project__intro-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container-pc);
  height: 100%;
  margin: 0 auto;
}

/* 図解・見出しの基準を1206px枠に合わせる */
.project__intro-inner,
.project__doc-inner {
  position: relative;
}

.project__heading {
  position: absolute;
  left: 44px;
  top: 53px;
  font-family: var(--font-display);
  font-size: 133px;
  line-height: 1;
  letter-spacing: var(--ls-display);
  color: transparent;
  -webkit-text-stroke: 1px var(--color-white);
}

.project__title {
  position: absolute;
  left: 95px;
  top: 163px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-white);
  line-height: 50px;
letter-spacing: -0.8em;
  white-space: nowrap;
}

.project__title .t-xl  { font-size: 73px; }
.project__title .t-sm  { font-size: 44px; }
.project__title .t-md  { font-size: 62px; }
.project__title .t-2xl { font-size: 77px; }
.project__title .t-lg  { font-size: 54px; }

.project__subtitle {
  position: absolute;
  left: 95px;
  top: 238px;
  font-family: var(--font-ja);
  font-size: 23px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 50px;
}

.project__body {
  position: absolute;
  left: 104px;
  top: 308px;
  width: 640px;
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 35px;
}

.project__body em {
  font-style: normal;
  font-size: 18px;
}

/* Restomod図解（SVGパーツ＋テキストで構成） */
.project__diagram {
  position: absolute;
    left: 772px;
    top: 159px;
    width: 457px;
    height: 254px;
}

.project__diagram img {
  position: absolute;
}

.project__diagram-car {
  left: 0;
  top: 26px;
  width: 457px;
  height: 208px;
}

.project__diagram-restore {
  left: 14px;
  top: 0;
  width: 254px;
  height: 254px;
}

.project__diagram-modify {
  left: 196px;
  top: 0;
  width: 254px;
  height: 254px;
}

.project__diagram span {
  position: absolute;
  color: var(--color-black);
  text-align: center;
  line-height: 1;
}

.project__diagram-title {
  left: 139px;
  top: 49px;
  width: 238px;
  font-family: var(--font-display);
  font-size: 61px;
}

.project__diagram-label {
  font-family: var(--font-display);
  font-size: 38px;
}

.project__diagram-label small {
  display: block;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

.project__diagram-label--restore {
  left: 70px;
  top: 118px;
  width: 121px;
}

.project__diagram-label--modify {
  left: 288px;
  top: 116px;
  width: 119px;
}

.project__diagram-plus {
  left: 236px;
  top: 122px;
  width: 18px;
  font-family: var(--font-ja);
  font-size: 46px;
  font-weight: 700;
}

/* --- section02：ドキュメンタリー --- */
.project__doc {
  position: relative;
  height: 674px;
  overflow: hidden;
}

.project__doc-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.project__doc-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.project__doc-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container-pc);
  height: 100%;
  margin: 0 auto;
}

.project__catch {
  position: absolute;
  left: 105px;
  top: 83px;
  font-family: var(--font-ja);
  font-size: 38px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 56px;
}

.project__catch em {
  font-style: normal;
  font-size: 53px;
}

.project__doc-body {
  position: absolute;
  left: 103px;
  top: 342px;
  width: 640px;
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 35px;
  letter-spacing: 0.8px;
}

/* PROJECT MOVIE ボタン */
.movie-link {
  position: absolute;
  left: 728px;
  top: 437px;
  width: 370px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 80px 0 22px;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-white);
  transition: background-color var(--transition);
  /* button要素として使うためのリセット */
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.movie-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.movie-link__en {
  font-family: var(--font-display);
  font-size: 29px;
  color: var(--color-white);
  letter-spacing: 0.29px;
  line-height: 26px;
}

.movie-link__ja {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 26px;
}

.movie-link__icon {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 47px;
  height: 47px;
}

/* ============================================================
   動画モーダル（PROJECT MOVIE）
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.video-modal[hidden] {
  display: none;
}

.video-modal.is-open {
  opacity: 1;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
}

.video-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  transform: scale(0.96);
  transition: transform var(--transition);
}

.video-modal.is-open .video-modal__dialog {
  transform: scale(1);
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity var(--transition);
}

.video-modal__close:hover {
  opacity: 0.7;
}

@media (max-width: 767px) {
  .video-modal {
    padding: 16px;
  }

  .video-modal__close {
    top: -40px;
    width: 36px;
    height: 36px;
  }
}


/* ============================================================
   4. STORY セクション
   ============================================================ */
.story {
  position: relative;
  overflow: hidden;
  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: 54px 0 100px;
}

/* 右上の青コーナー装飾 */
.story__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 574px;
  height: 429px;
  pointer-events: none;
}

.story__corner-logo {
  position: absolute;
  top: 82px;
  right: 123px;
  width: 260px;
  height: auto;
}

.story__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-pc);
  margin: 0 auto;
}

.story__heading {
  font-family: var(--font-display);
  font-size: 133px;
  line-height: 1;
  letter-spacing: var(--ls-display);
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 82, 183, 0.45);
  margin-left: 52px;
}

.story__catch {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-black);
  font-size: 68px;
  line-height: 1.2;
  letter-spacing: -0.1em;
  white-space: nowrap;
  margin: -38px 0 0 103px;
}

.story__catch em {
  font-style: normal;
  font-size: 79px;
  color: var(--color-main);
}

.story__catch .t-lg {
  font-size: 78px;
}

.story__sub {
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-black);
  margin: 28px 0 0 105px;
}

/* エピソードグリッド（右列は下にオフセット） */
.story__grid {
  display: flex;
  gap: 59px;
  justify-content: center;
  margin-top: 62px;
}

.story__col {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 470px;
}

.story__col--offset {
  margin-top: 70px;
}

.story__episode {
  position: relative;
}

.story__episode a {
  display: block;
  transition: transform 0.3s ease;
}

.story__episode a:hover,
.story__episode a:focus-visible {
  transform: translateY(-3px);
}

.story__episode-number {
  position: relative;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.1;
  color: var(--color-main);
  margin-left: 38px;
  margin-bottom: 9px;
}

/* エピソード番号前の斜め線 */
.story__episode-number::before {
  content: '';
  position: absolute;
  left: -51px;
  top: 12px;
  width: 77px;
  height: 1px;
  background-color: #1a1a1a;
  transform: rotate(-50deg);
}

.story__episode-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 470 / 230;
  border-radius: 15px;
  overflow: hidden;
}

.story__episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* EP02〜04（COMING SOON）暗幕オーバーレイ */
.story__episode--coming .story__episode-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.42);
}

.story__episode-coming {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--font-ja);
  font-size: 23px;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.69px;
  white-space: nowrap;
}

.story__episode-title,
.story__episode-date {
  font-family: var(--font-ja);
  font-size: 23px;
  font-weight: 600;
  color: var(--color-black);
  line-height: 35px;
  letter-spacing: 0.69px;
  margin-top: 11px;
}


/* ============================================================
   5. SCHEDULE セクション
   ============================================================ */
.schedule {
  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: 42px 0;
  overflow: hidden;
}

/* 青写真パネル（右端まで伸びる） */
.schedule__panel {
  position: relative;
  width: calc(60% + 603px - 19px);
  max-width: 95%;
  margin-left: auto;
  background-color: var(--color-main);
  /* 方眼グリッド */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  border-radius: 29px 0 0 29px;
    padding: 64px 10% 76px 10%;
  overflow: hidden;
}

/* 車の図面（右側） */
.schedule__car {
  position: absolute;
  right: -60px;
  top: 402px;
  width: 614px;
  height: 391px;
  pointer-events: none;
}

.schedule__inner {
  position: relative;
  z-index: 1;
}

.schedule__heading {
  font-family: var(--font-display);
  font-size: 133px;
  line-height: 1;
  letter-spacing: var(--ls-display);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
}

.schedule__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 75px;
  color: var(--color-white);
  letter-spacing: -0.16em;
  line-height: 1;
  white-space: nowrap;
  margin: -25px 0 0 241px;
}

.schedule__title em {
  font-style: normal;
  color: #e3ff13;
}

.schedule__title .t-sm {
  font-size: 69px;
}

/* Phase見出し＋リード文 */
.schedule__phase-head {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 56px;
}

.schedule__phase {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ja);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;
}

.schedule__phase img {
  width: 42px;
  height: 42px;
}

.schedule__lead {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 35px;
  padding-top: 6px;
}

/* タイムライン */
.timeline {
  margin-top: 40px;
}

.timeline__item {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

/* 年表示 */
.timeline__year {
  font-family: var(--font-ja);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
  width: 181px;
  flex-shrink: 0;
  white-space: nowrap;
  padding-top: 8px;
}

/* 縦ライン＋ドット */
.timeline__line {
  position: relative;
  width: 10px;
  flex-shrink: 0;
}

.timeline__dot {
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-white);
}

.timeline__item:not(:last-child) .timeline__line::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 30px;
  bottom: -20px;
  width: 1px;
  background-color: var(--color-white);
}

.timeline__content {
  padding: 0 0 46px 117px;
  min-height: 108px;
}

.timeline__item:last-child .timeline__content {
  padding-bottom: 0;
  min-height: 0;
}

.timeline__content-title {
  font-family: var(--font-ja);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.9;
}

.timeline__content-desc {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 35px;
  margin-top: 2px;
}

/* クラファン開始（黄色ハイライト） */
.timeline__item--cf .timeline__content-title {
  font-size: 32px;
  color: #e3ff13;
  line-height: 50px;
}

.timeline__cf-note {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  color: #e3ff13;
  line-height: 50px;
}

.timeline__cf-note em {
  font-style: normal;
  font-size: 44px;
}

/* --- ライン＆ドットの登場アニメ ---
   スクロールで .timeline が画面内に入る(.is-visible)と、
   ドット→線→ドット→線… の順に上から下へ伸びていく。PC/SP共通。 */
.timeline__line::after {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.35s linear;
}

.timeline__dot {
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline.is-visible .timeline__line::after {
  transform: scaleY(1);
}

.timeline.is-visible .timeline__dot {
  transform: scale(1);
}

/* 上から順番に発火させるディレイ（ドット0.25s→線0.35sの積み上げ） */
.timeline.is-visible .timeline__item:nth-child(1) .timeline__dot { transition-delay: 0s; }
.timeline.is-visible .timeline__item:nth-child(1) .timeline__line::after { transition-delay: 0.25s; }
.timeline.is-visible .timeline__item:nth-child(2) .timeline__dot { transition-delay: 0.60s; }
.timeline.is-visible .timeline__item:nth-child(2) .timeline__line::after { transition-delay: 0.85s; }
.timeline.is-visible .timeline__item:nth-child(3) .timeline__dot { transition-delay: 1.20s; }
.timeline.is-visible .timeline__item:nth-child(3) .timeline__line::after { transition-delay: 1.45s; }
.timeline.is-visible .timeline__item:nth-child(4) .timeline__dot { transition-delay: 1.80s; }
.timeline.is-visible .timeline__item:nth-child(4) .timeline__line::after { transition-delay: 2.05s; }
.timeline.is-visible .timeline__item:nth-child(5) .timeline__dot { transition-delay: 2.40s; }

/* 動きを減らす設定では即表示（アニメなし） */
@media (prefers-reduced-motion: reduce) {
  .timeline__line::after,
  .timeline__dot {
    transform: none;
    transition: none;
  }
}

/* 区切り線＋Phase2 */
.schedule__divider {
  border: none;
  border-top: 1px solid var(--color-white);
  margin: 56px 0 0;
  width: 1010px;
  max-width: 100%;
}

.schedule__phase2 {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 36px;
}

/* 左カラム：Phase2 見出し ＋ 完成後が本当のスタート を縦並び */
.schedule__phase2-left {
  flex-shrink: 0;
}

.schedule__phase2-body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 35px;
  max-width: 443px;
  padding-top: 6px;
}

.schedule__catch {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 45px;
    color: var(--color-white);
    letter-spacing: -0.1em;
    white-space: nowrap;
    margin-top: -25px;
}

.schedule__catch em {
  font-style: normal;
  font-size: 64px;
}


/* ============================================================
   6. MEMBER セクション
   ============================================================ */
.member {
  padding: 41px 0 0;
  position: relative;
  overflow: hidden;
  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);
}

.member__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  font-family: var(--font-display);
  font-size: 66px;
  line-height: 1;
  color: var(--color-black);
  letter-spacing: var(--ls-display);
  text-align: center;
}

/* 見出し両脇の斜め線（左:赤 / 右:青） */
.member__heading::before,
.member__heading::after {
  content: '';
  width: 77px;
  height: 2px;
  transform: rotate(-50deg);
  flex-shrink: 0;
}

.member__heading::before {
  background-color: var(--color-red);
}

.member__heading::after {
  background-color: var(--color-main);
}

.member__sub {
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 35px;
  text-align: center;
  max-width: 585px;
  margin: 8px auto 0;
}

/* メンバーカード（青パネルが背面に敷かれる） */
.member__cards {
  position: relative;
  margin-top: 66px;
  padding-bottom: 44px;
}

.member__cards::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 179px;
  bottom: 0;
  width: min(1130px, 100%);
  background-color: var(--color-main);
  border-radius: 29px;
}

.member__grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 54px;
}

.member__item {
  width: 473px;
}

.member__photo {
  width: 473px;
  aspect-ratio: 473 / 560;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.member__name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
    padding: 5px 24px 0 42px;
}

.member__name-ja {
  position: relative;
  font-family: var(--font-serif);
  font-size: 49px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: 1.47px;
}

.member__name-ja small {
  font-size: 36px;
}

/* 名前前の斜め線 */
.member__name-ja::before {
  content: '';
  position: absolute;
    left: -54px;
    top: 15px;
    width: 80px;
    height: 2px;
    background-color: #E3FF13;
  transform: rotate(-50deg);
}

.member__name-en {
  font-family: var(--font-display);
  font-size: 30px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
}

.member__bio {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 26px;
  letter-spacing: 1.44px;
  padding: 26px 0 0 1px;
}


/* ============================================================
   7. MESSAGE セクション
   ============================================================ */
.message {
  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: 73px 0 116px;
}

.message__panel {
  width: calc(60% + 507px);
  min-width: min(1110px, 100%);
max-width: 95%;
  margin-right: auto;
  background-color: #1a1a1a;
  border-radius: 0 30px 0 0;
  padding: 58px 96px 60px 104px;
}

.message__panel-inner {
  max-width: 1050px;
  margin-left: auto;
}

.message__head {
  display: flex;
  align-items: center;
  gap: 92px;
}

.message__heading {
  font-family: var(--font-display);
  font-size: 87px;
  line-height: 1;
  color: var(--color-white);
  letter-spacing: var(--ls-display);
}

.message__label {
  font-family: var(--font-ja);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-white);
}

.message__card {
  display: flex;
  gap: 48px;
  margin-top: 60px;
}

.message__photo {
  width: 339px;
  height: 374px;
  background-color: #d9d9d9;
  flex-shrink: 0;
  object-fit: cover;
}

.message__content {
  flex: 1;
}

.message__title {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
}

.message__name {
  font-family: var(--font-ja);
  font-size: 27px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

/* メッセージ先頭の一文を見出しとして表示 */
.message__lead {
font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
    line-height: 1.4;
    margin-bottom: 20px;
}

.message__body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 33px;
}


/* ============================================================
   8. MOVIE セクション
   ============================================================ */
.movie {
  position: relative;
  background-color: #1a1a1a;
  padding: 55px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* 右下の斜め装飾 */
.movie__deco {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 690px;
  height: 472px;
  pointer-events: none;
}

.movie__inner {
  position: relative;
  z-index: 1;
}

.movie__heading {
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--color-white);
  letter-spacing: var(--ls-display);
  line-height: 1.2;
}

.movie__sub {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-top: 14px;
}

/* サムネイルカルーセル（中央ピーク・前後が画面端で見切れる） */
.movie__carousel {
  position: relative;
  width: 100%;
  margin: 34px 0 0;
}

/* ビューポートは画面幅いっぱい。はみ出したスライドは画面端でクリップ */
.movie__viewport {
  overflow: hidden;
}

.movie__track {
  display: flex;
  gap: 40px;
  transition: transform 0.5s cubic-bezier(0.5, 1, 0.89, 1);
  will-change: transform;
}

.movie__slide {
  flex-shrink: 0;
  width: min(696px, 74vw); /* 中央スライドの幅。残りに前後が見切れる */
  text-align: left;
}

.movie__slide-thumb {
  width: 100%;
  aspect-ratio: 696 / 392;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.movie__slide-title {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-top: 21px;
}

/* 左右送り矢印（見切れた前後サムネイルの上に重ねて配置） */
.movie__arrow {
  position: absolute;
  top: calc((100% - 54px) * 0.5); /* サムネイル中央付近（タイトル分を差し引き） */
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  z-index: 2;
  transition: opacity var(--transition);
}

.movie__arrow img {
  width: 100%;
  height: 100%;
}

.movie__arrow--prev {
  left: 40px;
}

.movie__arrow--prev img {
  transform: scaleX(-1);
}

.movie__arrow--next {
  right: 40px;
}

.movie__arrow:hover {
  opacity: 0.6;
}

.movie__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

[data-carousel="movie"].is-static .movie__arrow {
  display: none;
}

/* YouTubeチャンネルボタン */
.movie__channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 380px;
  max-width: 100%;
  height: 80px;
  margin-top: 38px;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-white);
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.24px;
  transition: background-color var(--transition);
}

.movie__channel:hover {
  background-color: rgba(255, 255, 255, 0.15);
}


/* ============================================================
   9. CAMPFIRE セクション
   ============================================================ */
.campfire {
  position: relative;
  overflow: hidden;
  /* テクスチャ平均色。小数ピクセル位置＋fixed背景で最上部1pxが塗られず
     背後の暗色が透ける現象を防ぐフォールバック（隙間対策） */
  background-color: #d5d5d3;
  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: 145px 0 105px;
}

/* 左上の青コーナー装飾（STORYの反転） */
.campfire__corner {
  position: absolute;
  top: 0;
  left: 0;
    width: 438px;
    height: 327px;
  transform: scaleX(-1);
  pointer-events: none;
}

/* 白カード */
.campfire__card {
  position: relative;
  background-color: var(--color-white);
  border-radius: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 62px 73px 84px;
  text-align: center;
}

.campfire__badge {
  display: block;
  width: 855px;
  max-width: 100%;
  margin: 0 auto;
}

.campfire__badge img {
  display: block;
  width: 100%;
  height: auto;
}

.campfire__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 41px;
  color: #ff5046;
  line-height: 1.4;
  margin-top: 40px;
}

.campfire__title .t-goal {
  display: block;
  font-size: 31px;
  line-height: 70px;
}

.campfire__title .t-num {
  font-size: 57px;
}

.campfire__title .t-cf {
  font-size: 38px;
}

/* グラデーション帯 */
.campfire__band {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 785px;
  max-width: 100%;
  height: 58px;
  margin: 14px auto 0;
  background: var(--gradient-cta);
  font-family: var(--font-ja);
  font-size: 27px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.1em;
  white-space: nowrap;
}

.campfire__band em {
  font-style: normal;
  font-size: 35px;
}

.campfire__body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-black);
  line-height: 35px;
  text-align: left;
  max-width: 800px;
  margin: 32px auto 0;
}

/* CAMPFIRE支援ウィジェット（iframeは固定245×365。scaleで拡大して見栄え良く）
   --cf-scale で拡大率を調整。拡大後の高さぶん余白を確保して下の要素と重ならないようにする */
.campfire__widget {
  --cf-scale: 2;
  display: flex;
  justify-content: center;
  margin: 40px auto 0;
  height: calc(365px * var(--cf-scale)); /* 拡大後の高さを確保 */
}

.campfire__widget-frame {
  width: 245px;
  height: 365px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius-md);
  transform: scale(var(--cf-scale));
  transform-origin: top center;
}


/* 支援ボタン（赤） */
.campfire__btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 750px;
  max-width: 100%;
  height: 93px;
  margin: 36px auto 0;
  background-color: var(--color-red);
  border-radius: 10px;
  font-family: var(--font-ja);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
  transition: background-color var(--transition);
}

.campfire__btn:hover,
.campfire__btn:focus-visible {
  background-color: #ff4040; /* 透過させず赤を少し明るく */
}

/* ホバーで光の帯がスッと横切る（キラッ） */
.campfire__btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.campfire__btn:hover::after,
.campfire__btn:focus-visible::after {
  animation: btnShine 0.75s ease;
}

@media (prefers-reduced-motion: reduce) {
  .campfire__btn:hover::after,
  .campfire__btn:focus-visible::after {
    animation: none;
  }
}

.campfire__btn img {
  width: 62px;
  height: 46px;
}

/* --- 下部：未来へつなぐ --- */
.campfire-future {
  position: relative;
  overflow: hidden;
  height: 644px;
}

.campfire-future__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.campfire-future__dots {
  position: absolute;
  inset: 0;
  background-image: url('../images/top/dot-pattern.png');
  background-size: 15px 15px;
  z-index: 1;
  pointer-events: none;
}

.campfire-future__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-pc);
  height: 100%;
  margin: 0 auto;
}

.campfire-future__catch {
  position: absolute;
  left: 103px;
  top: 161px;
  font-family: var(--font-ja);
  font-size: 33px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 56px;
}

.campfire-future__body {
  position: absolute;
  left: 103px;
  top: 296px;
  width: 430px;
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-white);
  line-height: 35px;
}


/* ============================================================
   9.5 青ノコギリ装飾の出現（トップ専用）
   ※スクロールフェードイン（.js-fade）は全ページ共通のため common.css へ
   ============================================================ */

/* 位置は動かさず、その場にすっとフェードで現れる */
.js-appear {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.js-appear.is-visible {
  opacity: 1;
}

/* ワイプ出現：clip-pathで「線が流れるように」現れる（参考: ritsuan.com） */
.js-wipe {
  transition: clip-path 0.7s cubic-bezier(0.78, 0, 0.22, 1);
}

/* 上から下へ */
.js-wipe--down {
  clip-path: inset(0 0 100% 0);
}

.js-wipe.is-visible {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .js-appear {
    opacity: 1;
    transition: none;
  }

  .js-wipe,
  .js-wipe--down {
    clip-path: none;
    transition: none;
  }
}


/* ============================================================
   10. SP用レスポンシブ対応（768px以下）
   ============================================================ */
@media (max-width: 768px) {

  /* --- HERO --- */
  .hero {
    min-height: 640px;
  }

  /* 縦長画面では車がほぼ中央に来るよう右寄りでトリミング */
  .hero__photo {
    object-position: 72% 50%;
    /* 文字が写真の明るい部分（ガレージの入口）に重なるため暗くする。青シェイプには影響しない */
    filter: brightness(0.8);
  }

  .hero__catch {
    top: 100px;
    left: 5%;
  }

  .hero__title {
    top: 200px;
    left: 5%;
  }

  .hero__title .line-1 { font-size: 64px; line-height: 1.05; }
  .hero__title .line-2 { font-size: 74px; line-height: 1.05; }
  .hero__title .line-3 { font-size: 56px; line-height: 1.05; }

  .hero__logo {
    width: 100px;
    height: auto;
    margin-left: 16px;
  }

  .hero__cf-banner {
    width: 90%;
    right: 5%;
    bottom: 100px; /* 固定CTAの高さ分 */
    padding: 16px;
  }

  .hero__cf-label {
    font-size: 18px;
  }

  .hero__cf-amount .label { font-size: 18px; }
  .hero__cf-amount .amount { font-size: 43px; }

  .btn-cta {
    font-size: 17px;
    padding: 14px 16px;
  }

  /* --- NEWS（SPも「左に見出し＋右にカードカルーセル」の横並びを維持。
     Figma TOP_SP(750px=2x)の実寸÷2で調整） --- */
  .news {
    padding: 26px 0 30px;
  }

  .news__inner {
    /* flex-direction は row のまま（縦積みにしない） */
    gap: 14px;
    padding-left: 16px;
    padding-right: 0;      /* カードを右端まで見せ、次カードを覗かせる */
  }

  .news__head {
    padding-left: 0;
    width: 104px;
  }

  .news__heading {
    font-size: 47px;
  }

  .news__more {
    font-size: 13px;
    margin: 2px 0 14px 2px;
  }

  .news__arrows {
    gap: 12px;
    padding-left: 2px;
  }

  .news__arrow {
    width: 30px;
    height: 30px;
  }

  .news__deco {
    bottom: 0;
    width: 150px;
    height: 150px;
  }

  .news__viewport {
    padding-top: 6px;
  }

  .news__list {
    gap: 13px;
  }

  /* カードは固定幅。次カードが右端で少し覗く */
  .news__item {
    width: 196px;
  }

  .news__item-thumb {
    height: 108px;
    margin-bottom: 10px;
    border-radius: 8px 0 8px 8px;
  }

  .news__item-tag {
    min-width: 54px;
    height: 21px;
    font-size: 11px;
    letter-spacing: 0.9px;
    padding: 0 8px;
  }

  .news__item-date {
    font-size: 12px;
  }

  .news__item-title {
    font-size: 14px;
    line-height: 1.5;
  }

  /* --- PROJECT --- */
  .project__intro,
  .project__doc {
    height: auto;
    padding: 60px 0;
  }

  .project__intro-inner,
  .project__doc-inner {
    padding: 0 20px;
  }

  .project__heading,
  .project__title,
  .project__subtitle,
  .project__body,
  .project__catch,
  .project__doc-body,
  .movie-link {
    position: static;
  }

  .project__heading {
    font-size: 66px;
    -webkit-text-stroke-width: 1px;
  }

  /* タイトルは見出し(PROJECT)の下部に重なり、1行で収める（Figma準拠）。
     字詰めはFigma SPのtracking÷2をspanごとに指定 */
  .project__title {
    line-height: 1;
    margin-top: -12px;
    white-space: normal;
  }

  .project__title .t-xl  { font-size: 36px; letter-spacing: -7px; }
  .project__title .t-sm  { font-size: 22px; letter-spacing: -4px; }
  .project__title .t-md  { font-size: 31px; letter-spacing: -6px; }
  .project__title .t-2xl { font-size: 38px; letter-spacing: -8px; }
  .project__title .t-lg  { font-size: 27px; letter-spacing: -5px; }

  .project__subtitle {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 14px;
  }

  .project__body {
    width: 100%;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.9;
  }

  .project__body em {
    font-size: 14px;
  }

  .project__diagram {
    position: relative;
    left: auto;
    top: auto;
    margin: 36px 0 -60px calc((100% - 457px) / 2);
    transform: scale(0.68);
    transform-origin: top center;
  }

  .project__catch {
    font-size: 26px;
    line-height: 1.8;
  }

  .project__catch em {
    font-size: 36px;
  }

  .project__doc-body {
    width: 100%;
    margin-top: 24px;
  }

  .movie-link {
    width: 100%;
    max-width: 370px;
    margin-top: 32px;
  }

  /* --- STORY --- */
  .story {
    padding: 40px 0 70px;
    background-size: contain; 
    background-repeat: repeat;
  }

  .story__corner {
    width: 300px;
    height: 224px;
  }

  .story__corner-logo {
    width: 140px;
    top: 40px;
    right: 40px;
  }

  .story__heading {
    font-size: 72px;
    margin-left: 24px;
    -webkit-text-stroke-width: 1px;
  }

  .story__catch {
    font-size: 38px;
    margin: -16px 0 0 24px;
    white-space: normal;
  }

  .story__catch em { font-size: 44px; }
  .story__catch .t-lg { font-size: 43px; }

  .story__sub {
    font-size: 15px;
    margin: 16px 24px 0;
  }

  .story__grid {
    flex-direction: column;
    gap: 48px;
    margin-top: 40px;
    padding: 0 24px;
  }

  .story__col {
    width: 100%;
    gap: 48px;
  }

  .story__col--offset {
    margin-top: 0;
  }

  .story__episode-title,
  .story__episode-date {
    font-size: 18px;
    line-height: 1.6;
  }

  /* --- SCHEDULE --- */

.schedule{
        background-size: contain;
        background-repeat: repeat;
}

  .schedule__panel {
    width: calc(100% - 16px);
    padding: 40px 20px 56px 24px;
    border-radius: 20px 0 0 20px;
  }

  .schedule__car {
    width: 400px;
        height: 240px;
    top: auto;
    bottom: 380px;
    right: -80px;
    opacity: 0.5;
  }

  .schedule__heading {
    font-size: 56px;
    -webkit-text-stroke-width: 1px;
  }

  .schedule__title {
    font-size: 34px;
    margin: -3px 0 0;
    white-space: normal;
    line-height: 1.3;
  }

  .schedule__title .t-sm { font-size: 32px; }

  .schedule__phase-head {
    flex-direction: column;
    gap: 0;
    margin-top: 42px;
  }

  .schedule__phase {
    font-size: 22px;
    white-space: normal;
  }

  .schedule__phase img {
    width: 30px;
    height: 30px;
  }

  /* SP: ラインを左端に固定し、年月＋内容を右側に縦積み（grid 2列×2行）。
     DOM順(年月→ライン→内容)はそのままに、gridの配置で並べ替える */
  .timeline__item {
    display: grid;
    grid-template-columns: 12px 1fr;
    grid-template-rows: auto 1fr;   /* -1が効くよう明示。内容行を伸ばしてラインを繋ぐ */
    column-gap: 16px;
    align-items: stretch;
  }

  .timeline__line {
    grid-column: 1;
    grid-row: 1 / span 2;    /* ラインは項目の全高を貫く（PCと同様に連続させる） */
  }

  .timeline__dot {
    top: 6px;
  }

  /* 最終項目以外はラインを次のドットまで繋げる */
  .timeline__item:not(:last-child) .timeline__line::after {
    top: 16px;
    bottom: -6px;
  }

  .timeline__year {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    padding-top: 0;
    font-size: 18px;
  }

  .timeline__content {
    grid-column: 2;
    grid-row: 2;
    padding: 0 0 26px 0;   /* 左paddingを解除して縦積み */
    min-height: 0;
  }

  .timeline__item:last-child .timeline__content {
    padding-bottom: 0;
  }

  .timeline__content-title {
    font-size: 18px;
    line-height: 1.5;
  }

  .timeline__content-desc {
    line-height: 1.7;
    margin-top: 4px;
  }

  .timeline__item--cf .timeline__content-title {
    font-size: 20px;
    line-height: 1.6;
  }

  .timeline__cf-note {
    font-size: 15px;
    line-height: 1.8;
  }

  .timeline__cf-note em { font-size: 28px; }

  .schedule__phase2 {
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .schedule__catch {
    font-size: 30px;
    white-space: normal;
      margin-top: -15px;
  }

  .schedule__catch em { font-size: 38px; }

  /* --- MEMBER --- */

  .member{
      background-size: contain;
      background-repeat: repeat;
  }
  .member__heading {
    font-size: 36px;
    gap: 20px;
  }

  .member__heading::before,
  .member__heading::after {
    width: 40px;
  }

  .member__sub {
    padding: 0 24px;
    line-height: 1.9;
  }

  .member__cards {
    padding-bottom: 32px;
  }

  .member__cards::before {
    width: calc(100% - 24px);
    top: 120px;
  }

  .member__grid {
    flex-direction: column;
    gap: 48px;
    padding: 0 32px;
  }

  .member__item {
    width: 100%;
  }

  .member__photo {
    width: 100%;
  }

  .member__name-row {
        padding: 6px 8px 0 34px;
  }

  .member__name-ja {
    font-size: 38px;
  }

  .member__name-ja small { font-size: 28px; }

  .member__name-ja::before {
        left: -46px;
        width: 65px;
            top: 12px;
  }

  .member__name-en {
    font-size: 22px;
  }

  /* --- MESSAGE --- */
  .message {
    padding: 48px 0 72px;
    background-size: contain;
    background-repeat: repeat; 
  }

  .message__panel {
    width: calc(100% - 16px);
    padding: 40px 24px 48px;
    border-radius: 0 20px 0 0;
  }

  .message__head {
    gap: 24px;
    flex-wrap: wrap;
  }

  .message__heading {
    font-size: 56px;
  }

  .message__label {
    font-size: 18px;
  }

  .message__card {
    flex-direction: column;
    gap: 28px;
    margin-top: 36px;
  }

  .message__photo {
    width: 100%;
    max-width: 339px;
  }

  .message__lead {
    font-size: 26px;
    margin-bottom: 4px;
  }

  .message__body {
    margin-top: 15px;
    max-width: none;
  }

  /* --- MOVIE --- */
  .movie {
    padding: 48px 0 72px;
  }

  .movie__deco {
    width: 340px;
    height: 233px;
  }

  .movie__heading {
    font-size: 44px;
  }

  .movie__sub {
    font-size: 17px;
    padding: 0 24px;
  }

  .movie__carousel {
    margin-top: 28px;
  }

  .movie__track {
    gap: 20px;
  }

  .movie__slide-title {
    font-size: 17px;
    margin-top: 14px;
  }

  /* SPは矢印を画面端の見切れサムネイル上に重ねる */
  .movie__arrow {
    width: 40px;
    height: 40px;
  }

  .movie__arrow--prev {
    left: 12px;
  }

  .movie__arrow--next {
    right: 12px;
  }

  .movie__channel {
    width: calc(100% - 48px);
    height: 64px;
    font-size: 18px;
    margin-top: 28px;
  }

  /* --- CAMPFIRE --- */
  .campfire {
    padding: 80px 12px 64px;
    background-size: contain;
    background-repeat: repeat;   
  }

  .campfire__corner {
    width: 300px;
    height: 224px;
  }

  /* Figma SPはカード内左寄せ */
  .campfire__card {
    padding: 36px 20px 48px;
    border-radius: 20px;
    text-align: left;
  }

  /* SPは縦型バッジ（593×100）。全幅にせず自然なサイズで左寄せ */
  .campfire__badge {
    max-width: 98%;
    margin: 0;
  }

  /* SPは枠内に収まる拡大率に抑える */
  .campfire__widget {
    --cf-scale: 1.15;
  }

  /* タイトルはFigma実寸÷2。1行目が折り返さないサイズに */
  .campfire__title {
    font-size: 20px;
    line-height: 1.5;
    margin-top: 22px;
  }

  .campfire__title .t-goal {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
  }

  .campfire__title .t-num { font-size: 27px; }
  .campfire__title .t-cf { font-size: 18px; }

  /* 帯：Figma準拠で「各行に幅の異なるグラデ背景」の左寄せ2行ハイライトに。
     flexだとテキストとemが別アイテムに分かれて崩れるため block+インラインハイライトへ */
  .campfire__band {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    margin-top: 18px;
    background: none;        /* グラデはハイライト(span)側へ移す */
    text-align: left;
    white-space: normal;
    line-height: 0;          /* 行間の余白を消し、barの間隔はspanのline-heightで作る */
    letter-spacing: normal;  /* baseの-0.1emを解除 */
  }

  .campfire__band-hl {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background: var(--gradient-cta);
    padding: 4px 12px;
    line-height: 2;
    font-size: 20px;
  }

  .campfire__band em { font-size: 20px; }

  .campfire__body {
    margin-top: 24px;
    line-height: 1.9;
  }

  .campfire__btn {
    justify-content: space-between;
    height: 72px;
    padding: 10px 40px;
    font-size: 16px;
    gap: 12px;
    margin-top: 28px;
  }

  .campfire__btn img {
    width: 44px;
    height: 33px;
  }

  /* --- 未来へつなぐ --- */
  .campfire-future {
    height: auto;
  }

  .campfire-future__inner {
    padding: 64px 24px;
  }

  .campfire-future__catch,
  .campfire-future__body {
    position: static;
  }

  .campfire-future__catch {
    font-size: 21px;
    line-height: 1.8;
  }

  .campfire-future__body {
    width: 100%;
    margin-top: 20px;
  }
}

/* ============================================================
   英字（Bebas Neue）見出しのウェイト統一
   Bebas Neueは400のみのため、h1/h2の既定太字や明示700は擬似ボールドになる。
   400を明示して本来の細字に統一する（NEWS見出しは各ルールで対応済み）。
   ============================================================ */
.hero__title,
.project__heading,
.story__heading,
.schedule__heading,
.member__heading,
.message__heading,
.movie__heading {
  font-weight: 400;
}
