@charset "UTF-8";
/* ============================================================
   ヒストリー（company/history）専用CSS
   ark_company/assets/company-history.css を移植。
   ・色/フォント/.phead/.ph-gray/.page は company_common.css
============================================================ */
body {
  margin: 0;
}

.p-history {
  max-width: 1440px;
  margin-inline: auto;
  padding: 120px 0 var(--section-y) var(--edge);
  display: grid;
  grid-template-columns: 288px 1fr;
  -moz-column-gap: 64px;
  column-gap: 64px;
  align-items: start;
}

/* ---- 左：時代インデックス（sticky） ---- */
.p-history__index {
  position: sticky;
  top: 120px;
}

.p-history__index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-history__index-link {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 20px;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-mincho);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

@media (hover: hover) {
  .p-history__index-link:hover {
    color: var(--enji);
  }
}
.p-history__index-link.is-current {
  color: var(--enji);
}

/* ---- 右：タイムライン ---- */
.p-history__timeline {
  min-width: 0;
}

.p-history-era {
  margin-bottom: 128px;
}

.p-history-era:last-child {
  margin-bottom: 0;
}

.p-history-era__hero {
  position: relative;
  aspect-ratio: 1026/599;
  margin: 0 0 40px;
  overflow: hidden;
}

.p-history-era__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 46%);
}

.p-history-era__year {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: var(--ls-mincho);
  color: #fff;
}

.p-history-era__lead {
  max-width: 44em;
  margin: 0 var(--edge) 48px 80px;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 28px;
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-mincho);
  color: var(--text);
}

.p-history-era__list {
  position: relative;
  margin: 0 var(--edge) 0 48px;
  padding-left: 32px;
}

.p-history-era__list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--enji);
  transform: scaleY(var(--line, 1));
  transform-origin: top center;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .p-history-era__list::before {
    transform: none;
  }
}
.p-history-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  -moz-column-gap: 32px;
  column-gap: 32px;
  padding: 16px 0;
  align-items: baseline;
}

.p-history-row__year {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 16px;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-mincho);
  color: var(--enji);
}

.p-history-row__text {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 400;
  font-size: 16px;
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-mincho);
  color: var(--text);
}

/* ---- 入場演出 ---- */
.js-reveal {
  transform: translateY(24px);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-reveal.is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    transform: none;
    transition: none;
  }
}
/* ============ SP（≤1023px） ============ */
@media (max-width: 1023px) {
  .p-history {
    grid-template-columns: 1fr;
    -moz-column-gap: 0;
    column-gap: 0;
    padding: 56px var(--edge-narrow) 96px;
  }
  .p-history__index {
    position: static;
    top: auto;
    margin-bottom: 40px;
  }
  .p-history__index-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
  .p-history-era {
    margin-bottom: 80px;
  }
  .p-history-era__hero {
    margin: 0 calc(-1 * var(--edge-narrow)) 24px;
  }
  .p-history-era__year {
    right: 24px;
    bottom: 24px;
    font-size: 36px;
  }
  .p-history-era__lead {
    margin: 0 0 32px;
    font-size: 20px;
  }
  .p-history-era__list {
    margin: 0;
    padding-left: 20px;
  }
  .p-history-row {
    grid-template-columns: 56px 1fr;
    -moz-column-gap: 20px;
    column-gap: 20px;
  }
}