:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --surface: #fffdf8;
  --ink: #20392f;
  --muted: #53635a;
  --line: #dcded1;
  --mint: #edf1e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 -apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Segoe UI","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;
}

.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 77px;
  border-bottom: 1px solid var(--line);
}

.brand { font-size: 1.05rem; font-weight: 820; letter-spacing: .12em; color: inherit; text-decoration: none; }
.brand span { color: #496356; }
.languages { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); }

.languages button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 50px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}

.languages button[aria-pressed=true] { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid #426754; outline-offset: 4px; }

.intro { padding: clamp(34px, 5.5vw, 66px) 0 28px; }
h1 { margin: 0; font-size: clamp(2.15rem, 5vw, 4rem); font-weight: 740; letter-spacing: -.045em; line-height: 1.18; }
.intro p { max-width: 50ch; color: var(--muted); margin: 12px 0 0; }

.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(15px, 2.6vw, 32px); }
.property-grid article { display: flex; min-width: 0; }

.property-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.photo { position: relative; aspect-ratio: 1.58; overflow: hidden; background: #e3e6dd; }
.photo img { position: absolute; display: block; left: var(--photo-left); top: var(--photo-top); width: var(--photo-width); height: auto; }
.photo-tamachi { --photo-left: -33.73%; --photo-top: -7.65%; --photo-width: 187.62%; }
.photo-ichibancho { --photo-left: -2.73%; --photo-top: -28.72%; --photo-width: 114.24%; }

.property-body { display: flex; flex: 1; flex-direction: column; padding: clamp(17px, 2.6vw, 26px); }
.location { margin: 0 0 5px; color: var(--muted); font-size: .9rem; font-weight: 640; }
h2 { font-size: clamp(1.4rem, 2.75vw, 2rem); letter-spacing: -.035em; line-height: 1.25; margin: 0; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .9rem;
}

.specs li:first-child { color: var(--ink); font-weight: 750; }

.card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  margin-top: auto;
  padding: 3px 13px;
  border-radius: 8px;
  background: var(--mint);
  font-weight: 710;
}

.property-card:hover { border-color: #899c88; }
.property-card:hover .card-action { background: #e2eade; }

footer { margin-block: 36px 0; padding: 15px 0 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 67px; }
  .property-grid { grid-template-columns: 1fr; }
  .intro { padding-bottom: 21px; }
}

/* Simplified Chinese uses a Chinese font; Japanese and English use the Japanese stack above. */
html:lang(zh-Hans) body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Segoe UI","Microsoft YaHei",sans-serif}
