/* mv */
.mv-copy {
  animation: mv-copy-fadeIn 1.2s ease-in-out 0.3s forwards;
  position: absolute;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -30px);
  z-index: 3;
}
@media screen and (width > 768px) {
  .mv {
    padding-top: 188px;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 0;
  }
  .mv-copy {
    top: 80px;
    max-width: 213px;
    width: 24%;
  }
}
@media screen and (width <= 768px) {
  .mv {
    margin-bottom: 78px;
    padding-top: 255px;
    position: relative;
  }
  .mv-copy {
    top: 48px;
    width: 200px;
  }
}
@keyframes mv-copy-fadeIn {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.mv-carrer-btn {
  animation: mv-carrer-btn-fadeIn 1s ease-in-out 0.8s forwards;
  opacity: 0;
  position: absolute;
  z-index: 3;
}
@media screen and (width > 768px) {
  .mv-carrer-btn {
    border-radius: 80px;
    height: 160px;
    overflow: hidden;
    top: 80px;
    left: 50%;
    transform: translateX(150%);
    width: 160px;
  }
}
@media screen and (width <= 1024px) and (width > 768px) {
  .mv-carrer-btn {
    transform: translateX(110%);
  }
}
@media screen and (width <= 768px) {
  .mv-carrer-btn {
    align-items: center;
    border-radius: 52px;
    display: flex;
    justify-content: center;
    height: 104px;
    top: 283px;
    left: 8px;
    overflow: hidden;
    width: 104px;
  }
}
@keyframes mv-carrer-btn-fadeIn {
  to {
    opacity: 1;
  }
}

/* slideshow */
.slideshow {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.slideshow::before {
  content: "";
  display: block;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

@media screen and (width > 768px) {
  .slideshow {
    aspect-ratio: 80 / 33;
  }
  .slideshow::before {
    aspect-ratio: 32 / 5;
    background: url(/assets/img/top/mv-curve_pc.png) no-repeat 0 0 / 100% auto;
  }
}
@media screen and (width <= 768px) {
  .slideshow {
    aspect-ratio: 375 / 508;
  }
  .slideshow::before {
    aspect-ratio: 375 / 104;
    background: url(/assets/img/top/mv-curve_sp.png) no-repeat 0 0 / 100% auto;
  }
}

.slideshow li {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fade 25s infinite;
}

.slideshow li:nth-child(1) {
  animation-delay: 0s;
}
.slideshow li:nth-child(2) {
  animation-delay: 5s;
}
.slideshow li:nth-child(3) {
  animation-delay: 10s;
}
.slideshow li:nth-child(4) {
  animation-delay: 15s;
}
.slideshow li:nth-child(5) {
  animation-delay: 20s;
}

.slideshow picture,
.slideshow img {
  width: 100%;
  height: 100%;
  transform: scale(1);
  animation: zoom 10s infinite;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

.subject {
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  padding: 8px 16px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}
.photo-credit {
  color: #fff;
  font-size: 12px;
  text-shadow: 0 0 4px #000, 0 0 9px #fff;
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
}

/* achievements */
.achievements {
  background: #fff;
  position: relative;
  z-index: 1;
}
@media screen and (width > 768px) {
  .achievements {
    padding: 104px 32px 160px;
    margin-top: calc((100vw * 0.41) + 156px);
  }
}
@media screen and (width <= 768px) {
  .achievements {
    padding-bottom: 120px;
  }
}

.latest-projects {
  display: flex;
  margin: 0 auto 48px;
}
@media screen and (width > 768px) {
  .latest-projects {
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1024px;
    width: 100%;
  }
  .latest-projects li {
    width: calc(50% - 16px);
  }
}
@media screen and (width <= 768px) {
  .latest-projects {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
    width: 100%;
  }
  .latest-projects li {
    gap: 16px;
    width: 100%;
  }
}

.latest-projects a {
  border-radius: 4px;
  display: block;
  height: fit-content;
  overflow: hidden;
  position: relative;
}
.latest-projects a::before {
  background: rgba(0, 0, 0, 0.4);
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.latest-projects-subject {
  color: #fff;
  line-height: 1.5;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0 24px;
  transform: translate(-50%);
  z-index: 2;
}
.latest-projects-date {
  color: #fff;
  font-size: 14px;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

@media screen and (width > 768px) {
  .latest-projects a::before,
  .latest-projects-subject,
  .latest-projects-date {
    opacity: 0;
    transition: 0.2s;
  }
  .latest-projects a:hover::before,
  .latest-projects a:hover .latest-projects-subject,
  .latest-projects a:hover .latest-projects-date {
    opacity: 1;
    transition: 0.2s;
  }
}

/* careers */
.careers {
  background: #fff;
  position: relative;
  z-index: 1;
}
.careers-cta-area {
  width: 100%;
}
@media screen and (width > 768px) {
  .careers-cta-area {
    aspect-ratio: 1280 / 360;
    background: url(/assets/img/top/careers-img_pc.jpg) no-repeat center top /
      100% auto;
    padding-top: calc(100vw * 0.09);
  }
}
@media screen and (width <= 768px) {
  .careers-cta-area {
    aspect-ratio: 375 / 324;
    background: url(/assets/img/top/careers-img_sp.jpg) no-repeat center top /
      100% auto;
    padding-top: calc(100vw * 0.34);
  }
}

/* sns */
.sns {
  border-top: solid 8px var(--color-primary);
  position: relative;
  z-index: 1;
}
@media screen and (width > 768px) {
  .sns {
    background: #fff url(/assets/img/top/sns-bg_pc.png) no-repeat center bottom /
      cover;
    padding: 176px 0 120px;
  }
}
@media screen and (width <= 768px) {
  .sns {
    background: #fff url(/assets/img/top/sns-bg_sp.png) no-repeat center bottom /
      cover;
    padding: 120px 0 130px;
  }
}

.sns .title-h2.type-en {
  color: #fff;
}
.sns .title-h2.type-en .title-h2-ja::before,
.sns .title-h2.type-en .title-h2-ja::after {
  background: #fff;
}

.sns .sns-list {
  display: flex;
}
.sns .sns-btn {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: var(--color-primary);
  display: flex;
  gap: 12px;
  height: 56px;
  font-weight: 700;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: 0.2s;
  width: 240px;
  z-index: 1;
}
.sns .sns-btn::after {
  background: var(--color-primary);
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: 0.2s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: -1;
}
.sns .sns-btn:hover {
  color: #fff;
}
.sns .sns-btn:hover svg path {
  fill: #fff;
}
.sns .sns-btn:hover::after {
  transform: scale(1, 1);
}
@media screen and (width > 768px) {
  .sns .sns-list {
    align-items: center;
    flex-wrap: wrap;
    gap: 104px 48px;
    justify-content: center;
    max-width: 838px;
    margin: auto;
    padding: 0 32px;
  }
  .sns .sns-list-youtube {
    height: 402px;
    position: relative;
    width: 100%;
  }
  .sns .sns-comment {
    text-align: right;
    position: relative;
    z-index: 2;
  }
  .sns .sns-list-youtube iframe {
    border-radius: 8px;
    box-shadow: 16px 16px 0 #c2dbed;
    height: 240px;
    position: absolute;
    bottom: 0;
    left: 32px;
    width: 420px;
  }
  .sns .sns-list .sns-list-youtube a {
    gap: 4px;
    margin: 48px 0 0 488px;
  }
}
@media screen and (width <= 768px) {
  .sns .sns-list {
    align-items: center;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    padding: 0 12px;
    width: 100%;
  }
  .sns .sns-comment {
    margin-bottom: -12px;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  .sns .sns-list-youtube iframe {
    border-radius: 8px;
    box-shadow: 16px 16px 0 #c2dbed;
    height: 184px;
    margin: 0 auto 56px;
    width: 322px;
  }
  .sns .sns-list .sns-list-youtube {
    text-align: center;
  }
  .sns .sns-list .sns-list-youtube a {
    margin: auto;
  }
}

/* footer-message */
.footer-message {
  background: #fff;
  color: var(--color-primary);
  text-align: center;
  line-height: 2;
  position: relative;
  z-index: 1;
}
@media screen and (width > 768px) {
  .footer-message {
    padding: 120px 24px;
  }
}
@media screen and (width <= 768px) {
  .footer-message {
    padding: 120px 24px 112px;
  }
}

.footer {
  position: relative;
  z-index: 1;
}
