:root {
  --bg: #f6f9fd;
  --surface: #ffffff;
  --ink: #14213d;
  --muted: #556175;
  --line: #dde5f0;
  --accent: #1d5fbf;
  --accent-ink: #ffffff;
  --accent-soft: #e3edfb;
  --warm: #eaf1fb;
  --wa: #16a34a;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--warm); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 249, 253, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: 88px 0 64px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 0; list-style: none; }
.pills li { background: var(--accent-soft); color: var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; }

/* Property cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.cover { aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 18px; color: #fff; font-weight: 800; font-size: 1.4rem; background-size: cover; background-position: center; position: relative; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .35)); }
.cover > * { position: relative; z-index: 1; }
.cover-ikoma { background-color: #2f7fa8; background-image: linear-gradient(135deg, #4a9cc4, #1f5d80); }
.cover-amagasaki { background-color: #2c4f9e; background-image: linear-gradient(135deg, #4469b8, #1c3670); }
.cover-sayama { background-color: #3d6fd6; background-image: linear-gradient(135deg, #5f8ce6, #2650a8); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.card-body li { padding: 3px 0; }
.price { font-size: 1.5rem; font-weight: 800; margin: 0 0 12px; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.card-body .more { margin-top: auto; font-weight: 700; color: var(--accent); }
.region { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

/* Features */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 32px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.feature .icon { font-size: 1.6rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 32px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }

/* FAQ */
.faq { max-width: 800px; margin-top: 28px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-bottom: 18px; color: var(--muted); }
.faq .answer ul, .faq .answer ol { padding-left: 1.2em; }

/* Property page */
.back { margin-bottom: 20px; border-color: var(--accent); color: var(--accent); }
.back:hover { background: var(--accent-soft); }
.prop-hero { padding: 48px 0 0; }
.prop-hero .cover { aspect-ratio: 21 / 8; border-radius: var(--radius); margin-top: 28px; font-size: 1rem; font-weight: 600; }
.two-col { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin-bottom: 14px; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.panel li:last-child { border-bottom: 0; }
.panel li span:last-child { font-weight: 700; text-align: right; }
.sticky { position: sticky; top: 88px; }
.checklist { list-style: none; padding: 0; columns: 2; column-gap: 24px; }
.checklist li { padding: 4px 0 4px 26px; position: relative; break-inside: avoid; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.rooms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.room { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.room h3 { font-size: 1.05rem; margin-bottom: 4px; }
.room .note { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.room .warn { color: #b42318; font-weight: 700; }
.address { color: var(--muted); }
.address strong { color: var(--ink); }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin-top: 16px; }

/* Rules */
.rules { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.rules .panel ul li { display: block; }
.prose { max-width: 760px; }
.prose li { margin-bottom: .5em; }

/* Contact / CTA */
.cta { background: var(--accent); color: #fff; border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; opacity: .9; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; margin-top: 72px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 30; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: block; }
  .two-col { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .checklist { columns: 1; }
  .section { padding: 56px 0; }
  .cta { padding: 32px 24px; }
}

/* Photos */
.cover.has-photo { overflow: hidden; }
.cover.has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.prop-hero .cover.has-photo { aspect-ratio: 21 / 9; }
.room-photos { position: relative; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -8px -8px 14px; border-radius: 8px; scrollbar-width: none; }
.room-photos::-webkit-scrollbar { display: none; }
.room-photos a { flex: 0 0 100%; scroll-snap-align: start; }
.room-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.room-photos .count { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.room-photos.empty { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--accent-soft); color: var(--muted); font-size: .9rem; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 20px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10, 15, 30, .92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox .lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }

/* Availability badges (filled in by assets/availability.js) */
.avail { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin: 2px 0 10px; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail.now { background: #e6f6ec; color: #15803d; }
.avail.soon { background: #fff4e0; color: #b45309; }

/* FAQ groups */
.faq-group { margin: 36px 0 0; font-size: 1.1rem; color: var(--accent); }
.faq-group + .faq { margin-top: 14px; }
.faq .answer p { margin: 10px 0 0; }

/* Apply-first actions */
.room-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a.nav-apply { color: var(--accent); border-color: var(--accent); }
.nav a.nav-apply:hover { background: var(--accent-soft); }
.panel-note { margin: 18px 0 0; padding: 12px 14px; background: #fff4e0; color: #8a4b0a; border-radius: 10px; font-size: .9rem; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-ink); }
.nav a.btn-wa, .nav a.btn-wa:hover { color: #fff; }
