/*共通*/
:root {
  --text-color-01: #000000;
  --text-color-02: #333333;
  --text-color-02: #444444;
  --primary-color-01: #ffff66;
  --primary-color-02: #eecce8;
  --primary-color-03: #ff5153;
  --bg-color-01: #f3eec9;
}
p {
  font-size: 1.1rem;
}
.custom-page-ttl {
  background-color: var(--primary-color-01);
  padding-top: 12vw;
  padding-bottom: 2vw;

  .zcontainer {
    max-width: 1000px;
  }
  & h1 img {
    width: 17%;
  }
  & p {
    margin: 0;
  }
}

.history-area {
  position: relative;
  background-image: linear-gradient(
    180deg,
    rgba(243, 237, 196, 1),
    rgba(255, 255, 255, 1) 42% 70%,
    rgba(244, 201, 233, 1)
  );
  padding: 6vw 0 15vw;
}
.history-menu {
  position: absolute;
  background-color: #fff;
  border: 3px solid var(--primary-color-01);
  border-radius: 1vw;
  padding: 2vw 1.5vw;
  top: 5vw;
  left: 5%;
  display: flex;
  flex-direction: column;
  gap: 1vw;

  & a {
    display: block;
  }
  & img {
    width: 4vw;
  }
}

.his-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 3vw;
}

.his-block {
  padding: 3vw 0;
  margin-left: 5vw;
  border-left: 2px dotted #979797;
  display: grid;
  grid-template-columns: 8vw 1fr;
  gap: 2vw;
  align-items: flex-start;
  position: relative;

  & ul {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
  }
  & li {
    padding-left: 1rem;
    text-indent: -1rem;
  }
  & p {
    margin: 0;
  }
  & span {
    color: #ff0000;
    font-weight: 700;
  }
  & figure {
    margin: 1vw 0;
    border-radius: 1vw;
    box-sizing: border-box;
    overflow: hidden;
    width: 60%;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }
}

.his-year {
  display: flex;
  gap: 1vw;
  align-items: center;
  margin: 0;

  & img {
    width: 6vw;
  }
}
.his-year::before {
  content: "";
  background-color: #979797;
  display: inline-block;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -5px 0;
}

#history2000 {
  background: url(../img/history/bg-history01.svg);
  background-size: cover;

  .his-block:nth-last-of-type(2) {
    padding-bottom: 0;

    .his-year {
      translate: 0 40%;
    }
  }
}

.text-his-bottom {
  text-align: right;
  margin: 1vw 0;

  & img {
    width: 45%;
  }
}
.history-bottom {
  background-color: var(--bg-color-01);
  padding: 0 0 5vw;
  text-align: center;

  & img {
    width: 65%;
    translate: 0 -35%;
  }
}

/*画像配置*/
.his-img-a {
  display: block;
  margin-left: auto;
}
.his-img-b {
  position: absolute;
  display: block;
}
.his-img01 {
  width: min(15%, 8vw);
  margin-right: 20%;
}
.his-img02 {
  width: min(40%, 20vw);
}
.his-img03-2 {
  width: min(10%, 5vw);
  top: -2%;
  left: 2vw;
}
.his-img03 {
  width: min(40%, 13vw);
  margin-right: 40%;
  margin-top: 1vw;
}
.his-img04 {
  right: 20%;
  left: 55%;
  width: min(50%, 15vw);
}
.his-img05 {
  width: min(10%, 4vw);
  right: 10%;
  bottom: -15%;
  rotate: 20deg;
}
.his-img06 {
  width: min(25%, 10vw);
  margin-top: 1vw;
  margin-right: 10%;
}
.his-img07 {
  width: min(20%, 8vw);
  right: 0;
  bottom: -38%;
}
.his-img08 {
  width: min(12%, 6vw);
  right: 15%;
  bottom: 0;
  rotate: 10deg;
}
.his-img09 {
  width: min(40%, 13vw);
  margin-right: 24%;
  margin-top: 1vw;
}
.slidein {
  position: absolute;
  top: 50%;
  rotate: -30deg;
  width: min(12%, 6vw);
  transform: translateX(1000px);
  transition: transform 2s ease;
}
.slidein.show {
  transform: translateX(-25%);
}

/*タイムリープエリア*/
.accordion-area {
  margin: 0 auto;
}
#y-1918 .his-block {
  padding: 0;

  .his-year,
  p {
    translate: 0 -40%;
  }
}
.histitle {
  position: relative;
  cursor: pointer;
  transition: all 0.7s ease;
}
.timeleap {
  margin-left: 5vw;
  border-left: 2px dotted #979797;

  & img {
    width: 900px;
    translate: -5% 0;
    position: relative;
    z-index: 10;
  }
}
.timeleap:hover {
  opacity: 0.7;
}

.hisbox {
  display: none;
  position: relative;
}
.hisboxwrapper {
  background: no-repeat url(../img/history/bg-history02.svg);
  background-size: cover;
  background-color: #ddd4ed;
  position: relative;
}
.his-separate-top {
  background: url(../img/history/his-separate_pc.svg);
  background-repeat: repeat-x;
  display: block;
  transform: scaleY(-1);
  height: 5vw;
}
.his-separate-bottom {
  background: url(../img/history/his-separate_pc.svg);
  background-repeat: repeat-x;
  display: block;
  height: 5vw;
}

/*SPサイズ*/
@media screen and (max-width: 767px) {
  p {
    font-size: 1rem;
  }

  .custom-page-ttl {
    padding-top: 30vw;
    padding-bottom: 7vw;

    & h1 {
      margin: 1vw 0;
    }
    & h1 img {
      width: 45%;
    }
  }
  .history-menu {
    align-items: center;
    flex-direction: row;
    top: 5vw;
    left: 0;
    right: 0;
    margin: auto;
    padding-top: 10px;
    width: 85%;
    justify-content: space-around;

    & a {
      line-height: 1rem;
    }
    & img {
      width: 13vw;
    }
  }
  .his-container {
    margin-left: 0;
  }
  .his-block {
    grid-template-columns: 1fr;
    padding: 8vw 0;
    margin-left: 2vw;

    & ul {
      margin: 2vw 3vw;
      font-size: 1rem;
    }
    & li {
      text-indent: -0.6rem;
      padding-bottom: 3vw;
    }
    & p {
      margin: 1vw 3vw;
    }
    & figure {
      margin: 4vw auto;
      border-radius: 3vw;
      width: 90%;
    }
  }
  .his-content {
    margin: 2vw 3vw;

    & p {
      margin: 0;
    }
  }
  .his-year {
    & img {
      width: 20vw;
    }
  }
  .his-year::before {
    content: "";
    width: 6px;
    translate: -4px 0;
  }

  #y-1918 .his-block {
    & p {
      translate: 0 -20%;
    }
  }
  .accordion-area {
    padding-top: 23vw;
  }
  .timeleap {
    margin-left: 2vw;
    height: 46vw;
    position: relative;

    & img {
      position: absolute;
      translate: -19% 2%;
      max-width: 150%;
    }
  }
  .timeleap:hover {
    opacity: 1;
  }
  .hisbox {
    padding: 0;
  }
  .his-separate-top {
    background: url(../img/history/his-separate_sp.svg);
  }
  .his-separate-bottom {
    background: url(../img/history/his-separate_sp.svg);
    translate: 0 -1px;
  }
  .hisboxwrapper {
    padding: 10vw 0 0;
    background-size: 200% 100%;
    background-position: center;
  }

  #history2000 {
    padding-top: 5vw;
    background-size: 175% 50%;
    background-position: top;
  }

  .text-his-bottom {
    & img {
      width: 63%;
    }
  }
  .history-bottom {
    & img {
      width: 95%;
    }
  }

  /*画像配置*/
  .his-img-a {
    position: absolute;
  }
  .his-img01 {
    width: 25%;
    right: 0;
    bottom: -10%;
    margin-right: 0;
  }
  .his-img02 {
    width: 55%;
    right: 0;
    bottom: -22%;
  }
  .his-img03 {
    width: 50%;
    right: 5%;
    margin-right: 0;
  }
  .his-img03-2 {
    width: 22%;
    position: relative;
  }
  .his-img04 {
    right: 0;
    left: 53%;
    width: 57%;
  }
  .his-img05 {
    width: 14%;
    right: 0;
    bottom: -40%;
  }
  .his-img06 {
    width: 30%;
    right: 0;
  }
  .his-img07 {
    width: 25%;
    right: 5%;
    bottom: -20%;
  }
  .his-img08 {
    width: 17%;
    right: 24%;
    bottom: -5%;
  }
  .his-img09 {
    width: 47%;
    right: 0;
    margin-right: 0;
  }
  .slidein {
    width: 25%;
    transform: translateX(100vw);
  }
  .slidein.show {
    transform: translateX(-30vw);
  }
}

/*PCサイズ*/
@media screen and (min-width: 768px) {
}

/* タブレット */
@media screen and (min-width: 767px) and (max-width: 1280px) {
/*  .history-menu {
    align-items: center;
    flex-direction: row;
    top: 1%;
    left: 0;
    right: 0;
    margin: auto;
    width: 60%;
    justify-content: space-around;

    & a {
      line-height: 1rem;
    }
    & img {
      width: 10vw;
    }
  }*/
  .accordion-area {
    padding-top: 15vw;
  }
}
