:root {
  color-scheme: dark;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
}

body {
  background: #101a31;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

.LP_hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
  isolation: isolate;
  background: #15203d url("../images/LP_BG_night.png") center / cover no-repeat;
}

.LP_hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 10, 28, 0.55));
}

.LP_hero_stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 1600px);
  transform: translateX(-50%);
}

.LP_hero_clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.LP_hero_art {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

.LP_hero_town {
  z-index: 3;
  right: -2%;
  bottom: max(-48px, -3vw);
  width: 62%;
  animation: LP_town_in 0.9s ease-out 0.45s both;
}

.LP_hero_thief {
  z-index: 2;
  right: 1%;
  bottom: -8svh;
  width: auto;
  height: 100svh;
  animation: LP_thief_in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

.LP_hero_angels {
  z-index: 3;
  top: 7vh;
  left: 10%;
  width: 23%;
  animation: LP_angels_in 0.8s ease-out 0.55s both, LP_float 4s ease-in-out 1.4s infinite;
}

.LP_hero_envelope {
  z-index: 5;
  bottom: max(-112px, -7vw);
  left: -8%;
  width: 29%;
  animation: LP_envelope_in 0.7s ease-out 0.1s both;
}

.LP_hero_title {
  z-index: 4;
  bottom: 6vh;
  left: 10%;
  width: 51%;
  animation: LP_title_in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.LP_hero_badge {
  position: absolute;
  z-index: 7;
  top: 4vh;
  left: 50%;
  margin: 0;
  padding: 0.78rem 1.7rem;
  border: 2px solid #d9b04b;
  border-radius: 999px;
  background: rgba(9, 19, 45, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 220, 127, 0.18), 0 0 22px rgba(217, 176, 75, 0.25);
  color: #f3d477;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 0 8px rgba(243, 212, 119, 0.28);
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transform: translateX(-50%);
  animation: LP_title_in 0.7s ease-out 0.75s both;
}

@keyframes LP_envelope_in {
  from { opacity: 0; transform: translate(-12%, 12%) rotate(-5deg); }
  to { opacity: 1; transform: translate(0) rotate(0); }
}

@keyframes LP_title_in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes LP_thief_in {
  from { opacity: 0; transform: translate(10%, 8%); }
  to { opacity: 1; transform: translate(0); }
}

@keyframes LP_town_in {
  from { opacity: 0; transform: translateY(12%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes LP_angels_in {
  from { opacity: 0; transform: translate(-8%, 8%); }
  to { opacity: 1; transform: translate(0); }
}

@keyframes LP_float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.LP_content {
  position: relative;
  z-index: 0;
  padding-top: 5rem;
  background: linear-gradient(#17233f, #202f4e 45%, #17233f);
}

.LP_content_inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.LP_content > .LP_content_inner {
  padding: 0 1.25rem;
}

.LP_content_heading {
  margin: 0 0 1.75rem;
  color: #f5d274;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
}

.LP_info_grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px);
  justify-content: center;
  gap: 1rem;
}

.LP_info_card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 0;
  min-height: 168px;
  padding: 1.2rem;
  border: 2px solid #8d592c;
  border-radius: 18px;
  background: #fbf4e8;
  color: #522719;
  text-align: left;
}

.LP_info_card img {
  width: min(38%, 118px);
  height: auto;
  aspect-ratio: 300 / 246;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: left center;
}

.LP_info_card p {
  min-width: 0;
  margin: 0;
  color: #6a2c1c;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.LP_info_card small {
  display: block;
  margin-top: 0.2rem;
  color: #6a2c1c;
  font-size: 0.56em;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}

.LP_story {
  width: min(760px, 100%);
  margin: 4rem auto 0;
  color: #fff7d2;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 2;
  text-align: center;
}

.LP_story p {
  margin: 0;
}

.LP_story strong,
.LP_story span {
  color: #ffe07a;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 205, 70, 0.35);
}

.LP_story_tablet,
.LP_story_phone {
  display: none;
}

@media (min-width: 1071px) {
  .LP_story {
    width: min(960px, 100%);
  }
}

.LP_guide_area {
  margin-top: 5rem;
  padding: 4rem 1.25rem 1px;
  background: #392219 url("../images/LP_BG_brick.png") center / auto repeat;
}

.LP_key_nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  width: min(100%, 840px);
  margin: 5rem auto;
}

.LP_key_link {
  display: grid;
  justify-items: center;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.LP_key_link img {
  width: min(100%, 280px);
  transition: transform 0.22s ease, filter 0.22s ease;
}

@media (hover: hover) {
  .LP_key_link:hover img {
    filter: brightness(1.15) drop-shadow(0 0 11px rgba(255, 209, 76, 0.8));
    transform: translateX(10px) scale(1.06);
  }
}

.LP_key_link:focus-visible {
  outline: 3px solid #ffe58a;
  outline-offset: 7px;
}

.LP_key_link:focus-visible img {
  filter: brightness(1.15) drop-shadow(0 0 11px rgba(255, 209, 76, 0.8));
  transform: translateX(10px) scale(1.06);
}

.LP_key_link:active img {
  transform: translateX(6px) scale(0.98);
}

.LP_chapter {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  margin: 0 0 5rem;
  scroll-margin-top: 1rem;
  text-align: center;
}

.LP_chapter_title {
  width: clamp(320px, 50vw, 620px);
  max-width: 100%;
  margin: 0;
}

.LP_coming_soon {
  width: min(100%, 480px);
  margin: 0 auto;
}

.LP_footer {
  padding: 2rem 1.25rem;
  background: #fbf4e8;
  color: #242a75;
  text-align: center;
}

.LP_footer_meta {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 1.25rem;
  width: min(960px, 100%);
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.65;
}

.LP_footer_meta p {
  margin: 0;
}

.LP_footer_meta strong {
  display: block;
  margin-bottom: 0.25rem;
}

@media (max-width: 1070px) {
  .LP_hero {
    z-index: auto;
    overflow: hidden;
  }
}

@media (min-width: 501px) and (max-width: 1070px) {
  .LP_hero_title {
    top: 11vh;
    bottom: auto;
    left: max(175px, 34vw);
    width: clamp(350px, 58vw, 720px);
    transform: translateX(-50%);
  }

  .LP_hero_badge {
    top: 3vh;
    right: auto;
    left: 50%;
    padding: 0.65rem 1.15rem;
    font-size: 1rem;
    letter-spacing: 0.11em;
    transform: translateX(-50%);
  }

  .LP_hero_envelope {
    top: 8vh;
    bottom: auto;
    left: -6vw;
    width: clamp(120px, 18vw, 220px);
  }

  .LP_hero_angels {
    z-index: 5;
    top: 42vh;
    left: 4vw;
    width: clamp(200px, 27vw, 330px);
  }

  .LP_hero_thief {
    right: -4vw;
    bottom: -6vw;
    width: auto;
    height: min(94svh, 106vw);
  }

  .LP_hero_town {
    z-index: 6;
    right: auto;
    bottom: 0;
    left: 5vw;
    width: 90vw;
  }

  .LP_story_desktop,
  .LP_story_phone {
    display: none;
  }

  .LP_story_tablet {
    display: block;
  }
}

@media (max-width: 700px) {
  .LP_content {
    padding-top: 3.5rem;
  }

  .LP_info_grid,
  .LP_key_nav {
    grid-template-columns: 1fr;
  }

  .LP_info_card {
    justify-content: flex-start;
    gap: 0.9rem;
    min-height: 126px;
    padding: 1rem;
  }

  .LP_info_card img {
    width: 108px;
    flex-basis: 108px;
  }

  .LP_info_card p {
    font-size: clamp(1.15rem, 5vw, 1.45rem);
  }

  .LP_story {
    margin-top: 3rem;
    font-size: 1rem;
    line-height: 1.9;
  }

  .LP_guide_area {
    margin-top: 3.5rem;
    padding: 3rem 1.25rem 1px;
  }

  .LP_key_link img {
    width: min(62vw, 200px);
  }

  .LP_chapter {
    margin-bottom: 3.5rem;
  }

  .LP_chapter_title {
    width: min(100%, 460px);
  }

  .LP_footer_meta {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .LP_footer_meta > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .LP_hero_title {
    top: 4vh;
    bottom: auto;
    left: 50%;
    width: 86vw;
    transform: translateX(-50%);
  }

  .LP_hero_badge {
    top: 2vh;
    right: auto;
    left: 50%;
    padding: 0.56em 1.15em 0.48em;
    border-width: 1px;
    box-shadow: 0 0 16px rgba(245, 210, 116, 0.24), inset 0 0 10px rgba(245, 210, 116, 0.1);
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    transform: translateX(-50%);
  }

  .LP_hero_envelope {
    top: 2vh;
    bottom: auto;
    left: -14vw;
    width: 35vw;
  }

  .LP_hero_angels {
    z-index: 5;
    top: 41vh;
    left: 1vw;
    width: 38vw;
  }

  .LP_hero_thief {
    right: -5vw;
    bottom: -4vw;
    width: auto;
    height: min(69svh, 106vw);
  }

  .LP_hero_town {
    z-index: 6;
    right: auto;
    bottom: 0;
    left: -16vw;
    width: 132vw;
  }

  .LP_story_desktop,
  .LP_story_tablet {
    display: none;
  }

  .LP_story_phone {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  .LP_hero_envelope,
  .LP_hero_title,
  .LP_hero_badge,
  .LP_hero_thief,
  .LP_hero_town,
  .LP_hero_angels {
    animation: none;
  }

  .LP_key_link img {
    transition: none;
  }
}
