/* ===========================================================================
   Smart Vantage — smart-vantage.com
   Brand: red #e11d15 (logo "smart"), warm grey (logo "vantage"), sakura pink
   =========================================================================== */

:root {
  --red:        #d81f18;
  --red-dark:   #a91410;
  --red-soft:   #fdeceb;
  --sakura:     #f2a0b7;
  --sakura-100: #fdf1f4;
  --sakura-200: #fbe2e9;

  --ink:        #221f1e;
  --ink-2:      #57514e;
  --ink-3:      #857d79;

  --bg:         #ffffff;
  --bg-soft:    #fbf8f6;
  --line:       #ebe4df;
  --line-2:     #ded5cf;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(34,31,30,.04), 0 8px 24px -12px rgba(34,31,30,.14);
  --shadow-lg:  0 2px 4px rgba(34,31,30,.05), 0 24px 48px -20px rgba(34,31,30,.22);

  --font: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Hiragino Sans", "Yu Gothic UI", "Microsoft YaHei", "PingFang SC", sans-serif;

  --container: 1120px;
  --header-h: 84px;
}

/* --------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.018em; margin: 0; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; }

:where(a, button):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Japanese and Chinese read better with slightly looser lines and no negative tracking */
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3,
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; line-height: 1.34; }
html[lang="ja"] body, html[lang^="zh"] body { line-height: 1.85; }

/* Simplified and Traditional want different regional faces */
html[lang="zh-Hans"] body { font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-Hant"] body { font-family: "Inter", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(34,31,30,.05); }

.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: auto; height: 48px; }

.nav { display: flex; gap: 30px; margin-inline: auto; }
.nav a {
  position: relative;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 6px 0;
  transition: color .18s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* language switcher */
.lang {
  display: inline-flex; flex: 0 0 auto;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] {
  background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgba(34,31,30,.10);
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px -8px rgba(216,31,24,.65); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(216,31,24,.6); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn--full { width: 100%; }
.btn__arrow { flex: 0 0 auto; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* ---------------------------------------------------------------- hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px);
  background:
    radial-gradient(1100px 480px at 78% -8%, var(--sakura-200) 0%, rgba(251,226,233,0) 62%),
    radial-gradient(760px 380px at 8% 4%, #fdf3ec 0%, rgba(253,243,236,0) 60%),
    var(--bg);
}
.hero__petals {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 78%, rgba(242,160,183,.20) 0 6px, transparent 7px),
    radial-gradient(circle at 88% 22%, rgba(242,160,183,.16) 0 9px, transparent 10px),
    radial-gradient(circle at 68% 82%, rgba(242,160,183,.14) 0 5px, transparent 6px),
    radial-gradient(circle at 32% 14%, rgba(242,160,183,.14) 0 4px, transparent 5px);
}
.hero__inner { position: relative; max-width: 780px; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
html[lang="ja"] .eyebrow, html[lang^="zh"] .eyebrow { text-transform: none; letter-spacing: .04em; }

.hero__title { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-bottom: 22px; }
.hero__lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 62ch; color: var(--ink-2); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chips li {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px;
}

/* ------------------------------------------------------------- sections -- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section__title { font-size: clamp(1.65rem, 3.1vw, 2.35rem); }
.section__lede { margin-top: 14px; font-size: 1.02rem; }

/* --------------------------------------------------------------- houses -- */
.houses {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.house {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.house:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }

/* --photo is set inline in index.html. If the file is missing, the sakura
   gradient underneath simply shows through — no broken image. */
.house__media {
  --photo: linear-gradient(transparent, transparent);
  position: relative;
  aspect-ratio: 4 / 3;
  background-image: var(--photo), linear-gradient(150deg, var(--sakura-100) 0%, var(--sakura-200) 55%, #f3ece7 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.house__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,31,30,0) 55%, rgba(34,31,30,.28) 100%);
  opacity: 0; transition: opacity .25s ease;
}
.house:hover .house__media::after { opacity: 1; }
.house__num {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font-size: 44px; font-weight: 700; letter-spacing: -.03em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 14px rgba(34,31,30,.35);
}

/* invisible button covering the photo — opens the lightbox */
.house__opener {
  position: absolute; inset: 0; z-index: 2;
  border: 0; padding: 0; background: transparent; cursor: zoom-in;
}
.house__opener:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; border-radius: 2px; }

.house__badge {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(34,31,30,.16);
  pointer-events: none;
}

/* once a real photo is in place, the big number would fight with it */
.house.has-photo .house__num { font-size: 30px; left: 16px; bottom: 12px; opacity: .95; }

.house__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.house__area { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ja"] .house__area, html[lang^="zh"] .house__area { text-transform: none; letter-spacing: .03em; }
.house__name { font-size: 1.4rem; margin-top: 7px; }

.house__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.house__meta li {
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px;
}

/* the margin-bottom sets the minimum gap; margin-top:auto on the button below
   eats the leftover space, so the three buttons line up across cards whose
   descriptions run to different lengths */
.house__desc { margin-top: 16px; margin-bottom: 22px; font-size: 15px; }

.house .btn--full { margin-top: auto; padding: 13px 24px; }

/* ------------------------------------------------------------ location -- */
.locmap {
  display: grid; align-items: start;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(260px, 400px) 1fr;
}
.locmap__figure {
  margin: 0; padding: 20px 18px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.locmap__svg { display: block; width: 100%; height: auto; }

/* --- the drawing itself --- */
/* Each line carries its operator's real colour, so anyone who has ridden the
   Tokyo network recognises it at a glance. */
:root {
  --line-yamanote:   #8CB63C;
  --line-seibu:      #1B7FC3;
  --line-marunouchi: #E8492F;
  --line-oedo:       #B4247E;
}

.m-rail { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.m-rail--yamanote   { stroke: var(--line-yamanote); stroke-width: 3.8; }
.m-rail--seibu      { stroke: var(--line-seibu); }
.m-rail--marunouchi { stroke: var(--line-marunouchi); }
.m-rail--oedo       { stroke: var(--line-oedo); }

.m-hub { r: 6.5; fill: var(--ink); }
.m-hub-label { fill: var(--ink); font-size: 13px; font-weight: 700; dominant-baseline: middle; }

.m-stn { r: 4.5; fill: var(--bg); stroke: var(--ink-3); stroke-width: 2; }
.m-stn--near { stroke: var(--sakura); stroke-width: 2.6; }
.m-stn-label { fill: var(--ink-2); font-size: 11px; font-weight: 500; dominant-baseline: middle; }

.m-pin circle { r: 13; fill: var(--red); stroke: #fff; stroke-width: 3; }
.m-pin text {
  fill: #fff; font-size: 13px; font-weight: 700;
  text-anchor: middle; dominant-baseline: central;
}

.m-scale path { fill: none; stroke: var(--ink-3); stroke-width: 1.2; opacity: .7; }
.m-scale text { fill: var(--ink-3); font-size: 10.5px; dominant-baseline: middle; }

/* --- colour key under the map --- */
/* one column — "Tokyo Metro Marunouchi Line" is too long to sit two-up */
.mapkey {
  display: grid; gap: 9px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.mapkey li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.mapkey__dash { flex: 0 0 auto; width: 18px; height: 4px; border-radius: 2px; background: var(--ink-3); }
.mapkey__dash--yamanote   { background: var(--line-yamanote); }
.mapkey__dash--seibu      { background: var(--line-seibu); }
.mapkey__dash--marunouchi { background: var(--line-marunouchi); }
.mapkey__dash--oedo       { background: var(--line-oedo); }

/* --- illustrated map (the live one) --- */
.artmap {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.artmap__img { display: block; width: 100%; height: auto; }

/* --- the list beside it --- */
.legend { display: grid; gap: 4px; }
/* under the illustrated map the three houses read better side by side */
.legend--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 30px;
}
.legend--row .legend__row { border-bottom: 0; border-top: 2px solid var(--line); padding: 16px 0 0; }
.legend__row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legend__row:last-child { border-bottom: 0; }
.legend__num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700;
}
.legend__body { display: block; min-width: 0; }
.legend__name { display: block; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.legend__stn { display: block; margin-top: 3px; font-size: 14.5px; color: var(--ink-2); }
.legend__lines { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }

.locmap__note {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* ------------------------------------------------------------- features -- */
.features { display: grid; gap: 34px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); color: var(--red);
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { font-size: 15px; }

/* ---------------------------------------------------------------- about -- */
.about { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1.25fr 1fr; align-items: start; }
.about__text p { margin-top: 18px; }
.about__facts {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 26px;
}
.about__facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.about__facts > div:last-child { border-bottom: 0; }
.about__facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ja"] .about__facts dt, html[lang^="zh"] .about__facts dt { text-transform: none; letter-spacing: .03em; }
.about__facts dd { margin-top: 5px; font-size: 15px; color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------------- contact -- */
.contact { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: .85fr 1.15fr; align-items: start; }
.contact__text p { margin-top: 16px; }
.contact__actions { display: grid; gap: 14px; }

/* Two routes: anything about a stay goes to Shinka via Airbnb, anything about
   the company comes to us by email. */
.route {
  display: flex; gap: 16px; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.route:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }

.route__icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--red-soft); color: var(--red);
}
.route__body { display: block; min-width: 0; }
.route__title { display: block; font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.route__desc { display: block; margin-top: 7px; font-size: 14.5px; color: var(--ink-2); }
.route__cta {
  display: inline-block; margin-top: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--red);
  word-break: break-word;
}
.route__cta::after { content: " →"; transition: none; }
.route:hover .route__cta { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- footer -- */
.site-footer { padding: 48px 0 56px; background: var(--bg); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; justify-content: space-between; }
.site-footer__logo { width: auto; height: 34px; opacity: .85; }
.site-footer__meta { font-size: 13.5px; color: var(--ink-3); max-width: 60ch; }
.site-footer__meta p + p { margin-top: 6px; }
.site-footer__license { font-variant-numeric: tabular-nums; }
.site-footer__copy { margin-top: 12px !important; }

/* ------------------------------------------------------------ lightbox -- */
body.has-lightbox { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(16px, 4vw, 48px);
  background: rgba(24, 21, 20, .93);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: lb-in .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  margin: 0; grid-column: 2;
  display: flex; align-items: center; justify-content: center;
  min-width: 0; height: 100%;
}
.lightbox__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}

.lightbox__close, .lightbox__nav {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10); color: #fff;
  border-radius: 999px; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4);
}
.lightbox__nav { width: 52px; height: 52px; flex: 0 0 auto; }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__nav:hover { transform: scale(1.06); }
.lightbox__nav[hidden] { visibility: hidden; display: inline-flex; }

.lightbox__close {
  position: absolute; top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px);
  width: 44px; height: 44px; z-index: 1;
}

.lightbox__counter {
  position: absolute; left: 50%; bottom: clamp(14px, 3vw, 28px); transform: translateX(-50%);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8);
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  padding: 5px 14px; border-radius: 999px;
}
.lightbox :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  /* the map is portrait, so give it its own row and cap the height */
  .locmap { grid-template-columns: 1fr; justify-items: center; }
  .locmap__figure { width: 100%; max-width: 380px; }
  .locmap__legend { width: 100%; max-width: 520px; }
  .legend--row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .site-header__inner { justify-content: space-between; gap: 12px; }
  .brand img { height: 40px; }
  .hero__actions .btn { flex: 1 1 auto; }
  /* four language buttons need to fit next to the logo on a phone */
  .lang button { padding: 6px 9px; font-size: 12.5px; }

  /* on a phone the arrows would crowd the photo — swipe/tap the edges instead */
  .lightbox { grid-template-columns: 1fr; padding: 56px 12px 64px; }
  .lightbox__figure { grid-column: 1; }
  .lightbox__nav {
    position: absolute; bottom: calc(clamp(14px, 3vw, 28px) + 2px);
    width: 44px; height: 44px;
  }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
}
