.roots-intro {
  background: #fbfbfb;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 80px) clamp(30px, 4vw, 600px);
}
.roots-intro__en {
  margin-top: -0.15em;
  font-family: "Jost", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.375rem, 9.375vw, 11.25rem);
  line-height: 1;
  color: #029b79;
  letter-spacing: -0.022em;
}
.roots-intro__char {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-weight: 700;
  transform: skewX(-8deg);
}
.roots-intro__jp {
  margin-top: clamp(8px, 1.04vw, 20px);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.5625vw, 1.875rem);
  color: #029b79;
  letter-spacing: 0.128em;
  line-height: 1.5;
}
.roots-intro__body {
  margin-top: clamp(24px, 3vw, 60px);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  /* font-size: clamp(0.9375rem, 1.04vw, 1.25rem); */
  font-size: clamp(16px, 1.04vw, 1.25rem);
  color: #029b79;
  line-height: 1.8;
  text-align: center;
}
.roots-intro__body > p + p {
  margin-top: 0.3em;
}

.next-contents {
  position: relative;
  background: #ffffff;
  padding-top: clamp(40px, 5.21vw, 100px);
  padding-bottom: clamp(40px, 5.21vw, 100px);
  padding-left: clamp(160px, 31.25vw, 600px);
  padding-right: clamp(24px, 5.21vw, 100px);
  overflow: hidden;
}
.next-contents__label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(160px, 40.42vw, 776px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-bottom: clamp(3px, 0.365vw, 7px) solid #029b79;
  padding-block: clamp(4px, 0.52vw, 10px);
  font-family: "Jost", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.375rem, 5.21vw, 6.25rem);
  color: #029b79;
  letter-spacing: -0.022em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  -webkit-text-stroke: 1px #ffffff;
  paint-order: stroke fill;
}
.next-contents__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(160px, 17.03vw, 327px);
  border: 4px solid #029b79;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
}
@media (hover: hover) {
  .next-contents__card:hover .next-contents__card-bg {
    transform: scale(1.06);
  }
}
.next-contents__card-bg {
  position: absolute;
  inset: 0;
  background-image: url(../img/common/column-banner-img.jpg);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.next-contents__card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.next-contents__card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.365vw, 7px);
  text-align: center;
  padding: 16px;
}
.next-contents__card-en {
  font-family: "Jost", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.125rem, 1.5625vw, 1.875rem);
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.next-contents__card-name {
  display: inline-block;
  background: #029b79;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  letter-spacing: 0.04em;
  padding: clamp(4px, 0.21vw, 4px) clamp(10px, 0.99vw, 19px);
  line-height: 1.5;
  white-space: nowrap;
}
@media screen and (max-width: 1024px) {
  .next-contents {
    padding-left: clamp(60px, 12vw, 120px);
  }
  .next-contents__label {
    font-size: clamp(1.75rem, 5.21vw, 3.75rem);
    width: max-content;
    padding-left: 20px;
  }
}
@media screen and (max-width: 768px) {
  .next-contents {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: clamp(90px, 22vw, 160px);
  }
  .next-contents__label {
    top: 20px;
    transform: none;
    font-size: clamp(1.75rem, 8vw, 3.125rem);
    width: auto;
    right: 20px;
    align-items: flex-end;
  }
  .next-contents__card {
    height: clamp(140px, 40vw, 220px);
  }
  .next-contents__card-name {
    white-space: normal;
  }
}

.next-contents--anim .next-contents__label {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.next-contents--anim .next-contents__card {
  border-color: transparent;
  transition: all .3s;
}
.next-contents--anim .next-contents__card:hover .next-contents__card-bg {
  transform: scale(1.06);
}
.next-contents--anim .next-contents__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid #029b79;
  transform: scale(0.96);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}
.next-contents--anim .next-contents__card-bg {
  opacity: 0;
  /* transform: scale(1.14); */
  transition: opacity 0.6s ease 0.7s, transform .6s, cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}
.next-contents--anim .next-contents__card-inner {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 1.1s, transform 0.6s ease 1.1s;
}
.next-contents--anim.is-in .next-contents__label {
  opacity: 1;
  transform: none;
}
.next-contents--anim.is-in .next-contents__card::before {
  opacity: 1;
  transform: scale(1);
}
.next-contents--anim.is-in .next-contents__card-bg {
  opacity: 1;
  transform: none;
}
.next-contents--anim.is-in .next-contents__card-inner {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .next-contents--anim .next-contents__label,
  .next-contents--anim .next-contents__card-bg,
  .next-contents--anim .next-contents__card-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .next-contents--anim .next-contents__card {
    border-color: #029b79;
  }
  .next-contents--anim .next-contents__card::before {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
