.page-home .site-header {
  position: relative;
  inset: auto;
  background: #fff;
  border-bottom: 1px solid rgb(18 59 90 / 7%);
}
.page-home .header-inner { height: 80px; }
.page-home .header-help { border-radius: 30px; }
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(570px, 42.61vw, 830px);
  background: #f7faf7;
}
.home-hero-scene { position: absolute; inset: 0; margin: 0; }
.home-hero-scene picture,
.home-hero-scene picture img,
.home-hero-video { display: block; width: 100%; height: 100%; }
.home-hero-scene picture img,
.home-hero-video { object-fit: cover; object-position: center; }
.home-hero-video { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.home-hero-video.is-visible { visibility: visible; }
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 57%, rgb(247 250 247 / 10%) 66%, rgb(247 250 247 / 84%) 87%, rgb(247 250 247 / 97%) 100%);
}
.home-hero-copy {
  position: absolute;
  z-index: 2;
  top: clamp(134px, 11.7vw, 205px);
  right: 4vw;
  width: clamp(285px, 23.4vw, 420px);
}
.home-hero-copy h1 {
  font-size: clamp(39px, 3.1vw, 58px);
  line-height: 1.07;
  letter-spacing: -.055em;
  font-weight: 750;
  color: var(--navy);
}
.home-hero-copy .hero-second-line { display: block; }
.home-hero-copy p {
  max-width: 305px;
  margin-top: 22px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  color: #365064;
}
.home-hero-action { margin-top: 27px; }
.hero-offer-phone, .home-search-filters { display: none; }
.home-hero-action .button { border-radius: 30px; min-height: 52px; padding-inline: 28px; font-size: 14px; }
.home-hero-toggle {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 25px;
  background: rgb(18 59 90 / 86%);
  color: white;
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}
.home-hero-toggle[hidden] { display: none; }
.home-hero-caption {
  position: absolute;
  z-index: 3;
  right: 4vw;
  bottom: 25px;
  color: #526673;
  font-size: 10px;
}
.home-search { padding-top: 24px; }
.home-search .search-intro { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.home-search .search-intro h2 { font-size: clamp(28px, 2.4vw, 38px); }
.home-search keyhome-city-loop { width: clamp(135px, 12vw, 180px); }
.home-search .search-panel { margin-top: 12px; box-shadow: none; }
.home-search .area-shortcuts { padding-bottom: 0; }
.page-home .room-section { padding-top: 46px; }
@media screen and (forced-colors: none) {
  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .city-word-light {
      display: inline-block;
      background-color: var(--navy);
      background-image: linear-gradient(100deg, var(--navy) 32%, #2058b4 41%, var(--blue) 47% 53%, #2058b4 59%, var(--navy) 68%);
      background-size: 300% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: city-word-crossing 4.8s cubic-bezier(.4,0,.5,1) infinite paused;
    }
    .home-hero:has([data-words-running] .home-hero-video.is-visible) .city-word-light { animation-play-state: running; }
  }
  .room-word-line { position: relative; }
  .room-word-line::after {
    content: "";
    position: absolute;
    inset: auto .18em -.075em .025em;
    height: .1em;
    border-radius: 999px;
    background: var(--blue);
    animation: room-word-underline 3.8s cubic-bezier(.4,0,.3,1) infinite paused;
  }
  .search-intro:has(keyhome-city-loop[data-running]) .room-word-line::after { animation-play-state: running; }
}
@keyframes city-word-crossing {
  0%, 4% { background-position: 100% 50%; }
  85%, 100% { background-position: 0% 50%; }
}
@keyframes room-word-underline {
  0%, 8%, 100% { clip-path: inset(0 76% 0 0 round 999px); }
  43%, 72% { clip-path: inset(0 0 0 0 round 999px); }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .home-hero { height: auto; display: flex; flex-direction: column; }
  .home-hero::after { display: none; }
  .home-hero-copy { position: relative; inset: auto; width: auto; order: 0; text-align: center; padding: 30px 30px 28px; }
  .home-hero-copy h1 { font-size: 42px; line-height: 1.08; }
  .home-hero-copy p { max-width: none; font-size: 15px; margin-top: 12px; }
  .home-hero-copy p br { display: none; }
  .home-hero-action { margin-top: 18px; }
  .home-hero-action .button { min-height: 48px; }
  .home-hero-scene { position: relative; inset: auto; order: 1; width: 100%; aspect-ratio: 1920 / 818; }
  .home-hero-scene picture img,
  .home-hero-video { object-fit: cover; object-position: center; }
  .home-hero-caption { color: #173d55; background: rgb(255 255 255 / 85%); padding: 2px 5px; border-radius: 3px; }
  .home-search .search-field { padding-inline: 6px; gap: 7px; }
  .home-search .search-field select { padding-right: 17px; }
}
@media (max-width: 700px) {
  .page-home .site-header { position: relative; inset: auto; background: white; backdrop-filter: none; }
  .page-home .header-inner { height: 66px; }
  .page-home .menu-button { width: 44px; height: 44px; border-color: transparent; }
  .home-hero { height: auto; display: flex; flex-direction: column; overflow: visible; }
  .home-hero::after { display: none; }
  .home-hero-copy { position: relative; inset: auto; width: auto; order: 0; padding: 21px 24px 24px; }
  .home-hero-copy h1 { font-size: clamp(34px, 10.6vw, 52px); line-height: 1.04; letter-spacing: -.05em; }
  .home-hero-copy p { font-size: 14px; line-height: 1.55; margin-top: 13px; max-width: none; }
  .hero-offer-wide, .home-hero-action { display: none; }
  .hero-offer-phone { display: inline; }
  .home-hero-scene { position: relative; inset: auto; order: 1; width: 100%; aspect-ratio: 5 / 4; }
  .home-hero-scene picture { position: absolute; inset: 0; }
  .home-hero-scene picture img, .home-hero-video { object-position: center; }
  .home-hero-toggle { left: auto; right: 16px; top: 12px; bottom: auto; min-height: 44px; font-size: 10px; padding: 8px 12px; background: rgb(18 59 90 / 82%); }
  .home-hero-caption { bottom: 30px; right: 16px; font-size: 9px; color: #173d55; background: rgb(255 255 255 / 88%); padding: 2px 5px; border-radius: 3px; }
  .home-search { position: relative; z-index: 4; width: calc(100% - 32px); }
  .home-search .search-panel { grid-template-columns: 1fr; padding: 14px 16px 16px; gap: 0; margin-top: -18px; border-radius: 18px; border-color: rgb(18 59 90 / 10%); box-shadow: 0 8px 24px rgb(18 59 90 / 6%); }
  .home-search .search-field { padding: 0; gap: 12px; }
  .home-search .search-field:first-child { min-height: 62px; margin: 0 0 9px; border: 0; }
  .home-search .search-field:not(:first-child) { display: none; }
  .home-search .search-field label { font-size: 11px; margin-bottom: 0; }
  .home-search .search-field select { font-size: 16px; min-height: 44px; padding: 7px 23px 7px 0; color: var(--navy); }
  .home-search .search-panel > .button { min-height: 52px; margin: 0; font-size: 14px; border-radius: 10px; background: var(--navy); }
  .home-search-filters { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 4px; font-size: 12px; color: #536e80; text-decoration: underline; text-underline-offset: 3px; }
  .home-search .area-shortcuts { display: none; }
  .page-home .room-section { padding-top: 28px; }
}
@media screen and (prefers-reduced-motion: reduce) {
  .home-hero:not(:has([data-motion-enabled])) .city-word-light { background: none; color: inherit; }
}
@media print {
  .home-hero-video, .home-hero-toggle { display: none !important; }
  .page-home .site-header { position: static; }
  .home-hero { height: 500px; }
}
