/* ============================================================
   Urbanhavora — "Quiet Editorial Ma" direction. Sourced from live web
   research (WebSearch/WebFetch, 2026-07-23):
     - smocca.jp — clean white-led JP rental portal, utilitarian grid
       listings, geographic navigation, trust-through-plainness tone
     - wakuwakuchintai.com — editorial "web magazine" framing, concept-led
       area/lifestyle categorisation, resident-voice content
   Palette: washi off-white + sumi ink + a single muted indigo (藍) accent
   — not used elsewhere in this batch (dwelloryx=terracotta, cvuplifted=
   plum/gold, talentnuvia=ink/coral/yellow, labcognia=electric-blue/mint).
   Typography: system Japanese serif (headings) + system Japanese gothic
   (body) — see tokens.css for the no-self-hosted-webfont rationale.
   Skeleton deliberately differs from dwelloryx/talentnuvia/smartdwellio's
   shared "hero → 4-topic-grid → quote → mosaic → posts → FAQ → callout"
   order (flagged as batch debt in TRACKER_batch15.md): this page runs
   hero → horizontal area-rail (not a grid, not a numbered list) →
   concept statement → curated listing preview → resident voices (new
   section type, not used elsewhere) → FAQ → contact callout.

   2026-07-23 — chrome (header/footer/contact/cookie/callout) rebuilt from
   white-pages/_chrome-library/, codes picked by RNG excluding the H1/F1/
   C1/K1/T1 baseline shared by the rest of the batch: header=H4 (text-only
   nav, no CTA button), footer=F3 (newsletter band + flat link row),
   contact=C2 (no aside, centered single column), cookie=K6 (modal-first,
   no bottom bar), callout=T4 (footnote style). See README.md there for
   the batch-wide usage table.
   ============================================================ */

/* ============================================================
   Hero — asymmetric split, generous negative space ("ma", 間) on the
   text side, a thin vertical rule motif (nod to shoji screens) instead
   of a card or full-bleed photo scrim. A fourth distinct hero skeleton
   in this batch (full-bleed-scrim / dark-doodle / split-photo-card /
   terminal-window / tilted-card already used elsewhere).
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--topbar-h));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  background: var(--bg);
}
.hero__inner {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  position: relative;
}
.hero__inner::after {
  content: "";
  position: absolute;
  top: clamp(3rem, 8vw, 6rem);
  bottom: clamp(3rem, 8vw, 6rem);
  right: 0;
  width: 1px;
  background: var(--line);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}
.hero__title {
  font-family: var(--font-head-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.hero__brand-sub {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero__lead { color: var(--ink-soft); max-width: 32rem; }
.hero__trust { border-top-color: var(--line); color: var(--muted); }
.hero__media {
  position: relative;
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 20rem; order: -1; }
  .hero__inner::after { display: none; }
}

/* ============================================================
   Area rail — horizontally scrolling area cards (snap-scroll), replacing
   both the icon-grid and the numbered guide-index list already used in
   this batch. A real interaction pattern, not a static grid.
   ============================================================ */
.area-rail {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.area-card {
  flex: 0 0 clamp(15rem, 40vw, 19rem);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  text-decoration: none;
  display: block;
}
.area-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out); }
.area-card:hover img { transform: scale(1.04); }
.area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 20, 15, 0) 45%, rgba(23, 20, 15, 0.72) 100%);
}
.area-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1.25rem 1.1rem;
  color: #fff;
}
.area-card__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}
.area-card__name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.area-card__desc {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

/* ============================================================
   Concept statement — quiet full-width editorial block explaining the
   "ma" philosophy. Own component, not the shared pullquote (that stays
   available for other uses but isn't the identity device here).
   ============================================================ */
.concept {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.concept__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.concept__text {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 2;
  color: var(--ink);
}
.concept__attr {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ============================================================
   Listing preview — small curated cards, deliberately plainer than a
   mosaic or icon-grid: a thin-bordered photo + two lines of text, no
   price/CTA button per-card (this is an editorial preview, not a live
   listings engine).
   ============================================================ */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.listing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.listing-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card__body { padding: 1rem 1.1rem 1.15rem; }
.listing-card__area {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.listing-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.listing-card__meta { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .listing-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Resident voices — new section type for this batch: short first-person
   quotes with area attribution, laid out as a plain divided list (not
   cards, not a carousel) to keep the quiet/restrained mood.
   ============================================================ */
.voices { border-top: 1px solid var(--line); }
.voice {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(3rem, auto) minmax(0, 1fr);
  gap: 1.25rem;
}
.voice__mark {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--line);
  line-height: 1;
}
.voice__text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.voice__attr { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 640px) { .voice { grid-template-columns: 1fr; } .voice__mark { display: none; } }

/* ============================================================
   Guide detail — alternating photo/text rows for the area-guide page.
   ============================================================ */
.guide-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.guide-detail--reverse { grid-template-columns: 1.1fr 0.9fr; }
.guide-detail--reverse .guide-detail__media { order: 2; }
.guide-detail__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.guide-detail__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-detail__body p { color: var(--ink-soft); line-height: 1.9; margin: 0 0 1rem; }
.guide-detail__body .section__title { margin: 0.5rem 0 1rem; }
@media (max-width: 780px) {
  .guide-detail, .guide-detail--reverse { grid-template-columns: 1fr; }
  .guide-detail--reverse .guide-detail__media { order: 0; }
}

/* ============================================================
   Brand wordmark — clean type with a thin vertical rule echoing the
   hero motif, no pictorial mark (same reasoning as the rest of this
   batch: a drawn icon reads as generic/placeholder).
   ============================================================ */
.brand--wordmark .brand__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
}

/* ============================================================
   Header — variant H4 from white-pages/_chrome-library/header.md
   (picked by RNG, 2026-07-23, excluding the H1 baseline already used by
   dwelloryx/talentnuvia/smartdwellio). Text-only nav, no CTA button — the
   last nav item (お問い合わせ) carries a quiet underline instead of a
   plaqued call-to-action.
   ============================================================ */
.nav--plain .nav__list { gap: 1.5rem; letter-spacing: 0.02em; }
.nav--plain .nav__list li:last-child .nav__link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   Footer — variant F3 from white-pages/_chrome-library/footer.md.
   Newsletter band as the visual anchor instead of a 4-column grid; a
   flat link row underneath carries content + legal + contact essentials.
   ============================================================ */
.footer-band {
  background: var(--surface-2);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.footer-band__inner { max-width: var(--container); margin: 0 auto; padding: 0 1.2rem; }
.footer-band h3 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  margin: 0 0 1rem;
  max-width: 28rem;
  text-wrap: balance;
}
.footer-band__form { display: flex; gap: 0.6rem; max-width: 26rem; }
.footer-band__form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--ink);
}
.footer-band__form button {
  border: none;
  border-radius: 0.15rem;
  padding: 0.6rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  cursor: pointer;
}
.footer-band__note { margin: 0.6rem 0 0; font-size: 0.75rem; color: var(--muted); }

.footer-links {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.4rem 1.2rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.6rem;
  color: rgba(239, 234, 224, 0.72);
  font-size: 0.82rem;
}
.footer-links .brand--wordmark {
  color: #fff;
  font-size: 1.05rem;
  margin-right: 0.6rem;
  flex-basis: 100%;
}
.footer-links a { color: inherit; }
.footer-links a:hover { color: #fff; }
.footer-links__contact { color: rgba(239, 234, 224, 0.5); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.2rem 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: rgba(239, 234, 224, 0.55);
  border-top: 1px solid rgba(239, 234, 224, 0.12);
}
.footer-bottom a { color: inherit; }
.footer-bottom__links { display: flex; gap: 1rem; }
.footer-cookie-reopen {
  background: none;
  border: 1px solid rgba(239, 234, 224, 0.3);
  border-radius: 1rem;
  color: rgba(239, 234, 224, 0.75);
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}
.footer-cookie-reopen:hover { color: #fff; border-color: rgba(239, 234, 224, 0.6); }

/* ============================================================
   Contact page — variant C2 from white-pages/_chrome-library/contact.md.
   No dark aside — single centered column, contact essentials as a small
   line under the submit button instead of a separate info card.
   ============================================================ */
.contact-solo {
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-solo .form__grid { grid-template-columns: 1fr 1fr; }
.contact-solo__line {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}
.contact-solo__line a { color: var(--ink-soft); }

/* ============================================================
   Callout / disclaimer — variant T4 from white-pages/_chrome-library/
   callout.md. Footnote-numbered style, no icon/no filled box — used on
   index.php and guides.php where the callout genuinely functions as a
   footnote to the preceding "curated preview / editorial" framing.
   ============================================================ */
.callout--footnote {
  display: flex;
  gap: 0.5rem;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  border-radius: 0;
}
.callout--footnote .callout__mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  flex-shrink: 0;
}
.callout--footnote p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }

/* ============================================================
   Cookie consent — variant K6 from white-pages/_chrome-library/cookie.md.
   No bottom bar: the shared `.modal` component opens directly as a
   blocking dialog on first visit. A small pill in the footer bottom row
   (`.footer-cookie-reopen`, id="cookie-config") reopens it later.
   ============================================================ */
.cookie-modal__opts { display: flex; flex-direction: column; gap: 0; }

.section__lead sup,
.page-hero__lead sup {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6em;
}
