:root {
  --gold: #f5d445;
  --gold-2: #ffb43b;
  --ink: #10221f;
  --panel: rgba(12, 20, 19, 0.94);
  --panel-border: rgba(255, 214, 110, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #0b1a16 url("../assets/home-bg.jpg") no-repeat center top;
  background-size: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 62px;
  background: rgba(0, 0, 0, 0.6);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1334px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  gap: 20px;
}

.brand img {
  width: 146px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 72px;
}

.nav__item {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.nav__img {
  height: 24px;
  width: auto;
}

.nav__text {
  display: none;
}

html[lang="ja"] .nav__img {
  display: none;
}

html[lang="ja"] .nav__text {
  display: inline;
}

.nav__item.is-active {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav__item.is-active img {
  height: 30px;
  filter: brightness(1.15) saturate(1.2);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  align-items: center;
  margin-right: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.lang__btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang__btn.is-active {
  color: var(--gold);
}

.lang__sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.35);
}

.hero {
  min-height: 100vh;
  padding: 92px 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 70px;
}

.hero__logo {
  width: min(432px, 78vw);
  margin: 18px 0 12px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.intro-card {
  width: min(760px, 100%);
  padding: 28px 28px 22px;
  border: 2px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  scroll-margin-top: 84px;
}

.intro-card__kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.intro-card__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.intro-card__text {
  margin: 0 auto 20px;
  max-width: 640px;
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.intro-card__text p {
  margin: 0 0 10px;
}

.intro-card__text p:last-child {
  margin-bottom: 0;
}

.pdf-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pdf-box__head h2 {
  margin: 0;
  font-size: 18px;
}

.pdf-box__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 9px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe27a 0%, var(--gold-2) 100%);
  color: #7a3b00;
  font-weight: 800;
  box-shadow: 0 4px 0 #c07212;
}

.pdf-box__download.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.pdf-box__stage {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(8, 14, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pdf-box__stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.pdf-zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0 0 16px;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  color: #fff;
  cursor: zoom-in;
  font: inherit;
  font-weight: 800;
}

.pdf-box__stage.is-ready .pdf-zoom {
  display: flex;
}

.pdf-zoom span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  opacity: 0.92;
}

.pdf-zoom:hover {
  background: rgba(8, 14, 13, 0.18);
}

body.is-lightbox-open {
  overflow: hidden;
}

.pdf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pdf-lightbox[hidden] {
  display: none !important;
}

.pdf-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.pdf-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #101918;
  border: 1px solid rgba(255, 214, 110, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pdf-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
}

.pdf-lightbox__bar h2 {
  margin: 0;
  font-size: 16px;
}

.pdf-lightbox__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pdf-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pdf-lightbox__panel iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.pdf-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(10, 16, 15, 0.92);
}

.pdf-placeholder[hidden],
.pdf-box__stage.is-ready .pdf-placeholder {
  display: none !important;
}

.pdf-placeholder__icon {
  width: 72px;
  height: 88px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff6d4, #f0c45a);
  color: #8a4308;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.pdf-placeholder p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.pdf-placeholder__hint {
  margin-top: 8px !important;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88) !important;
}

.pdf-placeholder code {
  color: var(--gold);
}

.features {
  padding: 72px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 70px;
}

.features__title {
  width: min(832px, 92vw);
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 518px));
  gap: 28px;
  justify-content: center;
}

.card {
  min-height: 580px;
  padding: 88px 42px 36px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card--pets {
  background-image: url("../assets/features-bg1.png");
}

.card--gameplay {
  background-image: url("../assets/features-bg2.png");
}

.card__title {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.card__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 2.3;
  text-align: center;
}

.footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 34px;
  background: rgba(27, 56, 54, 0.84);
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer__btn img {
  height: 36px;
  width: auto;
}

.footer__copy {
  height: 36px;
  width: auto;
}

.footer__contact {
  margin: 0;
  font-size: 16px;
  white-space: nowrap;
}

.footer__contact a:hover {
  color: var(--gold);
}

@media (max-width: 1100px) {
  .nav {
    gap: 28px;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 84px 14px 36px;
  }

  .intro-card {
    padding: 20px 16px 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 420px;
    padding: 80px 24px 28px;
  }

  .card__desc {
    line-height: 1.9;
  }

  .pdf-box__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-box__stage {
    height: 280px;
  }

  .footer {
    padding: 16px;
  }

  .footer__copy {
    order: 3;
    width: min(520px, 100%);
    height: auto;
  }

  .footer__contact {
    white-space: normal;
  }
}
