/* =========================
   Hero
========================= */
.rm-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f3eee6;
}

/* 高さはここで調整 */
.rm-hero__slider {
  position: relative;
  width: 100%;
  height: min(56vw, 820px);
  min-height: 520px;
}

/* 画像を重ねる */
.rm-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.8s ease, visibility 1.8s ease;
  z-index: 1;
}

.rm-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.rm-hero__slide picture,
.rm-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.rm-hero__slide img {
  object-fit: cover;
  object-position: center center;
}

/* 少しやわらかく見せたい時 */
.rm-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 242, 0.10);
  pointer-events: none;
}

/* テキスト・ボタンの中身 */
.rm-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.rm-hero__content {
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* 手書きテキスト */
@font-face {
  font-family: "ZenKurenaido";
  src: url("../fonts/ZenKurenaido-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.rm-hero__copy {
  position: absolute;
  left: 10%;
  top: 54%;
  transform: translateY(-50%) rotate(-4deg);
  margin: 0;
  color: #9f7b2f;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-size: clamp(24px, 2.4vw, 56px);
  font-weight: 400;
  font-family: "ZenKurenaido", cursive;
  text-shadow:
0 0 3px #fff,
0 0 6px #fff,
0 0 12px #fff,
0 0 24px rgba(255,255,255,0.9),
0 0 40px rgba(255,255,255,0.75),
0 3px 8px rgba(0,0,0,0.2);
}
.rm-hero__copy{
  padding: 10px 18px;
  backdrop-filter: blur(6px);
}
.rm-hero__copy span {
  display: block;
}

/* ボタン */
.rm-hero__btnWrap {
  position: absolute;
  left: 10%;
  bottom: 14%;
  pointer-events: auto;
}

.rm-hero__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 360px;
  min-height: 130px;
  padding: 22px 28px;
  background: #7ecf8a;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: opacity .25s ease, transform .25s ease;
}

.rm-hero__btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.rm-hero__btn span {
  display: block;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

.rm-hero__btn strong {
  display: block;
  margin-top: 4px;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 700;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {
  .rm-hero__slider {
    height: 68vw;
    min-height: 460px;
  }

  .rm-hero__content {
    padding: 0 28px;
  }

  .rm-hero__copy {
    left: 8%;
    top: 54%;
    font-size: clamp(22px, 3.3vw, 42px);
  }

  .rm-hero__btnWrap {
    left: 5%;
    bottom: 12%;
  }

  .rm-hero__btn {
    min-width: 300px;
    min-height: 112px;
  }

  .rm-hero__btn strong {
    font-size: 1.75rem;
  }
}

/* =========================
   SP
========================= */
@media (max-width: 767px) {
  .rm-hero__slider {
    height: 123vw;
    min-height: 520px;
    max-height: 760px;
  }

  .rm-hero__content {
    padding: 0 18px;
  }

  .rm-hero__copy {
    left: 6%;
    top: 60%;
    transform: translateY(-50%) rotate(-4deg);
    font-size: clamp(18px, 5.8vw, 30px);
    line-height: 1.8;
    letter-spacing: 0.07em;
  }

  .rm-hero__btnWrap {
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    width: calc(100% - 36px);
    max-width: 320px;
  }

  .rm-hero__btn {
    width: 100%;
    min-width: 0;
    min-height: 92px;
    padding: 16px 18px;
    border-radius: 8px;
  }

  .rm-hero__btn span {
    font-size: 0.95rem;
  }

  .rm-hero__btn strong {
    font-size: 1.4rem;
  }
}

/* 動き控えめ設定の人向け */
@media (prefers-reduced-motion: reduce) {
  .rm-hero__slide {
    transition: none;
  }

  .rm-hero__btn {
    transition: none;
  }
}