/* ftool LP styles */
:root {
  --bg: #faf9f6;
  --bg-elev: #ffffff;
  --bg-sunk: #f3f1ec;
  --ink: #1a1816;
  --ink-2: #4a4641;
  --ink-3: #8a847c;
  --line: #e6e2d9;
  --line-2: #d9d4c9;
  --accent: oklch(0.62 0.13 50);
  --accent-soft: oklch(0.93 0.04 60);
  --accent-ink: oklch(0.42 0.13 50);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(26,24,22,0.04), 0 2px 8px rgba(26,24,22,0.04);
  --shadow-md: 0 2px 4px rgba(26,24,22,0.04), 0 12px 32px -8px rgba(26,24,22,0.10);
  --shadow-lg: 0 4px 8px rgba(26,24,22,0.04), 0 30px 60px -20px rgba(26,24,22,0.14);
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 300;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
header.site.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}
.brand-tag {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-mark {
  width: 26px;
  height: 26px;
  position: relative;
}
.brand-mark svg { display: block; }
nav.primary {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.primary a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-2);
  transition: color .2s ease;
}
nav.primary a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav-cta:hover { background: var(--bg-sunk); border-color: var(--line-2); transform: translateY(-1px); }
.nav-login {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-2);
}
@media (max-width: 768px) {
  nav.primary { gap: 16px; }
  nav.primary .hide-sm { display: none; }
}

/* ---------- Beta badge ---------- */
.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.beta-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.62 0.13 50 / 0.15);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.62 0.13 50 / 0.25); }
  50% { box-shadow: 0 0 0 6px oklch(0.62 0.13 50 / 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero[data-layout="center"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 48px;
  max-width: 760px;
  margin: 0 auto;
}
.hero[data-layout="center"] .hero-demo-wrap { margin: 0 auto; }
.hero[data-layout="stacked"] .hero-grid {
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}

h1.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
h1.hero-title em {
  font-style: normal;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}
h1.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.36em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 2px;
}
.hero-sub {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.85;
  margin: 0 0 36px;
  max-width: 460px;
  text-wrap: pretty;
}
.hero[data-layout="center"] .hero-sub { margin-left: auto; margin-right: auto; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero[data-layout="center"] .cta-row { justify-content: center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 500;
  border: none;
  letter-spacing: 0.02em;
  transition: transform .2s ease, background .2s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 400;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--line-2); color: var(--ink); }

.hero-fine {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.hero-fine .check {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}

/* ---------- Hero demo (interactive) ---------- */
.hero-demo-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 5 / 4.4;
}
.hero[data-layout="stacked"] .hero-demo-wrap {
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
}
.demo-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Hero demo: mysoku card positioning wrapper (look comes from <Mysoku /> inside) */
.demo-mysoku {
  position: absolute;
  left: 0;
  top: 4%;
  width: 48%;
  z-index: 2;
  transition: transform .8s cubic-bezier(.22,1,.36,1), opacity .6s ease;
  font-size: 6.5px;
  box-shadow: var(--shadow-md);
  border-radius: 0.8em;
}
.demo-mysoku.dragging {
  transform: translate(34%, 12%) rotate(-4deg) scale(0.92);
}

/* (Legacy .ms-* styles removed — Mysoku now rendered by <Mysoku /> component
   using .msk-* classes defined further down) */

.demo-arrow {
  position: absolute;
  left: 44%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.demo-arrow .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  font-weight: 500;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
}
.demo-arrow svg { display: block; }

.demo-output {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.demo-output .titlebar {
  height: 26px;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
  flex: 0 0 auto;
}
.demo-output .titlebar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
}
.demo-output .url {
  margin-left: 10px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.demo-output .url .accent { color: var(--accent-ink); }

.demo-output-body {
  flex: 1;
  padding: 12px 14px 10px;
  overflow: hidden;
  position: relative;
  background: #fbfaf7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* sections stagger in */
.demo-section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.demo-section.shown { opacity: 1; transform: translateY(0); }

/* title block, centered */
.demo-title {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.demo-title .addr {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.demo-headline {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 7px 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  font-size: 8.5px;
  color: var(--ink-3);
}
.demo-headline .col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}
.demo-headline .col strong {
  margin-top: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-en);
  white-space: nowrap;
}
.demo-headline .col strong.jp { font-family: var(--font-jp); }

/* mysoku thumbnail — renders the same Mysoku at tiny scale */
.demo-mysoku-thumb {
  border: 0.5px solid var(--line);
  border-radius: 4px;
  font-size: 3.2px;
  overflow: hidden;
  background: var(--bg);
}
.demo-mysoku-thumb .msk {
  border-radius: 0;
  border: none;
  padding: 0.8em 0.6em 0.5em;
}

/* mini info card */
.demo-info-card {
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
}
.demo-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  line-height: 1.6;
  white-space: nowrap;
}
.demo-info-row .lbl { color: var(--ink-3); }
.demo-info-row .v { font-weight: 500; }
.demo-info-row + .demo-info-row { border-top: 0.5px dashed var(--line); padding-top: 2px; margin-top: 2px; }

/* mini fee breakdown */
.demo-fee {
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: 5px 5px 0 0;
  padding: 5px 9px;
  border-bottom: none;
}
.demo-fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  line-height: 1.55;
  white-space: nowrap;
}
.demo-fee-row span:first-child { color: var(--ink-3); }
.demo-fee-row span:last-child {
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--ink);
}
.demo-fee-row + .demo-fee-row {
  border-top: 0.5px dashed var(--line);
  padding-top: 1px;
  margin-top: 1px;
}

/* mini fee total */
.demo-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 9px;
  border-radius: 0 0 5px 5px;
}
.demo-total .lbl { font-size: 7.5px; opacity: 0.7; }
.demo-total .num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
}

/* LINE button */
.demo-line-cta {
  margin-top: auto;
  height: 22px;
  background: #06C755;
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  gap: 5px;
}
.demo-line-cta svg { width: 11px; height: 11px; }

.demo-step-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.demo-step-counter .pip {
  width: 24px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  transition: background .3s, width .3s;
}
.demo-step-counter .pip.active {
  background: var(--ink);
  width: 32px;
}

/* ---------- Public page preview section ---------- */
.preview-section {
  background: var(--bg-sunk);
  position: relative;
  overflow: hidden;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 920px) {
  .preview-grid { grid-template-columns: 1fr; gap: 48px; }
}
.preview-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 16px 0 20px;
  line-height: 1.3;
  text-wrap: balance;
}
.preview-copy h2 em {
  font-style: normal;
  font-weight: 500;
  position: relative;
}
.preview-copy h2 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.34em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 2px;
}
.preview-copy p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.9;
  max-width: 440px;
  margin: 0 0 28px;
}
.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
}
.preview-chip .num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
}

.preview-meta {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ───── proposal page frame (cp-*) ───── */
.cp-frame {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: 720px;
  background: #f4f3ef;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* browser bar */
.cp-bar {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.cp-bar .cp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-2);
}
.cp-url {
  margin-left: 8px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 9.5px;
  color: var(--ink-3);
}
.cp-url .accent { color: var(--accent-ink); }

/* tab nav (proposal: 3 tabs) */
.cp-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 12px 4px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.cp-tab {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all .2s;
}
.cp-tab:hover { border-color: var(--ink-3); }
.cp-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.cp-tab .ix {
  font-size: 9px;
  opacity: 0.6;
  font-family: var(--font-en);
}
.cp-tab .tx {
  font-size: 10px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  line-height: 1.2;
}
.cp-tab .tx strong {
  font-size: 11px;
  font-family: var(--font-en);
  font-weight: 600;
}
.cp-tab .tx em {
  font-style: normal;
  font-size: 9px;
  opacity: 0.7;
  margin-left: 2px;
}

/* pager */
.cp-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.cp-pager-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .2s;
}
.cp-pager-btn:hover { background: var(--bg-sunk); color: var(--ink); }
.cp-pager-counter {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}

/* scrolling content */
.cp-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #f4f3ef;
}
.cp-content {
  position: relative;
  padding: 0 0 24px;
  animation: cpScroll 32s ease-in-out infinite;
}
@keyframes cpScroll {
  0%, 5% { transform: translateY(0); }
  20%, 27% { transform: translateY(-440px); }
  42%, 49% { transform: translateY(-900px); }
  64%, 71% { transform: translateY(-1360px); }
  86%, 93% { transform: translateY(-1800px); }
  98%, 100% { transform: translateY(0); }
}

/* hero: title block */
.cp-hero {
  background: var(--bg);
  padding: 22px 18px 18px;
  text-align: center;
}
.cp-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--ink);
}
.cp-zip {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.cp-headline {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}
.cp-headline .hi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: var(--ink-3);
}
.cp-headline .hi strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-en);
}
.cp-headline .hi strong.jp { font-family: var(--font-jp); }
.cp-headline .hi strong em {
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 1px;
}

/* mysoku image area */
.cp-mysoku {
  padding: 12px 14px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.cp-mysoku-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cp-mysoku-img {
  height: 200px;
  background:
    /* outline blocks resembling a mysoku */
    linear-gradient(180deg, rgba(0,0,0,0.05) 0 12%, transparent 12%),
    linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.04) 50%, transparent 60%),
    repeating-linear-gradient(0deg, var(--bg-sunk) 0 4px, #e0dccf 4px 5px),
    var(--bg-sunk);
  position: relative;
}
.cp-mysoku-img::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  bottom: 16%;
  border: 1px solid rgba(0,0,0,0.08);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.05) 0 30%, transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(0,0,0,0.04) 6px 7px);
}
.cp-mysoku-img::after {
  content: "間取り図 / 物件情報";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: var(--ink-3);
  background: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.cp-mysoku-section-tag {
  display: inline-block;
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.cp-mysoku-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  background: rgba(255,255,255,0.92);
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--ink-2);
  border: 0.5px solid var(--line);
}

/* generic section heading */
.cp-h {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 14px 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.cp-h.centered {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 22px;
}
.cp-h-sub {
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-3);
  margin: -6px 14px 14px;
}

/* generic card */
.cp-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 14px;
}
.cp-card + .cp-card { margin-top: 8px; }
.cp-card.cp-desc p {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0;
}

/* basic info card */
.cp-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.cp-amount .lbl { font-size: 11px; color: var(--ink-3); }
.cp-amount .val {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
}
.cp-amount .val em {
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 2px;
}
.cp-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
}
.cp-dl > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 11.5px;
  border-bottom: 1px dashed var(--line);
}
.cp-dl > div:last-child { border-bottom: none; }
.cp-dl dt { color: var(--ink-3); margin: 0; }
.cp-dl dd { margin: 0; font-weight: 500; }

/* map */
.cp-map {
  height: 160px;
  margin: 0 14px;
  background:
    linear-gradient(135deg, #ecead8, #d7d5c2);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.cp-map::before, .cp-map::after {
  content: "";
  position: absolute;
  background: rgba(0,0,0,0.06);
}
.cp-map::before { left: 0; right: 0; top: 58%; height: 8px; }
.cp-map::after { left: 32%; top: 0; bottom: 0; width: 5px; }
.cp-map-pin {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -100%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.cp-map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 50%;
}
.cp-map-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

/* equipment chips */
.cp-equip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 14px 0;
}
.cp-equip-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink-2);
}
.cp-equip-chip svg { color: var(--ink-3); flex: 0 0 auto; }

/* reasons */
.cp-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 14px;
}
.cp-reason {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
}
.cp-reason .n {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-reason h5 {
  font-size: 12.5px;
  font-weight: 600;
  margin: 2px 0 4px;
}
.cp-reason p {
  font-size: 10.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.7;
}

/* fee */
.cp-fee .cp-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.cp-fee-l { display: flex; flex-direction: column; gap: 2px; }
.cp-fee-l .k { font-size: 11.5px; font-weight: 500; color: var(--ink); }
.cp-fee-l .n { font-size: 9.5px; color: var(--ink-3); }
.cp-fee-row .v {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12.5px;
}
.cp-fee-row.total {
  border-top: 1px solid var(--ink);
  border-bottom: 1px dashed var(--line);
  margin-top: 8px;
  padding-top: 12px;
}
.cp-fee-row.total .k, .cp-fee-row.plus .k, .cp-fee-row.movein .k { font-size: 12px; font-weight: 600; }
.cp-fee-row.movein {
  background: var(--accent-soft);
  margin: 6px -6px -6px;
  padding: 12px 12px;
  border-radius: 6px;
  border-bottom: none;
}
.cp-fee-row.movein .v {
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 600;
}
.cp-fee-note {
  font-size: 9.5px;
  color: var(--ink-3);
  margin-top: 10px;
}

/* LINE CTA */
.cp-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 28px);
  margin: 14px 14px 16px;
  padding: 14px;
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6,199,85,0.25);
  letter-spacing: 0.04em;
}
.cp-line svg { width: 16px; height: 16px; }

/* footer (restated) */
.cp-footer {
  margin-top: 16px;
  padding: 18px 14px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cp-footer h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
}
.cp-footer .cp-headline {
  border: none;
  padding: 8px 0;
}
.cp-footer-note {
  font-size: 9.5px;
  color: var(--ink-3);
  margin: 8px 0 0;
  line-height: 1.6;
}
.cp-footer-note strong { font-weight: 600; color: var(--ink-2); }
.phone-bar {
  height: 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10px;
  color: var(--ink-3);
  background: var(--bg-elev);
  flex: 0 0 auto;
}
.phone-bar .lock {
  display: inline-block;
  width: 8px; height: 9px;
  margin-right: 6px;
  vertical-align: -1px;
}
.phone-bar .accent { color: var(--accent-ink); }

.phone-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.phone-scroll-inner {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  animation: phoneScroll 22s linear infinite;
}
@keyframes phoneScroll {
  0%, 8% { transform: translateY(0); }
  20%, 30% { transform: translateY(-360px); }
  42%, 52% { transform: translateY(-720px); }
  64%, 74% { transform: translateY(-1080px); }
  86%, 100% { transform: translateY(0); }
}

/* mini page sections inside phone */
.pp {
  padding: 18px 18px 0;
  font-family: var(--font-jp);
}
.pp + .pp { border-top: 6px solid var(--bg-sunk); padding-top: 22px; }
.pp:last-child { padding-bottom: 24px; }

.pp-title {
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--ink);
}
.pp-addr {
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.pp-headline {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
  color: var(--ink-2);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pp-headline strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-en);
}
.pp-headline .label-jp {
  font-family: var(--font-jp);
  font-size: 14px;
}

/* mysoku block */
.pp-mysoku {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  background: var(--bg-elev);
}
.pp-mysoku-mini {
  position: relative;
  height: 100px;
  background: var(--bg-sunk);
  border-radius: 3px;
  overflow: hidden;
}
.pp-mysoku-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.05) 50%, transparent 60%),
    repeating-linear-gradient(0deg, var(--bg-sunk), var(--bg-sunk) 4px, #e0dccf 4px, #e0dccf 5px);
}
.pp-mysoku-mini::after {
  content: "マイソク原本";
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 8.5px;
  color: var(--ink-3);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

/* basic info */
.pp-info-card {
  margin-top: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.pp-info-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.pp-info-amount .lbl { font-size: 11px; color: var(--ink-3); }
.pp-info-amount .val {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
}
.pp-info-amount .val .u { font-size: 10px; color: var(--ink-3); margin-left: 2px; }
.pp-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 6px 0;
}
.pp-info-row .l { color: var(--ink-3); white-space: nowrap; }
.pp-info-row .v { font-weight: 500; }

/* map */
.pp-section-h {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.pp-map {
  height: 100px;
  background:
    linear-gradient(135deg, #f0ede5, #e5e1d5);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.pp-map::before, .pp-map::after {
  content: "";
  position: absolute;
  background: rgba(0,0,0,0.08);
}
.pp-map::before { left: 0; right: 0; top: 60%; height: 6px; }
.pp-map::after { left: 35%; top: 0; bottom: 0; width: 4px; }
.pp-map .pin {
  position: absolute;
  left: 50%; top: 45%;
  transform: translate(-50%, -100%);
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* equipment chips */
.pp-equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}
.pp-equip-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink-2);
}
.pp-equip-chip .ic {
  width: 12px; height: 12px;
  flex: 0 0 auto;
  color: var(--ink-3);
}

/* reasons */
.pp-reasons-h {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.pp-reasons-sub {
  text-align: center;
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.pp-reason {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}
.pp-reason .n {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp-reason h5 {
  font-size: 11.5px;
  font-weight: 500;
  margin: 1px 0 3px;
}
.pp-reason p {
  font-size: 10px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.7;
}

/* fee breakdown */
.pp-fee {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.pp-fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 6px 0;
}
.pp-fee-row + .pp-fee-row { border-top: 1px dashed var(--line); }
.pp-fee-row .l { color: var(--ink-2); }
.pp-fee-row .v { font-family: var(--font-en); font-weight: 500; }
.pp-fee-row.total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
}
.pp-fee-row.total .l { color: var(--ink); font-weight: 500; font-family: var(--font-jp); }
.pp-fee-row.total .v {
  font-size: 16px;
  color: var(--accent-ink);
}

/* LINE CTA */
.pp-line {
  margin: 18px 0 0;
  background: #06C755;
  color: #fff;
  border-radius: 999px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pp-line svg { width: 16px; height: 16px; }

.preview-caption {
  position: relative;
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ---------- Section common ---------- */
section.block {
  padding: 96px 0;
  position: relative;
}
section.block + section.block { border-top: 1px solid var(--line); }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
h2.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.3;
  text-wrap: balance;
}
.section-lead {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 56px;
  line-height: 1.85;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- 3 steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, var(--line), var(--line-2), var(--line));
}
@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps-grid::before { display: none; }
}
.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  z-index: 1;
  transition: border-color .3s, transform .3s;
}
.step:hover .step-num {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.step-icon {
  width: 28px;
  height: 28px;
}
.step h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 8px;
}
.step p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.85;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Features ---------- */
.features-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 56px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.feature-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-row.reverse { grid-template-columns: 1.1fr 1fr; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
@media (max-width: 820px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 32px;
  }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
}
.feature-text .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feature-text h3 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
  line-height: 1.4;
}
.feature-text p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.9;
  margin: 0 0 20px;
}
.feature-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-text li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.feature-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1.5px;
  background: var(--accent);
}

.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-sunk);
  border-radius: 16px;
  overflow: hidden;
}
/* Fee feature: grows to fit the breakdown table (no aspect lock, content-sized) */
.feature-visual-fee {
  aspect-ratio: auto;
  min-height: 0;
  overflow: visible;
  display: flex;
}
.feature-visual-fee .fv-fee {
  position: static;
  inset: auto;
  flex: 1;
  min-width: 0;
}
.feature-visual-fee .fv-fee-card {
  flex: none;
  min-height: 0;
  overflow: visible;
}

/* feature 2 — proposal page (tabbed comparison) */
.fv-tabs {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fv-tab-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.fv-tab {
  flex: 1;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 6px;
  color: var(--ink-3);
  transition: all .3s;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fv-tab:hover { border-color: var(--ink-3); }
.fv-tab.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.fv-tab strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: inherit;
}
.fv-tab .sub {
  font-size: 9px;
  opacity: 0.75;
}

.fv-tab-body {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fvTabFadeIn .35s ease;
}
@keyframes fvTabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fv-tab-hero {
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.fv-tab-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 3px;
}
.fv-tab-addr {
  font-size: 9.5px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.fv-tab-price {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 4px;
}
.fv-tab-price > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 8.5px;
  color: var(--ink-3);
}
.fv-tab-price strong {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.fv-tab-price strong.jp { font-family: var(--font-jp); }

.fv-tab-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
.fv-tab-card {
  background: var(--bg-sunk);
  border-radius: 4px;
  padding: 5px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fv-tab-card > span {
  font-size: 8px;
  color: var(--ink-3);
}
.fv-tab-card strong {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
}

.fv-tab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.fv-tab-tag {
  display: inline-block;
  font-size: 8.5px;
  padding: 2px 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
}

.fv-tab-total {
  margin-top: auto;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.fv-tab-total > span { font-size: 8.5px; opacity: 0.7; }
.fv-tab-total strong {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
}

.fv-tab-pips {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 2px;
}
.fv-tab-pips .pip {
  width: 16px;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  transition: background .3s, width .3s;
}
.fv-tab-pips .pip.on {
  background: var(--ink);
  width: 22px;
}

/* feature 2 — fee breakdown (mirrors the actual customer page) */
.fv-fee {
  position: absolute;
  inset: 0;
  padding: 18px 20px;
  background: var(--bg-sunk);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fv-fee-head {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 2px;
}
.fv-fee-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 6px 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fv-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.fv-fee-row:last-of-type { border-bottom: none; }
.fv-fee-row .l { display: flex; flex-direction: column; gap: 1px; }
.fv-fee-row .l .k {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.fv-fee-row .l .n {
  display: block;
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0;
  line-height: 1.4;
}
.fv-fee-row > .k {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.fv-fee-row .v {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: 12px;
}
/* total row */
.fv-fee-row.total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.fv-fee-row.total > .k {
  font-size: 12.5px;
  font-weight: 700;
}
.fv-fee-row.total .v {
  font-size: 14.5px;
  font-weight: 700;
}
/* + 初月家賃 row */
.fv-fee-row.plus {
  border-bottom: 1px solid var(--line);
}
.fv-fee-row.plus > .k {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
}
.fv-fee-row.plus .v {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
/* = 入居時 概算 row */
.fv-fee-row.movein {
  background: var(--accent-soft);
  margin: 6px -16px -6px;
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  border-bottom: none;
  align-items: center;
}
.fv-fee-row.movein > .k {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
}
.fv-fee-row.movein .v {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-ink);
}

.fv-fee-note {
  font-size: 9.5px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0;
}


/* feature 1 — auto-generated public page (mini-rendering with real content) */
.fv-page {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.fv-page-frame {
  width: 78%;
  height: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fv-page-bar {
  flex: 0 0 auto;
  height: 18px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
}
.fv-page-bar > span:not(.fv-page-url) {
  width: 5px; height: 5px;
  background: var(--line-2);
  border-radius: 50%;
}
.fv-page-url {
  margin-left: 6px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 7px;
  color: var(--ink-3);
}
.fv-page-url em {
  font-style: normal;
  color: var(--accent-ink);
}

.fv-page-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #f4f3ef;
}
.fv-page-inner {
  position: relative;
  animation: fvPageScroll 28s ease-in-out infinite;
}
@keyframes fvPageScroll {
  0%, 8% { transform: translateY(0); }
  28%, 38% { transform: translateY(-160px); }
  58%, 68% { transform: translateY(-360px); }
  84%, 92% { transform: translateY(-540px); }
  98%, 100% { transform: translateY(0); }
}

/* hero block (title + price) */
.fv-page-hero {
  background: var(--bg);
  padding: 10px 10px 8px;
  text-align: center;
}
.fv-page-title {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.fv-page-addr {
  font-size: 6.5px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.fv-page-headline {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 6px 0 2px;
  border-top: 1px solid var(--line);
  font-size: 6px;
  color: var(--ink-3);
}
.fv-page-headline > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fv-page-headline strong {
  font-size: 9px;
  color: var(--ink);
  font-family: var(--font-en);
  font-weight: 600;
}
.fv-page-headline strong.jp { font-family: var(--font-jp); }

/* mysoku block */
.fv-page-mysoku {
  background: var(--bg);
  padding: 6px 8px;
  border-top: 1px solid var(--line);
}
.fv-page-mysoku-display {
  border: 0.5px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

/* basic info */
.fv-page-info {
  background: var(--bg);
  margin: 6px 8px 0;
  padding: 8px 10px;
  border-radius: 4px;
}
.fv-page-info-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 0.5px solid var(--line);
  margin-bottom: 4px;
}
.fv-page-info-amount > span { font-size: 6.5px; color: var(--ink-3); }
.fv-page-info-amount strong {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
}
.fv-page-info-amount strong em {
  font-style: normal;
  font-size: 6.5px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 1px;
}
.fv-page-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  padding: 2px 0;
}
.fv-page-info-row > span:first-child { color: var(--ink-3); }
.fv-page-info-row > span:last-child { font-weight: 500; }

/* section headings */
.fv-page-section-h {
  font-size: 7.5px;
  font-weight: 600;
  margin: 8px 8px 4px;
  padding-bottom: 3px;
  border-bottom: 0.5px solid var(--line);
}
.fv-page-section-h.centered {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 10px;
}

/* map */
.fv-page-map {
  height: 50px;
  margin: 0 8px;
  background: linear-gradient(135deg, #ecead8, #d7d5c2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.fv-page-map::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 58%;
  height: 3px;
  background: rgba(0,0,0,0.06);
}
.fv-page-map .pin {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -100%);
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
}

/* reasons */
.fv-page-reasons {
  margin: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fv-page-reason {
  background: var(--bg);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  gap: 6px;
}
.fv-page-reason > span {
  width: 12px; height: 12px;
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 7px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv-page-reason strong {
  display: block;
  font-size: 7.5px;
  font-weight: 600;
  margin-bottom: 1px;
}
.fv-page-reason p {
  margin: 0;
  font-size: 6.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* fee */
.fv-page-fee {
  background: var(--bg);
  margin: 0 8px;
  padding: 8px 10px;
  border-radius: 4px;
}
.fv-page-fee .r {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  padding: 2px 0;
  border-bottom: 0.5px dashed var(--line);
}
.fv-page-fee .r > span:last-child {
  font-family: var(--font-en);
  font-weight: 500;
}
.fv-page-fee .r.total {
  border-top: 1px solid var(--ink);
  margin-top: 4px;
  padding-top: 5px;
  border-bottom: none;
  font-weight: 600;
}
.fv-page-fee .r.total > span:last-child {
  font-size: 9px;
  color: var(--accent-ink);
  font-weight: 600;
}

/* LINE button */
.fv-page-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: calc(100% - 16px);
  margin: 8px 8px 12px;
  padding: 6px;
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.fv-page-line svg { width: 9px; height: 9px; }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 48px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.pricing-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.pricing-amount .currency {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
}
.pricing-amount .value {
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.pricing-amount .unit {
  font-size: 14px;
  color: var(--ink-3);
  margin-left: 4px;
}
.pricing-note {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 8px 0 32px;
}
.pricing-beta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-sunk);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 32px;
}
.pricing-beta strong { color: var(--accent-ink); font-weight: 500; }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-list li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 26px;
  position: relative;
}
.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: inherit;
}
.faq-toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .3s;
}
.faq-item.open .faq-toggle {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
}
.faq-item.open .faq-a { max-height: 280px; }
.faq-a-inner { padding: 0 0 24px; max-width: 620px; }

/* ---------- CTA footer ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  margin: 0 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cta-banner p {
  font-size: 15px;
  opacity: 0.7;
  margin: 0 0 36px;
}
.cta-banner .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
.cta-banner .btn-primary:hover { background: #fff; }
.cta-banner-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  color: var(--ink-2);
  font-size: 13px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
  margin: 12px 0 0;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animations (pure CSS — runs on mount) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealIn 0.8s cubic-bezier(.22,1,.36,1) forwards;
}
.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.22s; }
.reveal.delay-3 { animation-delay: 0.34s; }
@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Wrap fixes ---------- */
.nav-cta { white-space: nowrap; }
.cp-pager-btn { white-space: nowrap; }
.cp-tab .tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-tab .tx strong { white-space: nowrap; }
.cp-dl dd { white-space: nowrap; }
.btn-primary, .btn-ghost { white-space: nowrap; }
nav.primary a { white-space: nowrap; }

/* ====================================================================
   SUBPAGE STYLES (company / contact / tokushou / terms / privacy)
   ==================================================================== */
.subpage-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.subpage-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.subpage-main {
  padding: 64px 0 96px;
  min-height: calc(100vh - 64px - 360px);
}
.subpage-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.subpage-title {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.3;
}
.subpage-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 48px;
}
.subpage-content {
  max-width: 760px;
}
.subpage-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 14px;
  letter-spacing: 0;
  line-height: 1.5;
}
.subpage-content h2:first-child { margin-top: 0; }
.subpage-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 10px;
  letter-spacing: 0;
}
.subpage-content p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.9;
  margin: 0 0 14px;
}
.subpage-content ul, .subpage-content ol {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.9;
  padding-left: 22px;
  margin: 0 0 14px;
}
.subpage-content ul li, .subpage-content ol li { margin-bottom: 4px; }

.subpage-content .lead {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.9;
  margin-bottom: 32px;
  text-wrap: pretty;
}

/* definition list table */
.subpage-dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--line);
}
.subpage-dl > div {
  display: contents;
}
.subpage-dl dt, .subpage-dl dd {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.subpage-dl dt {
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-right: 24px;
}
.subpage-dl dd {
  color: var(--ink);
  padding-left: 24px;
}
@media (max-width: 720px) {
  .subpage-dl {
    grid-template-columns: 1fr;
  }
  .subpage-dl dt {
    border-bottom: none;
    padding: 16px 0 4px;
  }
  .subpage-dl dd {
    padding: 0 0 16px;
  }
}

/* back link */
.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 32px;
  transition: color .2s;
}
.subpage-back:hover { color: var(--ink); }
.subpage-back .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.subpage-back:hover .arrow { transform: translateX(-3px); }

/* Articles (terms / privacy) — numbered sections */
.article-section {
  margin: 0 0 32px;
}
.article-section h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.article-clause {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
  margin: 0 0 10px;
}
.article-list {
  list-style: decimal;
  padding-left: 22px;
  margin: 0 0 14px;
}
.article-list li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
  margin-bottom: 6px;
}
.article-sublist {
  list-style: lower-roman;
  padding-left: 22px;
  margin: 6px 0;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.contact-field {
  margin-bottom: 22px;
}
.contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.contact-field label .req {
  color: var(--accent-ink);
  margin-left: 4px;
  font-size: 11px;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px oklch(0.62 0.13 50 / 0.12);
}
.contact-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}
.contact-submit {
  width: 100%;
  margin-top: 8px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-submit:hover { background: #000; transform: translateY(-1px); }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.contact-thanks {
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 18px 22px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}
.contact-thanks.show { display: block; }
.contact-thanks strong {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-info p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}
.contact-info .channel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .channel:last-child { border-bottom: none; }
.contact-info .channel .ic {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-sunk);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}
.contact-info .channel .body strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-info .channel .body span {
  font-size: 13px;
  color: var(--ink-3);
  display: block;
}

@media (max-width: 720px) {
  .subpage-main { padding: 40px 0 64px; }
  .subpage-title { font-size: 26px; }
  .subpage-meta { margin-bottom: 32px; }
  .subpage-content h2 { font-size: 17px; margin: 32px 0 12px; }
  .subpage-content h3 { font-size: 14.5px; }
  .subpage-content p, .subpage-content ul, .subpage-content ol { font-size: 14px; }
  .article-clause, .article-list li { font-size: 13.5px; }
  .contact-form { padding: 24px 20px; border-radius: 14px; }
}
.msk {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8em;
  padding: 1.2em 1em 0.9em;
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  font-feature-settings: "palt";
  font-size: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  box-sizing: border-box;
}
.msk-label {
  position: absolute;
  top: -0.7em;
  left: 1em;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85em;
  padding: 0.2em 0.6em;
  border-radius: 0.3em;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* top: title + rent table */
.msk-top {
  display: flex;
  align-items: stretch;
  gap: 0.6em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--line);
}
.msk-title-block { flex: 1; min-width: 0; }
.msk-title {
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.msk-roomnum {
  display: none; /* room shown in rent table */
}
.msk-catch {
  margin-top: 0.5em;
  font-size: 0.85em;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.msk-rent {
  border: 1px solid var(--ink);
  border-collapse: collapse;
  font-size: 0.85em;
  text-align: center;
  flex: 0 0 auto;
}
.msk-rent th, .msk-rent td {
  border: 1px solid var(--ink);
  padding: 0.2em 0.5em;
}
.msk-rent th {
  background: var(--bg-sunk);
  font-weight: 500;
  font-size: 0.85em;
}
.msk-rent .rent-val {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--ink);
  letter-spacing: 0;
}
.msk-rent .mgmt {
  font-size: 0.75em;
  color: var(--ink-2);
}

/* mid: photos + floorplan */
.msk-mid {
  display: grid;
  grid-template-columns: 36% 64%;
  gap: 0.4em;
}
.msk-photos {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.msk-photo {
  flex: 1;
  border-radius: 0.2em;
  min-height: 3.5em;
}
.msk-photo-ext-a {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #c4cbd2, #9aa4ae);
}
.msk-photo-int-a {
  background:
    linear-gradient(180deg, #e8e1d3 28%, #c9b896 28% 75%, #8a7556 75%);
}
.msk-photo-ext-b {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #d8d2c4, #a89a82);
}
.msk-photo-int-b {
  background:
    linear-gradient(135deg, #ece4d3 35%, #b8a487 35% 70%, #6c5d44 70%);
}
.msk-photo-ext-c {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #b8c4ca, #7d8a93);
}
.msk-photo-int-c {
  background:
    linear-gradient(180deg, #efe8d8 32%, #ddd0b7 32% 70%, #a08e72 70%);
}

.msk-floor {
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 0.15em;
  position: relative;
  min-height: 7em;
}
.msk-floor svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* info grid */
.msk-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  font-size: 0.85em;
}
.msk-info > div {
  padding: 0.3em 0.4em;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  min-width: 0;
}
.msk-info > div:nth-child(4n) { border-right: none; }
.msk-info > div:nth-last-child(-n+4) { border-bottom: none; }
.msk-info .lbl {
  color: var(--ink-3);
  font-size: 0.78em;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.msk-info .val {
  font-weight: 500;
  font-size: 0.95em;
  line-height: 1.35;
  word-break: break-all;
  display: flex;
  flex-direction: column;
}
.msk-info .val .line {
  display: block;
  font-size: 0.92em;
  line-height: 1.3;
}

/* equipment chips */
.msk-equip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 0.55em;
  font-size: 0.78em;
  color: var(--ink-2);
  letter-spacing: 0;
}
.msk-equip span { display: inline-block; }
.msk-equip span.filled { color: var(--ink); }
.msk-equip span.hollow { color: var(--ink-3); }

/* footer */
.msk-footer {
  margin-top: auto;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75em;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  gap: 0.6em;
}
.msk-footer span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msk-footer span:last-child { flex: 0 0 auto; }

/* ───── Mysoku size variants (set parent font-size) ───── */
/* Hero demo: very small */
.demo-mysoku-host { font-size: 6.5px; }
/* Preview proposal page: larger */
.cp-mysoku-display { font-size: 10px; }
/* Feature page (auto-generated public page mockup): tiny */
.fv-page-mysoku-display { font-size: 5px; }

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* ───── header ───── */
  .header-inner { height: 56px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark, .brand-mark svg { width: 22px; height: 22px; }
  .brand-tag { display: none; }
  nav.primary { gap: 14px; }
  .nav-cta {
    height: 34px;
    padding: 0 14px;
    font-size: 12.5px;
    letter-spacing: 0;
  }
  .nav-login { font-size: 13px; }

  /* ───── hero ───── */
  .hero { padding: 32px 0 56px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .hero[data-layout="split"] .hero-grid,
  .hero[data-layout="center"] .hero-grid,
  .hero[data-layout="stacked"] .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 40px;
  }
  .eyebrow {
    margin-bottom: 14px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }
  .eyebrow::before { width: 18px; }
  .beta-pill { font-size: 11px; padding: 5px 11px 5px 8px; }
  h1.hero-title {
    font-size: 30px;
    line-height: 1.35;
    margin: 0 0 18px;
    font-weight: 400;
    letter-spacing: -0.005em;
    text-wrap: balance;
  }
  h1.hero-title br { display: none; }
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .cta-row { gap: 10px; width: 100%; }
  .btn-primary {
    height: 50px;
    padding: 0 22px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  .btn-ghost {
    height: 50px;
    padding: 0 14px;
    font-size: 13px;
  }
  .hero-fine { font-size: 12px; margin-top: 14px; }

  /* hero demo — keep side-by-side but constrain width and bump fonts */
  .hero-demo-wrap {
    max-width: 100%;
    aspect-ratio: 5 / 4.3;
  }
  .demo-mysoku {
    width: 48%;
    padding: 9px;
    font-size: 7px;
    line-height: 1.4;
    border-radius: 8px;
  }
  .demo-mysoku::before { font-size: 8.5px; padding: 2px 6px; top: -8px; left: 8px; }
  /* legacy .ms-* mobile rules removed — Mysoku scales via .demo-mysoku font-size */
  .demo-arrow { left: 50%; }
  .demo-arrow .label { font-size: 8.5px; padding: 3px 6px; }

  .demo-output {
    width: 50%;
    border-radius: 12px;
  }
  .demo-output .titlebar { height: 22px; padding: 0 8px; }
  .demo-output .titlebar .dot { width: 6px; height: 6px; }
  .demo-output .url { font-size: 8px; margin-left: 6px; }
  .demo-output-body { padding: 10px 11px 9px; gap: 6px; }
  .demo-title { font-size: 9.5px; line-height: 1.3; }
  .demo-title .addr { font-size: 7px; margin-top: 2px; }
  .demo-headline { font-size: 8px; gap: 10px; padding: 5px 0; }
  .demo-headline .col strong { font-size: 9.5px; margin-top: 1px; }
  .demo-mysoku-thumb { font-size: 2.6px; }
  .demo-info-card { padding: 5px 7px; }
  .demo-info-row { font-size: 7.5px; line-height: 1.5; }
  .demo-total { padding: 4px 7px; }
  .demo-total .lbl { font-size: 7px; }
  .demo-total .num { font-size: 10.5px; }
  .demo-line-cta { height: 19px; font-size: 8px; }
  .demo-line-cta svg { width: 9px; height: 9px; }
  .demo-step-counter { bottom: -22px; }
  .demo-step-counter .pip { width: 18px; height: 2px; }
  .demo-step-counter .pip.active { width: 24px; }

  /* ───── sections ───── */
  section.block { padding: 64px 0; }
  section.block + section.block { border-top: 1px solid var(--line); }
  .section-header { margin-bottom: 40px; }
  .section-header.center { text-align: left; }
  .section-eyebrow { font-size: 10.5px; }
  h2.section-title {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 14px;
    font-weight: 400;
  }
  .section-lead { font-size: 14px; line-height: 1.85; margin-bottom: 28px; }

  /* ───── steps ───── */
  .steps-grid { gap: 32px; }
  .steps-grid::before { display: none; }
  .step {
    text-align: left;
    padding: 0;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 4px 16px;
    align-items: start;
  }
  .step .step-num {
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: start;
  }
  .step h3 {
    grid-column: 2;
    grid-row: 1;
  }
  .step p {
    grid-column: 2;
    grid-row: 2;
    max-width: 100%;
  }
  .step-num { width: 56px; height: 56px; margin-bottom: 0; }
  .step-icon { width: 22px; height: 22px; }
  .step h3 { font-size: 17px; margin: 4px 0 6px; }
  .step p {
    font-size: 13.5px;
    line-height: 1.8;
    margin: 0;
  }

  /* ───── features ───── */
  .features-stack { gap: 16px; }
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 22px;
    border-radius: 16px;
  }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .feature-text .tag { font-size: 10.5px; margin-bottom: 10px; }
  .feature-text h3 { font-size: 21px; margin-bottom: 12px; line-height: 1.45; }
  .feature-text p { font-size: 13.5px; line-height: 1.85; margin-bottom: 14px; }
  .feature-text li { font-size: 12.5px; }
  .feature-visual { aspect-ratio: 4 / 3.2; border-radius: 12px; }

  /* feature fee breakdown */
  .fv-fee { padding: 14px 16px; gap: 6px; }
  .fv-fee-head { font-size: 12.5px; }
  .fv-fee-card { padding: 4px 14px; border-radius: 10px; }
  .fv-fee-row { padding: 6px 0; }
  .fv-fee-row .l .k { font-size: 10.5px; }
  .fv-fee-row .l .n { font-size: 8.5px; }
  .fv-fee-row > .k { font-size: 10.5px; }
  .fv-fee-row .v { font-size: 11px; }
  .fv-fee-row.total > .k { font-size: 11.5px; }
  .fv-fee-row.total .v { font-size: 13px; }
  .fv-fee-row.plus > .k { font-size: 10px; }
  .fv-fee-row.plus .v { font-size: 10.5px; }
  .fv-fee-row.movein { margin: 4px -14px -4px; padding: 10px 14px; }
  .fv-fee-row.movein > .k { font-size: 12px; }
  .fv-fee-row.movein .v { font-size: 15px; }
  .fv-fee-note { font-size: 9px; }

  /* feature tabs (FeatureTabs) */
  .fv-tabs { padding: 14px; }
  .fv-tab { font-size: 8.5px; padding: 6px 8px; }
  .fv-tab strong { font-size: 9.5px; }

  /* ───── preview section ───── */
  .preview-section { padding: 64px 0; }
  .preview-grid { gap: 36px; }
  .preview-copy h2 {
    font-size: 26px;
    line-height: 1.35;
    margin: 12px 0 16px;
    font-weight: 400;
  }
  .preview-copy p { font-size: 14px; line-height: 1.85; margin-bottom: 22px; }
  .preview-chips { gap: 6px; margin-bottom: 26px; }
  .preview-chip { font-size: 11px; padding: 5px 11px 5px 7px; }
  .preview-chip .num { width: 16px; height: 16px; font-size: 9px; }
  .preview-meta { font-size: 11px; margin-top: 16px; }

  .cp-frame {
    max-width: 100%;
    height: 640px;
    border-radius: 12px;
  }
  .cp-bar { height: 26px; padding: 0 8px; }
  .cp-bar .cp-dot { width: 6px; height: 6px; }
  .cp-url { font-size: 9px; margin-left: 6px; }

  .cp-tabs { padding: 8px 10px 4px; gap: 4px; }
  .cp-tab { padding: 6px 7px; gap: 1px; }
  .cp-tab .ix { font-size: 8.5px; }
  .cp-tab .tx { font-size: 9.5px; }
  .cp-tab .tx strong { font-size: 10.5px; }
  .cp-tab .tx em { font-size: 8.5px; margin-left: 1px; }

  .cp-pager { padding: 7px 12px; }
  .cp-pager-btn { font-size: 11px; padding: 4px 6px; }
  .cp-pager-counter { font-size: 10.5px; }

  .cp-hero { padding: 18px 16px 14px; }
  .cp-title { font-size: 15.5px; margin-bottom: 4px; }
  .cp-zip { font-size: 10.5px; margin-bottom: 12px; }
  .cp-headline { gap: 24px; padding: 12px 0 4px; }
  .cp-headline .hi { font-size: 9.5px; }
  .cp-headline .hi strong { font-size: 14px; }

  .cp-mysoku { padding: 10px 12px; }
  .cp-mysoku-display { font-size: 8.5px; }
  .cp-mysoku-img { height: 150px; }
  .cp-mysoku-img::after { font-size: 9.5px; padding: 3px 8px; }

  .cp-h { font-size: 13px; margin: 14px 12px 8px; }
  .cp-h-sub { font-size: 10px; margin: -4px 12px 12px; }
  .cp-card { margin: 0 12px; padding: 14px 14px; border-radius: 8px; }
  .cp-amount .lbl { font-size: 10.5px; }
  .cp-amount .val { font-size: 18px; }
  .cp-dl > div { font-size: 11px; padding: 5px 0; }
  .cp-map { height: 130px; margin: 0 12px; border-radius: 8px; }
  .cp-equip { margin: 8px 12px 0; gap: 5px; }
  .cp-equip-chip { padding: 6px 8px; font-size: 10px; }
  .cp-reasons { margin: 0 12px; gap: 6px; }
  .cp-reason { padding: 12px; gap: 10px; border-radius: 8px; }
  .cp-reason .n { width: 22px; height: 22px; font-size: 11px; }
  .cp-reason h5 { font-size: 11.5px; }
  .cp-reason p { font-size: 10px; line-height: 1.65; }
  .cp-fee .cp-fee-row { padding: 7px 0; }
  .cp-fee-l .k { font-size: 11px; }
  .cp-fee-l .n { font-size: 9.5px; }
  .cp-fee-row .v { font-size: 11.5px; }
  .cp-fee-row.movein .v { font-size: 16px; }
  .cp-line {
    width: calc(100% - 24px);
    margin: 12px 12px 14px;
    padding: 13px;
    font-size: 12.5px;
  }
  .cp-footer { padding: 16px 12px 22px; }
  .cp-footer h5 { font-size: 12.5px; }

  .preview-caption { font-size: 11px; margin-top: 14px; }

  /* ───── pricing ───── */
  .pricing-card {
    padding: 36px 24px;
    border-radius: 18px;
  }
  .pricing-tag { font-size: 10.5px; margin-bottom: 20px; }
  .pricing-amount .currency { font-size: 22px; }
  .pricing-amount .value { font-size: 56px; }
  .pricing-amount .unit { font-size: 12.5px; }
  .pricing-note { font-size: 12.5px; margin-bottom: 22px; }
  .pricing-beta {
    font-size: 12px;
    padding: 12px 14px;
    margin-bottom: 22px;
    line-height: 1.5;
    text-align: left;
  }
  .pricing-list { margin-bottom: 26px; gap: 8px; }
  .pricing-list li { font-size: 13px; padding-left: 24px; }

  /* ───── FAQ ───── */
  .faq-q { font-size: 14.5px; padding: 20px 0; gap: 14px; line-height: 1.55; }
  .faq-toggle { width: 24px; height: 24px; }
  .faq-a { font-size: 13px; line-height: 1.85; }
  .faq-item.open .faq-a { max-height: 480px; }

  /* ───── CTA banner ───── */
  .cta-banner { padding: 56px 0; }
  .cta-banner h2 { font-size: 25px; line-height: 1.4; margin-bottom: 14px; }
  .cta-banner h2 br { display: none; }
  .cta-banner p { font-size: 13.5px; margin-bottom: 28px; }

  /* ───── footer ───── */
  footer.site { padding: 40px 0 28px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { font-size: 12.5px; }
  .footer-col h4 { font-size: 10px; margin-bottom: 12px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 12.5px; }
  .footer-bottom {
    font-size: 11px;
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* hide decorative shapes (avoid horizontal overflow) */
  .shape.s1 { width: 240px; height: 240px; right: -60px; top: -40px; }
  .shape.s2 { display: none; }
  .shape.line-1 { display: none; }
}

/* small phones — extra tightening */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  nav.primary { gap: 10px; }
  .nav-cta { padding: 0 11px; font-size: 11.5px; }
  .nav-login { font-size: 12px; }

  h1.hero-title { font-size: 27px; }
  .hero-demo-wrap { aspect-ratio: 5 / 4.6; }

  /* feature card padding tighter */
  .feature-row, .feature-row.reverse {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .feature-text h3 { font-size: 19px; }

  .pricing-card { padding: 32px 20px; }
  .pricing-amount .value { font-size: 48px; }

  /* simpler hero demo */
  .demo-mysoku { font-size: 5.5px; }

  /* compact proposal tab labels on tiny screens */
  .cp-tab { padding: 5px 6px; }
  .cp-tab .tx { font-size: 8.5px; }
  .cp-tab .tx strong { font-size: 9.5px; }
  .cp-tab .tx em { display: none; }

  /* footer single column */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Floating shapes (background) ---------- */
.shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.shape.s1 {
  width: 480px; height: 480px;
  right: -120px; top: -120px;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 65%);
  opacity: 0.5;
}
.shape.s2 {
  width: 320px; height: 320px;
  left: -80px; bottom: -100px;
  background: radial-gradient(circle, var(--bg-sunk), transparent 70%);
}
.shape.line-1 {
  position: absolute;
  width: 1px;
  height: 200px;
  background: var(--line);
  border-radius: 0;
  left: 12%;
  top: 30%;
}

/* ---------- Tweaks indicator ---------- */
.tweak-hint {
  position: fixed;
  left: 20px;
  bottom: 20px;
  font-size: 11px;
  color: var(--ink-3);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 40;
  opacity: 0;
  transition: opacity .3s;
}
.tweak-hint.show { opacity: 1; }
