/* ═══════════════════════════════════════════════════════════
   ELYSE ISLAND — Legacy Collection by Nam Long
   Brand: Elysian Green #032C2E · Rose Sand #D6AA9C · Ivory Sand #F0E8DE
   Type:  Cormorant Garamond (display) · Be Vietnam Pro (body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --green: #032c2e;
  --green-90: #0a3a3b;
  --green-80: #12484a;
  --green-soft: #06393a;
  --rose: #d6aa9c;
  --rose-70: #e0bcb0;
  --rose-40: #eed9d1;
  --rose-15: #f7ece7;
  --ivory: #f0e8de;
  --ivory-paper: #f9f5ee;
  --white: #fffdf9;
  --ink: #14312f;
  --ink-soft: #40595541;
  --muted: #5c7371;
  --gold-1: #c9976b;
  --gold-2: #e9c9a2;
  --grad-gold: linear-gradient(115deg, #b98a5e 0%, #e9c9a2 45%, #c9976b 100%);
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --shadow-lg: 0 30px 70px -25px rgba(3, 44, 46, 0.35);
  --shadow-sm: 0 12px 34px -14px rgba(3, 44, 46, 0.25);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory-paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

::selection { background: var(--rose); color: var(--green); }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }

/* ───────── utility: reveal initial states ───────── */
[data-reveal] { opacity: 0; transform: translateY(38px); }
[data-reveal-group] > * { opacity: 0; transform: translateY(30px); }
html.no-js [data-reveal], html.no-js [data-reveal-group] > * { opacity: 1; transform: none; }

/* ───────── Preloader ───────── */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--green);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
}
.preloader__logo { opacity: 0; transform: translateY(16px); text-align: center; }
.preloader__logo .wordmark { font-size: clamp(34px, 6vw, 56px); color: var(--rose); }
.preloader__sub {
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--rose-70); margin-top: 10px; font-weight: 400;
}
.preloader__bar { width: min(240px, 56vw); height: 1px; background: rgba(214, 170, 156, 0.25); }
.preloader__bar-fill { width: 0; height: 100%; background: var(--rose); }

/* ───────── Wordmark (logo as type + sparkle) ───────── */
.wordmark {
  font-family: var(--font-display); font-weight: 500; letter-spacing: 0.01em;
  display: inline-flex; align-items: baseline; line-height: 1;
}
.wordmark .spark { display: inline-block; transform: translateY(-0.08em); margin: 0 0.06em 0 0.02em; }
.wordmark .spark svg { width: 0.52em; height: 0.52em; display: block; }

/* ───────── Header ───────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform 0.5s var(--ease-out), background 0.4s, box-shadow 0.4s;
  background: transparent;
}
.header.is-hidden { transform: translateY(-110%); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  max-width: 1440px; margin: 0 auto;
}
.header__logo img { height: 44px; width: auto; transition: height 0.35s; }
.header.is-scrolled { background: rgba(3, 44, 46, 0.88); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.45); }
.header.is-scrolled .header__logo img { height: 36px; }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.nav a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400;
  color: var(--ivory); opacity: 0.85; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--rose); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--green); background: var(--rose); border: 1px solid var(--rose);
  padding: 11px 22px; border-radius: 999px; transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.header__cta:hover { background: transparent; color: var(--rose); }
.burger { display: none; }

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 99; background: var(--green);
  display: flex; flex-direction: column; justify-content: center; padding: 0 9vw;
  clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path 0.65s var(--ease-out);
  visibility: hidden;
}
.mmenu.is-open { clip-path: circle(140% at calc(100% - 44px) 40px); visibility: visible; }
.mmenu a {
  font-family: var(--font-display); font-size: clamp(30px, 7vw, 44px); color: var(--ivory);
  padding: 10px 0; border-bottom: 1px solid rgba(214, 170, 156, 0.16);
}
.mmenu a em { font-style: normal; color: var(--rose); font-size: 0.5em; vertical-align: super; margin-right: 12px; font-family: var(--font-body); letter-spacing: 0.2em; }

/* ───────── Hero ───────── */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--green); }
.hero__media { position: absolute; inset: -4% 0; will-change: transform; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 44, 46, 0.55) 0%, rgba(3, 44, 46, 0.08) 34%, rgba(3, 44, 46, 0.12) 58%, rgba(3, 44, 46, 0.78) 100%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(60px, 10vh, 110px);
  max-width: 1440px; margin: 0 auto;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 400;
  color: var(--rose); margin-bottom: 22px;
}
.hero__eyebrow::before { content: ''; width: 54px; height: 1px; background: var(--rose); }
.hero__title {
  color: var(--ivory); font-size: clamp(44px, 8.2vw, 108px); font-weight: 500;
  letter-spacing: 0.005em; max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title .em { color: var(--rose); font-style: italic; font-weight: 400; }
/* H1 の中に置いた物件名。見出し本体より小さく、eyebrow と同じ字送りで出す */
.hero__title .hero__brand {
  font-size: 13px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--rose);
  margin-bottom: 16px;
}
.hero__sub {
  color: rgba(240, 232, 222, 0.92); max-width: 560px; margin-top: 20px;
  font-size: clamp(15px, 1.2vw, 18px); font-weight: 300;
}
.hero__actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: clamp(18px, 3.4vw, 46px); bottom: 36px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--rose); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 64px;
  background: linear-gradient(var(--rose), transparent);
  animation: scrollhint 2.2s var(--ease-out) infinite;
}
@keyframes scrollhint {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--rose { background: var(--rose); color: var(--green); }
.btn--rose:hover { background: var(--rose-70); }
.btn--ghost { border-color: rgba(240, 232, 222, 0.55); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn--green { background: var(--green); color: var(--ivory); }
.btn--green:hover { background: var(--green-90); }
.btn--outline-green { border-color: rgba(3, 44, 46, 0.35); color: var(--green); }
.btn--outline-green:hover { border-color: var(--green); }
.btn .ic { width: 16px; height: 16px; }

/* ───────── Marquee ───────── */
.marquee {
  background: var(--rose); color: var(--green);
  overflow: hidden; padding: 15px 0; position: relative; z-index: 3;
}
.marquee__track { display: flex; gap: 0; width: max-content; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
  font-family: var(--font-display); font-size: 19px; letter-spacing: 0.12em;
  text-transform: uppercase; white-space: nowrap; font-weight: 500;
}
.marquee__item svg { width: 13px; height: 13px; flex: none; }

/* ───────── Section scaffolding ───────── */
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--green { background: var(--green); color: var(--ivory); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--ivory-paper); }
.section--rose { background: var(--rose-15); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.38em; text-transform: uppercase; font-weight: 400;
  color: #a9705c; margin-bottom: 18px;
}
.section--green .eyebrow { color: var(--rose); }
.eyebrow::before { content: ''; width: 44px; height: 1px; background: currentColor; opacity: 0.7; }

.h2 { font-size: clamp(34px, 4.6vw, 62px); color: var(--green); letter-spacing: 0.004em; }
.section--green .h2 { color: var(--ivory); }
.h2 .em { font-style: italic; font-weight: 400; color: #b3826f; }
.section--green .h2 .em { color: var(--rose); }
.lead { font-size: clamp(16px, 1.35vw, 19.5px); color: var(--muted); max-width: 62ch; }
.section--green .lead { color: rgba(240, 232, 222, 0.82); }

/* ───────── Intro (story) ───────── */
.intro { position: relative; overflow: hidden; }
.intro__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.intro__statement {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.3;
  color: var(--green); font-weight: 500; margin: 26px 0 18px;
}
.intro__statement .em { font-style: italic; color: #b3826f; }
.intro__media { position: relative; }
.intro__media .frame {
  border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 3 / 4;
}
.intro__media .frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.intro__media .chip {
  position: absolute; left: -26px; bottom: 40px; background: var(--green); color: var(--ivory);
  padding: 20px 26px; border-radius: 14px; box-shadow: var(--shadow-sm); max-width: 240px;
}
.intro__media .chip .num { font-family: var(--font-display); font-size: 34px; color: var(--rose); line-height: 1; }
.intro__media .chip .lbl { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; margin-top: 6px; font-weight: 400; }
.supergraphic {
  position: absolute; pointer-events: none; opacity: 0.5;
}
.supergraphic svg { display: block; width: 100%; height: 100%; }

/* stats band */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 40px); margin-top: clamp(48px, 6vw, 84px);
  padding-top: clamp(30px, 4vw, 54px); border-top: 1px solid rgba(3, 44, 46, 0.14);
}
.stat .num {
  font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 62px); color: var(--green);
  line-height: 1; display: flex; align-items: baseline; gap: 4px;
}
.stat .num .unit { font-size: 0.42em; color: #b3826f; font-style: italic; }
.stat .lbl { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; font-weight: 400; }

/* ───────── Film strip CTA ───────── */
.film {
  position: relative; overflow: hidden; cursor: pointer;
}
.film__media { aspect-ratio: 21 / 9; min-height: 380px; }
.film__media img { width: 100%; height: 100%; object-fit: cover; }
.film__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: rgba(3, 44, 46, 0.45); transition: background 0.4s;
}
.film:hover .film__overlay { background: rgba(3, 44, 46, 0.3); }
.film__play {
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid rgba(240, 232, 222, 0.7); display: grid; place-items: center;
  color: var(--ivory); background: rgba(3, 44, 46, 0.35); backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.film:hover .film__play { transform: scale(1.08); background: var(--rose); color: var(--green); border-color: var(--rose); }
.film__label { color: var(--ivory); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 400; }

/* video modal */
.vmodal {
  position: fixed; inset: 0; z-index: 150; background: rgba(2, 24, 25, 0.92);
  display: grid; place-items: center; padding: 4vw;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.vmodal.is-open { opacity: 1; pointer-events: auto; }
.vmodal video { width: min(1100px, 92vw); max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); background: #000; }
.vmodal__close {
  position: absolute; top: 22px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(240, 232, 222, 0.12); border: 1px solid rgba(240, 232, 222, 0.4); color: var(--ivory);
  font-size: 20px; line-height: 1;
}
.vmodal__close:hover { background: var(--rose); color: var(--green); border-color: var(--rose); }

/* ───────── Location ───────── */
.location__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: center;
}
.location__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.location__map img { width: 100%; }
.location__map .expand {
  position: absolute; right: 14px; bottom: 14px; background: rgba(3, 44, 46, 0.75);
  color: var(--ivory); border: 1px solid rgba(240,232,222,0.3); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 16px;
  backdrop-filter: blur(6px);
}
.location__map .expand:hover { background: var(--rose); color: var(--green); border-color: var(--rose); }
.dist { display: flex; flex-direction: column; }
.dist__item {
  display: grid; grid-template-columns: 86px 1fr; gap: 18px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid rgba(240, 232, 222, 0.16);
}
.dist__item:first-child { border-top: 1px solid rgba(240, 232, 222, 0.16); }
.dist__num {
  font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); color: var(--rose); line-height: 1;
  white-space: nowrap;
}
.dist__num .unit { font-size: 0.5em; font-style: italic; }
.dist__label { font-size: 14.5px; color: rgba(240, 232, 222, 0.88); font-weight: 300; }
.dist__label strong { color: var(--ivory); font-weight: 500; }

/* ───────── Masterplan ───────── */
.master__wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.master__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.zones { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.zone {
  border: 1px solid rgba(3, 44, 46, 0.16); border-radius: 14px; padding: 22px 24px;
  background: var(--white); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.zone:hover { border-color: var(--rose); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.zone__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.zone__name { font-family: var(--font-display); font-size: 24px; color: var(--green); }
.zone__tag {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  color: #a9705c; background: var(--rose-15); border: 1px solid var(--rose-40);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.zone__desc { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* ───────── Collection (horizontal scroll) ───────── */
.collection { overflow: hidden; }
.collection__pin { position: relative; }
.collection__head { padding-bottom: clamp(28px, 4vw, 54px); }
.collection__track {
  display: flex; gap: clamp(18px, 2.4vw, 34px); padding: 0 var(--pad) 8px;
  width: max-content; align-items: stretch;
}
.pcard {
  width: clamp(300px, 34vw, 460px); flex: none; border-radius: var(--radius);
  overflow: hidden; position: relative; background: var(--green-soft);
  box-shadow: var(--shadow-sm);
}
.pcard__img { aspect-ratio: 4 / 5; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.pcard:hover .pcard__img img { transform: scale(1.07); }
.pcard__body {
  position: absolute; inset: auto 0 0 0; padding: 26px 26px 24px;
  background: linear-gradient(transparent, rgba(3, 44, 46, 0.9) 46%);
  color: var(--ivory);
}
.pcard__kind { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose); font-weight: 400; }
.pcard__name { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); margin-top: 6px; }
.pcard__meta { font-size: 13px; color: rgba(240, 232, 222, 0.85); margin-top: 8px; font-weight: 300; }
.pcard__meta span { white-space: nowrap; }
.pcard__meta span + span::before { content: '·'; margin: 0 8px; color: var(--rose); }
.collection__hint {
  display: flex; align-items: center; gap: 12px; color: var(--muted);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 26px;
  padding-inline: var(--pad);
}
.collection__hint::after { content: ''; flex: none; width: 60px; height: 1px; background: currentColor; opacity: 0.5; }

/* ───────── Amenities mosaic ───────── */
.amen__grid {
  display: grid; gap: clamp(14px, 1.8vw, 24px);
  grid-template-columns: repeat(12, 1fr);
}
.amen {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  min-height: 240px;
}
.amen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.amen:hover img { transform: scale(1.06); }
.amen::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(185deg, transparent 42%, rgba(3, 44, 46, 0.82));
}
.amen__label {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; color: var(--ivory);
}
.amen__label .t { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 27px); }
.amen__label .s { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); font-weight: 400; margin-top: 3px; }
.amen--a { grid-column: span 7; aspect-ratio: 16 / 9.5; }
.amen--b { grid-column: span 5; }
.amen--c { grid-column: span 4; }
.amen--d { grid-column: span 4; }
.amen--e { grid-column: span 4; }

/* ───────── Legal / timeline ───────── */
.legal__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--rose), rgba(214, 170, 156, 0.15));
}
.tl__item { position: relative; padding: 0 0 26px 38px; }
.tl__item::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 15px; height: 15px;
  border-radius: 50%; border: 1px solid var(--rose); background: var(--green);
}
.tl__item::after {
  content: ''; position: absolute; left: 5px; top: 12px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--rose);
}
.tl__date { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); font-weight: 500; }
.tl__text { color: rgba(240, 232, 222, 0.88); font-size: 14.5px; margin-top: 4px; }
.legal__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.badge {
  border: 1px solid rgba(240, 232, 222, 0.2); border-radius: 14px; padding: 18px 20px;
  background: rgba(240, 232, 222, 0.04);
}
.badge .t { font-family: var(--font-display); font-size: 19px; color: var(--ivory); line-height: 1.3; }
.badge .s { font-size: 12.5px; color: rgba(240, 232, 222, 0.62); margin-top: 6px; }

/* ───────── Floor plans slider ───────── */
.plans__viewport { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--white); }
.plans__track { display: flex; transition: transform 0.65s var(--ease-out); }
.plans__slide { flex: 0 0 100%; }
.plans__slide img { width: 100%; }
.plans__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 18px; }
.plans__arrows { display: flex; gap: 10px; }
.parrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(3, 44, 46, 0.3);
  background: transparent; color: var(--green); display: grid; place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.parrow:hover { background: var(--green); color: var(--ivory); border-color: var(--green); }
.parrow svg { width: 18px; height: 18px; }
.plans__caption { font-size: 13px; color: var(--muted); flex: 1; }
.plans__dots { display: flex; gap: 7px; }
.plans__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(3, 44, 46, 0.2); transition: background 0.3s, transform 0.3s;
}
.plans__dots button.is-active { background: var(--green); transform: scale(1.3); }

/* ───────── Register / CTA ───────── */
.register { position: relative; overflow: hidden; }
.register__bg { position: absolute; inset: 0; }
.register__bg img { width: 100%; height: 100%; object-fit: cover; }
.register__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(3, 44, 46, 0.94) 34%, rgba(3, 44, 46, 0.72)); }
.register__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form input, .form select {
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  padding: 15px 20px; border-radius: 12px; color: var(--ivory);
  background: rgba(240, 232, 222, 0.07); border: 1px solid rgba(240, 232, 222, 0.25);
  outline: none; transition: border-color 0.3s, background 0.3s;
  width: 100%;
}
.form input::placeholder { color: rgba(240, 232, 222, 0.55); }
.form select { appearance: none; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus { border-color: var(--rose); background: rgba(240, 232, 222, 0.11); }
.form .btn { justify-content: center; margin-top: 6px; }
.form__note { font-size: 12px; color: rgba(240, 232, 222, 0.55); text-align: center; }
.register__hotline { margin-top: 22px; display: flex; gap: 24px; flex-wrap: wrap; }
.hotline .lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose); font-weight: 400; }
.hotline .val { font-family: var(--font-display); font-size: 28px; color: var(--ivory); }

/* ───────── Footer ───────── */
.footer { background: #02201f; color: rgba(240, 232, 222, 0.72); padding: clamp(48px, 6vw, 80px) 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.footer__logo img { height: 52px; width: auto; }
.footer p { font-size: 13.5px; }
.footer h4 { color: var(--ivory); font-size: 17px; margin-bottom: 14px; letter-spacing: 0.04em; }
.footer a:hover { color: var(--rose); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer__bottom {
  margin-top: clamp(36px, 5vw, 56px); padding-top: 22px;
  border-top: 1px solid rgba(240, 232, 222, 0.12);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: rgba(240, 232, 222, 0.45);
}

/* ───────── Floating contact ───────── */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fbtn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4); position: relative;
}
.fbtn svg { width: 26px; height: 26px; }
.fbtn--zalo { background: #0068ff; }
.fbtn--phone { background: var(--green-80); }
.fbtn--phone::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(214, 170, 156, 0.8); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.82); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ───────── Lightbox ───────── */
.lightbox {
  position: fixed; inset: 0; z-index: 140; background: rgba(2, 24, 25, 0.93);
  display: grid; place-items: center; padding: 3vw;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(240, 232, 222, 0.12); border: 1px solid rgba(240, 232, 222, 0.4);
  color: var(--ivory); font-size: 19px;
}
.lightbox__close:hover { background: var(--rose); color: var(--green); }

/* ───────── Gallery ───────── */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.gal figure { margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.gal figure:hover img { transform: scale(1.05); }

/* ───────── Same developer projects ───────── */
.sib { padding-block: clamp(60px, 8vw, 110px); }
.sib__title { font-size: clamp(30px, 3.6vw, 48px); }
.sib__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(14px, 1.8vw, 22px); margin-top: 34px;
}
.sib__card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid rgba(3, 44, 46, 0.14); border-radius: 14px;
  padding: 24px 26px 22px; min-width: 0;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.sib__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(3, 44, 46, 0.28); }
.sib__name { font-size: clamp(26px, 2.4vw, 32px); color: var(--green); line-height: 1.15; }
.sib__name a { color: inherit; }
.sib__name a:focus-visible { outline: none; }
.sib__name a::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.sib__name a:focus-visible::after { outline: 2px solid var(--rose); outline-offset: 3px; }
.sib__type { font-size: 14.5px; color: var(--ink); margin: 10px 0 2px; overflow-wrap: anywhere; }
.sib__loc { font-size: 13px; color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; }
.sib__cta {
  margin-top: auto; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: #a9705c;
}
.sib__card:hover .sib__cta { color: var(--green); }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  /* 1fr は minmax(auto, 1fr) なので、中の画像やテキストの最小幅まで列が膨らんで画面外へ出る。
     minmax(0, 1fr) にして列幅を必ず親の中に収める（masterplan の画像で実測 +2px の膨張があった） */
  .intro__grid, .location__grid, .master__wrap, .legal__grid, .register__inner { grid-template-columns: minmax(0, 1fr); }
  .intro__media { order: -1; max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .amen--a, .amen--b, .amen--c, .amen--d, .amen--e { grid-column: span 6; }
  /* figure はブラウザ既定で margin: 1em 40px。この左右 40px ぶんカードがグリッド枠からはみ出す
     （.gal figure には既に margin:0 があり、.amen だけ打ち消し漏れだった） */
  .amen { margin: 0; }
  /* aspect-ratio: 16/9.5 と min-height: 240px の綱引きで、枠が狭いと幅が高さ側から
     240 × 16/9.5 = 404px に固定され、カードごと画面外へ出ていた。幅をグリッド枠に固定して
     はみ出しを止める（高さは min-height 240px 側で決まる） */
  .amen--a { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  /* iPhone は文字サイズ 16px 未満の入力欄にタップすると、ページごと自動で拡大する。
     拡大後は画面全体が指で動かせてしまうので、タッチ幅では 16px にする（PC は 15px のまま） */
  .form input, .form select { font-size: 16px; }
}
@media (max-width: 768px) {
  .nav, .header__cta { display: none; }
  .burger {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(3, 44, 46, 0.5); border: 1px solid rgba(240, 232, 222, 0.35); z-index: 101; position: relative;
  }
  .burger span, .burger::before, .burger::after {
    content: ''; display: block; width: 20px; height: 1.6px; background: var(--ivory);
    margin: 2.6px auto; transition: transform 0.4s, opacity 0.3s;
  }
  .burger.is-open span { opacity: 0; }
  .burger.is-open::before { transform: translateY(6.2px) rotate(45deg); }
  .burger.is-open::after { transform: translateY(-6.2px) rotate(-45deg); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .amen--a, .amen--b, .amen--c, .amen--d, .amen--e { grid-column: span 12; }
  .legal__badges { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .float-contact { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll::after, .fbtn--phone::before { animation: none; }
}

@media (max-width: 900px) {
  body:has(.mmenu.is-open) .header { z-index: 10000; }
  body:has(.mmenu.is-open) .burger { position: relative; z-index: 10001; }
  .mmenu.is-open { width: 100vw; height: 100dvh; min-height: 100dvh; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding-top: max(82px, calc(env(safe-area-inset-top) + 66px)); padding-bottom: max(32px, env(safe-area-inset-bottom)); clip-path: circle(160vmax at calc(100% - 44px) 40px); z-index: 9999; }
  body:has(.mmenu.is-open) { overflow: hidden; }
}

/* ═══════════ 2026-09-30: テーマ別ページ・多言語化 ═══════════ */
/* サブページは写真ヒーローが無いので、ヘッダーを最初から濃色にする */
.header.is-solid { background: rgba(3, 44, 46, 0.96); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.45); }
.header.is-solid .header__logo img { height: 36px; }
.nav a[aria-current="page"] { opacity: 1; color: var(--rose); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; font-size: 11px; letter-spacing: 0.12em; font-weight: 500; }
.lang a { color: var(--ivory); opacity: 0.7; padding: 5px 7px; border-radius: 999px; line-height: 1; }
.lang a:hover { opacity: 1; }
.lang a[aria-current="true"] { opacity: 1; color: var(--green); background: var(--rose); }
.mmenu .mmenu__lang { display: flex; gap: 10px; margin-top: 22px; border: 0; }
.mmenu .mmenu__lang a { font-family: var(--font-body); font-size: 14px; letter-spacing: 0.14em; border: 1px solid rgba(214, 170, 156, 0.4); border-radius: 999px; padding: 8px 16px; }
.mmenu .mmenu__lang a[aria-current="true"] { background: var(--rose); color: var(--green); }
/* メニュー項目が増えたので、狭いPC幅からハンバーガーに切り替える */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(3, 44, 46, 0.5); border: 1px solid rgba(240, 232, 222, 0.35); z-index: 101; position: relative;
  }
  .burger span, .burger::before, .burger::after {
    content: ''; display: block; width: 20px; height: 1.6px; background: var(--ivory);
    margin: 2.6px auto; transition: transform 0.4s, opacity 0.3s;
  }
  .burger.is-open span { opacity: 0; }
  .burger.is-open::before { transform: translateY(6.2px) rotate(45deg); }
  .burger.is-open::after { transform: translateY(-6.2px) rotate(-45deg); }
  body:has(.mmenu.is-open) .header { z-index: 10000; }
  body:has(.mmenu.is-open) .burger { position: relative; z-index: 10001; }
  .mmenu.is-open { overflow-y: auto; z-index: 9999; }
}
@media (max-width: 1180px) and (min-width: 769px) {
  .mmenu { justify-content: flex-start; padding-top: 96px; }
}
@media (max-width: 480px) {
  .header__right { gap: 8px; }
  .lang a { padding: 5px 5px; }
  .header__logo img { height: 36px; }
}

/* トップ各セクション末尾の「詳しく見る」 */
.tp-more { margin-top: 26px; }
.tp-more a {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500; color: #a9705c; border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.section--green .tp-more a { color: var(--rose); }
.tp-more a:hover { color: var(--green); }
.section--green .tp-more a:hover { color: var(--ivory); }
.collection .tp-more { padding-inline: var(--pad); max-width: var(--container); margin-inline: auto; }

/* テーマ別ページ・価格ページ */
.tp-main { padding-top: 96px; }
.tp-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); }
.tp-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; opacity: 0.7; margin-bottom: 14px; }
.tp-crumb a:hover { text-decoration: underline; }
.tp-updated { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin: 0; }
.tp-h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.12; margin: 10px 0 16px; color: var(--green); overflow-wrap: anywhere; }
.tp-lede { max-width: 66ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.85; color: var(--muted); }
.tp-heroimg { margin: clamp(20px, 3vw, 32px) 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tp-heroimg img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.tp-sec { padding: clamp(32px, 5vw, 60px) 0; }
.tp-sec--alt { background: var(--ivory); }
.tp-body { max-width: 900px; }
.tp-h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--green); margin: 0 0 18px; overflow-wrap: anywhere; }
.tp-body p { line-height: 1.9; max-width: 72ch; }
.tp-list { padding-left: 1.2em; margin: 0 0 1em; line-height: 1.85; max-width: 72ch; }
.tp-list li { margin-bottom: 6px; }
.tp-tablewrap { overflow-x: auto; margin: 6px 0 4px; -webkit-overflow-scrolling: touch; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tp-table:has(thead th:nth-child(3)) { min-width: 30rem; }
.tp-table th, .tp-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(3, 44, 46, 0.14); vertical-align: top; }
.tp-table thead th { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tp-table tbody th { font-weight: 500; color: var(--green); }
.tp-note { margin-top: 10px; font-size: 13px; line-height: 1.75; color: var(--muted); max-width: 74ch; }
.tp-fig { margin: 22px 0 0; }
.tp-fig img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-sm); }
.tp-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.tp-cta { margin-top: 8px; padding: clamp(22px, 4vw, 34px); border-radius: var(--radius); background: var(--green); color: var(--ivory); }
.tp-cta h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ivory); margin-bottom: 12px; }
.tp-cta p { color: rgba(240, 232, 222, 0.82); line-height: 1.85; }
.tp-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tp-cta .btn--ghost { color: var(--ivory); }
.tp-faq { display: grid; gap: 10px; max-width: 78ch; }
.tp-faq details { border: 1px solid rgba(3, 44, 46, 0.18); border-radius: 12px; padding: 16px 18px; background: var(--white); }
.tp-faq summary { cursor: pointer; font-weight: 500; line-height: 1.55; color: var(--green); }
.tp-faq p { margin: 12px 0 0; line-height: 1.85; color: var(--ink); }
.tp-related { margin-top: 40px; }
.tp-related h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--green); margin-bottom: 14px; }
.tp-related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.tp-related a { display: block; padding: 12px 16px; border: 1px solid rgba(3, 44, 46, 0.16); border-radius: 12px; background: var(--white); color: var(--green); font-size: 14.5px; }
.tp-related a:hover { border-color: var(--rose); }

/* 日本語: 見出しの書体フォールバックと改行位置 */
html[lang="ja"] body { font-family: var(--font-body), 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif; line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 { font-family: var(--font-display), 'Yu Mincho', 'Hiragino Mincho ProN', serif; word-break: auto-phrase; }
html[lang="ja"] .nav a, html[lang="ja"] .header__cta { letter-spacing: 0.06em; }
