@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Cormorant+Infant:wght@600&display=swap');


/* ==========================================
                共通設定__start
========================================== */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
	--global-fonts: 'Zen Old Mincho', serif;
	--global-size: 16px;
	--primary-black: rgba(51, 51, 51, 1);
	--primary-red-gray: rgba(104, 92, 88, 1);
	--primary-gray: rgba(198, 198, 198, 1);
	--primary-white: rgba(255, 255, 255, 1);
	--primary-light-brown: rgba(141, 126, 121, 1);
  --primary-black-light: rgba(91, 90, 90, 1);
	--primary-NICO-red: rgba(191, 20, 35, 1);
}

/* スマホ版（768px以下） */
@media screen and (max-width: 768px) {
  :root {
    --global-size: 14px;
  }
}

html {
	scroll-behavior: smooth;
	font-family: var(--global-fonts);
	font-size: var(--global-size);
  scrollbar-gutter: stable;
}

body {
  color: var(--primary-black);
}
/* 通常時（PC）：スマホ用改行を隠す */
.sp-only {
  display: none;
}
/* スマホ表示時（768px以下）：PC用改行を隠し、スマホ用改行を表示する */
@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
  br.sp-only {
    display: inline;
  }
}
/* ==========================================
                共通設定__end
========================================== */

/* ==========================================
          冒頭カウントアップ部分（専用cssあり：countUp_style.css）
========================================== */

/* ==========================================================
  4列スライダー中央ロゴ：初期非表示（!importantなし・詳細度強化版）
   ========================================================== */

/* ①「120」 */
.topWrapper .static-digits {
  opacity: 0;
  transform: translateX(30px) translateY(10px); /* 少し下から浮き上がらせる */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ②「th」 */
.topWrapper .static-th {
  opacity: 0;
  transform: translateY(92px); /* 元の82pxから10px下げておく */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ③「ANNIVERSARY」 */
.topWrapper .anniversary-text--show {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ④「縦線（.vertical-line）」 */
.topWrapper .vertical-line {
  transform: scaleY(0);
  transform-origin: top; /* 上から下へ伸びるように起点を固定 */
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ⑤「since 1906」 */
.topWrapper .since-text--show {
  opacity: 0;
  transform: translateY(66px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ⑥「NICO GROUP」 */
.topWrapper .company-name--show {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


/* ==========================================================
  オープニング終了後（.start-animation 付与後）に時間差（Delay）で順次発動！
  ※ クラス3つの詳細度（.topWrapper.start-animation .static-digits）が、
  クラス2つの初期状態を自然に上書きするため、!importantは不要です。
   ========================================================== */

/* 1. 伸び縮みループアニメーションの定義 */
@keyframes scrollLineLoop {
  0% {
    transform-origin: center top;    /* 基準：上（上が固定） */
    transform: scaleY(0);
  }
  49.9% {
    transform-origin: center top;    /* 上を固定したまま下へ伸ばす */
    transform: scaleY(1);
  }
  50% {
    transform-origin: center bottom; /* ★ここで基準を下に変更！ */
    transform: scaleY(1);
  }
  100% {
    transform-origin: center bottom; /* 下を固定したまま上が追いついて縮む */
    transform: scaleY(0);
  }
}

/* ①「120」：本編がスタートしてから【2秒後】に表示 */
.topWrapper.start-animation .static-digits {
  opacity: 1;
  transform: translateX(30px) translateY(0);
  transition-delay: 2s;
}

/* ②「th」：120が表示されたあと【1.0秒後】（累計2.5秒）に表示 */
.topWrapper.start-animation .static-th {
  opacity: 1;
  transform: translateY(82px);
  transition-delay: 2.5s;
}

/* ③「ANNIVERSARY」：thが表示されたあと【0.7秒後】（累計3秒）に表示 */
.topWrapper.start-animation .anniversary-text--show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 3s;
}

/* ④「NICO GROUP」：ANNIVERSARYが表示されたあと【0.3秒後】（累計3.5秒）に表示 */
.topWrapper.start-animation .company-name--show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 3.5s;
}

/* ⑤「縦線」：NICO GROUPが表示されたあと【1.2秒後】（累計4秒）にスッと下に伸びる */
.topWrapper.start-animation .vertical-line {
  animation: scrollLineLoop 1.8s ease-in-out infinite;
  animation-delay: 4.0s; /* ★ NICO GROUP表示後の開始タイミング（秒数）を指定 */
}

/* ⑥「since 1906」：縦線が伸びきったあと【0.8秒後】（累計4.5秒）に表示 */
.topWrapper.start-animation .since-text--show {
  opacity: 1;
  transform: translateY(56px);
  transition-delay: 4.5s;
}


/* =================================────────────────=========
  4列スライダー中央ロゴ：順次フェードイン（初期状態：非表示）_end
   ========================================================== */

/* ==========================================
            4列スライダートップ_start
========================================== */
.topWrapper {
	position: relative;
	z-index: 999;
}
/* 左上NICOロゴ */
.nicoLogo {
	width: 150px;
	display: block;
	position: fixed;
	left: 40px;
	top: 40px;
	z-index: 997;
}
/* 中央メインロゴ */
.AnivTitle {
	display: block;
	position: fixed;
	width: 388px;
	left: 50dvw;
	transform: translate(-50%, -58%);
	top: 50dvh;
	z-index: 999;
}
/* 縦線 */
.line-wrapper {
	width: 1px;
  height: 50px;
  position: fixed;
  left: 50dvw;
  top: 50dvh;
  transform: translate(-50%, 200%);
  z-index: 999;
}
/* 縦線 */
.vertical-line {
	width: 1px;
	height: 100%;
	background-color: var(--primary-white);
	transform-origin: top;
  position: relative; /* ★相対配置にする */
	top: -15px;        /* ★上方向に15px移動 */
}
/* 4列写真をまとめるラッパーの役割 */
.hero {
	width: 100vw;
	margin: 0 auto;
	height: 100vh;
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}
/* 黒半調のテクスチャー */
.screen {
	display: block;
	width: 100dvw;
	height: 100dvh;
	background-image: url(../img/hero_img.png);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 998;
  background-size: auto;         /* 画像を拡大縮小せず、縮小された元の等倍サイズで表示します */
	background-repeat: repeat;     /* 画像を縦横に繰り返し並べて、画面全体に隙間なく敷き詰めます */
	background-position: left top; /* タイル状に並べる際の基準点を左上に設定します */
}
/* 4列にするために幅を1/4にする */
.divide {
	width: calc(100% / 4);
	height: 100%;
	overflow-y: hidden; /* 重複指定をこちらへ統合 */
}
/* 4列の写真の一枚 */
.photos img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* CSS側のキーフレームアニメーションを無効化してGSAPに任せる */
.scrollWrapperD,
.scrollWrapperU {
  animation: none !important;
  will-change: transform;
}
/* 4列の写真の動きの指定 */
.scrollWrapperD {
	display: block;
	animation: scrollD 50s infinite linear 0.5s both;
}
.scrollWrapperU {
	display: block;
	animation: scrollU 50s infinite linear 0.5s both;
	}

.countUp_area.fade-out ~ .topWrapper .scrollWrapperD,
.countUp_area.fade-out ~ .topWrapper .scrollWrapperU {
  animation-play-state: running;          /* ★ 満を持して、100%のスピードで滑らかにスタート！ */
}

.scroll {
	display: block;
}
/* アニメーション設定 */
@keyframes scrollD {
	from { transform: translateY(-50%); }
	to { transform: translateY(0); }
}
@keyframes scrollU {
	from { transform: translateY(0); }
	to { transform: translateY(-50%); }
}
/* レスポンシブ設定 */
@media screen and (max-width: 768px) {
    /* 4列写真をまとめるラッパーの役割 */
    .hero {
      max-width: 100%;
    }
    /* 2列にするために幅を1/2にする */
    .divide {
      width: calc(100% / 2);
    }
    /* 一番左と一番右を消す */
    .contentsLeft,
    .contentsRight {
      display: none;
    }

    /* 1. スマホで隠している左右の列は、キーフレームアニメーション自体を完全停止させる */
    .contentsLeft .scrollWrapperD,
    .contentsRight .scrollWrapperU {
      animation: none !important;
    }
    /* スマホ表示時（768px以下）のメモリ負荷軽減 */
    .scrollWrapperD,
    .scrollWrapperU {
      will-change: auto !important; /* スマホでの過剰なVRAM確保を解除 */
    }

    /* アニメーション中の描画負担を軽減 */
    .photos img {
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
	}
/* 白い半調の円 */
.circle {
	width: 100px;
	height: 100px;
	transform: scale(0.5);
	background-color: var(--primary-white);
	border-radius: 50%;
	position: fixed;
	left: calc(50% - 50px);
	top: calc(50% - 50px);
	filter: blur(6px);
	opacity: 0;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 999;
}

/* ==========================================
	ANNIVERSARYのTITLE（スライド上で表示）_start
========================================== */
.company-name--show {
    font-family:'Bona Nova SC',sans-serif;
    font-weight:300;
    font-size:42px;
    letter-spacing:0.2rem;
    margin-bottom:-18px;
	text-align: center;
	color: white;
}
/* ① 親コンテナをFlexbox化し、底辺揃え・中央寄せにします */
.digitStrip--show {
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
  text-align: center;
}

/* ② 「120」の数字：floatを解除し、不要な右ズレをリセット */
.static-digits {
  font-family: 'Cormorant Infant', serif;
  font-size: 198px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15rem;
  color: white;
  float: none !important;      /* ★ floatを解除！ */
  transform: none !important;  /* ★ 不要なtranslateX(30px)の食い込みをリセット */
}

/* ③ 「th」：margin-left の数値がそのままダイレクトに隙間になります */
.static-th {
  font-family: 'Cookie', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 108px;
  line-height: 1;
  color: white;
  margin-bottom: 90px; /* 120との高さあわせ */
  white-space: nowrap;
  letter-spacing: 10px;

  /* ★ ここで隙間をミリ単位で自在にコントロール！
     （例: 8pxで上品な間隔になります。お好みで 10px〜25px で微調整OKです） */
  margin-left: 8px !important; 
}

.anniversary-text--show {
    font-family:'Bona Nova SC',sans-serif;
    font-weight:400;
    font-size:47px;
    letter-spacing:0.35rem;
	color:white;
    margin-top:-14px;
    margin-bottom:28px;
}

.since-text--show {
    font-family:'Cormorant Garamond',serif !important;
    font-weight:600;
    font-size:37px;
    letter-spacing:0.14em;
    color:white;
    margin-top:6px;
	z-index: 999;
	text-align: center;
	transform: translateY(56px);
}
/* ==========================================
	ANNIVERSARYのTITLE（スライド上で表示）_end
========================================== */

/* ==========================================================================
        スマホ（768px以下）で要素全体を美しく80%に縮小するレスポンシブ設定_start
   ========================================================================== */
/* 1. 画面全体の「横はみ出し・横スクロール」を強制的に禁止し、背景の途切れを100%防ぎます */
html, body {
  overflow-x: clip !important;
  width: 100% !important;
}

/* 2. 背景マスク（.screen）のサイズを100%確実に画面いっぱいに引き延ばします */
.screen {
  width: 100dvw !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  background-size: auto !important;         /* cover から auto に変更 */
  background-repeat: repeat !important;     /* 縦横リピートを強制 */
  background-position: left top !important; /* 左上基準で並べる */
}

/* 3. スマホ表示（768px以下）のときに、要素の比率を保ったまま丸ごと80%に縮小 */
@media screen and (max-width: 768px) {
  
  /* 
  オープニングの「.countUp_area 内の .countUp」と、
  本編の「.static-hero 内の .countUp」を同時にターゲットにし、
  デザインバランスを完全に保ったまま、中心を基準に「0.8倍（80%）」に縮小します。
  */
  .countUp_area .countUp,
  .static-hero .countUp {
    transform: scale(0.8) !important;
    transform-origin: center center !important; /* 中央基準で綺麗に縮小させます */
  }

  /*★ここを追加！
  移行後の本編パーツ（AnivTitle、SinceTitle、縦線）も、
  PC版の元の位置（translate）をキープしたまま、丸ごと80%（0.8倍）に縮小します。
  */
  .AnivTitle {
    transform: translate(-50%, -58%) scale(0.8) !important;
    transform-origin: center center !important;
  }

  .line-wrapper {
    transform: translate(-50%, 150%) scale(0.8) !important; /* -200% から -50% に修正 */
    transform-origin: center center !important;
  }

  .SinceTitle {
    transform: translate(-50%, 440%) scale(0.8) !important; /* -35% から -50% に修正 */
    transform-origin: center center !important;
  }

  /* ★追加：スマホの年号フェーズ時、各文字の不要な右ズレをリセットして完璧な中央寄せにします */
  .d-char.year {
    transform: translateX(0) !important;
  }
  
  /* ★追加：スマホの年号フェーズ時、コンテナ自体の不要な左ズレを打ち消します */
  .countUp_area #digitStrip {
    transform: translateX(0) !important;
  }

}
/* ==========================================================================
        スマホ（768px以下）で要素全体を美しく80%に縮小するレスポンシブ設定_end
   ========================================================================== */
  
/* ==========================================
            4列スライダートップ_end
========================================== */

/* ==========================================
            コンセプト文章_start
========================================== */
.maincopyArea {
	height: 200vh;
	margin-top: 200dvh;
	position: relative;
	z-index: 999;

	h2 {
      font-feature-settings: "palt";
      letter-spacing: 25%;
			text-align: center;
			font-size: 3em;
			font-weight: 200;
			line-height: 5;
			color: var(--primary-black);
	}

	p {
      font-feature-settings: "palt";
      letter-spacing: 25%;
			text-align: center;
			font-size: 1.25em;
			font-weight: 200;
			line-height: 2.5;
			color: var(--primary-black);
	}

	@media screen and (max-width: 768px) {
			h2 {
					font-size: 2.25em;
					line-height: 1.5;
			}

			p {
					font-size: 1em;
					line-height: 2.25em;
          margin-top: 34px;
          padding:0 15px;
          letter-spacing: 10%;
			}

			.topWrapper {
					height: 800px;
			}
	}
}

.maincopyArea-inner {
	position: sticky;
	top: 50%;
	transform: translateY(-50%);
}
/* ==========================================
            コンセプト文章_end
========================================== */

/* ==========================================
            HISTORYヘッド_start
========================================== */
/* 全体をまとめる大きな枠（ここに背景画像を敷く */
.historyWrapper {
  position: relative;
  z-index: 1000; /* ★999から1000に変更して画面固定背景より前に出す */
  background-image: url(../img/historyBack_img_s.jpg);
  background-repeat: repeat;
  width: 100%;
	font-feature-settings: "palt";
}

.historyTitleArea {
  position: relative;
  width: 100%;
}

.historyTitle {
	display: block;
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	transform: translateY(-45%);
}

.SinceTitleB {
	text-align: center;
}

.SinceTitleB-text {
	font-family: "Cormorant Garamond", serif;
	font-weight: 600;
	font-style: normal;
	font-size: 1.75em;
	line-height: 2.368;
	letter-spacing: 0.02em;
	margin: -40px auto 0;
}

@media screen and (max-width: 768px) {
	.SinceTitleB-text {
		font-size: 1em;
		margin-top: -10px;
	}
}

.line-wrapperB {
	height: 50px;
}

.vertical-lineB {
	width: 1px;
	height: 100%;
	background-color: var(--primary-black);
	margin: 5px auto 0 auto;
}

	/* タイトル */
.historyHeader {
  text-align: center;
  margin: 10px 0 60px;
}

/* タイトル (PC: 52px) */
.historyHeader-title {
  font-size: 3.25em;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.12em;
  margin-bottom: 0.46em; /* 約24px */
}


/* 説明文 (PC: 16px) */
.historyHeader-desc {
  font-size: 1em;
  font-weight: 400;
  line-height: 2.25;
  letter-spacing: 10%;
}


/* スマホ用設定 (768px以下) */
@media screen and (max-width: 768px) {
  .historyHeader {
    margin: 10px auto 40px;
  }

  .historyHeader-title {
    font-size: 2.15em;
    letter-spacing: 0.08em;
  }

  .historyHeader-desc {
    line-height: 2;
    padding: 0 5%;
  }
}

/* HISTORYタイトル下のナビゲーション */
.historyNav {
  position: sticky;
  top: 0;
  z-index: 200;
  margin-bottom: 80px;
  background-image: url(../img/historyBack_img_s.jpg);
  background-repeat: repeat;
  opacity: 0.9;
  transition: transform 0.35s ease, opacity 0.35s ease; /* なめらかなスライド切り替え */
  padding: 15px 0;
}

.historyNav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0px;
  margin: 0px auto;
  max-width: 1000px;
  gap: 32px; /* PCでの項目同士の間隔 */
}

.historyNav-list li {
  text-align: center;
  letter-spacing: 20%;
}

.historyNav-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
  white-space: nowrap;
}

/* マウス操作（PC等）の時だけホバー表示を有効にする */
@media (hover: hover) {
  .historyNav-list a:hover {
    opacity: 0.6;
  }
}

.historyNav-list a:active {
  opacity: 0.6;
}

/* 上の線 */
.historyNav-list a::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background-color: var(--primary-gray);
  margin-bottom: 10px;
}

/* 下の矢印 */
.historyNav-list a::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--primary-gray);
  border-bottom: 1px solid var(--primary-gray);
  transform: rotate(45deg);
  margin-top: 10px;
}

/* ──────────────────────────────────────────
    ★ タブレット以下（1024px以下）の設定
    ご指定のサイズ感 ＋ スクロール追従（隠れる・出る）
   ────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .historyNav {
    margin-bottom: 60px;
    padding: 12px 0;
  }

  /* ★画面上部で下スクロール時に画面上部へ隠すアニメーション */
  .historyNav.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none; /* 隠れている間の誤タップ防止 */
  }

  .historyNav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 50px;
    padding: 0 20px;
    max-width: 360px;
  }

  .historyNav-list li {
    width: calc((100% - (50px * 3)) / 4);
  }

  .historyNav-list a {
    white-space: nowrap; /* テキストが途中で折れ曲がるのを防ぐ */
  }
}
/* ==========================================
            HISTORYヘッド_end
========================================== */

/* ==========================================
                モーダル_start
========================================== */
.modal {
	display: none;
	background-color: rgba(68, 68, 68, 0.8);
	width: 100%;
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	z-index: 1000;
}

.modal-overlay {
	align-items: center;
	width: 100%;
	height: 100%;
}

.modal-content {
	width: 800px;
	height: 750px;
	position: relative;
	background-color: var(--primary-white);
	z-index: 1000;
	margin: 0 auto;
	top: 50dvh;
	transform: translateY(-50%);
}

.modal-close {
	background-color: transparent;
	border: none;
	cursor: pointer;
	position: absolute;
	right: 30px;
	top: 34px;
	z-index: 1000;
	width: 18px;
	height: 18px;
}

.modal-article {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
/* ==========================================
                モーダル_end
========================================== */

/* ==========================================
                のびる破線_start
========================================== */
/* 縦の点線（各セクションの高さに合わせて自動連動） */
.historySection::before {
  content: "";
  position: absolute;
  top: 120px;
  bottom: 0;
	/* 左の年号位置に合わせて調整(40+164/2)px */
  left: 122px;
  width: 1px;
  border-left: 1px solid var(--primary-black);
  z-index: 1;
	/* （アニメーションを加える場合はこの起点を「上端」にセット） */
  transform-origin: top;
  display: none;
}

.timeline-line-wrapper {
  position: absolute;
  top: 150px;                /* 点線のスタート位置 */
  bottom: 30px;
  left: 110px;               /* 左の年号位置に合わせた正確な中央位置(40 + 164/2)px */
  width: 1px;
  z-index: 1;
  overflow: visible;         
}

@media screen and (max-width: 768px) {
  .timeline-line-wrapper {
    left: 52px;
    top: 90px;
  }
}

.timeline-line-wrapper::before {
  content: "";
  position: absolute;
  top: 0;                    /* 出発点の上端ぴったりに配置 */
  left: 50%;                 /* 1pxの線の真ん中に軸を合わせる */
  
  /* ★ 重心の補正：丸の中心が、線のスタート地点と寸分狂わず「ど真ん中」で重なるようにします */
  transform: translate(-50%, -50%) rotate(45deg); 
  
  /* 丸のサイズ（カンプに合わせて上品な6pxに設定。4px〜8pxでお好みで微調整してください） */
  width: 5px;                
  height: 5px;
  
  /* 色 */
  background-color: var(--primary-black); /* 破線と同じシックな黒（またはカラーコード直接：#000000） */
  
  z-index: 2;                /* 伸びてくる線よりも手前に美しく描画させます */
}

/* 実際にスクロールで伸びる破線（ここは今までの記述のままでOKです） */
.timeline-line-active {
  width: 100%;
  height: 100%;
  border-left: 1px solid var(--primary-black);
  transform-origin: top; 
  transform: scaleY(0); 
  will-change: transform;
}

/* 2. 第4期（.term04）の縦線だけをバナーの裏へ潜り込ませる */
.term04 .timeline-line-wrapper {
  bottom: -720px; /* 第4期の線だけをバナーの上端を超えて下へ伸びるように指定 */
}

/* 3. タブレットサイズ（769px〜1048px） */
@media screen and (max-width: 1048px) {
  .term04 .timeline-line-wrapper {
    bottom: -520px;
  }
}

/* 4. スマホサイズ（768px以下） */
@media screen and (max-width: 768px) {
  .term04 .timeline-line-wrapper {
    bottom: -420px;
  }
}
/* ==========================================
                のびる破線_end
========================================== */

/* ====================================================================================
                                  HISTORYコンテンツ_start
==================================================================================== */
.historySection {
  position: relative;
  display: flex;
  gap: 30px; /* 左カラムと右カラムの間隔 */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 80px 180px 40px;
  /* ナビゲーションの高さ＋少し余裕を持たせる値（例: 100px） */
  scroll-margin-top: 100px;
}

/* 縦の点線（各セクションの高さに合わせて自動連動） */
.historySection::before {
  content: "";
  position: absolute;
  top: 150px;
  bottom: 20px;
  left: 122px;
  width: 1px;
  border-left: 1px dashed var(--primary-black);
  z-index: 1;
  transform-origin: top;
}
/* ==========================================
            イラストの位置制御_start
========================================== */
/* 背景イラスト (共通設定) */
.historyBgImg {
  position: absolute;
	width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* イラスト各期固有の指定（位置と幅だけ） */
/* 第1期 */
.term01 .historyBgImg {
  top: -15px;
  left: 15px;
  right: auto;
  max-width: 355px; /* 表示させたい幅だけ指定 */
}

/* 第2期 */
.term02 .historyBgImg {
  top: 150px;
  right: 115px;
  left: auto;
  max-width: 574px;
}

/* 第3期 */
.term03 .historyBgImg {
  top: 150px;
  right: 0;
  left: auto;
  max-width: 700px;
}

/* 第4期 */
.term04 .historyBgImg {
  top: 110px;
  right: -50px;
  left: auto;
  max-width: 750px;
}

/* 第5期 */
.term05 .historyBgImg {
  position: absolute;
  top: -230px;
  /* ★ 解決の鍵：親要素の幅を無視して、ブラウザの画面幅（100vw）のど真ん中に引き伸ばすハック */
  left: 50%;
  transform: translateX(-50%); /* 画面の正確な中央にリセット */
  width: 100vw;                /* 画面全体の横幅いっぱいに引き伸ばす */
  
  /* 既存の1500px制限や、以前設定されていた拡大・縮小の設定を綺麗に上書き・解除します */
  max-width: none;             /* 幅制限を解除 */
  height: auto;                /* アスペクト比を維持 */
  
  /* 必要に応じて、画像を領域全体に隙間なくフィットさせます */
  object-fit: cover;           
  
  opacity: 0.3;                /* 優しく馴染む不透明度に設定 */
  z-index: 0;                  /* コンテンツの邪魔をしない最背面 */
  pointer-events: none;        /* クリックや選択を貫通させる */
}

/* 第6期は第五期の背景画像を左右反転 */
.term06 .historyBgImg {
	position: absolute;
  top: 55px;
  left: 50%;
  /* scaleX(-1) で反転させつつ、translateX(-50%) で中央に寄せます */
  transform: translateX(-50%) scaleX(-1); 
  width: 100vw;
  max-width: none;
  height: auto;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
/* ==========================================
            イラストの位置制御_end
========================================== */

/* ==========================================
      左カラム：タイムライン（年号）_start
========================================== */
.historyTimeline {
  position: relative;
  z-index: 2;
  max-width: 164px;
  flex-shrink: 0;
  text-align: center;
}

.historyTimeline-era {
  display: block;
  text-align: center;
  letter-spacing: 16%;
  margin-bottom: 10px;
}

.historyTimeline-year {
  font-family: "Cormorant Garamond", serif;
  font-size: 5em;
  font-weight: 400;
  letter-spacing: 7%;
  line-height: 0.7;
  margin: 0;
}
/* ==========================================
      左カラム：タイムライン（年号）_end
========================================== */

/* ==========================================
              年号スロット_start
========================================== */
.slot-group {
  display: flex;
  margin-top: -8px;
}

.slot-wrapper {
  position: sticky;
}

.slot {
  display: flex;
  gap: 8px;
}

  /* これよりJavaScriptに関わるクラス */

.reel {
  width: 30px;
  height: 100px;
  overflow: hidden;
  position: relative;
}

.strip {
  position: absolute;
  width: 100%;
  top: 0;
  will-change: transform;
}

.digit {
  height: 100px;
  font-family:'Cormorant Garamond',serif;
  font-size: 4.5rem;
  font-weight: 400;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: top;
}

@media screen and (max-width: 768px) {
  
  /* スロット（または数字を囲む親要素）を丸ごと綺麗に50%にします */
  .slot {
    transform: scale(0.5);
    transform-origin: left center; 
    
    /* ★ 縮小されたことで上下に余計な隙間（余白）が生まれるのを防ぐため、
       縮小された高さ分（100px ➔ 50px に減った分）のマージンをネガティブマージンでビシッと調整します */
    margin: -25px 0 !important; 
  }
}
/* ==========================================
              年号スロット_end
========================================== */

/* ==========================================
        右カラム：メインコンテンツ群_start
========================================== */
.historyBody {
  flex-grow: 1;
  z-index: 2;
}

/* ヘッダー周り */
.historyBody-header {
  color: var(--primary-red-gray);
  padding-top: 125px;
  margin-bottom: 50px;
  letter-spacing: 7%;
}

.historyBody-sub {
  font-size: 1.25em;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.historyBody-title {
  font-size: 3em;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
}

.historyBody-en {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.7;
}
/* ==========================================
        右カラム：メインコンテンツ群_end
========================================== */

/* ==========================================
      複数セット（ブロック）の管理__start
========================================== */
.historyBlock {
  width: 100%;
  display: block;
}

.historyBlock + .historyBlock {
    margin-top: 130px;
  }

/* メイン写真 */
.historyBody-mainPhoto {
  width: 100%;
  margin-bottom: 40px;
}

.historyBody-mainPhoto img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2セット目以降のメイン写真の上に余白を作る */
.historyBody-mainPhoto + .historyBody-detail + .historyBody-mainPhoto {
  margin-top: 130px;
}
/* ==========================================
      複数セット（ブロック）の管理__end
========================================== */

/* ==========================================
第3期 1セット目 メイン写真2枚重ね処理
========================================== */
/* 写真エリア全体のコンテナ設定 */
.term03-overlapPhoto {
  position: relative;
  width: 100%;
  padding-bottom: 20px; 
}

/* ベース画像（右上起点・80%サイズ） */
.term03-overlapPhoto .overlap-base {
  display: block;
  width: 75%;
  margin-left: auto;
  margin-right: 0;
  height: auto;
}

/* 重ねる小画像（左側配置＋ドロップシャドウ） */
.term03-overlapPhoto .overlap-sub {
  position: absolute;
  left: 0;
  bottom: -40px;
  width: 45%;
  height: auto;
  z-index: 2;
  transform: translate(-60px, 20px);
  /* ドロップシャドウ */
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
}

/* ==========================================
第5期 メイン写真2枚重ね処理
========================================== */
/* コンテナ全体の設定 */
.term05-overlapPhoto {
  position: relative;
  width: 100%;
}

/* メイン画像（左下に配置・縮小） */
.term05-overlapPhoto .overlap-base {
	position: relative;
	z-index: 2;
	display: block;
	width: 77%;/* メイン画像のサイズ */
	margin-left: 0;
	margin-right: auto;
	height: auto;
}

/* 上に重ねるサブ小画像（右上配置） */
.term05-overlapPhoto .overlap-sub {
	position: absolute;
	top: -260px;
	right: 0;
	left: auto;
	bottom: auto;
	width: 230px;
	/* 
    ★ 画面幅に連動してスムーズに縮小させる設定
    1200pxの時に倍率1.0（原寸）。1200pxを切ると画面幅(100vw)に応じて小さくなり、0.61で止まる
  */
  transform: scale(clamp(0.61, calc(100vw / 1200), 1.0));
	/* ★3. 縮小の基準軸を「右下」に完全ロック */
	transform-origin: right bottom;
	height: auto;
	object-fit: contain;
	z-index: 0;
}

/* ==========================================
第6期 メイン写真2枚重ね処理
========================================== */
/* コンテナ全体の設定 */
.term06-overlapPhoto {
  position: relative;
  width: 100%;
}

/* メイン画像は基本からサイズ変更無し 重ね順変更 */
.term06-overlapPhoto .overlap-base {
	position: relative;
	z-index: 2;
}

/* 上に重ねるサブ小画像（右上配置） */
.term06-overlapPhoto .overlap-sub {
	position: absolute;
	top: -260px;
	right: -220px;
	left: auto;
	bottom: auto;
	max-width: 530px;
	/* ★2. 画面幅(vw)に合わせて「倍率」を縮小 */
	transform: scale(clamp(0.3, calc(100vw / 800), 1.0));
	transform-origin: right bottom;
	height: auto;
	object-fit: contain;
	z-index: -1;
}

/* ==========================================
    詳細エリア (テキスト ＋ ボタンの並び)
========================================== */
.historyBody-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

/* ボタン左右反転 */
.historyBody-detail.is-reverse {
  flex-direction: row-reverse;
}

.historyBody-textContent {
  flex: 1;
  min-width: 0;
}

.historyBody-secTitle {
  font-size: 2em;
  font-weight: 500;
  line-height: 1.625em;
  letter-spacing: 6%;
  margin-bottom: 20px;
}

.historyBody-desc {
  line-height: 2;
  letter-spacing: 10%;
}

.historyBody-note {
  font-size: 0.875em;
	letter-spacing: 10%;
	padding-top: 60px;
  line-height: 1.5;
}

/* ==========================================
        第二期 サブ写真（横並び2枚）_start
========================================== */
.historyBody-subPhotos {
	display: flex;
	justify-content: flex-end; /* 右揃え */
	gap: 10px;
	margin-top: 50px;
	margin-right: max(-140px, calc(100% - 100vw + 20px));
}

.historyBody-subPhotos img {
	width: min(391px, calc(50% - 5px));
	max-width: 100%;
	aspect-ratio: 391 / 308;
	height: auto;
	object-fit: cover;
	flex-shrink: 1;
}
/* ==========================================
        第二期 サブ写真（横並び2枚）_end
========================================== */

/* ==========================================
   第6期 2セット目 レイアウト_start
========================================== */
/* 【上段】メイン写真 ＋ テキスト文章 */
.term06-secondBlock .term06-topContent {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.term06-secondBlock .term06-mainPhoto-left {
  max-width: 380px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.term06-secondBlock .term06-mainPhoto-left img {
  width: 100%;
  height: auto;
  display: block;
}

.term06-secondBlock .historyBody-textContent {
  flex: 1;
  text-align: left;
}

/* 【下段】サブ写真2枚 ＋ チャレンジボタン（PC表示） */
.term06-secondBlock .term06-bottomContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 左側の画像2枚のかたまり（突き出し指定） */
.term06-secondBlock .term06-subPhotos {
  display: flex;
  gap: 0;
  margin-left: -320px;/* 画面左側への突き出し */
  flex-shrink: 0;
}

/* サブ写真（1枚あたり最大400px程度へ拡大） */
.term06-secondBlock .term06-subPhotos img {
  width: 400px;
  max-width: 30vw;
  height: auto;
  aspect-ratio: 4 / 3;/* 縦横比を綺麗に保つ場合（適宜変更可） */
  object-fit: cover;
  display: block;
}

/* 右側のチャレンジボタン */
.term06-secondBlock .historyBody-buttonArea {
  margin-left: auto;
  flex-shrink: 0;
}

/* ==========================================
   第6期 2セット目 レイアウト_end
========================================== */

/* ==========================================
              ボタンエリア_start
========================================== */
.historyBody-buttonArea {
  width: 314px;
  flex-shrink: 0;
}

.challengeButton {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
}

.challengeButton:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ── ボタンベース ── */
.demo-stage {
  width: 100%;
}

.circle-wrap {
    /* ==========================================
          デフォルトのボタンスタイルを解除
  ========================================== */
  /* ★ 1. buttonタグのデフォルト枠線・背景・パディングを消去 */
  border: none;
  outline: none;
  background: transparent;
  padding: 0;

  /* ★ 2. 親要素のフォント（書体）・文字設定をそのまま強制継承させる */
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;

  /* ★ 3. OS固有のボタンデザイン・タップ時ハイライトを無効化 */
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;

  width: 100%;
  max-width: 314px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  cursor: pointer;
  overflow: visible;
}

.circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-red-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 12px 24px;
  overflow: hidden;
  position: relative;
  transition: background 0.4s ease;
  opacity: 0;
}

.circle-inner.filled {
  transition: opacity 0.15s;
  opacity: 1;
}

.circle-wrap:hover .circle-inner {
  background: var(--circle-hover);
}

.outline-svg {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  pointer-events: none;
  z-index: 3;
  transform: rotate(-90deg);
  overflow: visible;
}

/* ── ボタン内テキスト ── */
.c-label {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 15%;
  color: var(--primary-red-gray);
  position: relative;
  z-index: 2;
  padding: 3px 50px 2px;
  background-color: #ffffff;
  opacity: 0.8;
  margin-bottom: 10px;
  white-space: nowrap;
}

/* ── 年号エリア全体 ── */
.c-year {
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.c-year-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5em;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #ffffff;
  opacity: 0.9;
}

.c-year-sub {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5em;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.9;
  margin-left: 2px;
}

.c-year--continued {
  font-size: 1.5rem;
}

.c-text {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 15%;
  line-height: 2.25rem;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.c-more {
  font-size: 1rem;
  color: #ffffff;
  margin-top: 10px;
  position: relative;
  z-index: 2;
  letter-spacing: 0.07rem;
}

.c-more--toRight {
  font-size: 1.3rem;
}

/* ── fill bg (アニメーション背景) ── */
.fill-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary-red-gray);
  transform: scale(0);
  z-index: 1;
  transition: none;
}

.fill-bg.filling {
  transition: transform 0.3s 0.6s cubic-bezier(0.34, 1.15, 0.64, 1);
  transform: scale(1);
}

/* ── draw ring (SVG stroke アニメーション) ── */
.draw-ring {
  fill: none;
  stroke: #91807A;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 465;
  stroke-dashoffset: 465;
  transition: none;
}

.draw-ring.drawing {
  transition: stroke-dashoffset 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  stroke-dashoffset: 0;
}

/* ── glow arc (常時周回アニメーション) ── */
.glow-svg {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  pointer-events: none;
  z-index: 5;
  transform: rotate(-90deg);
  opacity: 0;
}

.glow-svg.spin {
  opacity: 1;
  animation: glowSpin 3s linear infinite;
}

.glow-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 55 415;
}

@keyframes glowSpin {
  to {
    transform: rotate(270deg);
  }
}
/* ─────────────────────────────────────────
      赤バージョン（.is-red）の追加定義
   ───────────────────────────────────────── */
/* ① 通常時の背景を「赤」に */
.circle-wrap.is-red .circle-inner {
  background: #c51118; 
}
/* ② ホバー時の背景を「さらに情熱的な明るい赤」に */
.circle-wrap.is-red:hover .circle-inner {
  background: #e31c25; 
}
/* ③ 白いラベル内の文字を「赤」に */
.circle-wrap.is-red .c-label {
  color: #c51118;
}
/* ④ アニメーションで広がる背景を「赤」に */
.circle-wrap.is-red .fill-bg {
  background: #c51118;
}
/* ⑤ SVGの輪郭描画線を「赤」に */
.circle-wrap.is-red .draw-ring {
  stroke: #e08f96;
}
/* 赤バージョンは細くみえる錯覚を調整 */
.circle-wrap.is-red .glow-arc {
  /* ★ 調整①：線の太さを「4px」➔「6px」（またはお好みで8px）に太くします */
  stroke-width: 5px; 
  
  /* ★ 調整②：白の不透明度を「32%」➔「75%」にグッと引き上げ、
     赤い背景に絶対に負けない、くっきりとした美しい光彩に変えます！ */
  stroke: rgba(255, 255, 255, 0.50); 
}
/* ==========================================
                ボタンエリア_end
========================================== */

/* ==========================================
  ① タブレット・中間幅対応 (1024px以下)_start
  ※テキストとボタンの縦並び化のみ先行して適用
========================================== */
@media screen and (max-width: 1024px) {
  .historyBody-detail {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

	.historyBody-detail.is-reverse {
    flex-direction: column;
		/* 1024px以下の縦並び設定に戻す */
  }

  .historyBody-textContent {
    max-width: 100%;
  }

  .historyBody-buttonArea {
    width: 280px;
    max-width: 100%;
    flex-shrink: 1;
  }
   /* 3. 上に重ねる小画像（サブ） */
  .term03-overlapPhoto img.overlap-sub {
    transform: translate(-40px, -10px);
  }
}
/* ==========================================
  ① タブレット・中間幅対応 (1024px以下)_end
  ※テキストとボタンの縦並び化のみ先行して適用
========================================== */

/* ------------------------------------------
第六期2セット目 タブレット・スマホ表示_start
------------------------------------------ */
@media screen and (max-width: 1024px) {
  /* 上段エリアを縦並びへ変換 */
  .term06-secondBlock .term06-topContent {
    flex-direction: column;
    align-items: center;
    gap: 24px;
		margin-bottom: 40px;
  }

  .term06-secondBlock .term06-mainPhoto-left {
    margin-left: auto;
    margin-right: auto;
  }

  .term06-secondBlock .historyBody-textContent {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

	/* ★ 1024pxで下段エリアも上下に組み換え（縦並び） */
  .term06-secondBlock .term06-bottomContent {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .term06-secondBlock .term06-subPhotos {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  .term06-secondBlock .term06-subPhotos img {
    width: calc(50% - 10px);
    max-width: 360px;
  }

  .term06-secondBlock .historyBody-buttonArea {
    margin-left: auto;
    margin-right: auto;
  }
}
/* ------------------------------------------
第六期2セット目 タブレット・スマホ表示_end
------------------------------------------ */

/* ==========================================
    ② スマホ対応 (768px以下)_start
    ※1024pxの縦並び設定をベースに、全体レイアウトや文字サイズを縮小
========================================== */
@media screen and (max-width: 768px) {
  .historySection {
    display: block;
    padding: 20px 20px 80px;
    scroll-margin-top: 0;
  }

  /* ─────────────────────────────────────────────────
              イラストの位置制御（SP版）_start
  ───────────────────────────────────────────────── */
	.term01 .historyBgImg {
    top: 30px;
    right: 20px;
    left: auto;
    max-width: 186px;
  }

  .term02 .historyBgImg {
    top: 100px;
    right: 15px;
    left: auto;
    max-width: 260px;
  }

	.term03 .historyBgImg {
    top: 60px;
    right: 0;
    left: auto;
    max-width: 500px;
  }

  .term04 .historyBgImg {
    top: 0;
    right: -50px;
    left: auto;
    max-width: 600px;
  }

  	/* 第5期 */
	.term05 .historyBgImg {
		top: -70px;
		right: 500px;
		left: auto;
		max-width: 400px;
		opacity: 0.3;
		transform: scale(2.5);
		transform-origin: left top;
	}

	/* 第6期 SP版は反転なし */
	.term06 .historyBgImg {
		top: 0;
		right: 500px;
		left: auto;
		max-width: 400px;
		opacity: 0.3;
		transform: scale(2.5);
		transform-origin: left top;
	}
  /* ─────────────────────────────────────────────────
              イラストの位置制御（SP版）_end
  ───────────────────────────────────────────────── */

  .historyBody {
    margin-left: 60px;
    width: auto;
  }

  /* 点線の位置 */
  .historySection::before {
    left: 56px;
    top: 100px;
		bottom: 10px;
    z-index: 1;
  }

  .historyTimeline {
    max-width: 84px;
  }

  .historyTimeline-era {
    font-size: 0.8rem;
    transform: translateX(-8px);
  }

  .historyTimeline-year {
    font-size: 2.7em;
  }

  .historyBody-header {
    padding-top: 30px;
    margin-bottom: 20px;
  }

  .historyBody-sub {
    font-size: 1em;
    margin-bottom: 10px;
  }
  /* スマホ版のHISTORYの見出し ------------------------------------------------------●●●●●●●●●●●●*/
  .historyBody-title {
    font-size: 2em;
    margin-bottom: 2px;
  }

  .historyBody-en {
    font-size: 0.7em;
  }

	.historyBlock + .historyBlock {
    margin-top: 90px;
  }

  /* メイン写真 */
  .historyBody-mainPhoto {
    margin-left: -80px;
    width: calc(100% + 80px);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
  }

  .historyBody-mainPhoto img,
  .term06-secondBlock .term06-mainPhoto-left img,
  .term06-secondBlock .term06-subPhotos img {
    width: 100%;
    height: auto;
		min-width: min(369px, 100%);
    aspect-ratio: 369 / 207;
    object-fit: cover;
    display: block;
  }

		/* 2つ目以降のメイン写真の上に余白を作る */
	.historyBody-mainPhoto + .historyBody-detail + .historyBody-mainPhoto {
		margin-top: 90px;
	}

	/* 第3期 1セット目 メイン写真2枚重ね処理 */
	/* 1. コンテナ全体の設定 */
  .historyBody-mainPhoto.term03-overlapPhoto {
    position: relative;
    width: calc(100% + 20px);
    margin-left: 0;
    margin-right: -20px;
    padding-left: 50px;
    padding-bottom: 30px;
    box-sizing: border-box;
  }

  /* 2. メイン画像（ベース） */
  .term03-overlapPhoto img.overlap-base {
    width: 100%;
    max-width: 520px;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: 0;
  }

  /* 3. 上に重ねる小画像（サブ） */
  .term03-overlapPhoto img.overlap-sub {
    position: absolute;
    left: -10px;
    bottom: -10px;
		top: auto;
    width: 150px;
    max-width: 55vw;
    height: auto;
    min-width: 0;
    aspect-ratio: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
    z-index: 3;
    transform: translate(-40px, -10px);
  }

	/* 第5期1セット目 メイン写真2枚重ね */
  /* コンテナ全体の重ね順基準 */
  .term05-overlapPhoto {
    position: relative;
    z-index: 1;
  }

  /* メイン画像ベース */
  .term05-overlapPhoto .overlap-base {
    position: relative;
    width: 100%;
  }

  /* 重ねるサブ小画像 */
  .term05-overlapPhoto img.overlap-sub {
    position: absolute;
    top: -90px;
    right: -20px;
    left: auto;
    bottom: auto;
    margin: 0;
    /* ★ 最小120px〜画面幅に合わせて大きめに可変（最大220pxまで） */
    width: clamp(120px, 25vw, 220px);
    max-width: 45vw;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    z-index: 3;
  }

	/* 第五期2セット目メイン画像 */
	.historyBody-mainPhoto.term05-secondPhoto {
			margin-left: -60px;
			margin-right: -20px;
			width: calc(100% + 60px + 20px);
		}

	/* 第六期1セット目 */
  .historyBody-mainPhoto.term06-overlapPhoto {
    position: relative;
    width: calc(100% + 80px + 20px);
    margin-left: -80px;
    margin-right: -20px;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .historyBody-mainPhoto.term06-overlapPhoto .overlap-base {
    position: relative;
    width: 85%;
    height: 226px;
    min-width: 0;
    aspect-ratio: auto;
    display: block;
    z-index: 1;
  }

  .historyBody-mainPhoto.term06-overlapPhoto .overlap-sub {
    position: absolute;
    top: -30px;
    right: 0;
    left: auto;
    bottom: auto;
    margin: 0;
    width: 170px;
    max-width: 45vw;
    height: 140px;
    min-width: 0;
    object-fit: cover;
    object-position: center;
    z-index: 2;/* メイン画像の上に重ねる */
  }

	/* 反転を解除して「テキストが上・ボタンが下」を維持 */
	.historyBody-detail.is-reverse {
    flex-direction: column; /* 1024px以下の縦並び設定に戻す */
  }

  .historyBody-secTitle {
    font-size: 1.3em;
  }

	.historyBody-note {
		font-size: 0.78em;
		padding-top: 20px;
}

  /* スマホ版でのボタンサイズ（220pxにさらに縮小） */
  .historyBody-buttonArea {
    width: 220px;
    transform: translateX(-10px); /* スマホ版でのボタンをやや左にする */
  }

	.circle-inner {
		padding: 6px 12px 12px;
	}

  /* ボタン内テキストの微調整 */
  .c-year-num {
    font-size: 1.875em;
  }
  .c-year-sub {
    font-size: 1.125em;
  }

  .c-label {
    font-size: 0.85rem;
    padding: 2px 28px;
    margin-bottom: 6px;
  }

  .c-text {
    font-size: 1.2em;
    line-height: 1.5;
  }

  .c-more {
    font-size: 0.75rem;
    margin-top: 6px;
  }

  /* サブ写真 */
  .historyBody-subPhotos {
    justify-content: space-between;
    margin-top: 30px;
    margin-left: -80px;
    margin-right: -20px;
    width: auto;/* PCの幅制限を解除 */
    max-width: none;
    gap: 4px;
    position: relative;
    z-index: 2;
  }

  .historyBody-subPhotos img {
    width: calc(50% - 2px);
    max-width: none;
    height: auto;
    /* aspect-ratio: 391 / 308; */
  }

  /* ==========================================
	第6期 2セット目 SP版レイアウト
  ========================================== */
  /* 6-2 メイン写真 */
	.term06-secondBlock .term06-mainPhoto-left {
    margin-left: -80px;
    width: calc(100% + 80px);
    max-width: none;
    position: relative;
    z-index: 2;
  }

  /* 6-2 下段エリア */
  .term06-secondBlock .term06-bottomContent {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0;
  }

  /* 6-2 チャレンジボタン */
  .term06-secondBlock .historyBody-buttonArea {
    order: 1;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;/* 下のサブ写真との隙間 */
  }

  /* 6-2 サブ写真2枚 */
  .term06-secondBlock .term06-subPhotos {
    display: flex;
    gap: 4px;
    width: calc(100% + 20px);
		min-height: 130px;
    margin-left: 0;
    margin-right: 0;
  }

  .term06-secondBlock .term06-subPhotos img {
    width: calc(50% - 2px);
		min-width: 0;
    max-width: none;
  }
}
/* ==========================================
    ② スマホ対応 (768px以下)_end
    ※1024pxの縦並び設定をベースに、全体レイアウトや文字サイズを縮小
========================================== */

/* ==========================================================
  第6期の縦線を下のピンク背景（フィナーレ）まで引き延ばす設定_start
   ========================================================== */
/* PC表示時：第6期の線をマイナス方向に伸ばしてピンク地に届かせます */
.historySection.term06 .timeline-line-wrapper {
  bottom: -60px; /* ★ -40px 〜 -80px など数値で深さを自由調整OK */
}

/* スマホ表示時（768px以下）：スマホの余白に合わせて微調整 */
@media screen and (max-width: 768px) {
  .historySection.term06 .timeline-line-wrapper {
    bottom: -40px;
  }
}
/* ==========================================================
  第6期の縦線を下のピンク背景（フィナーレ）まで引き延ばす設定_end
   ========================================================== */

/* ==========================================
    沿革 期ごとのモーダル全体（オーバーレイ）_start
========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── モーダルコンテンツボックス ── */
.modal-box {
  background: var(--primary-white, #ffffff);
  max-width: 800px;
  width: 100%;
  height: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 100px;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-top: 1px solid var(--primary-light-brown);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

/* 1. 英語サブタイトル */
.modal-en {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.5em;
  letter-spacing: 16%;
  color: var(--primary-light-brown);
  margin-bottom: 10px;
}

/* 2. 年号エリア全体 */
.modal-year {
  line-height: 1;
  margin-bottom: 40px;
  display: flex;
  align-items: baseline;
}

.modal-year-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 4em;
  letter-spacing: 7%;
  color: var(--primary-black);
}

.modal-year-sub {
  font-family: "Zen Old Mincho", serif;
  font-size: 2.25em;
  color: var(--primary-black);
  margin-left: 0.1em;
}

/* 3. モーダルタイトル */
.modal-title {
  color: var(--primary-black);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.875em;
  letter-spacing: 0.07em;
  margin-bottom: 1.25em;
}

/* 4. 本文 */
.modal-body {
  font-size: 1em;
  font-weight: 300;
  color: var(--primary-black-light);
  line-height: 2.5em;
  letter-spacing: 8%;
  border-top: 1px solid var(--primary-light-brown);
  padding-top: 40px;
}

.modal-body p {
  margin: 0;
}

/* 5. 閉じるボタン */
.modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25em;
  font-weight: 300;
  color: var(--primary-light-brown);
  transition: opacity 0.3s;
}

.modal-close:hover {
  opacity: 0.7;
}

/* モーダル用スマホ調整 (768px以下) */
@media screen and (max-width: 768px) {
  .modal-box {
    height: auto;
    max-height: 85vh;
    padding: 50px 20px;
  }

  .modal-en {
    margin-bottom: 10px;
  }

  .modal-year {
    margin-bottom: 30px;
  }

  .modal-year-num {
    font-size: 3em;
  }

  .modal-year-sub {
    font-size: 1.7em;
  }

  .modal-title {
    font-size: 1.3em;
    margin-bottom: 1em;
  }

	.modal-body {
		line-height: 1.8em;
		padding-top: 20px;
	}

  .modal-close {
    top: 16px;
    right: 20px;
    font-size: 1.65em;
  }
}
/* ==========================================
    沿革 期ごとのモーダル全体（オーバーレイ）_end
========================================== */

/* ====================================================================================
                                  HISTORYコンテンツ_end
==================================================================================== */

/* ====================================================================================
                            西川コミュニケーションズバナー_start
==================================================================================== */
.nCom__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;      /* PC時は美しい16:9の比率を維持します */
  min-height: 400px;
  max-height: 520px;
  overflow: hidden;
  margin-bottom: 240px;
  z-index: 5;
}

/* 背景画像の配置制御 */
.nCom__banner--bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.nCom__banner--bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文字コンテンツ（右寄せのレイアウト） */
.nCom__banner--content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* 縦方向は中央に配置 */
  align-items: flex-end;     /* 横方向は「右側」に寄せる */
  padding: 40px;
  color: var(--primary-white);
}

/* メイン見出し */
.nCom__banner--title {
  font-family: var(--global-fonts); /* サイト共通の美しい和文明朝体 */
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  width: 50%;                /* 文字が左の写真エリアにはみ出さないよう幅を50%に制限 */
  text-align: left;          /* ブロックは右寄せ、文章は左揃え */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* 背景に溶けないための文字シャドウ */
}

/* 説明文 */
.nCom__banner--desc {
  font-family: var(--global-fonts);
  font-size: 1em;
  line-height: 2;
  letter-spacing: 0.08em;
  width: 50%;                /* 見出しと同じく右半分に収めます */
  text-align: left;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ─────────────────────────────────────────────────
  スマホ対応（1048px以下）：「赤いベール透過」スマホ同期仕様
───────────────────────────────────────────────── */
@media screen and (max-width: 1048px) {
  
  .nCom__banner {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 320px;
    max-height: 420px;
    position: relative;
    margin-bottom: 120px;
  }

  .nCom__banner--bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;               /* 背景画像エリア全体の基準 */
  }

  .nCom__banner--bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ★ これを追加！これでタイピングしている美しい手元がスマホ画面のベストな位置に吸い付きます */
    object-position: 70% center; 
    
  }

  /* ★通常画像（最下層・奥） */
  .banner-img-base {
    z-index: 1;
  }

  /* ★白い文字（中間層） */
  .nCom__banner .nCom__banner--content {
    position: absolute;
    inset: 0;
    z-index: 3;               /* ★黒マスクの上、かつ赤いカバーよりは「奥」に配置 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px ; 
    box-sizing: border-box;
    color: var(--primary-white);
  }

  /* ★赤いカバー画像（最上層・手前） */
  .banner-img-overlay {
    z-index: 4;               /* ★スマホ時も一番手前に配置！すべてを上から覆い隠します */
  }

  .nCom__banner .nCom__banner--title {
    width: 100%;              
    text-align: left;          /* ブロックは右寄せ、文章の並びは左揃え（PC版と共通） */
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }
  .nCom__banner .nCom__banner--desc {
    width: 100%;              
    text-align: left;          /* 文章の並びは左揃え */
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }
}

/* ────────────────────────────────────────────
    PC用：赤いベールを文字の上から透過させる重ね順設定
   ──────────────────────────────────────────── */
/* 2. 通常画像（最下層・奥） */
.banner-img-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;                 /* ★最下層に配置 */
}

/* 3. 白い文字（中間層） */
.nCom__banner--content {
  position: absolute;
  inset: 0;
  z-index: 2;                 /* ★通常画像の上に配置。ただし赤いカバーよりは「奥」に隠します */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 40px 60px 40px 0;
  color: var(--primary-white);
  box-sizing: border-box;
}

/* 4. 赤いカバー画像（最上層・手前） */
.banner-img-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;                 /* ★一番手前に配置！これで文字も写真も上から完全に覆い隠します */
  will-change: opacity;
}
/* ====================================================================================
                            西川コミュニケーションズバナー_end
==================================================================================== */

/* ====================================================================================
                                LPフィナーレ_start
==================================================================================== */
/* ─────────────────────────────────────────
    1. セクション全体・インナー（見本の大枠と完全一致）
   ───────────────────────────────────────── */
.visionSection {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background-image: url(../img/vision_Back_img.jpg);
  background-size: cover;
  background-position: center;
  z-index: 10;
}

/* インナー幅をHISTORYの1200px最大幅に完全同期し、左右のツラを完璧に揃えます */
.visionSection__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 120px 40px; /* 見本「padding: 20px 80px 180px 40px;」の左右と完全同期 */
  box-sizing: border-box;
  position: relative;
}

/* ─────────────────────────────────────────
    2. 上部レイアウト（見本の「.historySection」同様の2カラム）
   ───────────────────────────────────────── */
.visionSection__top {
  display: flex;
  gap: 30px; /* 左カラム（年号）と右カラム（ボディ）の間隔を見本と完全一致 */
  width: 100%;
  position: relative;
  z-index: 2;
  padding-right: 40px;
  box-sizing: border-box;
}

/* ── 【左カラム】：タイムライン年号（見本の「.historyTimeline」と完全同期） ── */
.visionSection .visionSection__timeline {
  position: relative;
  z-index: 2;
  width: 164px; /* 見本のタイムライン幅「164px」に完全に固定 */
  flex-shrink: 0;
  text-align: center;
  margin-top: 84px; 
}

.visionSection .timeline-line-wrapper::before {
  display: none;
}

/* 「令和8年」のテキスト定義（見本の「.historyTimeline-era」をマッピング） */
.visionSection .visionSection__era-sub {
  display: block;
  text-align: center;
  letter-spacing: 0.16em; /* 見本の「letter-spacing: 16%」と同期 */
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--primary-black);
  transform: translateX(-10px);
}

/* ── 【右カラム】：コンテンツ（見本の「.historyBody」と完全同期） ── */
.visionSection__body {
  flex-grow: 1;
  z-index: 2;
}

/* 右カラム内でメッセージ（左）と冊子（右）を並べるフレックスコンテナ */
.visionSection__mainContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-top: 100px; /* 見本「.historyBody-header」の上部100pxの美しい余白と完全同期 */
  margin-bottom: 60px;
}

/* メッセージテキストエリア */
.visionSection__textContent {
  flex: 1;
  max-width: 600px; /* 文字が横に広がりすぎないように美しい幅で制限 */
}

/* 「そして創業120年。〜」メイン見出し */
.visionSection .visionSection__title {
  font-family: var(--global-fonts);
  font-size: 2rem; /* スマホやPCでのバランスを保つ、カンプ同様の上品で格調高いサイズ */
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--primary-black);
  font-feature-settings: "palt"; /* 文字詰めを適用して最高峰の文字組みへ */
}

/* NICO VISION BOOK 冊子画像エリア */
.visionSection__bookArea {
  width: 40%;
  max-width: 456px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

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

/* ─────────────────────────────────────────
    3. 中央エリア（動画プレイヤー・2カラムの外）
   ───────────────────────────────────────── */
.visionSection__movieArea {

  /* ─────────────────────────────────────────
            ブラウザデフォルトの設定解除
   ───────────────────────────────────────── */
  /* ★ 1. divタグと同じ「ブロック要素」にして幅100%・マージンを正常に効かせる（最重要） */
  display: block;

  /* ★ 2. buttonタグ固有の枠線・背景色・余白を完全リセット */
  border: none;
  outline: none;
  background: transparent;
  padding: 0;

  /* ★ 3. 親要素のフォント・文字設定をそのまま継承させる */
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  text-align: inherit;

  /* ★ 4. OS固有のボタンデザイン・スマホタップ時の灰色ハイライトを無効化 */
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;

  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 60px;
  margin-bottom: 260px; /* 動画下と次の200年へのアキ */
}

.visionSection__movieContainer {
  width: 100%;
  max-width: 1131px; /* カンプの美しい黄金比率をキープ */
  margin: 0 auto;
}

/* アスペクト比16:9を絶対に崩さないプロのレスポンシブビデオコンテナ */
.visionSection__movieWrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* padding-top ではなく aspect-ratio を使用 */
  overflow: hidden;
}

.visionSection__movieWrapper iframe,
.visionSection__movieWrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}

.visionSection__moviePlaceholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  letter-spacing: 0.17em;
  color: #685c58;
  z-index: 1;
}

/* ==========================================
          動画モーダル専用スタイル
========================================== */
.video-modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* 閉じている時はクリックを無効化 */
  background-color: rgba(10, 9, 8, 0.85);
  width: 100%;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  z-index: 999;
  /* フワッと出るアニメーション設定 */
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* クリックを有効化 */
}

.video-modal-overlay {
  align-items: center;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.video-modal-content {
  margin: min(15%, 30px);
  max-width: 100%;
  max-height: 100%;
  position: relative;
  width: calc(177.77dvh - 300px);
  
  /* 少し下から上に浮き上がる動きを追加 */
  transform: translateY(20px);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 開いた時に元の位置（translateY(0)）へスライド */
.video-modal.is-open .video-modal-content {
  transform: translateY(0);
}

.video-modal-close {
  /* デフォルトスタイルの消去 */
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;

  /* 位置とサイズ指定 */
  position: absolute;
  right: 0;
  top: -40px;
  z-index: 2001;
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.video-modal-close:hover {
  transform: scale(1.2);
}

/* ボタン内の画像指定 */
.video-modal-close img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* クリックやフォーカスをbutton本体に集中させる */
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
  background-color: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ★サムネイル画像（dmy_movie.png）のスタイリング */
.visionSection__movieWrapper.modal-trigger {
  cursor: pointer;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.visionSection__movieThumb {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* ホバー時に画像をほんのり拡大 */
.visionSection__movieWrapper.modal-trigger:hover .visionSection__movieThumb {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* ─────────────────────────────────────────
   4. 下部エリア・フッター（次の200年へ ＆ ロゴ）
   ───────────────────────────────────────── */
.visionSection__bottom {
  text-align: center;
  margin-bottom: 120px;
  width: 100%; /* 幅いっぱいに広げてテキストを完全にセンタリング */
}

.visionSection__futureTitle {
  font-family: var(--global-fonts);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--primary-black);
  margin-bottom: 16px;
}

.visionSection__futureSub {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  color: var(--primary-red-gray);
  margin: 0;
}

.visionSection__logo {
  display: block;
  width: 135px;
  height: auto;
  margin: 200px auto 0 auto;
}

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


/* ==========================================================================
          5. スマホ対応（1024px以下）：見本のSPレイアウトと完全同期
   ========================================================================== */
@media screen and (max-width: 1024px) {

  .visionSection {
    background-position: 40% center;
  }
  
  .visionSection__inner {
    padding: 0 20px 80px 20px; /* スマホ時の外側余白を20pxに統一 */
  }

  /* 縦の点線のスマホ位置を見本と完全に合わせます */
  .visionSection .timeline-line-wrapper {
    left: 56px;
    top: 100px;
    bottom: 10px;
  }

  /* 上部2カラムを解除して縦並びへ */
  .visionSection__top {
    display: block;
    margin-bottom: 40px;
    padding-right: 0;
  }

  /* 左カラム（年号）をスマホ見本と完全同期 */
  .visionSection .visionSection__timeline {
    max-width: 84px;
    margin-left: 0; /* 見本同様に左にほんのり逃がします */
    margin-bottom: 15px;
    margin-top: 20px; 
  }

  /* 右カラム（ボディ）の左マージンを見本の「60px」と完全同期 */
  .visionSection__body {
    margin-left: 0px;
    width: 100%;
  }

  /* ★【プロのCSSマジック】スマホ時はフレックスの方向を逆転（column-reverse）させ、
     「① 冊子画像 ➔ ② メッセージ」というSPカンプ（SP.png）通りの極上並び順に自動変換します！ */
  .visionSection__mainContent {
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
    gap: 0;
    padding-top: 0; /* 上部の余白をスマホ用に最適化 */
    margin-bottom: 60px;
  }

  /* メッセージエリア */
  .visionSection__textContent {
    text-align: center;
    width: 100%;
  }

  /* スマホ版メッセージ文字サイズ最適化 */
  .visionSection .visionSection__title {
    font-size: 1.6rem; 
    line-height: 1.6;
    letter-spacing: 0.12em;
    text-indent: 0.12em;         /* ★ 12%分の文字間隔ズレを完璧に相殺！ */
    text-align: center; 
  }

  .visionSection .visionSection__era-sub {
    font-size: 0.8rem;
    transform: translateX(-8px);
  }

  /* 冊子画像エリアのスマホ最適化 */
  .visionSection__bookArea {
    width: 100%;
    max-width: 300px; /* スマホでも主張しすぎない上品なサイズ感 */
    display: flex;
    justify-content: center; /* 左側のタイムライン軸に寄せる */
    margin-bottom: 0;
    margin-top: -50px;
  }
  /* 動画エリアのスマホマージン */
  .visionSection__movieArea {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 60px;
  }

	/* 動画モーダル */
	.video-modal-content {
    margin: 20px 15px;
    width: calc(100vw - 30px);
  }

  /* 下部エリアのスマホサイズ */
  .visionSection__bottom {
    margin-bottom: 80px;
  }

  .visionSection__futureTitle {
    font-size: 1.875rem;
    letter-spacing: 0.2em;
  }

  .visionSection__futureSub {
    font-size: 1.25rem;
  }

  .visionSection__logo {
    width: 75px;
    height: auto;
    margin: 100px auto 0 auto;
  }
  
}

/* ====================================================================================
                                LPフィナーレ_end
==================================================================================== */

