#mainvisual {
  width: 100%;
  margin-top: var(--header-height);
  overflow: hidden;
}

.mainvisual-animation {
  --vh: min(calc(240px + 360 * (100vw - 375px) / 1545), 600px);
  width: 100%;
  height: var(--vh);
  background-color: #fff;
  position: relative;
  z-index: 0;
}
@supports (height: 100dvh) {
  .mainvisual-animation {
    --vh: min(calc(240px + 360 * (100vw - 375px) / 1545), 600px);
  }
}
@media (orientation: landscape) and (max-width: 767px) {
  .mainvisual-animation {
    height: var(--vh);
    min-height: inherit;
  }
}
@media print, screen and (min-width: 768px) {
  .mainvisual-animation {
    height: var(--vh);
    min-height: inherit;
  }
}

/* ---  --- */
#year-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: #111;
}
#year-wrapper.completed {
  opacity: 0;
  visibility: hidden;
  transition: opacity 3s ease, visibility 3s ease;
}
#year-wrapper .count {
  color: #fff;
  font-weight: 700;
  font-size: min(calc(50px + 150 * (100vw - 320px) / 1600), 200px);
  line-height: 1;
  padding-top: 0.1em;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 10;
  opacity: 0;
}
#year-wrapper.is-active .count {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 2s ease, transform 10s ease;
}
#year-wrapper .image {
  position: absolute;
  z-index: -1;
  width: 17%;
  left: 50%;
  top: 50%;
  border: solid 3px #000;
  transform: translate(-50%, -50%) scale(0);
  background-color: #aaa;
  transition: all 5s ease;
}
#year-wrapper .image img {
  max-width: 100%;
  width: auto;
}
#year-wrapper .image_1.is-active {
  left: 20%;
  top: 35%;
  transform: translate(-50%, -50%) scale(1);
}
#year-wrapper .image_2.is-active {
  left: 80%;
  top: 65%;
  transform: translate(-50%, -50%) scale(1);
}
#year-wrapper .image_3.is-active {
  left: 75%;
  top: 35%;
  transform: translate(-50%, -50%) scale(1);
}
#year-wrapper .image_4.is-active {
  left: 25%;
  top: 75%;
  transform: translate(-50%, -50%) scale(1);
}
#year-wrapper .image_5.is-active {
  left: 40%;
  top: 40%;
  transform: translate(-50%, -50%) scale(1);
}
#year-wrapper .image_6 {
  top: auto;
  bottom: 50%;
  transform: translate(-50%, 50%) scale(0);
}
#year-wrapper .image_6.is-active {
  width: 18%;
  left: 60%;
  bottom: 0%;
  transform: translate(-50%, 0%) scale(1);
}

/* ---  --- */
#mainimage-hills {
  opacity: 1;
  visibility: visible;
  position: absolute;
  inset: 0;
  z-index: 6;
}
#mainimage-hills img {
  max-width: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 10s ease;
}
#mainimage-hills.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}
#mainimage-hills.is-active img {
  transform: scale(1.2);
}
#mainimage-hills.is-active2 {
  transition: width 1s ease;
  width: 60%;
}

/* ---  --- */
#mainimage-case {
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
}
#mainimage-case img {
  max-width: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(0%, 0%) scale(1);
}
#mainimage-case.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 2s ease, visibility 2s ease;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
#mainimage-case.is-active img {
  transform: translate(0%, 0%) scale(1.15);
  transition: all 10s ease;
}
#mainimage-case.is-active2 {
  transition: width 1s ease, clip-path 1s ease;
  width: 60%;
  clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
}
#mainimage-case.is-active2 img {
  transition: all 0.3s ease;
  transform: translate(0%, 0%) scale(1.5);
}

/**/
#mainimage-caption {
  position: absolute;
  bottom: 10%;
  left: 5%;
  z-index: 20;
}
#mainimage-caption h2 {
  font-size: 1rem;
  margin: 0;
}
#mainimage-caption h2 img {
  width: min(90%, 640px);
}
#mainimage-caption h2 .mask {
  display: inline-block;
  vertical-align: middle;
  opacity: 0;
  mask-image: linear-gradient(to right, black 0%, black 50%, transparent 50%, transparent 100%);
  mask-repeat: no-repeat;
  mask-position: 100% 50%;
  mask-size: 200% 100%;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 50%, transparent 50%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 100% 50%;
  -webkit-mask-size: 200% 100%;
  transition: mask-position 0.5s ease-out;
}
#mainimage-caption h2 .mask.is-active {
  opacity: 1;
  mask-position: 0% 50%;
  -webkit-mask-position: 0% 50%;
}

/*# sourceMappingURL=mainvisual-animation.css.map */
