@charset "UTF-8";
/* Farm/buy デザイントークン
-----------------------------------------------------------------*/
/* イージング
-----------------------------------------------------------------*/
/* デュレーション
-----------------------------------------------------------------*/
/* ============================================================
   ヒストリー（company/history）専用CSS
   ・色/フォント/.phead/.ph-gray/.page/[data-parallax] は company_common.css
   ・レイアウトは XD（-company-history-.png / PC 1440）を実測して再構成。
     中央に1pxの縦線を通し、章は「年号 → リード → 写真 → 続き文」を中央揃え、
     年表は縦線上の点＋右に「年 / 月 / 本文」、行の左に写真が入る。
   ・XD実測値（CSS px, PC 1440）:
       縦線 1px #d9d9d9 / 点 直径10px（通過済 #272727・未通過 #d9d9d9）
       章の年号 76px（字間0） / リード 28px / 写真 612×357
       行の年号 56px / 月・本文・続き文 16px / 右カラム左端＝中央+45 / 行間ink約149
       行の写真 400×271（右端が中央線から120px左・PCは点に対して上下中央）
   ・入場演出: 年号は common.js の文字リビール（.js-charReveal → .rv-c/.rv-i）、
     本文は年号の後に遅らせて出す、写真は .js-reveal で下からスッと上げる
============================================================*/
body {
  margin: 0;
}

.p-history {
  --era-year: clamp(60.8px, 4.4444444444vw, 96px);
  --row-year: clamp(53.2px, 3.8888888889vw, 84px);
  --dot: clamp(9.5px, 0.6944444444vw, 15px);
  --body-fz: clamp(15.2px, 1.1111111111vw, 24px);
  --dot-top: calc(var(--row-year) * 0.57);
  --index-inset: 4.4444444444vw;
  --index-w: 3.3333333333vw;
  width: var(--inner);
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 100%;
}
@media (min-width: 1024px) {
  .p-history {
    width: 86.6666666667vw;
  }
}
@media (max-width: 1023px) {
  .p-history {
    --era-year: min(11.7333333333vw, 57.2px);
    --row-year: min(9.0666666667vw, 44.2px);
    --body-fz: min(4vw, 19.5px);
    width: auto;
    margin-inline: 0;
    padding: 0 var(--edge);
    padding-bottom: min(19.2vw, 93.6px);
  }
}

/* ---- FV下の導入文 ---- */
.p-history__intro {
  grid-area: 1/1;
  max-width: clamp(722px, 52.7777777778vw, 1140px);
  margin: 6.1111111111vw auto 6.6666666667vw;
  text-align: center;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--fz-md);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-mincho);
  color: var(--text);
  word-break: auto-phrase;
}
@media (max-width: 1023px) {
  .p-history__intro {
    max-width: none;
    margin: min(12.8vw, 62.4px) 0 min(14.9333333333vw, 72.8px);
    text-align: left;
    line-height: 1.8;
    letter-spacing: 0.02em;
    word-break: normal;
  }
}

/* ---- 左：時代インデックス（sticky・年表の上に重ねる） ---- */
.p-history__index {
  grid-area: 2/1;
  align-self: stretch;
  z-index: 5;
  pointer-events: none;
}
@media (max-width: 1023px) {
  .p-history__index {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    align-self: auto;
    padding: min(3.4666666667vw, 16.9px) var(--edge) min(2.6666666667vw, 13px);
    background-color: var(--ink);
    backdrop-filter: none;
    border-top: none;
    pointer-events: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
}

@media (max-width: 1023px) {
  .p-history__index.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }
}

.p-history__index-list {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  width: -moz-max-content;
  width: max-content;
  pointer-events: auto;
  list-style: none;
  margin: 0 calc(var(--index-inset) - var(--edge)) 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9722222222vw;
}
@media (max-width: 1023px) {
  .p-history__index-list {
    position: static;
    top: auto;
    transform: none;
    margin: 0;
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: min(5.3333333333vw, 26px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
}

@media (max-width: 1023px) {
  .p-history__index-list::-webkit-scrollbar {
    display: none;
  }
}

.p-history__index-link {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--fz-md);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-mincho);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
@media (max-width: 1023px) {
  .p-history__index-link {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.82);
  }
}

@media (hover: hover) {
  .p-history__index-link:hover {
    color: var(--enji);
  }
}
.p-history__index-link.is-current {
  color: var(--enji);
}
@media (max-width: 1023px) {
  .p-history__index-link.is-current {
    color: #fff;
  }
}

/* ---- 中央：タイムライン ---- */
.p-history__timeline {
  grid-area: 2/1;
  position: relative;
  min-width: 0;
}

.p-history__timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: clamp(152px, 11.1111111111vw, 240px);
  background: var(--line);
  transform: translateX(-50%);
}
@media (max-width: 1023px) {
  .p-history__timeline::before {
    left: calc(var(--dot) / 2);
    height: min(23.4666666667vw, 114.4px);
  }
}

.p-history-era {
  position: relative;
}

.p-history-era:first-child {
  padding-top: 12.2916666667vw;
}
@media (max-width: 1023px) {
  .p-history-era:first-child {
    padding-top: min(27.7333333333vw, 135.2px);
  }
}

.p-history-era + .p-history-era {
  padding-top: 2.2222222222vw;
}
@media (max-width: 1023px) {
  .p-history-era + .p-history-era {
    padding-top: min(2.1333333333vw, 10.4px);
  }
}

/* ---- 章の見出しブロック（中央揃え） ---- */
.p-history-era__head {
  text-align: center;
}
@media (max-width: 1023px) {
  .p-history-era__head {
    text-align: left;
  }
}

.p-history-era__year {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--era-year);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
}

.p-history-era__lead {
  max-width: clamp(836px, 61.1111111111vw, 1320px);
  margin: 2.0833333333vw auto 0;
  word-break: auto-phrase;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--fz-lead);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-mincho);
  color: var(--text);
}
@media (max-width: 1023px) {
  .p-history-era__lead {
    max-width: none;
    margin-inline: 0;
    margin-top: min(4.2666666667vw, 20.8px);
    line-height: 1.7;
    letter-spacing: 0.02em;
    word-break: normal;
  }
}

.p-history-era__hero {
  width: 49.04%;
  aspect-ratio: 612/357;
  margin: 2.7777777778vw auto 0;
}
@media (max-width: 1023px) {
  .p-history-era__hero {
    width: auto;
    margin: min(6.4vw, 31.2px) calc(-1 * var(--edge)) 0;
  }
}

.p-history-era__ticker {
  width: 100vw;
  margin: 2.7777777778vw 0 0;
  margin-left: 50%;
  transform: translateX(-50%);
  --ticker-duration: 56s;
  mask-image: linear-gradient(90deg, transparent 0, #000 140px, #000 calc(100% - 300px), transparent calc(100% - 60px));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 140px, #000 calc(100% - 300px), transparent calc(100% - 60px));
}
@media (max-width: 1023px) {
  .p-history-era__ticker {
    margin-top: min(8.5333333333vw, 41.6px);
    --ticker-duration: 36s;
    mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  }
}

.p-history-era__ticker .si {
  width: clamp(581.4px, 42.5vw, 918px);
  aspect-ratio: 612/357;
  margin-right: 1.1111111111vw;
}
@media (max-width: 1023px) {
  .p-history-era__ticker .si {
    width: 80vw;
    margin-right: min(3.2vw, 15.6px);
  }
}

.p-history-era__note {
  max-width: clamp(484.5px, 35.4166666667vw, 765px);
  margin: 2.6388888889vw auto 0;
  padding-bottom: 2.2222222222vw;
  word-break: auto-phrase;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--body-fz);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-mincho);
  color: var(--text);
}
@media (max-width: 1023px) {
  .p-history-era__note {
    max-width: none;
    margin-inline: 0;
    margin-top: min(6.4vw, 31.2px);
    line-height: 1.7;
    letter-spacing: 0.02em;
    word-break: normal;
  }
}

/* ---- 年表 ---- */
.p-history-era__list {
  position: relative;
  margin: 0;
  padding: 11.9444444444vw 0 8.1944444444vw;
}
@media (max-width: 1023px) {
  .p-history-era__list {
    padding: min(21.3333333333vw, 104px) 0 min(14.9333333333vw, 72.8px);
  }
}

.p-history-era__list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%) scaleY(var(--line-progress, 0));
  transform-origin: top center;
  will-change: transform;
}
@media (max-width: 1023px) {
  .p-history-era__list::before {
    left: calc(var(--dot) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-history-era__list::before {
    transform: translateX(-50%);
  }
}
.p-history-row {
  position: relative;
  padding-left: calc(50% + 45px);
  padding-right: max(24px, var(--index-inset) + var(--index-w) + 24px - var(--edge));
}
@media (max-width: 1023px) {
  .p-history-row {
    padding-left: min(7.4666666667vw, 36.4px);
    padding-right: 0;
  }
}

.p-history-row + .p-history-row {
  margin-top: 9.1666666667vw;
}
@media (max-width: 1023px) {
  .p-history-row + .p-history-row {
    margin-top: min(17.0666666667vw, 83.2px);
  }
}

.p-history-row-pair {
  min-height: clamp(154.85px, 11.3194444444vw, 244.5px);
}
@media (max-width: 1023px) {
  .p-history-row-pair {
    min-height: 0;
  }
}

.p-history-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--dot-top);
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--line);
  transform: translate(-50%, -50%);
  transition: background-color 0.4s ease;
}
@media (max-width: 1023px) {
  .p-history-row::before {
    left: calc(var(--dot) / 2);
  }
}

.p-history-row.is-passed::before {
  background: var(--ink);
}

.p-history-row__year {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: var(--row-year);
  line-height: 1;
  letter-spacing: var(--ls-mincho);
  color: var(--text);
}

.p-history-row__month,
.p-history-row__text {
  margin: 2.3611111111vw 0 0;
  font-family: var(--gothic);
  font-weight: 400;
  font-size: var(--body-fz);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-gothic);
  color: var(--text);
}
@media (max-width: 1023px) {
  .p-history-row__month,
  .p-history-row__text {
    margin-top: min(4.2666666667vw, 20.8px);
    line-height: 1.7;
    letter-spacing: 0.02em;
  }
}

.p-history-row__month + .p-history-row__text {
  margin-top: 0.625vw;
}
@media (max-width: 1023px) {
  .p-history-row__month + .p-history-row__text {
    margin-top: min(1.6vw, 7.8px);
  }
}

@media (max-width: 1023px) {
  .p-history-row__text br,
  .p-history-era__lead br,
  .p-history-era__note br,
  .p-history__intro br {
    display: none;
  }
}

@media (max-width: 1023px) {
  .p-history-row__text {
    display: flex;
    flex-direction: column;
  }
}

.p-history-row__media {
  position: absolute;
  top: var(--dot-top);
  right: 59.62%;
  width: 32.05%;
  margin: 0;
  transform: translateY(-50%);
  aspect-ratio: 1.4760147601;
  overflow: hidden;
}
.p-history-row__media > img,
.p-history-row__media > svg,
.p-history-row__media > iframe,
.p-history-row__media > video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
@media (max-width: 1023px) {
  .p-history-row__media {
    position: static;
    order: 1;
    width: auto;
    margin-top: min(5.3333333333vw, 26px);
    transform: none;
  }
}

.p-history-row__media.js-reveal {
  opacity: 0;
  transform: translateY(calc(-50% + 48px));
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .p-history-row__media.js-reveal {
    opacity: 1;
    transform: translateY(-50%);
    transition: none;
  }
}
@media (max-width: 1023px) {
  .p-history-row__media.js-reveal {
    transform: translateY(32px);
  }
}

.p-history-row__media.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(-50%);
}
@media (max-width: 1023px) {
  .p-history-row__media.js-reveal.is-visible {
    transform: none;
  }
}

/* ---- 入場演出 ---- */
.p-history-era__hero.js-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.p-history-era__hero.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.p-history-row__body {
  display: block;
}

.p-history-row__mon {
  font-weight: 700;
}

.p-history-era__year:has(.rv-c) ~ .p-history-era__lead,
.p-history-era__year:has(.rv-c) ~ .p-history-era__note,
.p-history-row__year:has(.rv-c) ~ .p-history-row__month,
.p-history-row__year:has(.rv-c) ~ .p-history-row__text .p-history-row__body {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s;
}

.p-history-era__year.is-inview ~ .p-history-era__lead,
.p-history-era__year.is-inview ~ .p-history-era__note,
.p-history-row__year.is-inview ~ .p-history-row__month,
.p-history-row__year.is-inview ~ .p-history-row__text .p-history-row__body {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .p-history-era__hero.js-reveal,
  .p-history-era__lead,
  .p-history-era__note,
  .p-history-row__month,
  .p-history-row__body {
    opacity: 1;
    transform: none;
    transition: none;
  }
}