.history-page {
  color: var(--color-text);
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
}

.history-sp {
  display: none;
}

.history {
  margin-top: 90px;
}

.history-era {
  padding: 70px 0 80px;
  background: var(--color-gray-bg);
}

.history-era__years {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font-weight: 700;
  line-height: 0.96;
}

.history-era__year {
  display: flex;
  align-items: baseline;
  max-width: 100%;
}

.history-era__year + .history-era__year {
  margin-left: 132px;
}

.history-era__number {
  color: var(--color-teal);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 95px;
  font-weight: 700;
  font-style: italic;
  
  letter-spacing: 0.04em;
  
  margin-right: -0.04em;
}

.history-era__suffix {
  margin-left: 8px;
  font-size: 36px;
  line-height: 1.3;
  white-space: nowrap;
}

.history-era__intro {
  margin-top: 42px;
}

.history-era__label {
  position: relative;
  z-index: 1;
  width: min(790px, calc(100% - 120px));
  margin: 0 auto;
  padding: 7px 18px;
  background: var(--color-teal);
  color: #fff;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.history-era__description {
  margin-top: -40px;
  padding: 60px 60px 36px;
  border-radius: 32px;
  background: #fff;
}

.history-era__description p {
  margin: 0;
  font-size: 17px;
  line-height: 2.1176;
}

.history-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 70px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.history-product {
  display: grid;
  grid-template-columns: minmax(0, 263fr) minmax(0, 227fr);
  gap: 25px;
  align-items: start;
  min-width: 0;
}

.history-product__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 263 / 161;
  object-fit: cover;
}

.history-product__body {
  min-width: 0;
}

.history-product__name {
  margin: 0;
  color: var(--color-teal);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.history-product__text {
  
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.history-timeline {
  position: relative;
  padding: 68px 0 80px;
  background: #fff;
}

.history-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  content: '';
  background: repeating-linear-gradient(to bottom, var(--color-teal) 0 2px, transparent 2px 12px);
}

.history-timeline::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  content: '';
  background: var(--color-teal);
  transform: translate(-50%, -50%);
}

.history-timeline__list {
  position: relative;
  padding: 0;
  list-style: none;
}

.history-event {
  position: relative;
  width: 50%;
  min-width: 0;
}

.history-event + .history-event {
  margin-top: 16px;
}

.history-event::before {
  position: absolute;
  top: 22px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  content: '';
  background: var(--color-teal);
}

.history-event--left {
  padding-right: 35px;
  text-align: right;
}

.history-event--left::before {
  right: -8.5px;
}

.history-event--right {
  margin-left: 50%;
  padding-left: 35px;
}

.history-event--right::before {
  left: -8.5px;
}

.history-event__year {
  margin: 0;
  color: var(--color-teal);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 56px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.1;
}

.history-event__year span {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'KC Yu Gothic', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 32px;
  font-style: normal;
}

.history-event__title {
  margin: 12px 0 0;
  color: var(--color-teal);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.75;
}

.history-event__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  
  text-wrap: balance;
}

.history-event__title + .history-event__text {
  margin-top: 6px;
}

.history-future {
  padding: 70px 0 80px;
  background: var(--color-gray-bg);
}

.history-future__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  color: var(--color-teal);
  font-size: 61px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
}

.history-future__title > span:nth-child(2) {
  margin: 0 0.15em;
  color: var(--color-text);
  font-size: 36px;
  font-style: normal;
}

.history-future__text {
  margin: 40px 0 0;
  padding: 32px 60px;
  border-radius: 32px;
  background: #fff;
  font-size: 21px;
  line-height: 1.7143;
}

.history-page > .entry {
  margin-top: 100px;
}

@media (min-width: 901px) and (max-width: 1199px) {
  .history-products {
    column-gap: 36px;
  }

  .history-product {
    column-gap: 18px;
    
    grid-template-columns: minmax(0, 263fr) minmax(216px, 227fr);
  }

  .history-era__label {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .history-pc {
    display: none;
  }

  .history-sp {
    display: inline;
  }

  .history {
    margin-top: 60px;
  }

  .history-era {
    padding: 32px 0 42px;
  }

  .history-era__years {
    
    font-size: clamp(40px, 13.54vw, 50.8px);
  }

  .history-era__year + .history-era__year {
    margin-left: 100px;
  }

  .history-era__number {
    font-size: 1em;
  }

  .history-era__suffix {
    margin-left: 3px;
    font-size: 0.381em;
  }

  .history-era__intro {
    margin-top: 18px;
  }

  .history-era__label {
    width: fit-content;
    max-width: calc(100% - 36px);
    margin-left: 18px;
    padding: 13px 20px;
    font-size: 17.65px;
    line-height: 1.28;
    text-align: left;
  }

  .history-era__description {
    margin-top: -24px;
    padding: 44px 14px 28px;
    border-radius: 24px;
  }

  .history-era__description p {
    font-size: 16px;
    line-height: 1.7333;
  }

  .history-products {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    margin-top: 40px;
    padding: 0 13px;
  }

  .history-product {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    order: 1;
  }

  .history-product--sp-2 {
    order: 2;
  }

  .history-product--sp-3 {
    order: 3;
  }

  .history-product__image {
    aspect-ratio: 301 / 185;
  }

  .history-product__text {
    margin-top: 8px;
    line-height: 1.61;
  }

  
  .history-timeline {
    padding: 35px 0 32px;
  }

  .history-timeline::before {
    left: 32px;
  }

  .history-timeline::after {
    left: 33px;
    width: 27px;
    height: 27px;
  }

  .history-timeline__list {
    padding-left: 30px;
  }

  .history-event,
  .history-event--left,
  .history-event--right {
    width: 100%;
    margin-left: 0;
    padding: 8px 12px;
    border-radius: 16px;
    background: #fff;
    text-align: left;
  }

  .history-event + .history-event {
    margin-top: 18px;
  }

  .history-event::before,
  .history-event--left::before,
  .history-event--right::before {
    top: 25px;
    right: auto;
    left: -26px;
    width: 10px;
    height: 10px;
  }

  .history-event__year {
    font-size: 42px;
  }

  .history-event__year span {
    font-size: 24px;
  }

  .history-timeline--recent .history-event__year {
    font-size: 37px;
  }

  .history-event__title {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.5;
  }

  
  .history-event__text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .history-future {
    padding: 32px 0 42px;
  }

  .history-future__title {
    font-size: clamp(36px, 13.09vw, 49px);
  }

  .history-future__title > span:nth-child(2) {
    font-size: 0.48em;
  }

  .history-future__text {
    margin-top: 30px;
    padding: 26px 14px;
    border-radius: 24px;
    font-size: 16px;
    line-height: 1.7333;
  }

  .history-page > .entry {
    margin-top: 42px;
  }
}

@media (max-width: 360px) {
  .history-event__text .history-sp br {
    
    display: none;
  }
}
