.teko {
  font-family: var(--font-en);
  font-weight: 700;
}
html {
  background-color: var(--color-white);
}
#History {
  background: transparent;
  color: #3b3b3b;
  -webkit-tap-highlight-color: transparent;
}
#History::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/history_bg.webp") center top/cover no-repeat;
  pointer-events: none;
}
@media (min-width: 1441px), (min-width: 992px) and (min-resolution: 2dppx) {
  #History::before {
    background-image: url("../img/history_bg_l.webp");
  }
}
#History #container {
  position: relative;
  z-index: 0;
  overflow-x: clip;
}
#History #MainContents {
  --deco-w: clamp(9.8rem, 12.2vw, 17.6rem);
  position: relative;
  isolation: isolate;
}
#History #MainContents::before,
#History #MainContents::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: var(--deco-w);
  background-image: url("../img/history_deco.svg");
  background-repeat: repeat-y;
  background-size: var(--deco-w) auto;
  pointer-events: none;
}
#History #MainContents::before {
  left: calc(var(--deco-w) * -0.33);
  background-position-y: calc(var(--deco-w) * 3.6);
}
#History #MainContents::after {
  right: calc(var(--deco-w) * -0.33);
  background-position-y: calc(var(--deco-w) * -6.47);
}
#History .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  /* 見出しの文字の上端をほかのページ(PC 84px・SP 56pxから始まる見出し)にそろえる */
  margin-top: -38px;
  margin-bottom: 4rem;
}
#History .header .section-head__title {
  color: var(--color-red);
  font-size: clamp(4.8rem, 5.3vw + 1.75rem, 9.6rem);
}
#History .header .section-head__subtitle {
  color: var(--color-red);
  font-size: clamp(1.4rem, .22vw + 1.32rem, 1.6rem);
  font-weight: 700;
  letter-spacing: clamp(.3rem, .5vw, .8rem);
}
#History .history {
  padding: 0 1.6rem;
}
#History .history.is-loading {
  min-height: 100vh;
}
#History .history-filter {
  display: flex;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-margin-top: calc(var(--tbs-header-height) + 2rem);
}
#History .history-filter::-webkit-scrollbar {
  display: none;
}
#History .history-filter:empty {
  display: none;
}
#History .history-filter:last-child {
  margin-top: clamp(4rem, 5vw, 8rem);
}
#History .history-filter__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2.4rem;
  border-radius: 999px;
  background: #3b3b3b;
  color: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-white);
  font-family: var(--font-jp);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition: opacity 0.3s, background 0.3s;
}
#History .history-filter__btn.is-active {
  background: var(--color-red);
  cursor: default;
}
#History .history-filter__btn:hover:not(.is-active) {
  opacity: 0.75;
}
#History .history-filter__btn:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}
#History .history-timeline {
  position: relative;
  max-width: var(--content-max);
  margin: clamp(3rem, 4vw, 5.5rem) auto 0;
  padding-top: clamp(3rem, 4.4vw, 6.4rem);
}
#History .history-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: clamp(3rem, 4.4vw, 6.4rem);
  background: var(--color-red);
  transform: translateX(-50%);
}
#History .history-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-red);
  transform: translate(-50%, -50%);
}
#History .history-timeline:empty::before,
#History .history-timeline:empty::after {
  display: none;
}
#History .history-group[hidden] {
  display: none;
}
#History .history-year {
  position: relative;
}
#History .history-year + .history-year {
  margin-top: clamp(4rem, 6vw, 10rem);
}
#History .history-year__label {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: 0.2em 0;
  color: var(--color-red);
  font-size: clamp(6rem, 5.2vw + .83rem, 7.5rem);
  font-weight: 700;
  line-height: 1;
}
#History .history-year__body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(4rem, 5vw, 7rem);
  padding-top: clamp(2rem, 4vw, 4rem);
}
#History .history-year__body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: calc(-1 * clamp(4rem, 6vw, 10rem));
  left: 50%;
  width: 4px;
  background: var(--color-red);
  transform: translateX(-50%);
}
#History .history-year:last-child .history-year__body::before {
  bottom: 0;
}
#History .history-col--right {
  padding-top: clamp(6rem, 11vw, 16rem);
}
#History .history-year__body--single .history-col--right {
  padding-top: 0;
}
#History .history-year__body--start-right .history-col--right {
  padding-top: 0;
}
#History .history-year__body--start-right .history-col--left {
  padding-top: clamp(6rem, 11vw, 16rem);
}
#History .history-col {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 5vw, 8rem);
  min-width: 0;
}
#History .history-item {
  min-width: 0;
  container-type: inline-size;
  scroll-margin-top: calc(var(--tbs-header-height) + 2rem);
}
#History .history-item__year {
  color: var(--color-red);
  font-size: clamp(1.2rem, 1.44vw + .66rem, 2.5rem);
  line-height: 1;
  font-weight: 900;
}
#History .history-item__head {
  display: flex;
  align-items: center;
  column-gap: 1.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}
#History .history-item__num {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: clamp(2.7rem, 2vw + 1.95rem, 4.5rem);
  font-weight: 900;
}
#History .history-item__title {
  position: relative;
  top: 0.1em;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.3rem, .88vw + .97rem, 2.1rem);
  font-weight: 700;
}
#History .history-result {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
#History .history-result__row {
  display: grid;
  grid-template-columns: 10em 1fr;
  align-items: stretch;
  border-radius: 1rem;
  background: var(--color-red);
  color: var(--color-white);
  font-size: clamp(1.2rem, .44vw + 1.04rem, 1.6rem);
  line-height: 1.5;
  text-align: center;
}
#History .history-result__label,
#History .history-result__value {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.5em;
  font-weight: 700;
}
#History .history-result__value {
  flex-wrap: wrap;
  border-left: 2px solid var(--color-white);
}
#History .history-result__name {
  display: inline-block;
}
#History .history-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
#History .history-media--count-3 {
  grid-template-columns: 1fr 1fr;
}
#History .history-media--count-3 .history-media__item:first-child {
  grid-column: 1/-1;
}
#History .history-media__movie,
#History .history-media__image {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-placeholder);
}
#History .history-media__movie::before,
#History .history-media__movie::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
#History .history-media__movie::before {
  inset: 0;
  background: rgba(0,0,0,0.35);
}
#History .history-media__movie::after {
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(42px, 6.5vw, 60px);
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27%3E%3Cpath d=%27M35 27 L80 50 L35 73 Z%27 fill=%27%23fff%27 stroke=%27%23fff%27 stroke-width=%2713%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
}
#History .history-media .lazy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#History .history-media__movie .lazy {
  background-position: center;
}
@media (min-width: 992px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  #History .history-media__movie .lazy {
    transition: transform 0.3s ease;
  }
  #History .history-media__movie:hover .lazy {
    transform: scale(1.04);
  }
}
#History .history-item__text {
  margin-top: 1.2rem;
  font-size: clamp(1.2rem, 100cqi / 26.5, 2rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: pre-line;
}
#History .history-notice {
  padding: 4rem 0;
  text-align: center;
  font-size: 1.6rem;
}
#History .bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 0;
}
#History .history.is-anim .history-timeline::before,
#History .history.is-anim .history-year__body::before {
  clip-path: inset(0 0 max(0px, calc(100% - var(--line, 0px) + var(--top, 0px))) 0);
}
#History .history.is-fade .history-reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#History .history.is-fade .history-reveal.is-shown {
  opacity: 1;
  transform: none;
}
@media (max-width: 991.98px) {
  #History .header {
    margin-top: -71px;
  }
  #History .history {
    max-width: 800px;
    margin: 0 auto;
  }
  #History .history-filter {
    width: 100vw;
    max-width: none;
    gap: 0.7rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0.2rem max(1.6rem, calc(50vw - 400px + 1.6rem));
  }
  #History .history-filter__btn {
    padding: 0.4rem 1.6rem;
    font-size: 1.4rem;
    box-shadow: 0 0 0 1px var(--color-white);
  }
  #History #MainContents::before,
  #History #MainContents::after {
    display: none;
  }
  #History .history-year::after {
    content: "";
    position: absolute;
    top: 0;
    right: calc(50% - 50vw + 0.85rem);
    z-index: -1;
    width: clamp(8rem, 25vw, 12rem);
    aspect-ratio: 80/310;
    background: url("../img/history_deco_smp.svg") center top/contain no-repeat;
    pointer-events: none;
  }
  #History .history-timeline {
    padding-top: 0;
    padding-left: 1.7rem;
  }
  #History .history-timeline::before {
    --top: 2.45rem;
    top: 2.45rem;
    bottom: 0;
    left: 0.5rem;
    width: 3px;
    height: auto;
  }
  #History .history-timeline::after {
    display: none;
  }
  #History .history-year__body::before {
    display: none;
  }
  #History .history-year__label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 0.4rem;
    padding: 0.2em 0;
    font-size: 3.5rem;
  }
  #History .history-year__label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -1.2rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--color-red);
    transform: translate(-50%, -50%);
  }
  #History .history-year__body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  #History .history-col {
    display: contents;
  }
  #History .history-col--right {
    padding-top: 0;
  }
  #History .history-result__row {
    grid-template-columns: 1fr;
    border-radius: 0.6rem;
  }
  #History .history-result__label,
  #History .history-result__value {
    padding: 0.3rem 1rem;
  }
  #History .history-result__value {
    border-left: none;
    border-top: 1px solid var(--color-white);
  }
  #History .history-media {
    gap: 0.6rem;
    margin-top: 0.6rem;
  }
  #History .history-media--count-3 {
    grid-template-columns: 1fr;
  }
  #History .bottom-actions {
    padding: 5rem 0;
  }
}
