/* ==========================================================================
   page-top.css — index.html 専用スタイル（ネイティブCSSネスト）
   旧 page-top.scss + _mainvisual.scss + _renovation.scss を統合。
   Preprosはdart-sassを通さず、autoprefixer/minify-cssのみ適用する。
   ========================================================================== */

/* ------------- スプラッシュ画面 ------------- */
header .site-header__logo {
  display: none;
}
.splash_container .site-logo {
  position: absolute;
  z-index: 99;
  top: 25px;
  left: 25px;
}

/* アニメーション */
.swing:before {
  -webkit-animation: swing 2s infinite linear;
  animation: swing 2s infinite linear;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes fuwafuwa {
  0% {
    transform: translate(0, 0) rotate(20deg) scale(0.4);
    left: -440px;
  }
  40% {
    transform: translate(0, -50px) rotate(40deg) scale(1);
  }
  50% {
    left: 20%;
    transform: scale(2.4);
  }
  70% {
    transform: translate(0, 200px) rotate(-20deg);
  }
  100% {
    transform: translate(0, 0) rotate(20deg);
    left: -540px;
  }
}
@keyframes fuwafuwaSP {
  0% {
    transform: translate(0, 0) rotate(20deg) scale(0.4);
    left: -140px;
  }
  40% {
    transform: translate(0, -50px) rotate(40deg) scale(1);
  }
  50% {
    left: 20%;
    transform: scale(2.4);
  }
  70% {
    transform: translate(0, -10%) rotate(-20deg);
  }
  100% {
    transform: translate(0, -50%) rotate(20deg);
    left: -40px;
  }
}
@keyframes zoomup {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}
.d-none {
  display: none;
}

#video {
  opacity: 0;
}

.splash_container {
  font-family: "Fjalla One", sans-serif;
  position: relative;
  @media (max-width:768px){
    height: auto;
  }

  .cover {
    background: url("/assets/img/top/dot.png") rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    top: 0;
    left: 0;
    display: none;
    z-index: 2;
  }

  .videotitle {
    display: none;
  }

  .scroll {
    display: none;
  }

  /* 202209 追加分 */
  /* コンテナの共通スタイル */
  .hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-size: cover;
    background-position: center;
    z-index: 1; /* ここは後で調整 */
    overflow: hidden;
    .hero-slide_wrap {
      z-index: 1;
      position: relative;
      width: 100%;
      height: 100%;
    }
    .img,
    .text {
      position: absolute;
    }
    .text {
      img {
        width: 100%;
        @media (min-width: 769px) {
          width: auto;
        }
      }
    }
  }
  /* ------------- SPACE -------------- */
  /* BestTen-DOTの@font-faceはstyle.css側に既に定義済みのためここでは省略 */
  #invader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #17161e;
    padding-top: 110px;
    padding-bottom: 70px;
    @media (min-width: 769px) {
      padding-bottom: 150px;
    }
  }

  #invader {
    display: block;
    width: 80%;
    height: 78%;
    max-width: 80%;
    margin: 0 auto;
    outline: none;
  }
  .lives-wrapper {
    display: flex;
    justify-content: end;
    width: 90%;
    font-family: "BestTen-DOT";
    font-size: 15px;
    letter-spacing: 2px;
    margin: 0 auto;
    @media (min-width: 769px) {
      width: 80%;
      font-size: 18px;
    }
  }
  .hud {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
    padding-top: 20px;
    gap: 32px;
    font-family: "BestTen-DOT";
    font-size: 15px;
    letter-spacing: 2px;
    position: relative;
    &::before {
      content: "";
      width: 100%;
      height: 5px;
      background-image: linear-gradient(to right, #fff 4px, transparent 4px);
      background-size: 5px 10px;
      position: absolute;
      left: 0;
      top: 0;
    }
    @media (min-width: 769px) {
      width: 80%;
      font-size: 18px;
    }
  }
  .hud-inner {
    display: flex;
  }
  .score-label,
  #score-value,
  .countdown-label {
    color: #08d6c2;
    font-weight: bold;
  }
  .score-label,
  .countdown-label {
    margin-right: 4px;
  }
  #score-value,
  #countdown-value {
    min-width: 32px;
    display: inline-block;
    text-align: right;
  }
  #score-value {
    display: flex;
    align-items: center;
    &::before {
      content: "< ";
    }
    &::after {
      content: " >";
    }
  }
  .lives-label,
  #lives-value,
  #countdown-value {
    color: #ff3b66;
  }
  .game-over {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-family: "BestTen-DOT";
    font-size: 52px;
    text-align: center;
    letter-spacing: 2px;
    color: #fee51b;
    background: rgba(23, 22, 30, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    @media (min-width: 769px) {
      font-size: 62px;
    }
  }
  .invader-date-time {
    font-size: 18px;
    @media (min-width: 769px) {
    font-size: 24px;
    }
  }
  /* ------------- ON / OFF -------------- */
  #onoff-container {
    background: #3c569e;
    &::after {
      content: "";
      width: 100%;
      height: 45%;
      background: #2b3b6d;
      position: absolute;
      right: 0;
      bottom: 0;
      clip-path: polygon(0 65%, 0 100%, 100% 100%, 100% 0);
      @media (min-width: 769px) {
        height: 60%;
        clip-path: polygon(0 80%, 0 100%, 100% 100%, 100% 0);
      }
    }
  }
  .onoff-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-45%, -40%);
    width: 240px;
    height: 320px;
    z-index: 5;
    @media (min-width: 376px) {
      transform: translate(-50%, -50%);
      width: 350px;
      height: 500px;
    }
    @media (min-width: 769px) {
      height: 515px;
    }
  }
  .onoff-sp {
    width: 160px;
    height: auto;
    aspect-ratio: 9 / 16;
    position: absolute;
    bottom: 15px;
    left: 13px;
    z-index: 5;
    &:first-child {
      width: 175px;
      bottom: 0;
      left: 0;
      filter: drop-shadow(-20px 0px 3px rgba(13, 25, 53, 0.4));
    }
    @media (max-width: 768px) {
      width: 160px;
      bottom: 15px;
      &:first-child {
        width: 175px;
      }
    }
    @media (min-width: 376px) {
      width: 260px;
      bottom: 20px;
      left: 18px;
      &:first-child {
        width: 280px;
      }
    }
    @media (min-width: 769px) {
      width: 270px;
      bottom: 20px;
      &:first-child {
        width: 290px;
      }
    }
  }
  .onoff-switch {
    width: 60px;
    height: auto;
    position: absolute;
    top: 20px;
    left: 65px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    will-change: opacity, transform, visibility;
    z-index: 6;
    @media (min-width: 376px) {
      width: 80px;
      left: 95px;
    }
    @media (min-width: 769px) {
      width: 95px;
      top: 10px;
    }

    &.active {
      opacity: 1;
      visibility: visible;
      scale: 1;
    }
    &.inactive {
      opacity: 0;
      visibility: hidden;
      scale: 0.95;
    }
  }
  .onoff-male {
    position: absolute;
    top: 30%;
    right: 15px;
    width: 123px;
    height: 320px;
    background: url(/assets/img/top/slide8/male.png) no-repeat;
    background-size: auto 320px;
    background-position-x: -492px;
    z-index: 6;
    @media (min-width: 376px) {
      right: 0;
      width: 211px;
      height: 550px;
      background-size: auto 550px;
      background-position-x: -844px;
    }
    @media (min-width: 769px) {
      top: 20px;
      right: -150px;
      width: 220px;
      height: 572px;
      background-size: auto 572px;
      background-position-x: -880px;
    }
    &.active {
      animation: parapara-se 1.5s steps(4) forwards;
      @media (min-width: 376px) {
        animation: parapara-sp 1.5s steps(4) forwards;
      }
      @media (min-width: 769px) {
        animation: parapara 1.5s steps(4) forwards;
      }
    }
  }
  .onoff-video-mask {
    /* 3D効果を有効にするためにperspectiveを指定 */
    perspective: 800px; /* 値が小さいほどパースが強くなる */
    width: 100%;
    aspect-ratio: 9 / 16;
    /* マスクはラッパーにだけ指定 */
    mask-image: url("/assets/img/top/slide8/sp-front.svg");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: 0 0;
    -webkit-mask-image: url("/assets/img/top/slide8/sp-front.svg");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 0 0;
    background: #fff;
    display: block;
    position: relative;
    overflow: hidden;
  }
  .onoff-video {
    width: 95%;
    height: 100% !important;
    object-fit: contain;
    position: absolute;
    left: 15px;
    top: 50%;
    /* ここで動画だけ傾ける */
    transform: translate(0, -53%) rotateZ(350deg) /* 黒帯の傾き */ rotateX(3deg)
      /* 奥行き感（上下方向のパース） */ rotateY(30deg); /* 横方向のパース（必要に応じて） */
    /* transform-originで回転の中心を調整（必要に応じて） */
    transform-origin: center center;
    display: block;
    background: #fff;
  }

  /* ------------- HEYA WARS -------------- */
  .hero-slide7_block {
    background: #0b1a36;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
  }
  .starry-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  .star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    @media (min-width: 768px) {
      width: 2px;
      height: 2px;
    }
  }
  /* 光る星だけアニメーション */
  .twinkle {
    animation: twinkle 2.5s infinite;
  }
  .heyawars-logo {
    width: auto;
    height: 70px;
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    padding-left: 20px;
    @media (min-width: 376px) {
      height: 85px;
    }
    @media (min-width: 960px) {
      height: 20%;
      bottom: 180px;
    }
  }
  .heyawars-op {
    position: absolute;
    width: 96%;
    height: 100vh;
    bottom: 170px;
    left: 50%;
    overflow: hidden;
    transform-origin: 50% 100%;
    transform: translateX(-50%) perspective(300px) rotateX(25deg);
    &:after {
      position: absolute;
      content: " ";
      left: 0;
      right: 0;
      top: 0;
      bottom: 60%;
      background-image: linear-gradient(
        top,
        rgba(11, 26, 54, 1) 0%,
        transparent 100%
      );
      pointer-events: none;
    }
    @media (min-width: 376px) {
      height: 120vh;
      bottom: 200px;
    }
    @media (min-width: 768px) {
      height: calc(100% - 25%);
      bottom: 360px;
    }
  }
  .heyawars-sentence {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    color: #fee51b;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: scroll 35s linear .4s infinite;
    @media (min-width: 376px) {
      font-size: 18px;
      animation: scroll 48s linear 1s infinite;
    }
    @media (min-width: 768px) {
      font-size: 24px;
      animation: scroll 40s linear 1.3s infinite;
    }
    @media (min-width: 1200px) {
      font-size: 28px;
    }
  }
  .heyawars-sentence-inner {
    display: inline-block;
    letter-spacing: 2px;
    line-height: 2.5;
    text-wrap: balance;
    &:not(:last-child) {
      margin-bottom: 25px;
    }
    span {
      display: inline-block;
    }
  }
  /* ------------- JUMPING -------------- */
  #jumping-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
  }

  .door_front,
  .door_back {
    width: auto;
    height: 70%;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
  }
  .door_front {
    z-index: 4;
  }
  .door_back {
    z-index: 1;
  }
  .floating-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: auto;
    object-fit: contain;
    will-change: transform;
    @media (min-width: 769px) {
      width: 300px;
    }
  }
  .floating-lady-wrapper {
    width: 40%;
    height: 62%;
    position: relative;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .floating-lady {
    width: auto;
    height: 100%;
    object-fit: contain;
  }
  .floating-chair {
    animation: 40s chair-sp infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    @media (min-width: 769px) {
      animation: 40s chair infinite cubic-bezier(0.4, 0, 0.2, 1);
    }
  }
  .floating-cup {
    animation: 40s cup-sp infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    @media (min-width: 769px) {
      animation: 40s cup infinite cubic-bezier(0.4, 0, 0.2, 1);
    }
  }
  .floating-fridge {
    animation: 40s fridge-sp infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    @media (min-width: 769px) {
      animation: 40s fridge infinite cubic-bezier(0.4, 0, 0.2, 1);
    }
  }
  .floating-headphone {
    animation: 40s headphone-sp infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    @media (min-width: 769px) {
      animation: 40s headphone infinite cubic-bezier(0.4, 0, 0.2, 1);
    }
  }
  .floating-icecandy {
    animation: 40s icecandy-sp infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    @media (min-width: 769px) {
      animation: 40s icecandy infinite cubic-bezier(0.4, 0, 0.2, 1);
    }
  }
  .floating-tv {
    animation: 40s tv-sp infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    @media (min-width: 769px) {
      animation: 40s tv infinite cubic-bezier(0.4, 0, 0.2, 1);
    }
  }

  /* ------------- CREATION ------------- */
  .hero-slide5_block {
    position: absolute;
    top: 0;
    left: 0;
  }
  .title-creation {
    display: block;
    width: 60%;
    position: absolute;
    left: 0;
    top: 30%;
    z-index: 3;
    @media (min-width: 960px) {
      width: 45%;
      left: 8%;
      top: 15%;
    }
  }
  .bg-creation {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
  }
  #creation-container {
    display: block;
    width: 90%;
    height: 65%;
    background: linear-gradient(135deg, #f6e3cb 0%, #cceae7 100%);
    position: absolute;
    right: 0;
    top: 0;
    overflow: hidden;
    z-index: 1;
    @media (min-width: 960px) {
      width: 70%;
    }
  }

  .lego-block {
    position: absolute;
    top: 0; /* 初期位置を上端に設定 */
    left: 0;
    opacity: 1;
    transform-origin: 50% 0%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* ------------- 宇宙  ------------- */
  .hero-slide1_block {
    background-image: url("/assets/img/top/slide1/new-step_bg.webp");
    .text {
      right: 5%;
      top: 50%;
      z-index: 1;
      vertical-align: top;
      width: 60vmin;
      height: auto;
      object-fit: contain;
      transform: translatey(-50%);
    }
    .img {
      width: 70vmin;
      object-fit: contain;
      top: 10vmin;
      left: 20%;
      transform: translateX(-20%);
      animation: 40s fuwafuwaSP infinite;
      @media (min-width: 769px) {
        animation: 40s fuwafuwa infinite;
      }
    }
  }
  /* ------------- もっと駅地の物件をお探しします  ------------- */
  .hero-slide2_block {
    background-image: url("/assets/img/top/slide2/bg.webp");
    .text {
      left: 50%;
      top: 50%;
      opacity: 0;
      animation: slideup 3s forwards;
      width: 80%;
      transform: translate(-50%, -50%);
      img {
        width: 100%;
      }
    }
    span {
      position: absolute;
      left: 20%;
      top: 40%;
      width: 50px;
      height: 50px;
      display: block;
      animation: zoomup 2s infinite;
      background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 100%
      );
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4dffffff', endColorstr='#00ffffff', GradientType=1);
      z-index: 5;
    }
  }
  /* ------------- 一緒に暮らせる物件、お探しします  ------------- */
  .hero-slide3_block {
    background-image: url("/assets/img/top/slide3/bg.webp");
    .text {
      left: 50%;
      top: 45%;
      opacity: 0;
      transform: translate(-50%, -50%);
      animation: slideup 3s forwards;
      width: 50vw;
      @media (min-width: 769px) {
        width: 34vw;
      }
    }
  }
  /* ------------- ライフスタイルにあったお部屋お探しします  ------------- */
  .hero-slide4_block {
    background-color: #fefadb;
    background-image: url("/assets/img/top/slide4/bg.webp");
    background-size: 70vw auto;
    @media (min-width: 769px) {
      background-size: 50vw auto;
    }
    background-repeat: no-repeat;
    .text {
      left: 50%;
      top: 9%;
      opacity: 0;
      animation: slideup 3s forwards;
      width: 50vw;
      transform: translateX(-50%);
      @media (min-width: 769px) {
        width: 50vw;
        top: 40%;
      }
    }
  }
  /* ------------- 予約制の部屋店 ------------- */
  .reserve-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-size: cover;
    background-position: center right;
    z-index: 1;
  }
  .reserve-text {
    position: absolute;
    z-index: 1;
    width: 23vw;
    top: 20vh;
    right: 13vw;
    z-index: 99;
    opacity: 1;
    img {
      width: 100%;
      height: auto;
    }
  }

  video {
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -100;
    background: #000;
    margin: 0;
    padding: 0;
  }
}

/* ==========================================================================
   以下、.splash_container 内にネストされていた @keyframes をトップレベルへ移動。
   ネイティブCSSネストの仕様では @keyframes をセレクタ内にネストできず
   （SCSSのようにトップレベルへ自動バブルアップされない）、ネストしたままだと
   無効な記述として無視され、対象のアニメーションが一切動作しなくなるため。
   ========================================================================== */
@keyframes parapara {
  from {
    background-position-x: -880px;
    right: -150px;
  }
  to {
    background-position-x: 0;
    right: -20px;
  }
}
@keyframes parapara-sp {
  from {
    background-position-x: -844px;
    top: 30%;
  }
  to {
    background-position-x: 0;
    top: 30px;
  }
}
@keyframes parapara-se {
  from {
    background-position-x: -492px;
    top: 30%;
  }
  to {
    background-position-x: 0;
    top: 30px;
  }
}
@keyframes twinkle {
  0% {
    opacity: 0.8;
  }
  40% {
    opacity: 0.3;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}
@keyframes scroll {
  0% {
    top: 100%;
  }
  100% {
    top: -170%;
  }
}
@keyframes chair {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(1);
    translate: -200% 20%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(1.5);
    translate: 120% 40%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(0.5);
    translate: 30% -150%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: -220% -150%;
  }
}
@keyframes chair-sp {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(1.2);
    translate: -150% 70%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(1.5);
    translate: 90% 60%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(0.5);
    translate: 30% -190%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: -150% -180%;
  }
}
@keyframes cup {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(1.1);
    translate: 50% 20%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(1.8);
    translate: -200% 20%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(1);
    translate: -210% -130%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: 80% -90%;
  }
}
@keyframes cup-sp {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(1.2);
    translate: 30% 50%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(1.5);
    translate: -180% 60%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(1);
    translate: -150% -180%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(0.7);
    translate: 50% -190%;
  }
}
@keyframes fridge {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: 80% -90%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(1.2);
    translate: -230% -100%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(1.5);
    translate: -200% 20%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(1);
    translate: 100% 20%;
  }
}
@keyframes fridge-sp {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: 60% -130%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(1.2);
    translate: -180% -150%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(1.5);
    translate: -180% 50%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(1);
    translate: 80% 40%;
  }
}
@keyframes headphone {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(0.4);
    translate: -50% -130%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(0.2);
    translate: 150% -50%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(1);
    translate: -50% 20%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(0.6);
    translate: -190% -70%;
  }
}
@keyframes headphone-sp {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(0.4);
    translate: -40% -190%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(0.2);
    translate: 70% -70%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: -40% 70%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(0.6);
    translate: -160% -70%;
  }
}
@keyframes icecandy {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(1.1);
    translate: -210% -130%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: 100% -150%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(1.8);
    translate: 100% 20%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(1.5);
    translate: -200% 50%;
  }
}
@keyframes icecandy-sp {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(1.1);
    translate: -130% -190%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: 50% -200%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(1.7);
    translate: 85% 100%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(1.5);
    translate: -130% 90%;
  }
}
@keyframes tv {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(0.7);
    translate: -145% -70%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(1.2);
    translate: -50% 80%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: 130% -120%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(0.4);
    translate: -70% -250%;
  }
}
@keyframes tv-sp {
  0%,
  100% {
    transform: rotate(var(--rotate)) scale(0.7);
    translate: -145% -70%;
  }
  30% {
    transform: rotate(var(--rotate)) scale(1.2);
    translate: -50% 150%;
  }
  50% {
    transform: rotate(var(--rotate)) scale(0.8);
    translate: 60% -110%;
  }
  70% {
    transform: rotate(var(--rotate)) scale(0.5);
    translate: -40% -300%;
  }
}

.reserve-wrap {
  background-image: url("/assets/img/top/20190124.jpg");
@media (max-width:768px) {
  background-image: url("/assets/img/top/20190124_sp.jpg");
}
}
.slideup {
  animation: slideup 5.5s;
}

@keyframes slideup {
  0% {
    margin-top: 30px;
    opacity: 0;
  }
  75% {
    margin-top: 30px;
    opacity: 0;
  }

  100% {
    margin-top: 0;
    opacity: 1;
  }
}

  @media (max-width:768px) {
      .splash_container {
        height: auto;
        .reserve-text {
          width: 30vw;
          top: 10vh;
          right: 17vw;
        }
        video {
          height: 80vh;
          max-height: 80vh;
          width: 100%;
          top: 0;
          left: 0;
          z-index: -100;
          background: #000;
          margin: 0;
          padding: 0;
        }
      }
    }

.splash_container {
  .reserve {
    width: 220px;
    height: 220px;
    max-width: 40vw;
    max-height: 40vw;
    position: absolute;
    z-index: 99;
    bottom: 20px;
    left: 20px;
  }
  .sp_reserve {
    display: none;
  }
}


@media (min-width: 993px) {
  .cover {
    display: none;
  }
}

@media (min-width: 1025px) {
  .splash_container {
    height: 100%;
    width: 100%;

    .cover {
      display: block;
    }

    .videotitle {
      width: 100%;
      max-width: 500px;
      text-align: center;
      color: #fee51b;
      position: absolute;
      bottom: 110px;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
      display: block;
      font-size: 1.1em;
      font-family: Montserrat;
      z-index: 10;

      .title {
        border: solid 1px #fee51b;
        font-family: "Zen Kaku Gothic New";
        display: inline-block;
        padding: 7px 10px;
        margin-right: 10px;
        font-size: 0.9em;
        line-height: 1em;
        z-index: 999;
      }
    }

    .scroll {
      text-align: center;
      position: absolute;
      width: 100%;
      text-align: center;
      font-family: Montserrat;
      font-size: 2.4rem;
      letter-spacing: 2px;
      color: #fee51b;
      bottom: 40px;
      display: block;
      z-index: 10;

      a {
        position: relative;
        color: #fee51b;
        text-decoration: none;

        i:before {
          position: absolute;
          font-size: 4.8rem;
          bottom: -40px;
          left: 50%;
          transform: translateX(-50%);
        }
      }

      a:after,
      a:before {
        content: "";
        width: 10%;
        height: 2px;
        background: #fee51b;
        display: inline-block;
        vertical-align: middle;
      }

      a:before {
        margin-right: 20px;
      }

      a:after {
        margin-left: 20px;
      }
    }
  }
}

/* index.jsで.for-ipad-bg を追加 複数ある場合は、v1、v2…と追加している */
.splash_container.for-ipad-bg {
  background-size: cover;
  background-image: url("/assets/img/top/movie/20180116.jpg");
  background-position: center;
}

/* ------------- コンテンツ ------------- */
#index_nav {
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  text-align: center;
  padding: 10px 0;

  li {
    display: inline;
    margin: 0 10px;
  }

  a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);

    &:hover {
      opacity: 1;
      color: #fff;
    }
  }
}

/* ミュートボタン */
.mute {
  position: absolute;
  bottom: 0;
  right: 10px;
  display: block;
  z-index: 99;
  font-family: Montserrat;
  color: #fee51b;
  width: 60px;
  height: 60px;
  text-align: center;
  cursor: pointer;

  &:hover {
    opacity: 0.7;
  }

  i:before {
    content: "\ea26";
    font-family: 'icomoon';
    color: #fee51b;
    cursor: pointer;
  }
}

.mute.off {
  i:before {
    content: "\ea2a";
    font-family: 'icomoon';
    color: #fee51b;
    cursor: pointer;
  }
}


/* ---------- renovation (旧 _renovation.scss) ---------- */
.sort-wrap{
  padding-left: 15px!important;
  padding-right: 15px!important;
}

/*---------------------
link
---------------------*/
.link-list_wrap {
  .square-btn {
    height: auto;
  }
  .square-btn_title {
    color: #171616;
    font-size: 1.3rem;
  }
  .square-btn_en {
    color: #171616;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
  }
  .swiper-scrollbar-drag{
    background: #fff;
  }
  .swiper-scrollbar{
    background: rgba(255, 255, 255, .3);
    margin-bottom: 40px;
    &.swiper-scrollbar-horizontal, .swiper-horizontal>& {
      position: inherit;
      width: 100%;
  }
  }
}
/*---------------------
swiper
---------------------*/
.swiper-button-prev,
.swiper-button-next{
  width: 45px!important;
  height: 45px!important;
  color: #fff!important;
  border: solid 1px #fff;
  border-radius: 45px;
  position: inherit!important;
  &::before{
    font-family: 'icomoon';
    font-size: 2.1rem;
  }
  &:hover{
    color: #fee51b;
    border-color: #fee51b;
    &::before{
      color: #fee51b;
    }
  }
  svg{
    display: none;
  }
}
.swiper-button-prev{
  &::before{
    content: "\e90a";
  }
}
.swiper-button-next{
  &::before{
    content: "\e909";
  }
}
/*---------------------
お部屋探しの手引き
---------------------*/
.modal-window {
  display: none;
  width: 100%;
  height: 100vh;
  background: rgba(23, 22, 22, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999999;
  &.is-modal-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    z-index: 99998;
  }
  .vimeo-wrap {
    border: none;
    position: relative;
  }
  video {
    display: block;
    width: 85vw;
    height: auto!important;
    aspect-ratio: 16 / 9;
    max-width: 992px;
    position: relative;
  }
}
.modal__close {
  width: 40px;
  height: 40px;
  background: #fee51b;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 40px;
  border-radius: 40px;
}