:root {
  --navy: #0d2b55;
  --navy-deep: #082348;
  --navy-soft: #2f506f;
  --ink: #162235;
  --muted: #6c7684;
  --line: #dbe1e8;
  --panel: #ffffff;
  --soft-bg: #f4f6f8;
  --pale: #eef2f5;
  --shadow: 0 12px 32px rgba(13, 43, 85, 0.12);
  --inner: min(1360px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 96px;
  padding: 18px clamp(24px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(13, 43, 85, 0.08);
}

.brand {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 10px;
  min-width: 248px;
  color: var(--navy);
}

.brand__mark {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.brand__company {
  color: #606c7b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.7vw, 28px);
  flex: 1;
  color: #1d2633;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.global-nav a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.global-nav a:hover {
  color: var(--navy-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.contact-button,
.tel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 6px;
  font-weight: 700;
}

.contact-button {
  gap: 10px;
  min-width: 172px;
  padding: 0 20px;
  color: #fff;
  background: var(--navy);
}

.contact-button svg {
  width: 19px;
  height: 19px;
}

.tel-button {
  gap: 9px;
  min-width: 166px;
  padding: 8px 13px;
  border: 1px solid var(--navy);
  color: #182235;
  line-height: 1.15;
}

.tel-button svg {
  width: 17px;
  height: 17px;
}

.tel-button strong {
  display: block;
  font-size: 15px;
}

.tel-button small {
  display: block;
  margin-top: 3px;
  color: #4d5664;
  font-size: 9px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #f2f0eb;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 25%, rgba(255, 255, 255, 0.1) 56%, rgba(255, 255, 255, 0) 100%),
    url("../img/hero.png") center / cover,
    #e8ecef;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--inner);
  margin: 0 auto;
  padding-top: 140px;
}

.hero__title {
  margin: 0;
  color: var(--navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}

.hero__lead {
  margin: 34px 0 40px;
  color: #111b2b;
  font-size: 18px;
  font-weight: 600;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 278px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 5px;
  color: #fff;
  background: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.primary-button::after,
.outline-button::after,
.cta-card em::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 28px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero-badge {
  position: absolute;
  right: max(72px, calc((100vw - 1360px) / 2 + 28px));
  bottom: 84px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 222px;
  height: 222px;
  padding: 30px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background: rgba(13, 43, 85, 0.78);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(13, 43, 85, 0.24);
}

.hero-badge svg {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
}

.hero-badge strong {
  display: block;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 21px;
}

.hero-badge span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.search-panel {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 240px repeat(4, 1fr);
  align-items: center;
  width: var(--inner);
  min-height: 130px;
  margin: -74px auto 0;
  padding: 24px 34px;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel__title {
  padding-left: 22px;
}

.search-panel__title strong {
  display: block;
  color: var(--navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 26px;
  line-height: 1.2;
}

.search-panel__title span,
.section-heading span,
.center-heading span {
  color: #8a94a3;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
  color: var(--navy);
}

.search-item svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.search-item strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.search-item small {
  display: block;
  color: #31415a;
  font-size: 12px;
  font-weight: 700;
}

.section {
  width: var(--inner);
  margin-inline: auto;
}

.recommend {
  padding: 62px 0 72px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading h2,
.center-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 27px;
  line-height: 1.3;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 216px;
  min-height: 39px;
  margin-left: auto;
  border: 1px solid var(--navy);
  border-radius: 4px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.outline-button::after {
  width: 7px;
  height: 7px;
  margin-left: 28px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.property-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.property-card__photo {
  position: relative;
  aspect-ratio: 1.43 / 1;
  background:
    var(--photo) center / cover,
    linear-gradient(135deg, #dce4eb, #f7f8fa);
}

.property-card__photo span {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 78px;
  padding: 5px 9px 6px;
  color: #fff;
  background: var(--navy);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.property-card__body {
  padding: 20px 16px 17px;
}

.property-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.property-card__price {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.property-card__meta {
  margin: 4px 0 0;
  color: #263245;
  font-size: 13px;
  font-weight: 700;
}

.favorite {
  position: absolute;
  right: 14px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: #aab4c1;
  background: transparent;
  cursor: pointer;
}

.favorite svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.8;
}

.reason {
  width: 100%;
  padding: 52px max(48px, calc((100vw - 1360px) / 2)) 66px;
  background: var(--soft-bg);
}

.center-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  margin-bottom: 42px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1360px;
  margin: 0 auto;
}

.reason-card {
  min-height: 206px;
  padding: 2px 42px 0;
  text-align: center;
}

.reason-card + .reason-card {
  border-left: 1px solid var(--line);
}

.reason-card svg {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  color: var(--navy);
  stroke-width: 1.7;
}

.reason-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 21px;
  line-height: 1.45;
}

.reason-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.95;
}

.cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding: 56px 0 70px;
}

.cta-card {
  position: relative;
  display: flex;
  min-height: 236px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 32px 34px;
  border-radius: 4px;
  background: #dde4ea;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(13, 43, 85, 0.86) 0%, rgba(13, 43, 85, 0.76) 48%, rgba(13, 43, 85, 0.08) 100%),
    var(--cta-photo) center / cover;
}

.cta-card--owner {
  --cta-photo: url("../img/owner-support.png");
  color: #fff;
}

.cta-card--sale {
  --cta-photo: url("../img/sale-consult.png");
  color: var(--navy);
}

.cta-card--sale::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0.18) 100%),
    var(--cta-photo) center / cover;
}

.cta-card span,
.cta-card strong,
.cta-card p,
.cta-card em {
  position: relative;
  z-index: 1;
}

.cta-card span {
  font-size: 16px;
  font-weight: 700;
}

.cta-card span::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 20px;
  margin-right: 9px;
  vertical-align: -4px;
  background: currentColor;
}

.cta-card strong {
  display: block;
  margin-top: 6px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.45;
}

.cta-card p {
  max-width: 430px;
  margin: 12px 0 22px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.cta-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 206px;
  min-height: 40px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.cta-card--owner em {
  color: var(--navy);
}

.cta-card em::after {
  width: 7px;
  height: 7px;
  margin-left: 32px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  color: #fff;
  background: var(--navy);
}

.footer-silhouette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 112px;
  background: #fff url("../img/footer-town.png") center bottom / cover no-repeat;
}

.footer-silhouette::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--navy);
  content: "";
}

.footer-inner {
  width: var(--inner);
  margin: 0 auto;
  padding: 52px 0 42px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p + p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

@media (max-width: 1180px) {
  :root {
    --inner: min(100vw - 48px, 960px);
  }

  .site-header {
    min-height: 82px;
    padding: 14px 20px;
    gap: 14px;
  }

  .brand {
    min-width: 190px;
    column-gap: 8px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 38px;
  }

  .brand__name {
    font-size: 30px;
  }

  .brand__company {
    font-size: 11px;
  }

  .global-nav {
    gap: 14px;
    justify-content: flex-end;
    overflow: visible;
    font-size: 13px;
  }

  .header-actions {
    gap: 8px;
  }

  .contact-button,
  .tel-button {
    min-height: 48px;
    font-size: 13px;
  }

  .contact-button {
    min-width: 148px;
    padding-inline: 16px;
  }

  .tel-button {
    min-width: 154px;
  }

  .tel-button strong {
    font-size: 14px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-badge {
    right: 40px;
    width: 190px;
    height: 190px;
  }

  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .search-panel__title {
    grid-column: 1 / -1;
    padding: 0 0 18px;
  }

  .search-item:nth-child(2n) {
    border-left: 0;
  }

  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reason {
    padding-inline: 24px;
  }

  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .reason-card:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .global-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 760px) {
  :root {
    --inner: min(100vw - 32px, 560px);
  }

  .site-header {
    min-height: 76px;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 34px;
  }

  .brand__name {
    font-size: 27px;
  }

  .brand__company {
    font-size: 10px;
  }

  .header-actions {
    width: 100%;
    gap: 8px;
  }

  .contact-button,
  .tel-button {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .tel-button small {
    display: none;
  }

  .global-nav {
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    min-height: 620px;
  }

  .hero__media {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 52%, rgba(255, 255, 255, 0.32) 100%),
      url("../img/hero.png") center / cover,
      #e8ecef;
  }

  .hero__content {
    padding-top: 86px;
  }

  .hero__title {
    font-size: 38px;
    line-height: 1.55;
  }

  .hero__lead {
    margin: 24px 0 28px;
    font-size: 15px;
  }

  .primary-button {
    min-width: 220px;
  }

  .hero-badge {
    right: 22px;
    bottom: 54px;
    width: 138px;
    height: 138px;
    padding: 18px;
  }

  .hero-badge svg {
    width: 25px;
    height: 25px;
  }

  .hero-badge strong {
    font-size: 16px;
  }

  .hero-badge span {
    font-size: 10px;
    line-height: 1.55;
  }

  .search-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: -34px;
    padding: 24px 20px 12px;
  }

  .search-panel__title {
    padding-bottom: 10px;
  }

  .search-panel__title strong {
    font-size: 23px;
  }

  .search-item,
  .search-item:nth-child(2n) {
    min-height: 76px;
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section-heading,
  .center-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .outline-button {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
  }

  .property-grid,
  .reason-grid,
  .cta {
    grid-template-columns: 1fr;
  }

  .property-grid {
    gap: 18px;
  }

  .reason {
    padding: 42px 16px 48px;
  }

  .center-heading {
    align-items: center;
    margin-bottom: 28px;
    text-align: center;
  }

  .reason-card,
  .reason-card + .reason-card,
  .reason-card:nth-child(3) {
    min-height: 0;
    padding: 28px 8px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .reason-card:first-child {
    border-top: 0;
  }

  .cta {
    gap: 18px;
    padding: 42px 0 52px;
  }

  .cta-card {
    min-height: 245px;
    padding: 28px 22px;
  }

  .cta-card::before,
  .cta-card--sale::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 70%, rgba(255, 255, 255, 0.55) 100%),
      var(--cta-photo) center / cover;
  }

  .cta-card--owner {
    color: var(--navy);
  }

  .cta-card em {
    width: 180px;
  }

  .footer-silhouette {
    height: 82px;
  }
}
