/* Sales-property pages. The palette and typography intentionally inherit styles.css. */

.site-nav {
  gap: clamp(16px, 1.55vw, 30px);
}

.properties-featured {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.properties-featured::before {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(79, 103, 95, 0.16);
  border-radius: 50%;
  content: "";
}

.properties-featured__head,
.properties-listing__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}

.properties-featured__head h2,
.properties-listing__head h2,
.property-section__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.35;
}

.properties-featured__intro,
.properties-listing__head > p {
  max-width: 530px;
  margin: 0;
  color: #4d6067;
  font-size: 14px;
  line-height: 2;
}

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

.property-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-width: 0;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(15, 32, 41, 0.08);
  grid-template-rows: auto 1fr;
}

.property-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-deep);
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.property-card:hover .property-card__image img {
  transform: scale(1.035);
}

.property-card__status {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 13px;
  color: var(--white);
  background: rgba(15, 32, 41, 0.88);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.property-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px;
}

.property-card__type {
  margin: 0 0 8px;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.property-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.45;
}

.property-card__address {
  margin: 8px 0 0;
  color: #596b71;
  font-size: 12px;
}

.property-card__price {
  margin: 20px 0 0;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.property-card__area {
  margin: 7px 0 0;
  color: #53666d;
  font-size: 12px;
}

.property-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.property-card__features li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.5;
}

.property-card__link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 10px 17px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.property-card__link:hover,
.property-card__link:focus-visible {
  color: var(--ink);
  background: var(--sand-light);
}

.properties-featured__more {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 185px 0 82px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(8, 23, 31, 0.98), rgba(24, 51, 65, 0.78)),
    url("../images/aomori-night.webp") center / cover;
}

.page-hero::after {
  position: absolute;
  right: -120px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(234, 220, 197, 0.28);
  border-radius: 50%;
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.3;
}

.page-hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 2;
}

.breadcrumb {
  color: #5c6e74;
  background: var(--white);
  font-size: 11px;
}

.breadcrumb ol {
  display: flex;
  min-height: 54px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 8px;
  color: #9ba5a8;
  content: "/";
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.properties-listing {
  padding: 100px 0 132px;
}

.properties-listing__note {
  margin: 38px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--sand);
  color: #53666d;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.property-hero {
  padding: 86px 0 98px;
  background: var(--paper-2);
}

.property-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 70px;
}

.property-hero__copy,
.property-hero__media {
  min-width: 0;
}

.property-hero__status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 13px;
  color: var(--white);
  background: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.property-hero__type {
  margin: 22px 0 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.property-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.property-hero__address {
  margin: 15px 0 0;
  color: #53666d;
  font-size: 13px;
}

.property-hero__price {
  margin: 28px 0 0;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.2;
}

.property-hero__lead {
  margin: 26px 0 0;
  color: #455961;
  font-size: 14px;
  line-height: 2;
}

.property-hero__media {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.property-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-key-facts {
  color: var(--white);
  background: var(--ink);
}

.property-key-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.property-key-fact {
  min-width: 0;
  padding: 28px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.property-key-fact:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.property-key-fact span {
  display: block;
  color: var(--sand);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.property-key-fact strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.property-section {
  padding: 112px 0;
}

.property-section--soft {
  background: var(--paper-2);
}

.property-section--dark {
  color: var(--white);
  background: var(--ink-deep);
}

.property-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 52px;
}

.property-section__head > p {
  margin: 0;
  color: #53666d;
  font-size: 14px;
  line-height: 2;
}

.property-section--dark .property-section__head > p {
  color: rgba(255, 255, 255, 0.7);
}

.feature-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-list li {
  position: relative;
  min-width: 0;
  padding: 24px 24px 24px 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.75;
}

.feature-list li::before {
  position: absolute;
  top: 31px;
  left: 24px;
  width: 10px;
  height: 1px;
  content: "";
  background: var(--green);
}

.feature-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-group {
  min-width: 0;
  padding: 30px;
  background: var(--white);
}

.feature-group h3 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.feature-group ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.feature-group li {
  position: relative;
  padding-left: 16px;
  color: #455961;
  font-size: 12px;
  line-height: 1.7;
}

.feature-group li::before {
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 6px;
  height: 1px;
  content: "";
  background: var(--sand);
}

.feature-note-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-note {
  min-width: 0;
  padding: 28px 30px;
  border-left: 3px solid var(--sand);
  background: rgba(255, 255, 255, 0.7);
}

.feature-note strong {
  display: block;
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.feature-note p {
  margin: 0;
  color: #53666d;
  font-size: 12px;
  line-height: 1.85;
}

.gallery-shell {
  position: relative;
}

.gallery-track {
  display: grid;
  overflow-x: auto;
  padding: 0 0 22px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 46%);
  gap: 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--sand) rgba(255, 255, 255, 0.12);
}

.gallery-item {
  display: grid;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #10242e;
  cursor: zoom-in;
  text-align: left;
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e9e5dd;
}

.gallery-item span {
  display: block;
  min-height: 52px;
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.6;
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.gallery-control {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.gallery-control:hover,
.gallery-control:focus-visible {
  color: var(--ink);
  background: var(--sand-light);
}

.gallery-help {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.property-lightbox {
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #08171f;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
}

.property-lightbox::backdrop {
  background: rgba(4, 12, 16, 0.86);
  backdrop-filter: blur(8px);
}

.property-lightbox__stage {
  display: grid;
  min-height: min(82vh, 820px);
  grid-template-rows: 1fr auto;
}

.property-lightbox__stage img {
  width: 100%;
  height: min(76vh, 760px);
  object-fit: contain;
  background: #08171f;
}

.property-lightbox__caption {
  margin: 0;
  padding: 13px 70px 16px 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.property-lightbox__close,
.property-lightbox__nav {
  position: absolute;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(8, 23, 31, 0.76);
  cursor: pointer;
  place-items: center;
}

.property-lightbox__close {
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.property-lightbox__nav {
  top: 50%;
  width: 50px;
  height: 58px;
  transform: translateY(-50%);
  font-size: 22px;
}

.property-lightbox__nav--prev {
  left: 12px;
}

.property-lightbox__nav--next {
  right: 12px;
}

.property-lightbox__close:hover,
.property-lightbox__close:focus-visible,
.property-lightbox__nav:hover,
.property-lightbox__nav:focus-visible {
  color: var(--ink);
  background: var(--sand-light);
}

.property-overview {
  display: grid;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-overview__row {
  display: grid;
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(112px, 0.38fr) minmax(0, 1fr);
}

.property-overview dt,
.property-overview dd {
  min-width: 0;
  margin: 0;
  padding: 18px 20px;
}

.property-overview dt {
  color: #52656c;
  background: rgba(237, 232, 223, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.property-overview dd {
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.property-notices {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-notices li {
  position: relative;
  padding: 18px 20px 18px 42px;
  border-left: 3px solid var(--sand);
  color: #455961;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.85;
}

.property-notices li::before {
  position: absolute;
  top: 18px;
  left: 20px;
  content: "※";
}

.property-contact {
  padding: 88px 0;
  color: var(--white);
  background: var(--ink);
}

.property-contact__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 54px;
}

.property-contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.4;
}

.property-contact p {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.property-contact__phone {
  display: grid;
  min-width: 390px;
  padding: 25px 32px;
  color: var(--ink);
  background: var(--sand-light);
  line-height: 1.45;
  transition: transform 180ms ease, background 180ms ease;
}

.property-contact__phone:hover,
.property-contact__phone:focus-visible {
  transform: translateY(-3px);
  background: var(--white);
}

.property-contact__phone span {
  font-size: 12px;
  font-weight: 700;
}

.property-contact__phone strong {
  font-family: Arial, sans-serif;
  font-size: 29px;
  letter-spacing: 0.06em;
}

.property-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 14px;
    font-size: 11px;
  }

  .site-nav__contact {
    min-width: 154px;
  }

  .property-hero__grid {
    gap: 42px;
  }
}

@media (max-width: 959px) {
  .site-nav {
    gap: 20px;
    font-size: 18px;
  }

  .properties-featured__head,
  .properties-listing__head,
  .property-section__head,
  .property-contact__inner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .properties-featured__head,
  .properties-listing__head {
    display: grid;
  }

  .property-hero__grid {
    grid-template-columns: 1fr;
  }

  .property-hero__copy {
    max-width: 760px;
  }

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

  .property-key-fact:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .property-key-fact:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .property-section__head {
    gap: 30px;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-overview {
    grid-template-columns: 1fr;
  }

  .property-contact__phone {
    min-width: 0;
    width: min(100%, 520px);
  }
}

@media (max-width: 680px) {
  .properties-featured__head,
  .properties-listing__head {
    margin-bottom: 38px;
  }

  .properties-featured__head h2,
  .properties-listing__head h2,
  .property-section__head h2 {
    font-size: 36px;
  }

  .properties-featured__intro,
  .properties-listing__head > p {
    font-size: 12px;
  }

  .property-cards {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .property-card__body {
    padding: 24px 21px;
  }

  .property-card h3 {
    font-size: 25px;
  }

  .page-hero {
    min-height: 370px;
    padding: 142px 0 64px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-hero__lead {
    font-size: 12px;
  }

  .breadcrumb ol {
    min-height: 48px;
    line-height: 1.5;
  }

  .properties-listing {
    padding: 72px 0 92px;
  }

  .property-hero {
    padding: 70px 0 76px;
  }

  .property-hero__grid {
    gap: 42px;
  }

  .property-hero h1 {
    font-size: 38px;
  }

  .property-hero__price {
    font-size: 34px;
  }

  .property-key-facts__grid {
    grid-template-columns: 1fr;
  }

  .property-key-fact,
  .property-key-fact:first-child,
  .property-key-fact:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .property-section {
    padding: 82px 0;
  }

  .property-section__head {
    margin-bottom: 38px;
  }

  .feature-list,
  .feature-groups,
  .feature-note-grid {
    grid-template-columns: 1fr;
  }

  .feature-list li,
  .feature-group,
  .feature-note {
    padding-right: 20px;
    padding-left: 42px;
  }

  .feature-group {
    padding: 24px 21px;
  }

  .feature-group ul {
    grid-template-columns: 1fr;
  }

  .feature-note {
    padding: 23px 22px;
  }

  .gallery-track {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    grid-auto-columns: 86%;
  }

  .gallery-controls {
    display: none;
  }

  .gallery-help::before {
    content: "左右にスワイプできます。";
  }

  .property-lightbox {
    width: 100vw;
    max-height: 100vh;
    margin: auto 0;
  }

  .property-lightbox__stage {
    min-height: 100vh;
  }

  .property-lightbox__stage img {
    height: calc(100vh - 64px);
  }

  .property-lightbox__nav {
    width: 44px;
    height: 52px;
  }

  .property-overview__row {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .property-overview dt,
  .property-overview dd {
    padding: 15px 13px;
  }

  .property-contact {
    padding: 72px 0;
  }

  .property-contact__inner {
    gap: 34px;
  }

  .property-contact__phone {
    padding: 22px 20px;
  }

  .property-contact__phone strong {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    scroll-behavior: auto;
  }
}
