@import url("https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@700;800;900&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");
:root {
  --forest: #1f3d33;
  --forest-2: #173129;
  --cream: #f5f1e7;
  --paper: #fffdf8;
  --terra: #c1704f;
  --ink: #24332d;
  --muted: #68736d;
  --line: #dedbd1;
  --shadow: 0 10px 30px rgba(27, 54, 44, 0.1);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
}
input, select, textarea {
  font-size: 16px;
}
button {
  cursor: pointer;
}
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
}
.site-head {
  height: 76px;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 61, 51, 0.09);
  position: sticky;
  top: 0;
  z-index: 20;
}
.head-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  font: 900 29px/1 "M PLUS 1p", sans-serif;
  color: var(--forest);
  letter-spacing: -1.5px;
}
.logo small {
  display: block;
  color: var(--terra);
  font: 700 10px/1.2 "Noto Sans JP";
  letter-spacing: 1.5px;
  margin: 5px 0 0 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  color: #45554e;
}
.nav > a {
  white-space: nowrap;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle,
.mobile-menu {
  display: none;
}
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  z-index: 30;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu-in {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 0 20px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  color: #45554e;
}
.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.mobile-menu .btn {
  width: 100%;
}
.icon-link, .heart {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  white-space: nowrap;
}
.icon-link b {
  position: absolute;
  right: -6px;
  top: -6px;
  background: var(--terra);
  color: #fff;
  border: 2px solid var(--paper);
  border-radius: 10px;
  font-size: 10px;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
  box-sizing: content-box;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 13px rgba(31, 61, 51, 0.18);
}
.btn:hover {
  background: #2b5647;
}
.btn.accent {
  background: var(--terra);
}
.btn.light {
  background: #fff;
  color: var(--forest);
}
.btn.line {
  background: transparent;
  color: var(--forest);
  border: 1px solid currentColor;
}
.page-head {
  padding: 46px 0 28px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 800;
  color: var(--terra);
  margin: 0 0 5px;
}
.page-head h1, .section-title {
  font: 800 clamp(20px, 5vw, 30px)/1.35 "M PLUS 1p", sans-serif;
  letter-spacing: -0.7px;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
[data-mypage] .page-head h1 {
  font-size: clamp(16px, 4.5vw, 30px);
}
.section {
  padding: 70px 0;
}
.section.cream {
  background: var(--cream);
}
.section.paper {
  background: var(--paper);
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
}
.section-top p {
  color: var(--muted);
  margin: 0;
}
.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  background: var(--forest);
  overflow: hidden;
}
.hero > .wrap {
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 45, 36, 0.84),
    rgba(17, 45, 36, 0.42) 48%,
    rgba(17, 45, 36, 0.08)
  );
  z-index: -1;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center/cover;
  z-index: -2;
}
.hero h1 {
  font: 900 clamp(34px, 5vw, 60px)/1.18 "M PLUS 1p", sans-serif;
  letter-spacing: -2px;
  color: #fff;
  max-width: 640px;
  margin: 0 0 12px;
}
.hero p {
  color: #e7ebe2;
  margin: 0 0 28px;
  font-size: 16px;
}
.search-panel {
  background: #fffdf8;
  padding: 15px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(4, 22, 15, 0.35);
  max-width: 950px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr auto;
  gap: 8px;
}
.field {
  min-width: 0;
}
.field label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 3px;
}
.field input,
.field select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.filter-group select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
.filter-group input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
  font-size: 16px;
}
.search-panel .btn {
  align-self: end;
  height: 43px;
}
.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #fff;
}
.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.station-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.station {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 19px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}
.station:hover {
  transform: translateY(-3px);
  border-color: var(--terra);
}
.station b {
  font-size: 16px;
}
.station small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.station:after {
  content: "→";
  position: absolute;
  right: 15px;
  bottom: 12px;
  color: var(--terra);
  font-size: 18px;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.property-grid > * {
  min-width: 0;
}
.property-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 61, 51, 0.08);
  position: relative;
}
.property-card .photo {
  display: block;
  height: 194px;
  background: #ddd;
}
.property-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-card .fav {
  position: absolute;
  top: 10px;
  right: 10px;
}
.heart.on {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}
.card-body {
  padding: 14px;
}
.tagline {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  background: #e9f0eb;
  color: var(--forest);
  white-space: nowrap;
}
.tag.warm {
  background: #f8e7df;
  color: #9b4e31;
}
.rent {
  font: 800 23px/1.2 "M PLUS 1p";
  color: var(--forest);
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.rent small {
  font: 500 12px "Noto Sans JP";
  color: var(--muted);
}
.property-name {
  display: block;
  font-weight: 800;
  font-size: 15px;
  margin: 0;
  padding: 7px 0;
}
.property-meta {
  color: #5e6c65;
  font-size: 12px;
}
.card-actions {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.compare-check {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.compare-check input {
  accent-color: var(--forest);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip {
  border: 1px solid #d7dcd6;
  color: #42544b;
  background: #fff;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  min-height: 40px;
  white-space: nowrap;
}
.chip:hover, .chip.selected {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  font-size: 12px;
  font-weight: 700;
}
.flow-step b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  margin: 0 auto 7px;
  font-size: 11px;
}
.about-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--forest);
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
}
.about-box > div {
  min-width: 0;
}
.about-copy {
  padding: 46px;
}
.about-copy h2 {
  font: 800 28px/1.4 "M PLUS 1p";
  margin: 0 0 13px;
}
.about-art {
  background: linear-gradient(135deg, #c1704f, #d8a480);
  min-height: 260px;
  display: grid;
  place-items: center;
  font-size: 86px;
}
.login-state h1 {
  font: 800 clamp(20px, 5vw, 30px)/1.35 "M PLUS 1p", sans-serif;
  letter-spacing: -0.7px;
  margin: 0;
}
.site-foot {
  background: #172c25;
  color: #e4ebe3;
  padding: 45px 0 20px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.foot-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.sample-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  color: #bfcac4;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 100px);
  transition: 0.25s;
  background: #1b3129;
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  z-index: 100;
  font-weight: 700;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.toast.show {
  transform: translate(-50%, 0);
}
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 27, 21, 0.6);
  display: grid;
  place-items: center;
  padding: 20px;
}
.dialog {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}
.modal-close {
  border: 0;
  background: none;
  font-size: 27px;
  position: absolute;
  right: 15px;
  top: 10px;
  color: var(--muted);
}
.dialog h2 {
  font: 800 24px "M PLUS 1p";
  margin: 0 0 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid > * {
  min-width: 0;
}
.form-grid label {
  font-weight: 700;
  font-size: 12px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid textarea {
  height: 90px;
  resize: vertical;
}
.dialog .btn {
  margin-top: 18px;
  width: 100%;
}
@media (max-width: 800px) {
  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section-top > a.btn {
    align-self: flex-start;
  }
}
