.history-page {
  color: var(--text-dark);
  background: var(--warm-bg);
}

.history-hero {
  position: relative;
  display: grid;
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
}

.history-hero::after {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 20, 0.48);
  content: '';
}

.history-hero-image,
.history-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.history-hero-image img {
  object-fit: cover;
  object-position: center;
}

.history-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: start;
  padding-top: 170px;
  padding-right: 8vw;
  padding-bottom: 0;
  padding-left: 13vw;
}

.history-breadcrumb,
.history-breadcrumb a,
.history-hero .page-label {
  color: rgba(255, 255, 255, 0.82);
}

.history-title {
  max-width: 1120px;
  margin: 24px 0;
  font-family: serif;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  white-space: nowrap;
}

.history-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.history-hero-content > p {
  max-width: 980px;
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 2;
}

.history-hero-caption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.history-intro,
.history-timeline-section,
.history-gallery-section {
  padding: 96px 0;
}

.history-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
}

.history-intro-copy {
  max-width: 900px;
}

.history-section-title {
  margin: 0;
  color: #3a3028;
  font-family: serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.55;
}

.history-intro .history-section-title {
  white-space: nowrap;
}

.history-intro-copy p,
.history-gallery-heading > p {
  margin: 0;
  color: var(--text-mid);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 2.15;
}

.history-intro-copy p + p {
  margin-top: 22px;
}

.history-gallery-section {
  padding-bottom: 110px;
  background: #231d19;
}

.history-gallery-section .page-label,
.history-gallery-section .history-section-title {
  color: var(--white);
}

.history-gallery-section .page-label::before {
  border-color: rgba(255, 255, 255, 0.45);
}

.history-gallery-section .history-gallery-heading > p {
  color: rgba(255, 255, 255, 0.68);
}

.history-timeline-section {
  background: #f3ece2;
}

.history-heading {
  margin-bottom: 48px;
}

.history-heading > p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 2;
}

.history-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-timeline li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 54px;
  padding: 34px 0;
  border-top: 1px solid rgba(118, 94, 70, 0.2);
}

.history-timeline li:last-child {
  border-bottom: 1px solid rgba(118, 94, 70, 0.2);
}

.history-era {
  margin: 0;
  color: var(--primary);
  font-family: serif;
  font-size: 23px;
  line-height: 1.4;
}

.history-era span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.history-timeline h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.05em;
}

.history-timeline li div p {
  max-width: 850px;
  margin: 0;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 2;
}

.history-gallery-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 64px;
}

.history-slider {
  position: relative;
  overflow: hidden;
}

.history-slider-list {
  display: grid;
  gap: 110px;
}

.history-slider-story-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--white);
}

.history-slider-story-heading > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.history-slider-story-heading h3 {
  margin: 0;
}

.history-slider-story-heading h3 {
  font-family: serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.history-gallery {
  display: flex;
  gap: 18px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.history-gallery-item {
  flex: 0 0 100%;
  margin: 0;
}

.history-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  object-fit: cover;
}

.history-gallery-item figcaption {
  padding: 16px 2px 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: serif;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.history-gallery-item figcaption span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.history-slider-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 26px;
}

.history-slider-overlay {
  position: absolute;
  top: min(31.25vw, 375px);
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.history-slider-overlay .history-slider-button {
  width: 58px;
  height: 58px;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(28, 23, 20, 0.58);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.history-slider-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}

.history-slider-button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.history-slider-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.history-slider-status {
  min-width: 52px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: center;
}

.history-slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.history-slider-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.history-slider-dot.is-active {
  background: var(--white);
}

.history-archive-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.history-sources {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.history-sources .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.history-sources p,
.history-sources a {
  margin: 0;
  color: var(--text-light);
  font-size: 10px;
  line-height: 1.8;
}

@media (max-width: 1000px) {
  .history-intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 800px) {
  .history-hero {
    min-height: 620px;
  }

  .history-intro-grid,
  .history-gallery-heading {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .history-timeline li {
    grid-template-columns: 140px 1fr;
    gap: 30px;
  }

  .history-gallery {
    gap: 12px;
  }

}

@media (max-width: 520px) {
  .history-hero {
    min-height: 580px;
  }

  .history-hero::after {
    background: rgba(30, 24, 20, 0.52);
  }

  .history-hero-content {
    padding-top: 96px;
    padding-right: 24px;
    padding-bottom: 0;
    padding-left: 24px;
  }

  .history-title {
    font-size: 42px;
    white-space: normal;
  }

  .history-intro .history-section-title {
    white-space: normal;
  }

  .history-intro,
  .history-timeline-section,
  .history-gallery-section {
    padding: 62px 0;
  }

  .history-timeline li {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .history-gallery-item {
    flex-basis: 100%;
  }

  .history-slider-list {
    gap: 76px;
  }

  .history-slider-overlay {
    top: 31.25vw;
    right: 12px;
    left: 12px;
  }

  .history-slider-overlay .history-slider-button {
    width: 46px;
    height: 46px;
  }
}
