/* ============================================================
   history.css - ヒストリー (company/history.html)
   Figma node 2750:2819
   ------------------------------------------------------------
   Color tokens
     --hist-dark : #0c2137
     --hist-gold : #a3986f
     --hist-white: #ffffff
   Font stacks
     serif-b  : A-OTF Shuei Mincho Pro Bold → Shippori Mincho 700 / Yu Mincho
     serif-m  : A-OTF Shuei Mincho Pro Medium → Shippori Mincho 500 / Yu Mincho
     hiragino : Hiragino Mincho Pro → serif hero
     impact   : Impact / Haettenschweiler
   ============================================================ */

:root {
  --hist-dark: #0c2137;
  --hist-gold: #a3986f;
}

/* ページ全体の横はみ出し防止（html+body 両方で iOS Safari 対応） */
html, body {
  overflow-x: clip;
}
.page-main {
  overflow-x: hidden;
}

/* 改行ユーティリティ */
.br-sp { display: none; }
.nowrap { white-space: nowrap; }
@media (max-width: 767px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }
}

/* shared serif stacks */
.hist-hero__title,
.hist-intro__quote {
  font-family: "Hiragino Mincho Pro", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho",
               "Shippori Mincho", serif;
}

.hist-episode__title,
.hist-divider__title,
.hist-cta__title,
.hist-cert__title,
.hist-cert__name,
.hist-episode__footnote {
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho",
               "Hiragino Mincho Pro", "Hiragino Mincho ProN", serif;
  font-weight: 700;
}

.hist-episode__title--serif-m,
.hist-episode__footnote {
  font-weight: 500;
}

.hist-episode__year,
.hist-hero__mega {
  font-family: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
}

/* ============================================================
   Hero (Figma 2750:2840) — 1440×718, #0c2137 bg + overlay image
   ============================================================ */
.hist-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  background-color: var(--hist-dark);
  overflow: hidden;
  color: #ffffff;
}

@media (max-width: 1023px) {
  .hist-hero { height: 100vh; min-height: 500px; max-height: 800px; }
}

/* ── 背景スライド群（積み上げ型：表示したら消さない） ── */
.hist-hero__slides {
  position: absolute;
  inset: 0;
}

.hist-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: opacity;
}
/* 表示済みスライド: 一度表示したら opacity:1 を維持。
   DOM順で後のスライドが上に重なるので常に最新が見える */
.hist-hero__slide--shown {
  opacity: 1;
}

.hist-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hist-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 33, 55, 0.5) 0%,
    rgba(12, 33, 55, 0.3) 40%,
    rgba(12, 33, 55, 0.6) 100%
  );
  z-index: 1;
}

/* ── コンテンツ ── */
.hist-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* "History" ラベル */
.hist-hero__era-label {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  color: var(--hist-gold);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hist-hero--counting .hist-hero__era-label {
  opacity: 1;
  transform: translateY(0);
}

/* 年代カウンター */
.hist-hero__year-counter {
  margin: 0 0 24px;
  line-height: 1;
}
.hist-hero__year-num {
  font-family: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  font-size: clamp(100px, 18vw, 220px);
  color: #ffffff;
  letter-spacing: -0.02em;
  display: inline-block;
  /* 数字幅を固定して揺れを防止 */
  font-variant-numeric: tabular-nums;
}

/* タイトル・リード：カウント終了後にフェードイン */
.hist-hero__title {
  font-family: "Hiragino Mincho Pro", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.7;
  color: #ffffff;
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.hist-hero__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.67vw, 24px);
  line-height: 2.0;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin: 0;
  max-width: 760px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

/* カウント完了状態 */
.hist-hero--done .hist-hero__title,
.hist-hero--done .hist-hero__lead {
  opacity: 1;
  transform: translateY(0);
}

/* マイルストーン注釈（カウント中に表示） */
.hist-hero__milestone {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hist-hero__milestone--visible {
  opacity: 1;
}

/* big 100th mega number — decorative background */
.hist-hero__mega {
  position: absolute;
  bottom: 40px;
  right: 5%;
  color: rgba(255, 255, 255, 0.04);
  font-weight: 400;
  letter-spacing: -7px;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease 0.8s;
}
.hist-hero--done .hist-hero__mega {
  opacity: 1;
}
.hist-hero__mega-num { font-size: clamp(180px, 25vw, 350px); }
.hist-hero__mega-th  { font-size: clamp(64px, 9vw, 128px); }

@media (max-width: 767px) {
  .hist-hero__mega { display: none; }
}

.hist-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}
.hist-hero--done .hist-hero__scroll {
  opacity: 1;
}
.hist-hero--counting .hist-hero__scroll {
  opacity: 0;
}
@media (max-width: 1023px) { .hist-hero__scroll { display: none; } }

/* ============================================================
   HISTORY ブリッジセクション — 大見出し + 背景写真
   ============================================================ */
.hist-bridge {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景画像: パララックス用に上下に余裕を持たせる */
.hist-bridge__bg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
  object-position: center 40%;
  filter: sepia(0.3) contrast(1.1);
  will-change: transform;
}

.hist-bridge__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 33, 55, 0.55) 0%,
    rgba(12, 33, 55, 0.35) 50%,
    rgba(12, 33, 55, 0.65) 100%
  );
}

/* テキスト: パララックスで背景より遅く動く */
.hist-bridge__content {
  position: relative;
  z-index: 2;
  text-align: center;
  will-change: transform, opacity;
}

.hist-bridge__mega {
  font-family: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  font-size: clamp(80px, 15vw, 200px);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  overflow: hidden;
}

/* 各文字: 初期状態は下に隠れ、透明 */
.hist-bridge__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(45deg);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hist-bridge--visible .hist-bridge__char {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* 1文字ずつ遅延 */
.hist-bridge__char:nth-child(1) { transition-delay: 0.1s; }
.hist-bridge__char:nth-child(2) { transition-delay: 0.18s; }
.hist-bridge__char:nth-child(3) { transition-delay: 0.26s; }
.hist-bridge__char:nth-child(4) { transition-delay: 0.34s; }
.hist-bridge__char:nth-child(5) { transition-delay: 0.42s; }
.hist-bridge__char:nth-child(6) { transition-delay: 0.50s; }
.hist-bridge__char:nth-child(7) { transition-delay: 0.58s; }

/* ゴールドの水平線: 文字出現後に左から伸びる */
.hist-bridge__line {
  width: 0;
  height: 1px;
  background: var(--hist-gold);
  margin: 40px auto 0;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s;
}
.hist-bridge--visible .hist-bridge__line {
  width: min(320px, 60%);
}

/* サブテキスト: 線の展開後にフェードイン */
.hist-bridge__sub {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.25em;
  color: var(--hist-gold);
  margin: 36px 0 0;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease 1.2s, transform 0.9s ease 1.2s;
}
.hist-bridge--visible .hist-bridge__sub {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hist-bridge { height: 60vh; min-height: 350px; }
  .hist-bridge__sub { letter-spacing: 0.15em; margin-top: 14px; }
}

/* ============================================================
   歩みセクション (Figma 3130:2497) — スクロール駆動パララックス
   ============================================================ */
.hist-story {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 180px 0 160px;
}

.hist-story__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(114, 107, 79, 0.12) 0%,
    rgba(114, 107, 79, 0.06) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.hist-story__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
}

@media (max-width: 1023px) {
  .hist-story__inner { padding: 0 24px; }
}

.hist-story__heading {
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho",
               "Hiragino Mincho Pro", "Hiragino Mincho ProN", serif;
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1.4;
  color: #000000;
  margin: 0 0 80px;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hist-story__heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hist-story__text {
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho",
               "Hiragino Mincho Pro", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: clamp(16px, 1.67vw, 24px);
  line-height: 2.4;
  color: #000000;
  max-width: 800px;
  margin: 0 auto 100px;
  text-align: justify;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}
.hist-story__text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hist-story__text p {
  margin: 0 0 1.6em;
}
.hist-story__text p:last-child {
  margin-bottom: 0;
}

/* 写真コラージュ: 7枚をオーバーラップ配置（上段3枚 + 下段4枚） */
.hist-story__photos {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 1100px;
}

.hist-story__photo {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hist-story__photo.is-visible {
  opacity: 1;
}

.hist-story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* デスクトップ: 7枚を絶対配置でコラージュ風に */
@media (min-width: 1024px) {
  .hist-story__photo {
    position: absolute;
  }
  /* 上段 3枚 */
  .hist-story__photo--1 {
    left: 0; top: 0;
    width: 46%; height: 340px;
    transform: translateX(-60px);
  }
  .hist-story__photo--2 {
    right: 0; top: -20px;
    width: 48%; height: 380px;
    transform: translateX(60px);
  }
  .hist-story__photo--3 {
    left: 22%; top: 280px;
    width: 40%; height: 300px;
    transform: translateY(50px);
    z-index: 2;
  }
  /* 下段 4枚 */
  .hist-story__photo--4 {
    left: 0; top: 560px;
    width: 28%; height: 240px;
    transform: translateX(-40px);
  }
  .hist-story__photo--5 {
    left: 30%; top: 620px;
    width: 26%; height: 220px;
    transform: translateY(40px);
    z-index: 2;
  }
  .hist-story__photo--6 {
    right: 16%; top: 540px;
    width: 28%; height: 260px;
    transform: translateX(40px);
  }
  .hist-story__photo--7 {
    right: 0; top: 680px;
    width: 24%; height: 220px;
    transform: translateY(50px);
  }

  .hist-story__photo--1.is-visible { transform: translateX(0); }
  .hist-story__photo--2.is-visible { transform: translateX(0); }
  .hist-story__photo--3.is-visible { transform: translateY(0); }
  .hist-story__photo--4.is-visible { transform: translateX(0); }
  .hist-story__photo--5.is-visible { transform: translateY(0); }
  .hist-story__photo--6.is-visible { transform: translateX(0); }
  .hist-story__photo--7.is-visible { transform: translateY(0); }
}

/* タブレット+モバイル: フロー配置 */
@media (max-width: 1023px) {
  .hist-story__photos {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hist-story__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    transform: translateY(40px);
  }
  .hist-story__photo.is-visible { transform: translateY(0); }
  /* 上段の1枚目だけワイドに */
  .hist-story__photo--1 {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .hist-story__photo--1 { transition-delay: 0s; }
  .hist-story__photo--2 { transition-delay: 0.08s; }
  .hist-story__photo--3 { transition-delay: 0.16s; }
  .hist-story__photo--4 { transition-delay: 0.24s; }
  .hist-story__photo--5 { transition-delay: 0.32s; }
  .hist-story__photo--6 { transition-delay: 0.40s; }
  .hist-story__photo--7 { transition-delay: 0.48s; }
}

@media (max-width: 480px) {
  .hist-story { padding: 80px 0; }
  .hist-story__heading { font-size: 26px; margin-bottom: 36px; }
  .hist-story__text { font-size: 15px; line-height: 2.2; margin-bottom: 48px; text-align: left; letter-spacing: 0.02em; }
}

/* ============================================================
   Intro (Figma 2750:2849) — white bg, 1440×477
   Quote with 「」 marks + 3 overlapping circles (gold)
   ============================================================ */
.hist-intro {
  background-color: #ffffff;
  padding: 80px 0;
}
@media (min-width: 1024px) {
  .hist-intro { padding: 138px 0 65px; }
}

.hist-intro__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hist-intro__inner {
    grid-template-columns: minmax(0, 746px) minmax(0, 1fr);
    padding: 0 85px;
  }
}

.hist-intro__text {
  position: relative;
  padding-left: 60px;
}
@media (max-width: 1023px) {
  .hist-intro__text { padding-left: 40px; }
}

.hist-intro__quote {
  position: relative;
  padding-left: 1.2em;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.6;
  color: #000000;
  margin: 0 0 40px;
}

/* 引用符 "「 」" はテキストとしてインライン表示（別ノード管理はやめた） */

.hist-intro__source {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  margin: 0;
}
.hist-intro__source a {
  color: #0962AB;
  text-decoration: underline;
}

/* 3 gold circles (overlapping) */
.hist-intro__circles {
  position: relative;
  width: 100%;
  height: 460px;
  max-width: 490px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .hist-intro__circles { height: 380px; max-width: 360px; }
}

.hist-intro__circle {
  position: absolute;
  border-radius: 50%;
  /* Figma: ダークブルーグレー + 透過で重なり領域を濃く表現 */
  background-color: rgba(28, 50, 75, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 34px;
}

.hist-intro__circle-text {
  position: relative; /* テキストは前面で描画 */
  z-index: 1;
  margin: 0;
}

/* 3-circle Venn: top centered, bottom-left / bottom-right overlap in the middle
   Figma 2750:3078/3079/3080 — 各円 292x292 / container 484x423 */
.hist-intro__circle--1 { width: 60%; aspect-ratio: 1; top: 0;    left: 20%; }
.hist-intro__circle--2 { width: 60%; aspect-ratio: 1; top: 28%;  left: 0;  }
.hist-intro__circle--3 { width: 60%; aspect-ratio: 1; top: 28%;  right: 0; }

/* Figma のテキスト配置: 各円で重なり領域を避ける微細なオフセット */
.hist-intro__circle--1 .hist-intro__circle-text { transform: translateY(-6%); }
.hist-intro__circle--2 .hist-intro__circle-text { transform: translate(-3%, 2%); }
.hist-intro__circle--3 .hist-intro__circle-text { transform: translate(5%, 5%); }

/* ============================================================
   Episode block (Figma 2750:3081 / 3102 / 3121 / 3140)
   Dark bg, left 10px gold border, two-column (text + image)
   ============================================================ */
.hist-episode {
  background-color: var(--hist-dark);
  color: #ffffff;
  border-left: 10px solid var(--hist-gold);
  overflow: hidden;
}
.hist-episode + .hist-episode { border-top: 1px solid rgba(163, 152, 111, 0.15); }

.hist-episode__inner {
  max-width: 1430px;
  margin: 0 auto;
  padding: 160px 60px 140px 108px;
}
@media (max-width: 1023px) {
  .hist-episode__inner { padding: 80px 24px 72px 40px; }
}

.hist-episode__head {
  margin-bottom: 64px;
}

.hist-episode__label {
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: 25px;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hist-episode__year {
  font-weight: 400;
  font-size: 60px;
  color: #ffffff;
  line-height: 1;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}

.hist-episode__title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.4;
  color: var(--hist-gold);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.hist-episode__title--wide {
  font-size: clamp(30px, 3.2vw, 44px);
}

.hist-episode__era {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

/* Two-column grid: events (left w/ vertical line) + media image (right) */
.hist-episode__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .hist-episode__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
    gap: 80px;
  }
}

/* vertical timeline on the left */
.hist-episode__events {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 40px;
  border-left: 3px solid #ffffff;
}

.hist-episode__event {
  position: relative;
  padding-bottom: 72px;
}
.hist-episode__event:last-child { padding-bottom: 0; }

.hist-episode__event::before {
  content: "";
  position: absolute;
  left: -54px;
  top: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 5px solid var(--hist-dark);
  box-shadow: 0 0 0 2px #ffffff;
}

.hist-episode__event-date {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 25px;
  color: var(--hist-gold);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.hist-episode__event-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 2.0;
  color: #ffffff;
  margin: 0;
}

.hist-episode__media {
  width: 100%;
  aspect-ratio: 600 / 445;
  background-color: rgba(255,255,255,0.04);
  overflow: hidden;
}

.hist-episode__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hist-episode__footnote {
  margin: 120px auto 0;
  max-width: 720px;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 2.4;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  letter-spacing: 0.04em;
}

.hist-episode__head--center {
  text-align: center;
  margin-bottom: 24px;
}
.hist-episode__head--center .hist-episode__year {
  margin-bottom: 24px;
}

.hist-episode__lead-center {
  max-width: 700px;
  margin: 0 auto 100px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* ============================================================
   Episode 5 — 4 事業カード (Figma 3130:1805)
   ============================================================ */
.hist-biz-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 56px auto 0;
  counter-reset: biz-card;
}

.hist-biz-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f5 100%);
  color: #000000;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hist-biz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ── カードヘッダー: ナンバー + アイコン ── */
.hist-biz-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 0;
}

.hist-biz-card__num {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--hist-gold);
}

/* ── タイトル ── */
.hist-biz-card__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #0c2137;
  margin: 20px 28px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--hist-gold);
  letter-spacing: 0.04em;
}

/* ── 説明文 ── */
.hist-biz-card__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: #444444;
  margin: 0;
  padding: 20px 28px 0;
  flex-grow: 1;
}

/* ── 拠点リスト ── */
.hist-biz-card__sites {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: auto 0 0;
  padding: 20px 28px 28px;
}

.hist-biz-card__site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.hist-biz-card__site:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hist-biz-card__site-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hist-gold);
  flex-shrink: 0;
}

.hist-biz-card__site-name {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}

.hist-biz-card__site-cert {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #888888;
  background: rgba(163, 152, 111, 0.1);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* ── タブレット: 2×2 ── */
@media (max-width: 1023px) {
  .hist-biz-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hist-biz-card {
    min-height: 340px;
  }
}

/* ── モバイル: 1カラム ── */
@media (max-width: 639px) {
  .hist-biz-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hist-biz-card {
    min-height: auto;
    flex-direction: column;
  }
  .hist-biz-card__head {
    padding: 20px 20px 0;
  }
  .hist-biz-card__title {
    margin: 12px 20px 0;
    padding-bottom: 12px;
    font-size: 17px;
  }
  .hist-biz-card__desc {
    padding: 14px 20px 0;
    font-size: 14px;
  }
  .hist-biz-card__sites {
    padding: 14px 20px 20px;
  }
  .hist-biz-card:hover {
    transform: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  }
}

/* ============================================================
   認証セクション — ダークBG、縦リスト、ゴールドアクセント
   ============================================================ */
.hist-cert {
  background-color: var(--hist-dark);
  color: #f4f4f4;
  padding: 160px 0 180px;
}

.hist-cert__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}
@media (max-width: 1023px) { .hist-cert__inner { padding: 0 24px; } }

/* ── ヘッダー ── */
.hist-cert__header {
  margin-bottom: 88px;
}

.hist-cert__eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hist-gold);
  margin: 0 0 20px;
}

.hist-cert__title {
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho",
               "Hiragino Mincho Pro", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.6;
  color: #f4f4f4;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.hist-cert__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ── リスト ── */
.hist-cert__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(163, 152, 111, 0.25);
}

.hist-cert__item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(163, 152, 111, 0.2);
  transition: background-color 0.3s ease;
}
.hist-cert__item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* ── ナンバー ── */
.hist-cert__num {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--hist-gold);
  flex-shrink: 0;
  min-width: 28px;
  padding-top: 6px;
  opacity: 0.7;
}

/* ── 本文エリア ── */
.hist-cert__body {
  flex: 1;
  min-width: 0;
}

.hist-cert__name {
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho",
               "Hiragino Mincho Pro", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  color: #f4f4f4;
  margin: 0 0 8px;
}

.hist-cert__link {
  color: var(--hist-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.3s ease;
}
.hist-cert__link:hover {
  color: #f4f4f4;
}

.hist-cert__date {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--hist-gold);
  margin: 0;
  opacity: 0.65;
}

.hide-sp { display: inline; }

/* ── タブレット + モバイル ── */
@media (max-width: 1023px) {
  .hist-cert { padding: 72px 0 80px; }
  .hist-cert__header { margin-bottom: 48px; }
  .hist-cert__lead { font-size: 15px; }
  .hist-cert__item { gap: 20px; padding: 28px 0; }
  .hist-cert__name { font-size: 17px; }
}

@media (max-width: 639px) {
  .hist-cert { padding: 56px 0 64px; }
  .hist-cert__header { margin-bottom: 36px; }
  .hist-cert__title { font-size: 20px; }
  .hist-cert__eyebrow { font-size: 12px; margin-bottom: 14px; }
  .hist-cert__lead { font-size: 14px; }
  .hist-cert__item { gap: 16px; padding: 24px 0; }
  .hist-cert__num { font-size: 12px; min-width: 24px; padding-top: 4px; }
  .hist-cert__name { font-size: 15px; }
  .hist-cert__date { font-size: 13px; }
  .hide-sp { display: none; }
}

/* ============================================================
   Divider with headline (Figma 2750:2985 / 2987)
   ============================================================ */
.hist-divider {
  position: relative;
  width: 100%;
  height: 80vh;
  max-height: 800px;
  overflow: hidden;
  background-color: var(--hist-dark);
}
@media (max-width: 1023px) { .hist-divider { height: 420px; } }

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

.hist-divider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hist-divider__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.6;
  text-align: center;
  margin: 0;
  padding: 0 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 1023px) { .hist-divider__title { white-space: normal; } }

/* ============================================================
   産業グリッド (Figma 2750:3013)
   Bento grid: Aerospace, Defense, Automotive + Semiconductor, Medical, Architecture + Consumer, Electrical
   ============================================================ */
.hist-industries {
  background-color: var(--hist-dark);
  padding: 140px 0;
  overflow: hidden;
}

.hist-industries__grid {
  list-style: none;
  margin: 0;
  padding: 0 144px;
  max-width: 1440px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 299px 240px 299px;
  gap: 12px;
}

/* Figma positions (after normalizing to a 4-col × 3-row bento):
   Row 1: Aerospace(2 cols) | Defense | Automotive
   Row 2: Semiconductor | Medical | Architecture(2 cols)
   Row 3: Consumer(2 cols) | Electrical(2 cols)
*/
.hist-industries__item--aerospace     { grid-column: 1 / span 2; grid-row: 1; }
.hist-industries__item--defense       { grid-column: 3;          grid-row: 1; }
.hist-industries__item--automotive    { grid-column: 4;          grid-row: 1; }
.hist-industries__item--semiconductor { grid-column: 1;          grid-row: 2; }
.hist-industries__item--medical       { grid-column: 2;          grid-row: 2; }
.hist-industries__item--architecture  { grid-column: 3 / span 2; grid-row: 2; }
.hist-industries__item--consumer      { grid-column: 1 / span 2; grid-row: 3; }
.hist-industries__item--electrical    { grid-column: 3 / span 2; grid-row: 3; }

@media (max-width: 1279px) {
  .hist-industries__grid { padding: 0 24px; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 240px); }
  .hist-industries__item { grid-column: auto !important; grid-row: auto !important; }
}
@media (max-width: 639px) {
  .hist-industries__grid { grid-template-columns: 1fr; grid-template-rows: repeat(8, 200px); }
}

.hist-industries__item {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.hist-industries__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hist-industries__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.hist-industries__labels {
  position: absolute;
  left: 22px;
  bottom: 28px;
}

.hist-industries__en {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #b3b3b3;
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.hist-industries__ja {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.hist-industries__item--aerospace     .hist-industries__en { color: #333333; }
.hist-industries__item--medical       .hist-industries__en { color: #333333; }

/* ============================================================
   CTA (Figma 2750:3056) — image bg + dark overlay + CTA button
   ============================================================ */
.hist-cta {
  position: relative;
  width: 100%;
  height: 718px;
  overflow: hidden;
  background-color: var(--hist-dark);
  color: #ffffff;
}
@media (max-width: 1023px) { .hist-cta { height: auto; padding: 120px 0; } }

.hist-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hist-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hist-cta__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hist-cta__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 72px;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 4px rgba(0,0,0,0.25);
}

.hist-cta__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 2;
  color: #ffffff;
  margin: 0 0 72px;
  text-align: center;
}

.hist-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 430px;
  max-width: 100%;
  height: 72px;
  border: 2px solid #ffffff;
  border-radius: 25px;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.hist-cta__btn:hover {
  background-color: #ffffff;
  color: var(--hist-dark);
}

/* ============================================================
   history 専用アニメーション
   ============================================================ */

/* スクロール進捗バー / ページロードオーバーレイ（TOPと共通） */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #204e9a, #0962ab);
  transform-origin: left center;
  transition: width 0.08s linear;
}
/* z-index 40：site-header (50) より下に置き、ヘッダ（ハンバーガー含む）を
   ロード時から常時表示。overlay は main 以下のメインコンテンツのみワイプする */
.page-load-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: #000d21;
  transform-origin: center top;
  animation: page-load-out 0.9s cubic-bezier(0.77, 0, 0.18, 1) 0.1s forwards;
}
@keyframes page-load-out {
  0%   { transform: scaleY(1); opacity: 1; }
  70%  { transform: scaleY(0); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; visibility: hidden; }
}

/* 基本 reveal（animations.js と連動） */
[data-reveal],
.reveal-stagger-parent > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-in-view,
.reveal-stagger-parent > .is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* slide-right / slide-left */
[data-reveal="slide-right"] {
  transform: translateX(-40px);
}
[data-reveal="slide-right"].is-in-view {
  transform: translateX(0);
}
[data-reveal="slide-left"] {
  transform: translateX(40px);
}
[data-reveal="slide-left"].is-in-view {
  transform: translateX(0);
}

/* clip-wipe: 見出し等の左→右ワイプ */
[data-reveal="clip-wipe"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="clip-wipe"].is-in-view {
  clip-path: inset(0 0 0 0);
}

/* clip-wipe-up: 画像の下→上ワイプ（hist-episode__media 用）
   clip-path は描画上の罠があるため、opacity + translateY + scale でフォールバック寄りに */
[data-reveal="clip-wipe-up"] {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="clip-wipe-up"].is-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* line-wipe: 行単位のマスク解除（Hero タイトル・引用・Episode タイトル用） */
[data-reveal="line-wipe"] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="line-wipe"].is-in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* year-zoom: 年号が奥から手前にズームイン */
[data-reveal="year-zoom"] {
  opacity: 0;
  transform: scale(1.6);
  filter: blur(10px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="year-zoom"].is-in-view {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* split-open: Divider 見出しが中央から左右に開く */
[data-reveal="split-open"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.18, 1);
}
[data-reveal="split-open"].is-in-view {
  clip-path: inset(0 0 0 0);
}

/* ============================================================
   画面左固定の縦タイムラインインジケータ
   ============================================================ */
.hist-timeline-indicator {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  gap: 14px;
  align-items: stretch;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.hist-timeline-indicator.is-visible {
  opacity: 1;
}

.hist-timeline-indicator__line {
  position: relative;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  min-height: 240px;
}

.hist-timeline-indicator__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #204e9a, #0962ab);
  height: 0;
  transition: height 0.25s ease-out;
}

.hist-timeline-indicator__marks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  font-family: "Inter", sans-serif;
}

.hist-timeline-indicator__marks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease-out, transform 0.3s ease-out;
}

.hist-timeline-indicator__marks li.is-active {
  color: #ffffff;
  transform: translateX(4px);
}

.hist-timeline-indicator__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease-out, transform 0.3s ease-out;
  display: inline-block;
}

.hist-timeline-indicator__marks li.is-active .hist-timeline-indicator__dot {
  background-color: #ffffff;
  transform: scale(1.6);
  box-shadow: 0 0 0 4px rgba(32, 78, 154, 0.3);
}

.hist-timeline-indicator__year {
  font-weight: 500;
}

/* ライトな背景のセクション上では色を反転 */
.hist-timeline-indicator.is-on-light .hist-timeline-indicator__line {
  background-color: rgba(0, 13, 33, 0.15);
}
.hist-timeline-indicator.is-on-light .hist-timeline-indicator__marks li {
  color: rgba(0, 13, 33, 0.45);
}
.hist-timeline-indicator.is-on-light .hist-timeline-indicator__marks li.is-active {
  color: #000d21;
}
.hist-timeline-indicator.is-on-light .hist-timeline-indicator__dot {
  background-color: rgba(0, 13, 33, 0.3);
}
.hist-timeline-indicator.is-on-light .hist-timeline-indicator__marks li.is-active .hist-timeline-indicator__dot {
  background-color: #204e9a;
  box-shadow: 0 0 0 4px rgba(32, 78, 154, 0.2);
}

@media (max-width: 1023px) {
  .hist-timeline-indicator {
    display: none;
  }
}

/* ============================================================
   Hero Ken Burns + Scroll インジケータ
   ============================================================ */
.hist-hero__bg {
  animation: hero-kenburns 28s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}
@keyframes hero-kenburns {
  0%   { transform: scale(1.02) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1%, -0.8%); }
  100% { transform: scale(1.02) translate(0, 0); }
}

.hist-hero__scroll {
  animation: scroll-hint 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(6px); }
}

/* Intro 3円はアニメーションなし（Figma 通り静的表示） */

/* ============================================================
   Episode 縦タイムライン（events ul に線を描画）
   ============================================================ */
.hist-episode__events[data-episode-timeline] {
  position: relative;
}
.hist-episode__events[data-episode-timeline]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(32, 78, 154, 0.2), rgba(32, 78, 154, 0.05));
}
.hist-episode__events[data-episode-timeline]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: var(--timeline-progress, 0%);
  background: linear-gradient(180deg, #204e9a, #0962ab);
  transition: height 0.15s linear;
}
.hist-episode__events[data-episode-timeline] > .hist-episode__event {
  padding-left: 28px;
  position: relative;
}
.hist-episode__events[data-episode-timeline] > .hist-episode__event::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #204e9a;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hist-episode__events[data-episode-timeline] > .hist-episode__event.is-in-view::before {
  transform: scale(1);
}

/* ============================================================
   Business カードホバー（Episode 5）
   ============================================================ */
.hist-business-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hist-business-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 13, 33, 0.18);
}

/* ============================================================
   Cert カードホバー
   ============================================================ */
.hist-cert__item {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hist-cert__item:hover {
  transform: translateY(-4px);
}

/* ============================================================
   Industries タイルのホバー / オーバーレイ
   ============================================================ */
.hist-industries__item {
  overflow: hidden;
  position: relative;
}
.hist-industries__item img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hist-industries__item:hover img {
  transform: scale(1.08);
}
.hist-industries__overlay {
  transition: opacity 0.5s ease-out, background-color 0.5s ease-out;
}
.hist-industries__item:hover .hist-industries__overlay {
  opacity: 0.35;
}
.hist-industries__labels {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hist-industries__item:hover .hist-industries__labels {
  transform: translateY(-6px);
}

/* ============================================================
   CTA ボタンのパルスグロー
   ============================================================ */
.hist-cta__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hist-cta__btn[data-hist-cta-btn].is-pulsing {
  animation: cta-pulse 1.8s ease-out 1;
}
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  60%  { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ============================================================
   reduced-motion: 全無効化
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .reveal-stagger-parent > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  .page-load-overlay { display: none !important; }
  .hist-hero__bg,
  .hist-hero__scroll,
  .hist-cta__btn,
  .hist-business-card,
  .hist-industries__item img,
  .hist-industries__overlay,
  .hist-industries__labels,
  .hist-cert__item,
  .hist-episode__events[data-episode-timeline]::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .hist-episode__events[data-episode-timeline] > .hist-episode__event::before {
    transform: scale(1) !important;
    transition: none !important;
  }
  .hist-timeline-indicator { display: none !important; }

  /* (hist-venn 削除済み — 事業カードに置換) */
}

/* ============================================================
   2026-04-26 復旧: 旧 style.css 直接編集分（3 ブロック）
   ページロードオーバーレイ（history.html 専用）
   ============================================================ */

/* z-index 40：site-header (50) より下、メインコンテンツのみワイプする */
.page-load-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: #000d21;
  transform-origin: center top;
  animation: page-load-out 0.9s cubic-bezier(0.77, 0, 0.18, 1) 0.1s forwards;
}

@keyframes page-load-out {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }
  70% {
    transform: scaleY(0);
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
  }
}

/* page-load-overlay reduced-motion: 上の prefers-reduced-motion ブロックで対応済み */

/* ============================================================
   history.html モバイル UX 最適化（<768px、デスクトップ非破壊）
   既存の散在 overrides に加え、固定 px の font-size / line-height /
   余白を一括で読みやすく調整する
   ============================================================ */
@media (max-width: 767px) {
  /* Episode block: 固定 px のタイポを縮小 */
  .hist-episode__head { margin-bottom: 24px; }
  .hist-episode__label { font-size: 18px; }
  .hist-episode__year { font-size: 40px; margin-bottom: 16px; }
  .hist-episode__era { font-size: 16px; }
  .hist-episode__title { margin-bottom: 12px; }

  /* Episode events タイムライン: ドット (30px) と offset (-54px) を縮小 */
  .hist-episode__events { padding-left: 28px; border-left-width: 2px; }
  .hist-episode__event { padding-bottom: 32px; }
  .hist-episode__event::before {
    width: 18px;
    height: 18px;
    left: -38px;
    border-width: 3px;
  }
  .hist-episode__event-date { font-size: 16px; margin-bottom: 8px; }
  .hist-episode__event-desc { font-size: 14px; line-height: 1.8; }
  .hist-episode__grid { gap: 32px; }
  .hist-episode__footnote { margin-top: 40px; line-height: 1.85; }

  /* Intro: padding 80 → 56、左余白を撤去して左寄せに（ユーザー要望）。
     circles 内テキストも 20→14 に縮小 */
  .hist-intro { padding: 56px 0; }
  .hist-intro__inner { gap: 32px; }
  .hist-intro__text { padding-left: 0; }
  .hist-intro__quote {
    font-size: 22px;
    margin-bottom: 28px;
    padding-left: 0;
  }
  .hist-intro__source { font-size: 14px; }
  .hist-intro__circle {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Cert: セクション内で完結。追加調整不要 */

  /* CTA: 縦余白 + line-height 2 (=40px) が空きすぎなので緩和 */
  .hist-cta { padding: 80px 0; }
  .hist-cta__title { margin-bottom: 28px; }
  .hist-cta__lead {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 40px;
  }
  .hist-cta__btn {
    width: 100%;
    height: 56px;
    font-size: 16px;
    border-radius: 16px;
  }

  /* Industries grid: 1 col layout (既存) で各 cell の高さは 200px。
     overlay text font 22 → 18 に縮小して可読性向上 */
  .hist-industries { padding: 56px 0; }
  .hist-industries__ja { font-size: 18px; }
  .hist-industries__en { font-size: 13px; }

  /* Divider: 「私たちの日常を支える、アルマイト」（14 文字）を
     可能な限り 1 行で収めるため、左右マージン極小 + フォント可変下限縮小 + nowrap。
     - padding 0 4px で左右余白を最小化（viewport をほぼフル活用）
     - clamp(15px, 4.5vw, 22px)：320px → 14.4 → 15px、375px → 16.875、480px → 21.6 → 22 上限
     - white-space: nowrap で 1 行強制（既存 max-width: 1023 の normal を上書き）
     14 文字 × 15px = 210px、viewport 280px 以上で 1 行表示される。
     極端な狭幅では centered 配置で左右均等に少しはみ出るが、一般的なモバイル（≥320px）
     では問題なく収まる */
  .hist-divider__title {
    font-size: clamp(16px, 5vw, 22px);
    padding: 0 16px;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.8;
  }
}

/* ============================================================
   360px (Android小型端末) 専用調整
   ============================================================ */
@media (max-width: 480px) {
  /* Hero: 高さ削減 + カウンター余白詰め */
  .hist-hero { min-height: 440px; max-height: 700px; }
  .hist-hero__year-num { font-size: 80px; }
  .hist-hero__year-counter { margin-bottom: 16px; }
  .hist-hero__milestone { font-size: 12px; bottom: 80px; }
  .hist-hero__lead { font-size: 13px; line-height: 1.7; }

  /* Intro: circles を更に縮小 */
  .hist-intro__circles { height: 300px; max-width: 290px; }
  .hist-intro__circle { font-size: 12px; line-height: 1.4; }

  /* Episode: border + 左余白を圧縮して本文領域を確保 */
  .hist-episode { border-left-width: 6px; }
  .hist-episode__inner { padding: 56px 16px 48px 24px; }
  .hist-episode__events { padding-left: 22px; }
  .hist-episode__event::before {
    width: 14px; height: 14px;
    left: -30px; top: 4px;
    border-width: 2px;
  }
  .hist-episode__event-desc { font-size: 13px; }
  .hist-episode__footnote { font-size: 13px; line-height: 1.7; }

  /* Cert: セクション内 639px で完結。追加不要 */

  /* Industries */
  .hist-industries__grid { padding: 0 16px; grid-template-rows: repeat(8, 180px); }

  /* CTA */
  .hist-cta { padding: 80px 0; }
  .hist-cta__title { font-size: 24px; margin-bottom: 20px; }
  .hist-cta__lead { font-size: 13px; line-height: 1.8; }

  /* Story (歩み) */
  .hist-story { padding: 56px 0; min-height: auto; }
  .hist-story__inner { padding: 0 16px; }
  .hist-story__heading { font-size: 22px; margin-bottom: 28px; }
  .hist-story__heading-nowrap { white-space: nowrap; }
  .hist-story__text {
    font-size: 14px;
    line-height: 2.2;
    margin-bottom: 40px;
    text-align: justify;
    text-justify: inter-ideograph;
    letter-spacing: 0.02em;
    padding: 0 4px;
    font-feature-settings: "halt" 1;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .hist-story__text p {
    display: inline;
    margin: 0;
  }
}

/* ============================================================
   タブレット (768px–1023px) 専用調整
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hero */
  .hist-hero { max-height: 750px; }
  .hist-hero__year-num { font-size: 140px; }

  /* Story: 写真を 2+1 レイアウト */
  .hist-story__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hist-story__photo { aspect-ratio: 4 / 3; }
  .hist-story__photo--3 {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  /* Intro circles */
  .hist-intro__circles { height: 400px; max-width: 400px; }
  .hist-intro__circle { font-size: 16px; line-height: 1.5; }

  /* Story: タブレット余白調整 */
  .hist-story { padding: 100px 0; }

  /* Episode: 中間サイズ */
  .hist-episode { border-left-width: 8px; }
  .hist-episode__inner { padding: 100px 32px 80px 48px; }
  .hist-episode__event { padding-bottom: 48px; }
  .hist-episode__event::before {
    width: 22px; height: 22px;
    left: -46px;
    border-width: 4px;
  }
  .hist-episode__footnote { margin-top: 60px; }

  /* Cert: セクション内で完結。追加不要 */

  /* Industries: 2col 統一 */
  .hist-industries__grid {
    grid-template-rows: repeat(4, 220px);
  }
}
