@charset "UTF-8";
/* CSS Document */

.l-inner {
  margin-inline: auto;
  width: 94%;
}

.l-inner-middle {
  margin-inline: auto;
  width: 94%;
}

@media (min-width: 799px) {
  .l-inner {
    width: 90%;
    max-width: 1200px;
  }
  .l-inner-middle {
    width: 90%;
    max-width: 1000px;
  }
}

main .main_wrapper {
  overflow: hidden;
  position: relative;
}
main .main_bg {
  position: relative;
  overflow: hidden;
}
main .main_bg > picture img {
  width: 100%;
  height: auto;
  display: block;
}
main .main_icon {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 70px;
  pointer-events: none;
  animation: mv-icon-ride 18s linear infinite;
  will-change: transform;
}
main .main_icon img {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes mv-icon-ride {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(calc(-100vw - 100%));
  }
}
@media (prefers-reduced-motion: reduce) {
  main .main_icon {
    animation: none;
    right: 4%;
    left: auto;
    transform: none;
  }
}
main .mv__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 0 140px;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}
main .mv__inner {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
main .mv__inner .mv__img {
  width: auto;
  height: auto;
  max-width: min(100%, calc(990 / 1200 * 100%));
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1000 / 510;
}
main .mv__inner .mv__img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 1339px以下のみ：中央寄せ＋枠内収まり（1440px以上は従来のちょい左寄せのまま） */
@media screen and (max-width: 1439px) {
  main .mv__inner {
    justify-content: center;
  }
  main .mv__inner .mv__img {
    box-sizing: border-box;
    max-width: min(990px, 100%);
    aspect-ratio: 990 / 510;
    transform: translateX(-10%);
  }
}
@media screen and (max-width: 1439px) and (min-width: 800px) {
  main .mv__content {
    padding: 32px 0 100px;
  }

  main .main_icon {
    width: 50px;
  }
}

@media screen and (max-width: 799px) {
  /* SP背景は前面MVに高さを合わせる */
  main .main_bg > picture img {
    width: 100%;
    height: auto;
    aspect-ratio: 375 / 700;
    object-fit: cover;
    object-position: center bottom;
  }
  /*
    SP前景の中央寄せは flex（.mv__content）に任せる。
    max-height の % は「親に確定した高さ」がないと効かないため、
    .mv__inner は height:100% にして枠の高さを渡す。
  */
  main .mv__content {
    padding: 28px 0 72px;
  }
  main .mv__inner {
    height: 100%;
    max-height: 100%;
    min-height: 0;
  }
  main .mv__inner .mv__img {
    width: auto;
    height: auto;
    max-width: 92%;
    max-height: 87%;
    aspect-ratio: 674 / 938;
    transform: none;
  }
  main .mv__inner .mv__img img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  main .main_icon {
    width: 60px;
    bottom: 0;
    animation-duration: 9s;
  }
}

.top_event {
  padding-block: 90px 40px;
  background: #f2f2f2;
}

.t-property {
  padding-top: 90px;
}

@media screen and (max-width: 799px) {
  .top_event {
    padding-block: 58px 40px;
  }
  .t-property {
    padding-top: 60px;
  }
}

.top_housing {
  padding-bottom: 100px;
}

/* 印刷プレビュー*/
@media print {
  .top_jump {
    margin-bottom: 50px;
  }
  .top_jump .flex {
    width: 460px;
    gap: 10px;
    padding: 20px 0;
  }
  .top_jump .flex a.shadowbtn {
    height: 75px;
  }
}
