:root {
  --purple: #570b4f;
  --purple-dark: #320529;
  --gold: #f3bf28;
  --gold-light: #fff0a2;
  --content-width: 860px;
  --hero-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.lp {
  overflow: clip;
}

.hero {
  width: min(100%, var(--hero-width));
  margin: 0 auto;
  padding-bottom: 20px;
}

.hero__image {
  width: 100%;
}

.content {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.visual {
  margin: 0 0 20px;
}

.visual img {
  width: 100%;
}

.payment-image {
  aspect-ratio: 1414 / 1503;
  object-fit: cover;
}

.organizer-visual {
  position: relative;
}

.organizer-email {
  position: absolute;
  top: 55.5%;
  left: 4%;
  display: grid;
  width: 92%;
  height: 13%;
  place-items: center;
  color: #fff;
  background: #6d1192 url("assets/images/section-25.jpg") center 82% / 100% auto no-repeat;
  box-shadow: 0 0 12px 10px rgb(109 17 146 / 55%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 5.15vw, 44px);
  line-height: 1;
  white-space: nowrap;
}

.cta-benefit {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-weight: 800;
  font-size: clamp(16px, 3.4vw, 24px);
  text-align: center;
}

.cta-benefit--hero {
  margin: 12px 20px 0;
  color: var(--purple);
}

/* 参考LPの金色グラデーションCTA */
.cta-button {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(calc(100% - 40px), 800px);
  min-height: 80px;
  margin: 10px auto 0;
  padding: 12px 68px;
  overflow: hidden;
  border: 2px solid #d39400;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(180deg, #fff5a9 0%, #efd24b 17%, #e5a900 57%, #ffcd19 77%, #b87500 100%);
  box-shadow:
    inset 0 2px 2px rgb(255 255 255 / 85%),
    inset 0 -3px 3px rgb(101 52 0 / 38%),
    0 5px 0 #8e5700,
    0 9px 18px rgb(46 0 37 / 38%);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 2px rgb(89 43 0 / 55%);
  transition: transform .2s ease, filter .2s ease;
}

.cta-button::after {
  position: absolute;
  z-index: -1;
  top: -70%;
  left: -40%;
  width: 26%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 75%), transparent);
  content: "";
  transform: rotate(25deg);
  animation: shine 3.2s ease-in-out infinite;
}

.cta-button span {
  font-size: clamp(21px, 4.8vw, 34px);
  line-height: 1.1;
}

.cta-button small {
  margin-top: 4px;
  font-size: clamp(10px, 2.7vw, 14px);
}

.cta-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.cta-button:active {
  box-shadow: inset 0 2px 4px rgb(88 44 0 / 45%), 0 2px 0 #8e5700;
  transform: translateY(4px);
}

.map {
  margin: 0 0 20px;
  border: 6px solid var(--purple);
  background: var(--purple);
}

.map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.registration {
  padding: 40px 16px 52px;
  background:
    radial-gradient(circle at 50% 0, rgb(255 197 83 / 22%), transparent 38%),
    linear-gradient(180deg, var(--purple), var(--purple-dark));
  text-align: center;
}

.registration p {
  margin: 0 0 24px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(18px, 4vw, 28px);
}

.cta-button--large {
  max-width: 760px;
  margin-top: 0;
}

/* スクロール表示。JavaScript無効時も内容は見える */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cta-popup {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100% - 36px));
  padding: 0;
  visibility: hidden;
  opacity: 0;
  filter: drop-shadow(0 14px 22px rgb(22 0 17 / 45%));
  transform: translateY(25px) scale(.96);
  transition: visibility .3s, opacity .3s ease, transform .3s ease;
}

.cta-popup.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.cta-popup__link {
  position: relative;
  display: block;
  animation: swaying 2.7s ease-in-out infinite;
}

.cta-popup__link img {
  width: 100%;
}

.cta-popup__link span {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 0 9%;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, transparent 0 22%, rgb(224 159 0 / 94%) 38% 72%, transparent 88% 100%);
  font-size: clamp(16px, 4.2vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 2px rgb(89 43 0 / 55%);
}

.cta-benefit--popup {
  margin: 0 38px 6px;
  color: var(--gold-light);
  background: var(--purple);
  border-radius: 8px;
  filter: none;
  font-size: clamp(14px, 3.4vw, 20px);
  line-height: 1.5;
}

.cta-popup__close {
  position: absolute;
  z-index: 2;
  top: -13px;
  right: -10px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0 0 3px;
  place-items: center;
  border: 2px solid #222;
  border-radius: 50%;
  color: #111;
  background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / 28%);
  font: 700 25px/1 sans-serif;
  cursor: pointer;
}

@keyframes shine {
  0%, 52% { left: -40%; }
  76%, 100% { left: 125%; }
}

@keyframes swaying {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

@media (max-width: 600px) {
  .content {
    width: 100%;
  }

  .hero,
  .visual {
    padding: 0;
  }

  .hero {
    padding-bottom: 12px;
  }

  .visual {
    margin-bottom: 10px;
  }

  .cta-button {
    width: calc(100% - 24px);
    min-height: 68px;
    margin-top: 9px;
    padding: 10px 44px;
    border-radius: 13px;
  }

  .map {
    margin-bottom: 10px;
    border-width: 4px;
  }

  .map iframe {
    height: 260px;
  }

  .cta-popup {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}