/* TOP first-view renewal. Keep every rule page-scoped to avoid lower-page drift. */
.home-page .main-header > .container,
.home-page .quick-search-band > .container {
  width: calc(100% - 48px);
  max-width: 1280px;
}

.home-page .hero-section > .container {
  width: calc(100% - 48px);
  max-width: 1280px;
}

.home-page .main-header .navbar {
  min-height: 64px;
}

.home-page .main-header .navbar-nav {
  column-gap: 4px;
}

.home-page .main-header .nav-link {
  padding-right: .78rem !important;
  padding-left: .78rem !important;
}

.home-page .hero-section {
  min-height: 680px;
  overflow: hidden;
  color: var(--color-text);
  background-image:
    radial-gradient(ellipse 58% 54% at 12% 50%, rgba(247, 252, 255, .82) 0%, rgba(247, 252, 255, .6) 38%, rgba(247, 252, 255, .22) 62%, rgba(247, 252, 255, 0) 100%),
    url("/assets/images/home-hero-osaka-desktop-v6.webp");
  background-position: center;
  background-size: cover;
}

.home-page .hero-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2));
  content: "";
  pointer-events: none;
}

.home-page .hero-inner {
  position: relative;
  z-index: 1;
  min-height: 680px;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 456px);
  gap: clamp(28px, 4vw, 64px);
  padding-top: 9px;
  padding-bottom: 9px;
}

.home-page .hero-copy {
  max-width: 610px;
  padding: 22px 0;
}

.home-page .hero-badge {
  min-height: 36px;
  border-color: rgba(18, 58, 86, .28);
  background: rgba(255, 255, 255, .88);
  color: var(--color-primary);
  padding: 7px 15px;
  box-shadow: 0 8px 22px rgba(18, 58, 86, .09);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.home-page .hero-badge i {
  color: var(--color-cta);
}

.home-page .hero-title {
  margin: 20px 0 0;
  color: var(--color-primary);
  font-size: clamp(2.3rem, 3.25vw, 3rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .88);
}

.home-page .mobile-hero-slide:not(:first-child),
.home-page .mobile-hero-dots {
  display: none;
}

.home-page .quick-search-head > a:focus-visible {
  outline: 3px solid rgba(242, 140, 40, .42);
  outline-offset: 3px;
}

.home-page .hero-search {
  align-self: center;
  width: 100%;
  max-width: 456px;
  border: 1px solid rgba(18, 58, 86, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .97);
  padding: 15px 17px 16px;
  box-shadow: 0 22px 54px rgba(18, 58, 86, .2);
}

.home-page .hero-search .search-heading {
  margin-bottom: 10px;
  padding-bottom: 9px;
}

.home-page .hero-search .search-heading h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.home-page .hero-search .home-type-selector,
.home-page .hero-search .area-selector {
  margin-right: 0;
  margin-left: 0;
  border-color: #d9e5ec;
  border-radius: 9px;
  background: #f6fafd;
  padding: 9px;
}

.home-page .hero-search .home-type-selector {
  margin-bottom: 10px !important;
}

.home-page .hero-search #home-property-search > .row.g-2 {
  --bs-gutter-y: 6px;
}

.home-page .hero-search .search-condensed-grid {
  gap: 7px 10px;
}

.home-page .hero-search .type-btn,
.home-page .hero-search .pref-check {
  min-height: 44px;
  border-color: #d4e0e7;
  border-radius: 7px;
  background: #fff;
}

.home-page .hero-search .type-btn.active,
.home-page .hero-search .pref-check.active {
  border-color: var(--color-primary);
  background: #eaf3f9;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(18, 58, 86, .1);
}

.home-page .hero-search .type-btn:focus-within,
.home-page .hero-search .pref-check:focus-within,
.home-page .hero-search .form-select:focus-visible,
.home-page .hero-search .multi-select-toggle:focus-visible {
  outline: 3px solid rgba(242, 140, 40, .34);
  outline-offset: 2px;
  border-color: var(--color-cta);
  box-shadow: none;
}

.home-page .hero-search .form-select,
.home-page .hero-search .multi-select-toggle {
  min-height: 44px;
}

.home-page .hero-search #home-property-search > .btn {
  min-height: 48px;
  border-radius: 7px;
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(242, 140, 40, .24);
  margin-top: 12px !important;
}

.home-page .hero-search #home-property-search > .btn:hover,
.home-page .hero-search #home-property-search > .btn:focus-visible {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #fff;
}

.home-page .hero-search #home-property-search > .btn:focus-visible {
  outline: 3px solid rgba(242, 140, 40, .36);
  outline-offset: 3px;
}

.home-page .hero-search #home-property-search > .btn:active {
  transform: translateY(1px);
}

.home-page .quick-search-band {
  display: block;
  border-bottom-color: #dce7ee;
  background: #fff;
  padding: 26px 0 30px;
}

.home-page .quick-search-band::before {
  height: 1px;
  background: #dfe8ee;
  opacity: 1;
}

.home-page .quick-search-head {
  align-items: center;
  margin-bottom: 18px;
}

.home-page .quick-search-head h2 {
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 800;
}

.home-page .quick-search-head > a {
  min-height: 44px;
  padding: 8px 2px 8px 14px;
  color: var(--color-primary);
}

.home-page .quick-nav-grid {
  gap: 12px;
}

.home-page .quick-nav-card {
  min-height: 88px;
  border-color: #dce5eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(18, 58, 86, .08);
}

.home-page .quick-nav-card::before {
  display: none;
}

.home-page .quick-nav-icon {
  background: #edf4f8;
}

.home-page .quick-nav-arrow {
  background: #fff2e7;
}

@media (min-width: 1200px) {
  .home-page .hero-section {
    background-image:
      radial-gradient(ellipse 58% 46% at 14% 31%, rgba(247, 252, 255, .82) 0%, rgba(247, 252, 255, .6) 38%, rgba(247, 252, 255, .22) 62%, rgba(247, 252, 255, 0) 100%),
      url("/assets/images/home-hero-osaka-desktop-v10.webp");
    background-position: center, center 68%;
  }

  .home-page .hero-copy {
    transform: translate(15px, -160px);
  }

  .home-page .hero-title {
    font-size: 2.75rem;
    line-height: 1.22;
  }
}

@media (max-width: 1199.98px) {
  .home-page .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 446px);
    gap: 28px;
  }

  .home-page .hero-title {
    font-size: clamp(2.15rem, 3.5vw, 2.65rem);
  }
}

@media (max-width: 991.98px) {
  .home-page .main-header > .container,
  .home-page .hero-section > .container,
  .home-page .quick-search-band > .container {
    width: calc(100% - 36px);
  }

  .home-page .hero-section {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(247, 252, 255, .8) 0%, rgba(247, 252, 255, .56) 34%, rgba(247, 252, 255, .28) 64%, rgba(247, 252, 255, .64) 100%),
      url("/assets/images/home-hero-osaka-desktop-v6.webp");
    background-position: 58% center;
  }

  .home-page .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .home-page .hero-copy {
    max-width: 650px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 42px rgba(18, 58, 86, .11);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .home-page .hero-title {
    color: var(--color-primary);
    text-shadow: none;
  }

  .home-page .hero-search {
    max-width: 650px;
  }

  .home-page .quick-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .home-page .hero-section > .container {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .home-page .quick-search-band > .container {
    width: calc(100% - 24px);
  }

  .home-page .main-header > .container {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .home-page .main-header .navbar {
    min-height: 58px;
  }

  .home-page .main-header .navbar-toggler {
    width: 44px;
    height: 44px;
  }

  .home-page .hero-section {
    z-index: 2;
    overflow: visible;
    background: #eef6fa;
  }

  .home-page .hero-inner {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .home-page .hero-copy {
    display: block;
    padding: 17px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .84);
  }

  .home-page .hero-copy.mobile-hero-banner {
    position: relative;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .home-page .mobile-hero-viewport {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(18, 58, 86, .1);
  }

  .home-page .mobile-hero-track {
    display: flex;
    min-height: 9rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .home-page .mobile-hero-track::-webkit-scrollbar {
    display: none;
  }

  .home-page .mobile-hero-track:focus-visible {
    outline: 3px solid rgba(242, 140, 40, .4);
    outline-offset: 3px;
  }

  .home-page .mobile-hero-slide {
    display: flex;
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 9rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 15px 30px;
    background: #fff;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-page .mobile-hero-slide:not(:first-child) {
    display: flex;
  }

  .home-page .mobile-hero-slide--kansai,
  .home-page .mobile-hero-slide--new,
  .home-page .mobile-hero-slide--member {
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .home-page .mobile-hero-slide--kansai {
    background-color: #eef6fa;
    background-image:
      linear-gradient(90deg, rgba(247, 252, 255, .9) 0%, rgba(247, 252, 255, .76) 50%, rgba(247, 252, 255, .42) 64%, rgba(247, 252, 255, .08) 80%, rgba(247, 252, 255, 0) 88%),
      url('/assets/images/home-hero-banner-kansai-v1.webp');
  }

  .home-page .mobile-hero-slide--new {
    background-color: #f3f8fb;
    background-image:
      linear-gradient(90deg, rgba(247, 252, 255, .9) 0%, rgba(247, 252, 255, .76) 50%, rgba(247, 252, 255, .42) 64%, rgba(247, 252, 255, .08) 80%, rgba(247, 252, 255, 0) 88%),
      url('/assets/images/home-hero-banner-new-listings-v1.webp');
  }

  .home-page .mobile-hero-slide--member {
    background-color: #fdf8f2;
    background-image:
      linear-gradient(90deg, rgba(253, 248, 242, .92) 0%, rgba(253, 248, 242, .78) 50%, rgba(253, 248, 242, .44) 64%, rgba(253, 248, 242, .08) 80%, rgba(253, 248, 242, 0) 88%),
      url('/assets/images/home-hero-banner-members-only-v1.webp');
  }

  .home-page .mobile-hero-kicker {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 7px;
    color: var(--color-primary);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .home-page .mobile-hero-kicker i {
    color: var(--color-cta);
  }

  .home-page .mobile-hero-slide-title {
    margin: 8px 0 0;
    color: var(--color-primary);
    font-size: clamp(1.18rem, 6vw, 1.5rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .home-page .mobile-hero-banner.is-enhanced .mobile-hero-dots {
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .home-page .mobile-hero-dot {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    pointer-events: auto;
  }

  .home-page .mobile-hero-dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #a9bac5;
    content: "";
    transform: translate(-50%, -50%);
    transition: width .18s ease-out, background-color .18s ease-out;
  }

  .home-page .mobile-hero-dot.is-active::before {
    width: 18px;
    background: var(--color-cta);
  }

  .home-page .mobile-hero-dot:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -9px;
  }

  .home-page .hero-badge {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    min-height: 26px;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .home-page .hero-badge i {
    margin-right: 0 !important;
  }

  .home-page .hero-title {
    display: block;
    margin: 8px 0 0;
    color: var(--color-primary);
    font-size: clamp(1.18rem, 6vw, 1.5rem);
    line-height: 1.28;
    letter-spacing: 0;
  }

  .home-page .hero-title span {
    white-space: normal;
  }

  .home-page .hero-search {
    padding: 17px 14px 18px;
    border-radius: 12px;
  }

  .home-page .hero-search .search-heading {
    align-items: center;
    margin-top: 0;
  }

  .home-page .hero-search .search-heading h2 {
    font-size: 1.15rem;
  }

  .home-page .hero-search .home-type-selector,
  .home-page .hero-search .area-selector {
    padding: 10px;
  }

  .home-page .quick-search-band {
    padding: 22px 0 26px;
  }

  .home-page .quick-search-head {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
  }

  .home-page .quick-search-head h2 {
    font-size: 1.2rem;
  }

  .home-page .quick-search-head > a {
    min-height: 44px;
    margin-top: -8px;
    padding-left: 8px;
    font-size: .8rem;
    text-align: right;
  }

  .home-page .quick-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-page .quick-nav-card {
    grid-template-columns: 1fr;
    min-height: 116px;
    justify-items: center;
    gap: 8px;
    padding: 14px 10px;
    text-align: center;
  }

  .home-page .quick-nav-icon {
    width: 40px;
    height: 40px;
  }

  .home-page .quick-nav-text {
    align-items: center;
    gap: 3px;
  }

  .home-page .quick-nav-label {
    font-size: .94rem;
  }

  .home-page .quick-nav-note {
    font-size: .78rem;
  }

  .home-page .quick-nav-arrow {
    display: none;
  }
}

@media (max-width: 374.98px) {
  .home-page .quick-search-head {
    flex-direction: column;
  }

  .home-page .quick-search-head > a {
    margin-top: -4px;
    padding-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .mobile-hero-track {
    scroll-behavior: auto;
  }

  .home-page .mobile-hero-dot::before {
    transition: none;
  }

  .home-page .quick-nav-card,
  .home-page .quick-nav-arrow,
  .home-page .quick-nav-icon {
    transition: none;
  }
}
