/* Ken Burns */
@keyframes kb5-1 {
  from { transform: scale(1.05) translate(0%, 0%); }
  to   { transform: scale(1.12) translate(-2%, -1%); }
}
@keyframes kb5-2 {
  from { transform: scale(1.12) translate(-2%, -2%); }
  to   { transform: scale(1.05) translate(2%, 1%); }
}
@keyframes kb5-3 {
  from { transform: scale(1.05) translate(2%, 1%); }
  to   { transform: scale(1.12) translate(-1%, 2%); }
}

/* 画面サイズ 特大=default 1200< */
.hero5 {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  max-width: 1500px;
  overflow: hidden;
  margin: 0 auto 100px auto;
}

.hero5-copy {
  flex: 1;
  order: 1;
  display: flex;
  align-items: start;
  justify-content: left;
}

.hero5-copy .hero5-title {
  writing-mode: vertical-rl;
  margin: 20px auto 0 20px;
}
.hero5-copy .hero5-title h2 {
  width: fit-content;
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 42px;
}

.hero5-copy .hero5-text {
  text-align: left;
  padding: 28px 0 0 20px;
}

.hero5-copy .hero5-text h3 {
  color: var(--color-muted);
  font-family: var(--font-heading);
  line-height: 1.6;
  font-size: 26px;
  letter-spacing: 0;
  padding: 0 0 20px 0;
}

.hero5-copy .hero5-text h3 span {
  display: block;
  /*margin-right: 20px;*/
}

.hero5-copy .hero5-text .hero5-link {
  margin: 0 20px 8px 0;
}

.hero5-copy .hero5-text .hero5-link a {
  margin: 40px 0 0 0;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  font-weight: 500;
  font-size: 22px;
}

.hero5-image {
  flex: 1;
  order: 2;
  width: auto;
  overflow: hidden;
  position: relative;
  height: 47vw;
  max-height: 700px;
  border-radius: 0 10px 10px 0;
}

.hero5-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero5-slide.active {
  opacity: 1;
}

/* 画面サイズ 大 941px < x <= 1200 */
@media (max-width: 1200px) {
  .hero5-copy .hero5-title h2 {
    font-size: 38px;
  }

  .hero5-copy .hero5-text {
    /*padding-top: 10px;*/
    padding: 28px 0 0 20px;
  }

  .hero5-copy .hero5-text h3 {
    font-size: 24px;
    /*margin: 28px 0;*/
    padding: 0 0 28px 0;
  }

  .hero5-copy .hero5-text .hero5-link {
    font-size: 18px;
  }

  .hero5-image {
    height: 50vw;
  }
}

/* 画面サイズ 中 700px < x <= 940 */
@media (max-width: 940px) {
  .hero5-copy .hero5-title h2 {
    font-size: 32px;
  }

  .hero5-copy .hero5-text h3 {
    font-size: 22px;
  }

  .hero5-copy .hero5-text .hero5-link a {
    font-size: 18px;
  }

  .hero5-image {
    height: 52vw;
  }
}

@media (max-width: 700px) {
  .hero5 {
    flex-direction: column-reverse;
  }

  .hero5-copy {
    justify-content: flex-start;
  }

  .hero5-copy .hero5-sub {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
  }

  .hero5-copy .hero5-title {
    flex: 1;
    display: flex;
    width: 20%;
    justify-content: center;
    margin: auto 0;
    position: relative;
  }

  .hero5-copy .hero5-title h2 {
    border: none;
  }

  .hero5-copy .hero5-title::before {
    content: '';
    position: absolute;
    right: 22px;
    transform: translateX(-50%);
    bottom: 150%;
    height: 100px;
    width: 2px;
    background: var(--color-accent);
    box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 30;
  }

  .hero5-copy .hero5-text {
    flex-shrink: 0;
    width: 80%;
    min-width: 310px;
    text-align: center;
  }

  .hero5-copy .hero5-text {
    padding: 0;
  }

  .hero5-copy .hero5-text h3 {
    margin: 18px 0 18px 0;
    padding: 0;
  }

  .hero5-copy .hero5-text h3 span {
    font-size: 22px;
  }

  .hero5-copy .hero5-text .hero5-link {
    margin: 0;
  }

  .hero5-copy .hero5-text .hero5-link a {
    font-size: 16px;
  }

  .hero5-image {
    flex: none;
    width: 100%;
    height: 64vw;
    border-radius: 0;
  }
}
