.history-modal-open {
  overflow: hidden;
}

.footprint-history-panel .history-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: start;
}

.footprint-history-panel .history-wrap {
  padding: 0;
  border: none;
  background: transparent;
}

.footprint-history-panel .history-period {
  padding: 0;
  border-top: none;
}

.footprint-history-panel .year-list {
  display: block;
}

.footprint-history-panel .year-row {
  display: block;
  padding: 30px 0;
  border-bottom: 1px solid #dbe4ef;
}

.footprint-history-panel .year-row:first-child {
  padding-top: 0;
}

.footprint-history-panel .year-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.footprint-history-panel .year {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-size: 34px;
  color: #34455c;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.footprint-history-panel .item-list {
  padding: 0;
  display: grid;
  gap: 14px;
}

.footprint-history-panel .item-list li,
.footprint-history-panel .empty-item,
.footprint-history-panel .history-empty {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  font-size: 16px;
  color: #5f7085;
  line-height: 1.7;
  font-weight: 400;
  word-break: keep-all;
  text-wrap: pretty;
  cursor: pointer;
  transition: color 0.18s ease;
}

.footprint-history-panel .item-list li:hover,
.footprint-history-panel .item-list li.is-active {
  color: #34455c;
}

.footprint-history-panel .history-item-date {
  text-align: left;
  white-space: nowrap;
  color: #8b98a8;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.footprint-history-panel .history-item-text {
  grid-column: 2;
}

.footprint-history-panel .item-list li:hover .history-item-date,
.footprint-history-panel .item-list li.is-active .history-item-date {
  color: #7b8798;
}

.footprint-history-panel .item-list li.history-highlight,
.footprint-history-panel .item-list li.history-highlight .history-item-date,
.footprint-history-panel .item-list li.history-highlight:hover,
.footprint-history-panel .item-list li.history-highlight.is-active,
.footprint-history-panel .item-list li.history-highlight:hover .history-item-date,
.footprint-history-panel .item-list li.history-highlight.is-active .history-item-date {
  color: #34455c;
  font-weight: 700;
}

.footprint-history-panel .history-preview {
  position: sticky;
  top: calc(var(--header-height) + 110px);
  justify-self: end;
  width: min(100%, 500px);
}

.footprint-history-panel .history-preview-inner {
  padding: 0;
}

.footprint-history-panel .history-preview-caption {
  margin-top: 20px;
  color: #34455c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: keep-all;
  text-wrap: pretty;
}

.footprint-history-panel .history-caption-date {
  display: inline;
  margin-right: 10px;
  color: #8b98a8;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.footprint-history-panel .history-caption-text {
  display: inline;
}

.footprint-history-panel .history-preview-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  overflow: hidden;
  border-radius: 22px;
  background: var(--color-dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.footprint-history-panel .history-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footprint-history-panel .history-preview-brand {
  color: #fff;
  text-align: center;
  line-height: 1;
}

.footprint-history-panel .history-preview-brand-top {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.footprint-history-panel .history-preview-brand-bottom {
  display: block;
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.72);
}

.footprint-history-panel .history-mobile-modal {
  display: none;
}

@media (max-width: 992px) {
  .footprint-history-panel .history-showcase {
    grid-template-columns: 1fr;
  }

  .footprint-history-panel .history-preview {
    position: static;
    justify-self: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footprint-history-panel .year-row {
    padding: 24px 0;
  }

  .footprint-history-panel .year {
    margin-bottom: 12px;
    font-size: 26px;
  }

  .footprint-history-panel .item-list li,
  .footprint-history-panel .empty-item,
  .footprint-history-panel .history-empty {
    grid-template-columns: 67px minmax(0, 1fr);
    gap: 10px;
    font-size: 14px;
  }

  .footprint-history-panel .item-list li.history-highlight {
    font-size: 14px;
  }

  .footprint-history-panel .history-preview {
    display: none;
  }

  .footprint-history-panel .history-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
  }

  .footprint-history-panel .history-mobile-modal[aria-hidden="true"] {
    display: none;
  }

  .footprint-history-panel .history-mobile-modal[aria-hidden="false"] {
    display: block;
  }

  .footprint-history-panel .history-mobile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 24, 0.62);
  }

  .footprint-history-panel .history-mobile-modal-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 18px;
    background: #fff;
    padding: 18px 18px 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  }

  .footprint-history-panel .history-mobile-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: 14px;
    padding: 0;
    border: none;
    background: transparent;
    color: #5d6878;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .footprint-history-panel .history-mobile-modal-caption {
    margin-top: 14px;
    color: #34455c;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-break: keep-all;
  }

  .footprint-history-panel .history-mobile-modal-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.86;
    overflow: hidden;
    background: var(--color-dark3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 20px;
  }

  .footprint-history-panel .history-mobile-modal-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }
}
