/* All component styles are scoped; no theme files or global element styles change. */
.rsn-ukids-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1240 / 980;
  max-height: 980px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #293e29;
  color: #fff;
  line-height: 1;
}
.rsn-ukids-hero *, .rsn-ukids-hero *::before, .rsn-ukids-hero *::after { box-sizing: border-box; }
.rsn-ukids-hero [hidden] { display: none !important; }
.rsn-ukids-hero .rsn-ukids-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  z-index: 0;
}
.rsn-ukids-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.rsn-ukids-hero[data-state="playing"] .rsn-ukids-hero__video { opacity: 1; }
.rsn-ukids-hero .rsn-ukids-hero__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 200px;
  min-height: 200px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.rsn-ukids-hero__dots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.15) .7px, transparent .9px);
  background-size: 3px 3px;
}
.rsn-ukids-hero__particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rsn-ukids-hero__particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: #fff;
  border-radius: 50%;
  opacity: var(--alpha);
  animation: rsn-ukids-float var(--duration) ease-in-out var(--delay) infinite alternate;
  animation-play-state: paused;
}
.rsn-ukids-hero[data-state="playing"] .rsn-ukids-hero__particles span { animation-play-state: running; }
.rsn-ukids-hero__particles span:nth-child(1) { --x: 8%; --y: 17%; --size: 12px; --alpha: .35; --duration: 7s; --delay: -2s; }
.rsn-ukids-hero__particles span:nth-child(2) { --x: 24%; --y: 66%; --size: 20px; --alpha: .5; --duration: 9s; --delay: -4s; }
.rsn-ukids-hero__particles span:nth-child(3) { --x: 43%; --y: 28%; --size: 8px; --alpha: .3; --duration: 8s; --delay: -1s; }
.rsn-ukids-hero__particles span:nth-child(4) { --x: 62%; --y: 75%; --size: 16px; --alpha: .4; --duration: 10s; --delay: -6s; }
.rsn-ukids-hero__particles span:nth-child(5) { --x: 83%; --y: 35%; --size: 10px; --alpha: .3; --duration: 8s; --delay: -5s; }
.rsn-ukids-hero__particles span:nth-child(6) { --x: 94%; --y: 84%; --size: 18px; --alpha: .45; --duration: 11s; --delay: -3s; }
.rsn-ukids-hero__particles span:nth-child(7) { --x: 34%; --y: 87%; --size: 7px; --alpha: .25; --duration: 9s; --delay: -7s; }
.rsn-ukids-hero__particles span:nth-child(8) { --x: 71%; --y: 11%; --size: 14px; --alpha: .4; --duration: 7s; --delay: -4s; }
.rsn-ukids-hero__particles span:nth-child(9) { --x: 53%; --y: 54%; --size: 5px; --alpha: .3; --duration: 10s; --delay: -2s; }
.rsn-ukids-hero__particles span:nth-child(10) { --x: 14%; --y: 44%; --size: 11px; --alpha: .35; --duration: 8s; --delay: -6s; }
/* Original U-KIDs cloud artwork, with the current site's navigation links.
   Kept inside the video region; the theme's existing header is independent. */
.rsn-ukids-hero .rsn-ukids-hero__cloud-menu {
  position: absolute;
  top: clamp(28px, 4vw, 64px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 3.5vw, 56px);
  width: min(88%, 830px);
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  background: none;
}
.rsn-ukids-hero .rsn-ukids-hero__cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  aspect-ratio: 154 / 133;
  min-height: 44px;
  padding: 12% 11% 17%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: url("cloud.png") center / 100% 100% no-repeat;
  color: #165777;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  letter-spacing: .015em;
  box-shadow: none;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.12));
  transition: transform .18s ease, filter .18s ease;
}
.rsn-ukids-hero .rsn-ukids-hero__cloud:nth-child(even) { top: 20px; }
.rsn-ukids-hero .rsn-ukids-hero__cloud span { display: block; margin: 0; padding: 0; white-space: nowrap; }
.rsn-ukids-hero .rsn-ukids-hero__cloud br { display: block; }
.rsn-ukids-hero .rsn-ukids-hero__cloud:focus-visible { outline: 3px solid #143e5b; outline-offset: 4px; }
@media (hover: hover) {
  .rsn-ukids-hero .rsn-ukids-hero__cloud:hover {
    color: #165777;
    transform: translateY(-5px);
    filter: drop-shadow(0 7px 8px rgba(0,0,0,.18));
  }
}
@keyframes rsn-ukids-float {
  0% { transform: translate3d(-8px, 14px, 0) scale(.35); }
  50% { transform: translate3d(8px, -12px, 0) scale(1); }
  100% { transform: translate3d(-3px, -34px, 0) scale(.2); }
}
.rsn-ukids-hero__controls { position: absolute; right: 24px; bottom: 24px; z-index: 4; }
.rsn-ukids-hero .rsn-ukids-hero__controls button,
.rsn-ukids-hero .rsn-ukids-hero__controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s;
}
.rsn-ukids-hero .rsn-ukids-hero__controls button:hover,
.rsn-ukids-hero .rsn-ukids-hero__controls a:hover { color: #fff; background: rgba(0,0,0,.88); }
.rsn-ukids-hero .rsn-ukids-hero__controls button:focus-visible,
.rsn-ukids-hero .rsn-ukids-hero__controls a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.rsn-ukids-hero__symbol { width: 15px; text-align: center; font-size: 12px; }
.rsn-ukids-hero .rsn-ukids-hero__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Only the MONAD free-space block that contains this header gets these classes. */
.cb_free_space.rsn-ukids-hero-section { width: 100% !important; padding: 0 !important; opacity: 1 !important; transform: none !important; }
.cb_free_space.rsn-ukids-hero-section > .post_content.rsn-ukids-hero-content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; opacity: 1 !important; transform: none !important; }
/* Keep breathing room before "UKIDSについて". The site has an existing
   #cb_content_1 padding-bottom:0 !important rule, so scope this override
   to the identified content-builder block with higher specificity. */
#content_builder > .cb_free_space.rsn-ukids-hero-section { padding-bottom: 100px !important; }
@media (max-width: 767px) {
  .rsn-ukids-hero { aspect-ratio: 480 / 720; max-height: 720px; }
  .rsn-ukids-hero .rsn-ukids-hero__cloud-menu {
    top: 18px;
    width: min(86%, 320px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 2px;
    padding-bottom: 12px;
  }
  .rsn-ukids-hero .rsn-ukids-hero__cloud { font-size: 14px; }
  .rsn-ukids-hero .rsn-ukids-hero__cloud:nth-child(even) { top: 12px; }
  .rsn-ukids-hero__controls { right: 14px; bottom: 14px; }
  #content_builder > .cb_free_space.rsn-ukids-hero-section { padding-bottom: 56px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rsn-ukids-hero__particles span { animation: none !important; }
  .rsn-ukids-hero .rsn-ukids-hero__controls button,
  .rsn-ukids-hero .rsn-ukids-hero__controls a,
  .rsn-ukids-hero .rsn-ukids-hero__cloud { transition: none; }
}
