* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  text-align: center;
  font-family: antique-olive, sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: .03em;
}

/* main {
    height: 100dvh;
    overflow: hidden;
} */

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
.hero__logo {
  position: absolute;
  right: -1%;
  top: 1%;
  width: 15vw;
  z-index: 11;
}
@media (max-width: 767px) {
  .hero__logo {
    width: 35vw;
    right: -2%;
  }
}

/* bg：最初は隠す */
.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg img {
  object-fit: cover;
  display: block;
  opacity: 0; /* ←最初は見えない */
  transform: scale(1.03); /* ふわっと感 */
  transition: opacity 1.6s ease, transform 2.8s ease;
}

/* video：最初は見える */
.hero__mv {
  position: absolute;
  left: 50%;
  top: 68.2%;
  transform: translate(-50%, -50%);
  height: auto;
  aspect-ratio: 480 / 640;

  opacity: 1;
  transition: opacity 0.9s ease;
}
@media (max-width: 767px) {
  .hero__mv {
    top: 73.2%;
  }
}

/* 切り替え後（JSで.heroにクラス付与） */
.hero.is-after .hero__mv {
  opacity: 0; /* スーッと消える */
  pointer-events: none;
}

.hero.is-after .hero__bg img {
  opacity: 1; /* 背景がふわっと出る */
  transform: scale(1);
  transition-delay: 0.9s; /* ← videoが消え切ってから */
}

/* アニメ苦手な人向け */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img,
  .hero__mv {
    transition: none;
  }
}

.greeting {
  padding: 1em 0;
  letter-spacing: 1vw;
  font-weight: 700;
}

footer {
  color: #cdcdcd;
  text-align: center;
  font-size: 11px;
  padding-top: 12px;
  padding-bottom: 16px;
  background: #755625;
  padding: 5px;
  text-decoration-line: none;
}
footer a {
  color: inherit;
  text-decoration-line: none;
}

@media (max-width: 767px) {
  footer {
    font-size: 9px;
  }  
}