.page-hero > .wrap.hero-motion-layout {
  grid-template-areas: "title visual" "details visual";
  column-gap: 48px;
  row-gap: 0;
  align-items: start;
}
.hero-motion-layout > .hero-motion-title { grid-area: title; }
.hero-motion-layout > .hero-motion-details { grid-area: details; }
.hero-motion-layout > .hero-motion { grid-area: visual; align-self: center; }
.care-hero .hero-motion-title { padding: 0; }
.hero-motion-title h1 { margin-bottom: 24px; }
.admission-hero .page-hero-visual.hero-motion,
.care-hero .page-hero-visual.hero-motion {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #e9eef3;
  isolation: isolate;
}
.care-hero .page-hero-visual.hero-motion { background: #dcece4; }
.page-hero-visual.hero-motion .hero-motion-poster,
.page-hero-visual.hero-motion .hero-motion-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}
.hero-motion-video { opacity: 0; }
.hero-motion.has-frame .hero-motion-video { opacity: 1; }
.hero-motion.has-frame .hero-motion-poster { visibility: hidden; }
.hero-motion-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: calc(100% - 24px);
}
.hero-motion-controls[hidden], .hero-motion-status[hidden] { display: none; }
.hero-motion-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 13px;
  border: 1px solid #ffffff9c;
  border-radius: 22px;
  color: #fff;
  background: #142b49e8;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
}
body[data-area="care"] .hero-motion-controls button { background: #164a45ed; }
.hero-motion-controls button:hover { filter: brightness(1.13); }
.hero-motion-controls button:disabled { cursor: default; opacity: .7; }
.hero-motion-controls button:focus-visible { outline: 3px solid #d1aa72; outline-offset: 3px; }
.hero-motion-play-icon {
  position: relative;
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 16px;
}
[data-hero-play][data-paused="true"] .hero-motion-play-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}
[data-hero-play][data-paused="false"] .hero-motion-play-icon::before,
[data-hero-play][data-paused="false"] .hero-motion-play-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: currentColor;
}
[data-hero-play][data-paused="false"] .hero-motion-play-icon::before { left: 1px; }
[data-hero-play][data-paused="false"] .hero-motion-play-icon::after { right: 1px; }
.hero-motion-status {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 7px 11px;
  border-radius: 6px;
  background: #fffffff0;
  color: #142b49;
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 800px) {
  .page-hero.admission-hero, .page-hero.care-hero { padding-top: 24px; padding-bottom: 36px; }
  .page-hero > .wrap.hero-motion-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "visual" "details";
    gap: 18px;
  }
  .hero-motion-title .eyebrow { margin-bottom: 8px; }
  .page-hero .hero-motion-title h1 { margin: 0; font-size: clamp(1.85rem, 7.7vw, 2.6rem); line-height: 1.28; }
  .page-hero .hero-motion-details > p { margin: 0 0 18px; font-size: max(18px, 1rem); line-height: 1.65; }
  .hero-motion-details .admission-actions { margin-top: 18px; }
  .hero-motion-details .care-hero-contact { margin-top: 24px; }
}
@media (max-width: 480px) {
  .hero-motion-controls { right: 8px; bottom: 8px; gap: 5px; }
  .hero-motion-controls button { padding-inline: 11px; }
  .admission-hero .page-hero-visual.hero-motion,
  .care-hero .page-hero-visual.hero-motion { border-radius: 14px; }
}

/* 대학 입학과 재가복지 소개 영상: 영상의 우측 하단에 소리 제어만 작게 표시합니다. */
body[data-area="admission"] .hero-motion-controls,
body[data-area="care"] .hero-motion-controls {right: 2px; bottom: 2px; gap: 0;}
body[data-area="admission"] .hero-motion-controls [data-hero-play],
body[data-area="care"] .hero-motion-controls [data-hero-play] {display: none;}
body[data-area="admission"] .hero-motion-controls [data-hero-sound],
body[data-area="care"] .hero-motion-controls [data-hero-sound] {
  box-sizing: border-box; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; position: relative;
}
.hero-motion-controls [data-hero-sound]::before {
  content: ""; display: block; width: 30px; height: 30px; border-radius: 50%;
  background: #17232bcc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='m16 9 5 6m0-6-5 6'/%3E%3C/svg%3E") center / 17px 17px no-repeat;
}
.hero-motion-controls [data-hero-sound][aria-pressed="true"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M16 9a5 5 0 0 1 0 6m3-9a9 9 0 0 1 0 12'/%3E%3C/svg%3E");
}
.hero-motion-controls [data-hero-sound-label] {position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

.hero-music-credit {margin: 0 auto; padding-block: 10px; font-size: 13px; line-height: 1.5; color: #5f6670; text-align: right;}
.hero-music-credit a {color: inherit; text-decoration: underline; text-underline-offset: 2px;}
