@charset "UTF-8";

#history .inner {
  max-width: 112rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14.6rem;
  padding-block: 10.4rem 15.3rem;
}
#history nav {
  position: sticky;
  top: 10rem;
  height: fit-content;
  z-index: 3;
}
#history nav ul {
  position: relative;
}
#history nav ul::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 0.6rem;
  translate: 0 -50%;
  width: 1px;
  height: min(100% - 4rem);
  background-color: var(--main-color);
}
#history nav li a {
  display: grid;
  grid-template-columns: 1.2rem auto;
  align-items: center;
  column-gap: 1.8rem;
  color: #6e766c;
  font-family: var(--jp-font-family);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.7;
}
#history nav li a::before {
  content: "";
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #6e766c;
}
#history nav li a[aria-current="location"] {
  color: var(--main-color);
}
#history nav li a[aria-current="location"]::before {
  background-color: var(--main-color);
}

#history .contents section {
  position: relative;
  scroll-margin-top: 11rem;
}
#history .contents section + section {
  margin-top: 9rem;
}
#history .contents section:not(.no-image) {
  min-height: 30.1rem;
}
#history .contents section h2 {
  font-family: var(--en-font-family);
  color: #d7d7d7;
  font-size: 10rem;
  line-height: 1.1;
  font-weight: 300;
}
#history .contents section h2 span {
  display: block;
  font-family: var(--jp-font-family);
  color: var(--main-color);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
#history .contents section ul {
  position: relative;
  border-top: 1px solid var(--main-color);
  margin-top: 1.4rem;
  padding-top: 1rem;
}
#history .contents section ul::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: -0.1rem;
  width: 1.2rem;
  aspect-ratio: 1;
  background-color: var(--main-color);
  border-radius: 50%;
}
#history .contents section ul li {
  padding-left: 1em;
  text-indent: -1em;
  font-size: 1.6rem;
  line-height: 1.75;
}
#history .contents section ul li::before {
  content: "・";
}
#history .contents section figure {
  position: absolute;
  top: 2rem;
  right: 0;
  z-index: 2;
  width: 44rem;
}

@media (max-width: 750px) {
  #history .inner {
    grid-template-columns: 1fr;
    padding-block: 1.6rem 12rem;
    padding-inline: 3.6rem;
  }
  #history nav {
    top: 14rem;
    border-image: linear-gradient(#f9f9f9 0 0) fill 0 / 0 / 0 100vw;
    padding-block: 5.5rem;
  }
  #history nav ul {
    display: flex;
    justify-content: center;
    column-gap: 2.6rem;
  }
  #history nav ul::before {
    z-index: -1;
    top: 5.8rem;
    left: 50%;
    translate: -50% 0;
    width: min(100% - 13rem);
    height: 1px;
    background-color: var(--main-color);
  }
  #history nav li a {
    grid-template-columns: auto;
    gap: 1.4rem;
    color: #6e766c;
    font-family: var(--jp-font-family);
    font-size: 2.8rem;
    line-height: 1.3;
  }
  #history nav li a::before {
    display: block;
    width: 1.6rem;
    margin-inline: auto;
    grid-row: 2;
  }

  #history .contents {
    padding-top: 12rem;
  }
  #history .contents section {
    scroll-margin-top: 36rem;
  }
  #history .contents section + section {
    margin-top: 10rem;
  }
  #history .contents section:not(.no-image) {
    min-height: 38.1rem;
  }
  #history .contents section h2 {
    display: flex;
    align-items: baseline;
    margin-top: 2rem;
    column-gap: 3rem;
    font-size: 12rem;
    line-height: 1;
  }
  #history .contents section h2 span {
    font-size: 4rem;
    letter-spacing: 0.06em;
  }
  #history .contents section ul {
    position: relative;
    border-top: 1px solid var(--main-color);
    margin-top: 1.4rem;
    padding-top: 3rem;
  }
  #history .contents section ul::before {
    top: -0.9rem;
    left: -0.1rem;
    width: 1.7rem;
  }
  #history .contents section ul li {
    font-feature-settings: "palt";
    font-size: 3.2rem;
    line-height: 1.56;
  }
  #history .contents section figure {
    position: initial;
    width: 100%;
  }
}
