.page-history{
  .ginza{
    padding-block: 12rem 0;
    @media screen and (max-width: 768px) {
      padding-block: 4rem 0;
    }
    .image{
      position: relative;
      .copy{
        font-size: 4.4rem;
        line-height: 1.6;
        position: absolute;
        bottom: 3.5rem;
        left: 6rem;
        @media screen and (max-width: 768px) {
          font-size: 1.7rem;
          bottom: 1rem;
          left: 1rem;
        }
      }
    }
  }
  .timeline{
    padding-block: 12rem 20rem;
    display: grid;
    grid-template-columns: 1fr 20rem;
    @media screen and (max-width: 768px) {
      padding-block: 4rem 6rem;
      grid-template-columns: 100%;
    }
    .row{
      display: grid;
      grid-template-columns: 16rem 1.4rem 1fr;
      @media screen and (max-width: 768px) {
        grid-template-columns: 7rem 1rem 1fr;
        grid-template-rows: auto auto;
      }
      &+ .row{
        margin-top: 5rem;
        @media screen and (max-width: 768px) {
          margin-top: 4rem;
        }
      }
      &:first-child{
        .dot::after{
          display: none;
        }
      }
      &:last-child{
        .dot::before{
          display: none;
        }
      }
      time{
        font-size: 2.2rem;
        line-height: 1.5;
        align-self: center;
        @media screen and (max-width: 768px) {
          font-size: 1.6rem;
          align-self: flex-start;
        }
      }
      .dot{
        position: relative;
        display: grid;
        place-content: center;
        @media screen and (max-width: 768px) {
          place-content: flex-start;
          grid-area: 1/2/3/3;
        }
        span{
          display: block;
          width: 1.4rem;
          height: 1.4rem;
          border-radius: 50%;
          background-color: var(--accent);
          @media screen and (max-width: 768px) {
            width: 1rem;
            height: 1rem;
            margin-top: 0.8rem;
          }
        }
        &::before,
        &::after{
          content: "";
          display: block;
          width: 1px;
          height: calc(100% + 5rem);
          position: absolute;
          left: calc(50% - 0.5px);
          background-color: var(--accent);
          @media screen and (max-width: 768px) {
            height: calc(100% + 4rem);
          }
        }
        &::before{
          top: 50%;
          @media screen and (max-width: 768px) {
            top: 1.3rem;
          }
        }
        &::after{
          bottom: 50%;
          @media screen and (max-width: 768px) {
            display: none;
          }
        }
      }
      p{
        line-height: 1.9;
        padding-left: 5.5rem;
        align-self: center;
        @media screen and (max-width: 768px) {
          padding-left: 2.5rem;
          align-self: flex-start;
          font-size: 1.4rem;
        }
        span{
          font-weight: 600;
        }
      }
      .image{
        position: relative;
        display: none;
        @media screen and (max-width: 768px) {
          display: block;
          grid-area: 2/3/3/4;
          padding-left: 2.5rem;
        }
        &> figure,
        &> img{
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          @media screen and (max-width: 768px) {
            position: static;
            transform: none;
            margin-top: 3rem;
          }
        }
        figcaption{
          font-size: 1.2rem;
          text-align: right;
          margin-top: 1em;
        }
      }
    }

    .pc-wrap{
      @media screen and (max-width: 768px) {
        display: contents;
      }
    }
    .pc-image{
      @media screen and (max-width: 768px) {
        display: none;
      }
      figure{
        &+ figure{
          margin-top: 5rem;
        }
        figcaption{
          font-size: 1.2rem;
          text-align: right;
          margin-top: 1em;
        }
      }
    }
  }
}
