@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600&display=swap');

/* ── THEMES ───────────────────────────────────── */
:root, [data-theme="warm"] {
  --bg:         #F6F0E4;
  --bg-alt:     #EDE5CF;
  --bg-card:    #FBF8F2;
  --fg:         #2A1A0E;
  --fg-muted:   #7A5C42;
  --accent:     #C4852A;
  --accent2:    #9B3D22;
  --border:     rgba(42,26,14,0.14);
  --nav-bg:     rgba(246,240,228,0.88);
  --hero-grad:  linear-gradient(to bottom, rgba(30,15,5,0.35) 0%, rgba(30,15,5,0.6) 100%);
  --grain-op:   0.04;
  --shadow:     0 2px 24px rgba(42,26,14,0.12);
}
[data-theme="ink"] {
  --bg:         #18120E;
  --bg-alt:     #221A14;
  --bg-card:    #2A2018;
  --fg:         #F0E8D8;
  --fg-muted:   #A89070;
  --accent:     #D4A020;
  --accent2:    #C05840;
  --border:     rgba(240,232,216,0.12);
  --nav-bg:     rgba(24,18,14,0.92);
  --hero-grad:  linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.72) 100%);
  --grain-op:   0.06;
  --shadow:     0 2px 24px rgba(0,0,0,0.4);
}
[data-theme="moss"] {
  --bg:         #EFF2EC;
  --bg-alt:     #E2E8DC;
  --bg-card:    #F5F7F3;
  --fg:         #1E2B1A;
  --fg-muted:   #4A6040;
  --accent:     #5C8848;
  --accent2:    #8B6020;
  --border:     rgba(30,43,26,0.14);
  --nav-bg:     rgba(239,242,236,0.88);
  --hero-grad:  linear-gradient(to bottom, rgba(10,25,10,0.35) 0%, rgba(10,25,10,0.62) 100%);
  --grain-op:   0.04;
  --shadow:     0 2px 24px rgba(30,43,26,0.12);
}

/* ── RESET ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain-op);
  pointer-events: none;
  z-index: 9998;
}

/* ── LANGUAGE ─────────────────────────────────── */
html.lang-en  .jp { display: none !important; }
html.lang-jp  .en { display: none !important; }

/* ── TYPOGRAPHY ───────────────────────────────── */
.serif-en { font-family: 'Noto Sans JP', sans-serif; }
.serif-jp { font-family: 'Noto Sans JP', sans-serif; }
h1,h2,h3,h4 { line-height: 1.25; }

/* ── NAV ──────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo small {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  font-weight: 300;
  opacity: 0.6;
  font-family: 'Noto Sans JP', sans-serif;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-toggle {
  display: flex;
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 3px 10px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  z-index: 1001;
  flex-direction: column;
  padding: 0 2rem;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* ── FOOTER ───────────────────────────────────── */
#site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 6rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}
.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.85rem; }

/* ── SECTION STRUCTURE ────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}
.section-title-en {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 0.3rem;
}
.section-title-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0;
}

/* ── PROPERTY CARD ────────────────────────────── */
.prop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 2px;
  text-decoration: none;
  color: var(--fg);
  display: block;
  transition: box-shadow 0.25s, transform 0.25s;
}
.prop-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prop-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.prop-card-body { padding: 1.5rem; }
.prop-card-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.prop-card-name-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.prop-card-price {
  font-size: 1.1rem;
  color: var(--accent);
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 0.5rem;
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
}
.badge-available { background: rgba(92,136,72,0.15); color: #4a7a38; }
.badge-coming { background: rgba(196,133,42,0.15); color: var(--accent); }
.badge-full { background: rgba(155,61,34,0.1); color: var(--accent2); }

/* ── FADE IN ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 3.5rem 1.25rem; }
}

/* ── SECTION UTILITIES ────────────────────────── */
.section--no-top { padding-top: 0; }
.section--no-bottom { padding-bottom: 0; }
.section--flush { padding-top: 0; padding-bottom: 0; }

/* ── PAGE HERO (text layout) ──────────────────── */
.page-hero {
  padding-top: 130px;
  padding-bottom: 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.page-hero h1.en {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
}
.page-hero h1.jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
}
.page-hero p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 480px;
}

/* ── BREADCRUMB ───────────────────────────────── */
.breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ── PROSE ────────────────────────────────────── */
.prose {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--fg-muted);
}
.prose p { margin-bottom: 1rem; }

/* ── MAP PLACEHOLDER ──────────────────────────── */
.map-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.8rem;
}
