@charset "UTF-8";

/* Local preview for temp/reserve.php. The four supplied main pictures are the
   layout itself, so they must keep their original aspect ratio. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* reserve_common.css sizes the registration-complete image against the
   content box. Keep that shared modal out of this LP's border-box reset. */
#hitoduma #modal_window_box .main_box {
  box-sizing: content-box;
}

html,
body {
  width: 100%;
  margin: 0;
}

body {
  background: #100022;
  color: #000;
  font-family: "M PLUS 2", Meiryo, sans-serif;
}

.lp_main,
.fv,
.lp_sec {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: visible;
  font-size: 0;
  line-height: 0;
}

.fv_img,
.section_img {
  display: block;
  width: 100%;
  height: auto;
}

#hitoduma .pc {
  display: none !important;
}

#hitoduma .sp {
  display: block !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sprite buttons */
.btn_reserve,
.btn_detail {
  display: block;
  border: 0;
  background-repeat: no-repeat;
  font-size: 0;
  line-height: 0;
}

.btn_reserve {
  width: min(62.5vw, 480px);
  aspect-ratio: 4 / 1;
  background-image: url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_02.png");
  background-position: 0 0;
  background-size: 100% 300%;
  filter: drop-shadow(0 4px 5px rgba(69, 16, 89, 0.45));
  animation: btn-glow 2.8s ease-in-out infinite;
}

.webp .btn_reserve {
  background-image: url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_02.webp");
}

.btn_reserve:hover {
  animation: none;
  background-position: 0 calc(50% - 0.8px);
}

.btn_reserve.reserved,
.btn_reserve.end {
  background-position: 0 100%;
  animation: none;
  pointer-events: none;
}

.btn_detail {
  width: min(22vw, 122px);
  aspect-ratio: 122 / 71;
  background-image: url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_detail.png");
  background-position: 0 3px;
  background-size: 100% 200%;
}

.webp .btn_detail {
  background-image: url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_detail.webp");
}

.btn_detail:hover {
  background-position: 0 calc(100% + 4px);
}

/* First-view controls */
.fv_btn {
  position: absolute;
  z-index: 2;
  right: 17.7vw;
  bottom: 29vw;
}

.fv_btn .detail {
  position: relative;
  top: 5vw;
  left: 7vw;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 2vw;
}

.fv_btn .device {
  display: block;
  width: min(18vw, 100px);
  margin-right: -8vw;
}

.fv_btn .device img {
  width: 100%;
  height: auto;
}

.fv_btn .pc-circle {
  display: none;
}

/* The SP CTA belongs visually to the bottom of mainpic_01. It remains a
   sibling here to mirror reserve.php, and is pulled back over the image. */
.fv_cta_sp {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 0;
}

.fv_cta_sp .btn {
  position: absolute;
  left: 50%;
  bottom: 3.6vw;
  transform: translateX(-50%);
}

/* Bottom CTA */
.character .btns {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 2.25vw;
  width: 100%;
}

.character .btn_reserve {
  margin: 0 auto;
}

@media screen and (min-width: 769px) {
  #hitoduma .pc {
    display: block !important;
  }

  #hitoduma .sp {
    display: none !important;
  }

  .fv_btn {
    right: 35.2vw;
    bottom: 10.2vw;
    width: min(11vw, 307px);
  }

  .fv_btn .detail {
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55vw;
    margin-bottom: 0;
  }

  .fv_btn .btn_detail {
    position: relative;
    top: 1vw;
    width: min(7.08vw, 136px);
    margin: -0.9vw 0 0;
  }

  .fv_btn .btn_detail:hover {
    background-position: 0 calc(100% + 3.5px);
  }

  .fv_btn .device {
    width: min(7.08vw, 136px);
    margin: -0.9vw 0 0;
  }

  .fv_btn .pc-circle {
    display: block;
  }

  .fv_btn .pc-circle .btn_reserve {
    position: relative;
    top: 5.4vw;
    left: 7vw;
    width: min(12vw, 223px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    background-image: url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_01.png");
  }

  .webp .fv_btn .pc-circle .btn_reserve {
    background-image: url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_01.webp");
  }

  .fv_btn .pc-circle .btn_reserve:hover {
    background-position: 0 calc(50% - 1px);
  }

  .fv_btn .pc-circle .btn_reserve.reserved,
  .fv_btn .pc-circle .btn_reserve.end {
    background-position: 0 100%;
    animation: none;
    pointer-events: none;
  }

  .fv_cta_sp {
    display: none;
  }

  .character .btns {
    bottom: 4vw;
  }

  .character .btn_reserve {
    width: min(23.44vw, 450px);
  }
}

@keyframes btn-glow {
  0%,
  100% {
    filter: brightness(1.04) saturate(1.08) drop-shadow(0 4px 5px rgba(69, 16, 89, 0.45));
  }

  50% {
    filter: brightness(1.22) saturate(1.3) drop-shadow(0 6px 9px rgba(255, 218, 26, 0.58));
  }
}

/* Standalone HTML preview has no Modernizr class. Modern browsers select
   WebP here; the PNG declarations above remain the legacy fallback. */
@supports (background-image: image-set(url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_02.webp") type("image/webp"))) {
  .btn_reserve {
    background-image: image-set(
      url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_02.webp") type("image/webp"),
      url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_02.png") type("image/png")
    );
  }

  .btn_detail {
    background-image: image-set(
      url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_detail.webp") type("image/webp"),
      url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_detail.png") type("image/png")
    );
  }

  @media screen and (min-width: 769px) {
    .fv_btn .pc-circle .btn_reserve {
      background-image: image-set(
        url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_01.webp") type("image/webp"),
        url("https://www.nijiyome.com/nijiyome-img/img/contents/reserve/hitoduma/btn_sprite_01.png") type("image/png")
      );
    }
  }
}
