main {
  position: relative;
}
main .bg-wrap {
  position: absolute;
  top: 500px;
  left: calc(50% - 120px);
  display: flex;
  flex-direction: column;
  width: 240px;
  height: calc(100% - 500px);
  background: #f5f5f5;
}
main .bg-wrap::before {
  width: 100%;
  height: 240px;
  margin: 0 auto auto;
  content: "";
  background: linear-gradient(0deg, #f5f5f5, #fff);
}
main .bg-wrap::after {
  width: 100%;
  height: 240px;
  margin: auto auto 0;
  content: "";
  background: linear-gradient(0deg, #fff, #f5f5f5);
}
@media screen and (max-width: 759px) {
  main .bg-wrap {
    left: calc(50% - 64px);
    width: 128px;
  }
  main .bg-wrap::after {
    height: 120px;
  }
}
main section {
  background-color: transparent;
}
main #title-section h1 {
  background-image: url("/images/history/title-pc.jpg");
}
main #lead-section p {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 2;
  text-align: left;
}
main #lead-section p:first-of-type {
  margin-top: 4rem;
}
main #lead-section p:last-of-type {
  margin-bottom: 0;
}
@media screen and (max-width: 959px) {
  main #lead-section p:first-of-type {
    margin-top: 2rem;
  }
  main #lead-section p br {
    display: none;
  }
}
main #contents-section .contents-wrap {
  padding-bottom: 240px;
}
main #contents-section .contents-wrap .contents {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 5rem 0;
  margin: auto;
}
main #contents-section .contents-wrap .contents > span {
  position: absolute;
  top: 0;
  left: calc(50% - 120px);
  z-index: 1;
  display: block;
  width: 240px;
  height: 100%;
  background: #f5f5f5;
}
main #contents-section .contents-wrap .contents h3 {
  z-index: 2;
  width: 100%;
  margin: 0 auto 2rem;
  text-align: center;
}
main #contents-section .contents-wrap .contents h3 span {
  display: inline-block;
  margin: auto;
  margin-bottom: 2rem;
  font-size: 4.375rem;
  line-height: 1;
  color: transparent;
  background-clip: text;
}
main #contents-section .contents-wrap .contents h3 em {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}
main #contents-section .contents-wrap .contents h3 small {
  display: block;
  font-size: 0.9rem;
}
main #contents-section .contents-wrap .contents h3:nth-of-type(2) {
  margin-top: 5rem;
}
main #contents-section .contents-wrap .contents h3 + h3 {
  margin-top: 1rem !important;
}
main #contents-section .contents-wrap .contents figure {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 520px;
  height: 216px;
  margin: 0 auto auto;
  line-height: 0;
  text-align: center;
  background: #fff;
  box-shadow: -1px -1px 4px 2px rgba(0, 0, 0, 0.1);
}
main #contents-section .contents-wrap .contents figure img {
  height: 100%;
}
main #contents-section .contents-wrap .contents p {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 520px;
  padding: 0 1rem;
  margin: 0 auto auto;
  font-size: 0.9rem;
  line-height: 1.8;
  text-align: left;
}
main #contents-section .contents-wrap .contents p span {
  display: block;
  margin-bottom: 1.5em;
}
main #contents-section .contents-wrap .contents p span:last-of-type {
  margin-bottom: 0;
}
@media screen and (min-width: 760px) {
  main #contents-section .contents-wrap .contents h3:first-of-type {
    order: 1;
  }
  main #contents-section .contents-wrap .contents figure:first-of-type {
    order: 2;
  }
  main #contents-section .contents-wrap .contents p:first-of-type {
    order: 3;
  }
  main #contents-section .contents-wrap .contents h3:nth-of-type(2) {
    order: 4;
  }
  main #contents-section .contents-wrap .contents figure:nth-of-type(2) {
    order: 6;
  }
  main #contents-section .contents-wrap .contents p:nth-of-type(2) {
    order: 5;
  }
  main #contents-section .contents-wrap .contents.image-right h3:first-of-type {
    order: 1;
  }
  main #contents-section .contents-wrap .contents.image-right p:first-of-type {
    order: 2;
  }
  main #contents-section .contents-wrap .contents.image-right figure:first-of-type {
    order: 3;
  }
  main #contents-section .contents-wrap .contents.image-right h3:nth-of-type(2) {
    order: 4;
  }
  main #contents-section .contents-wrap .contents.image-right p:nth-of-type(2) {
    order: 6;
  }
  main #contents-section .contents-wrap .contents.image-right figure:nth-of-type(2) {
    order: 5;
  }
}
main #contents-section .contents-wrap .contents:nth-of-type(odd)::after {
  position: absolute;
  top: 0;
  left: calc(-1 * (50vw - 600px));
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100%;
  content: "";
  background: url("../../images/section-bg03.png");
}
@media screen and (max-width: 1439px) {
  main #contents-section .contents-wrap .contents:nth-of-type(odd)::after {
    left: -8.3333vw;
  }
}
@media screen and (max-width: 959px) {
  main #contents-section .contents-wrap .contents:nth-of-type(odd)::after {
    left: -4.2vw;
  }
}
main #contents-section .contents-wrap .contents::before {
  position: absolute;
  top: -40px;
  left: calc(50% - 1px);
  z-index: 2;
  display: block;
  width: 2px;
  height: 80px;
  content: "";
  background: #ccc;
}
main #contents-section .contents-wrap .contents:first-of-type::before {
  top: -103px;
  left: calc(50% - 20px);
  width: 40px;
  height: 153px;
  background: url("../images/history/bg01.svg") no-repeat center/cover;
}
@media screen and (max-width: 959px) {
  main #contents-section .contents-wrap .contents figure {
    overflow: hidden;
  }
}
@media screen and (max-width: 759px) {
  main #contents-section .contents-wrap {
    padding-bottom: 120px;
  }
  main #contents-section .contents-wrap .contents {
    flex-direction: column;
    padding: 2rem 0;
  }
  main #contents-section .contents-wrap .contents > span {
    left: calc(50% - 64px);
    width: 128px;
  }
  main #contents-section .contents-wrap .contents h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
  }
  main #contents-section .contents-wrap .contents h3 span {
    display: block;
    margin-bottom: 1rem;
    font-size: 3rem;
  }
  main #contents-section .contents-wrap .contents h3 em {
    font-size: 1.4rem;
    text-align: left;
  }
  main #contents-section .contents-wrap .contents h3 small {
    text-align: left;
  }
  main #contents-section .contents-wrap .contents:first-of-type {
    padding-top: 2rem;
    margin-top: 2rem;
  }
  main #contents-section .contents-wrap .contents:first-of-type::before {
    top: -60px;
    height: 80px;
    background-position: bottom;
  }
  main #contents-section .contents-wrap .contents figure {
    width: 100vw;
    max-width: none;
    height: auto;
    margin-right: -4.2vw;
    margin-bottom: 1rem;
    margin-left: -4.2vw;
    box-shadow: none;
  }
  main #contents-section .contents-wrap .contents figure img {
    width: 100%;
    max-width: 480px;
    height: auto;
  }
  main #contents-section .contents-wrap .contents p {
    width: 100%;
    max-width: 480px;
    padding: 0;
  }
  main #contents-section .contents-wrap .contents::before {
    top: -20px;
    height: 40px;
  }
}
main #contents-section .anchornav-wrap {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
  visibility: hidden;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  border-top: #e6e6e6 1px solid;
  border-bottom: #e6e6e6 1px solid;
  transition: top 0.2s;
}
main #contents-section .anchornav-wrap .slick-wrap {
  width: 100vw;
}
@media screen and (min-width: 760px) {
  main #contents-section .anchornav-wrap .slick-wrap {
    display: none !important;
  }
}
@media screen and (max-width: 759px) {
  main #contents-section .anchornav-wrap .slick-wrap {
    display: flex;
    align-items: center;
  }
}
main #contents-section .anchornav-wrap .slick-wrap p {
  width: 72px !important;
  padding: 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 5rem;
  text-align: center;
  transition: font-size 0.2s;
}
main #contents-section .anchornav-wrap .slick-wrap p.last {
  width: 144px !important;
  white-space: nowrap;
}
main #contents-section .anchornav-wrap .slick-wrap .slick-current p {
  font-size: 1.5em;
}
main #contents-section .anchornav-wrap::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  visibility: hidden;
  width: 100%;
  height: 100%;
  content: "";
  background-color: transparent;
}
main #contents-section .anchornav-wrap.touch::after {
  z-index: 10;
  visibility: inherit;
}
@media screen and (max-width: 759px) {
  main #contents-section .anchornav-wrap {
    visibility: inherit;
  }
}
@media screen and (max-width: 959px) {
  main #title-section h1 {
    background-image: url("/images/history/title-sp.jpg");
  }
  main #lead-section p {
    font-size: 1rem;
    font-weight: 500;
  }
}
@media screen and (max-width: 759px) {
  main #lead-section p {
    font-weight: 500;
  }
}
