@font-face {
  font-family: "YDW Caramelhop";
  src: url("./assets/fonts/YDWcaramelhop.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Nikumaru";
  src: url("./assets/fonts/Nikumaru.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Maruppo V2";
  src: url("./assets/fonts/MaruppoV2-Bold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --pink: #ff2f7d;
  --hot-pink: #ff0f64;
  --blue: #24a7ff;
  --yellow: #ffd51d;
  --green: #27c76f;
  --red: #ff3e3e;
  --purple: #9a5cf6;
  --ink: #28202a;
  --muted: #6c6370;
  --line: rgba(255, 47, 125, 0.16);
  --paper: #fffafc;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 45px rgba(255, 47, 125, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nikumaru", "Arial", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 47, 125, 0.08), transparent 42%),
    linear-gradient(240deg, rgba(36, 167, 255, 0.09), transparent 40%),
    var(--paper);
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  backdrop-filter: blur(16px);
}

.brand,
.form-shortcut,
.placeholder-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: min(260px, 54vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.form-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  padding: 0 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--hot-pink);
  box-shadow: 0 12px 24px rgba(255, 15, 100, 0.22);
  font-weight: 800;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 22px;
  min-height: 418px;
  padding: 36px 54px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 213, 29, 0.18), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 250, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-light {
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 18%;
  transform-origin: top center;
  opacity: 0.42;
  filter: blur(1px);
  animation: sweep 8s ease-in-out infinite alternate;
}

.stage-light-a {
  left: 6%;
  background: linear-gradient(180deg, rgba(255, 47, 125, 0.22), transparent 82%);
  transform: rotate(-18deg);
}

.stage-light-b {
  left: 40%;
  background: linear-gradient(180deg, rgba(255, 213, 29, 0.24), transparent 82%);
  animation-delay: -2.4s;
}

.stage-light-c {
  right: 12%;
  background: linear-gradient(180deg, rgba(36, 167, 255, 0.22), transparent 82%);
  transform: rotate(17deg);
  animation-delay: -4.8s;
}

.hero-copy,
.hero-photo-collage,
.rule-card,
.form-section {
  position: relative;
  z-index: 2;
}

.kicker,
.section-label {
  margin: 0;
  color: var(--hot-pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1 {
  font-family: "YDW Caramelhop", "Nikumaru", "Arial", sans-serif;
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
  color: var(--hot-pink);
  max-width: 470px;
  font-size: clamp(40px, 5.9vw, 78px);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow:
    0 4px 0 #fff,
    0 8px 0 var(--yellow),
    0 18px 28px rgba(255, 47, 125, 0.2);
  animation: titleFloat 4.8s ease-in-out infinite;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.title-wide {
  font-size: 0.72em;
}

.hero-photo-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  align-items: center;
  gap: 18px;
  align-self: stretch;
  min-height: 316px;
  padding: 10px 2px;
  isolation: isolate;
}

.hero-photo-collage::before {
  content: "";
  position: absolute;
  inset: 8% 0 6% 12%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 213, 29, 0.34), transparent 28%),
    radial-gradient(circle at 70% 58%, rgba(36, 167, 255, 0.24), transparent 34%),
    rgba(255, 255, 255, 0.36);
  filter: blur(0.2px);
  transform: rotate(-5deg);
  z-index: -1;
}

.hero-photo-collage::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 8%;
  width: 76%;
  height: 32%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 15, 100, 0.14), rgba(255, 213, 29, 0.16), rgba(36, 167, 255, 0.14));
  transform: rotate(3deg);
  z-index: -1;
}

.collage-photo {
  --tilt: 0deg;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 4px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow:
    0 18px 32px rgba(50, 32, 44, 0.16),
    0 0 0 2px rgba(255, 47, 125, 0.08);
  object-fit: cover;
  object-position: center top;
  transform: rotate(var(--tilt));
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.collage-photo:hover {
  transform: translateY(-4px) rotate(var(--tilt, 0deg)) scale(1.02);
  box-shadow: 0 22px 38px rgba(50, 32, 44, 0.2);
}

.photo-a { --tilt: -5deg; }
.photo-b { --tilt: 4deg; }
.photo-c { --tilt: 5deg; }
.photo-d { --tilt: -4deg; }
.photo-e { --tilt: -5deg; }
.photo-f { --tilt: 4deg; }

.rule-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.rule-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  min-height: 106px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(50, 32, 44, 0.08);
}

.rule-card p {
  margin: 0;
  font-family: "Maruppo V2", "Nikumaru", "Arial", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.42;
}

.rule-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.mark-pink { background: var(--pink); }
.mark-blue { background: var(--blue); }
.mark-yellow { background: #f3b800; }

.form-section {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(50, 32, 44, 0.08);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

h2 {
  font-family: "YDW Caramelhop", "Nikumaru", "Arial", sans-serif;
  margin: 2px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.form-frame {
  position: relative;
  min-height: 720px;
  border: 1px solid rgba(36, 167, 255, 0.2);
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 8px rgba(36, 167, 255, 0.04);
  overflow: hidden;
}

.form-frame iframe {
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}

.form-placeholder {
  position: absolute;
  inset: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 2px dashed rgba(255, 47, 125, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #fff8fb);
  text-align: center;
}

.form-frame.has-form .form-placeholder {
  display: none;
}

.placeholder-title {
  margin: 0;
  color: var(--hot-pink);
  font-size: 34px;
  font-weight: 900;
}

.placeholder-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.placeholder-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: var(--hot-pink);
  font-weight: 900;
}

.placeholder-link.is-hidden {
  display: none;
}

@keyframes sweep {
  from { transform: rotate(-19deg) translateX(-12px); }
  to { transform: rotate(14deg) translateX(18px); }
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 860px) {
  .site-header,
  main {
    width: min(100% - 22px, 540px);
  }

  .site-header {
    height: 66px;
  }

  .brand-logo {
    width: min(190px, 52vw);
    max-height: 48px;
  }

  .form-shortcut {
    min-width: 82px;
    height: 38px;
    padding: 0 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .hero-copy {
    text-align: center;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(40px, 12.5vw, 64px);
  }

  .hero-photo-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: auto;
    margin-top: -4px;
    padding: 8px 4px 8px;
  }

  .hero-photo-collage::before {
    inset: 12% 4% 8%;
  }

  .collage-photo {
    border-width: 3px;
    border-radius: 18px;
  }
  .collage-photo:hover {
    transform: rotate(var(--tilt, 0deg));
    box-shadow:
      0 18px 32px rgba(50, 32, 44, 0.16),
      0 0 0 2px rgba(255, 47, 125, 0.08);
  }

  .rule-cards {
    grid-template-columns: 1fr;
  }

  .rule-card {
    min-height: 82px;
  }

  .form-section {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .form-frame,
  .form-frame iframe {
    min-height: 640px;
    height: 640px;
  }

  .form-placeholder {
    inset: 16px;
  }
}
