/* 株式会社Unity Estate — トップ
   白地にうすい方眼の線。大きなロゴ文字・楕円の写真・細い線の輪で組む（参考：プロパティエージェント、ユニオンテック） */

:root {
  --bg: #ffffff;
  --ink: #1c1916;
  --muted: #6b645c;
  --faint: #d9d3cc;       /* スクロールで塗られる前の文字 */
  --line: #ece8e3;        /* 方眼の線 */
  --panel: #f5f2ee;
  --panel-2: #ebe6e0;
  --dark: #1c1916;        /* 敬と愛の面 */
  --accent: #c04619;      /* ボタン */
  --accent-bright: #d9531e; /* ロゴそのままのオレンジ */
  --accent-ink: #ffffff;

  --font: "Zen Kaku Gothic New", "Archivo", system-ui, sans-serif;
  --serif: "Cinzel", "Times New Roman", serif;   /* ロゴと同じ雰囲気の英字 */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --step-head: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --step-display: clamp(4.5rem, 1rem + 15vw, 15rem);

  --margin: clamp(20px, 5vw, 80px);
  --bar: 76px;
  --radius: 16px;
  --section: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.9; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; text-wrap: balance; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nb { display: inline-block; }

/* うすい方眼の線（ユニオンテックのような背景） */
main, .foot { position: relative; z-index: 1; }

/* ---------- 部品 ---------- */
.label { font-family: var(--serif); font-size: 0.875rem; letter-spacing: 0.18em; color: var(--accent-bright); margin-bottom: 14px; }
.label-light { color: #f08a5b; }
.head { font-size: var(--step-head); line-height: 1.25; }
.lead { font-size: var(--step-lead); line-height: 1.7; font-weight: 500; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.75rem; background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.button:hover { background: var(--ink); }
.button:active { transform: scale(0.97); }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-ghost:hover { background: var(--ink); color: #fff; }
.button-wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 0.08em; transition: color 180ms ease; }
.link:hover { color: var(--accent); }
.field { width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem; background: #fff; color: var(--ink); border: 0; border-radius: 10px; font: inherit; font-size: max(1rem, var(--step-body)); }

/* 丸い白黒のボタン（ユニオンテックの Contact / Menu） */
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 600 0.875rem/1 "Archivo", var(--font); text-decoration: none; cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 300ms var(--ease-out); }
.pill:hover i { transform: scale(1.8); }
.pill-dark { background: var(--ink); color: #fff; }
.pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 上のバー ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--margin); }
.bar { transition: background-color 300ms ease, color 300ms ease; }
.bar.is-solid { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar.is-dark { background: rgba(28, 25, 22, 0.86); color: #f4efe8; }
.bar.is-dark .bar-mark { color: #f4efe8; }
.bar.is-dark .pill { border-color: #f4efe8; }
.bar.is-dark .pill-dark { background: #f4efe8; color: var(--ink); }
.bar-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 1.0625rem/1 var(--serif); letter-spacing: 0.12em; }
.bar-mark img { width: 40px; }
.bar-right { display: flex; gap: 8px; }

/* メニュー */
.menu { position: fixed; inset: 0; z-index: 60; background: #fff; overflow: auto; }
.menu[hidden] { display: none; }
.menu-inner { min-height: 100%; padding: calc(var(--bar) + 20px) var(--margin) 48px; position: relative; }
.menu-close { position: absolute; top: 18px; right: var(--margin); }
.menu-list a { display: flex; flex-direction: column; padding: 14px 0; text-decoration: none; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); font-weight: 500; transition: color 180ms ease, transform 300ms var(--ease-out); }
.menu-list a:hover { color: var(--accent); transform: translateX(10px); }
.menu-list small { font: 0.8125rem/1.4 var(--serif); letter-spacing: 0.16em; color: var(--accent-bright); }
.menu.is-open .menu-list li { animation: menu-in 600ms var(--ease-out) both; animation-delay: calc(var(--k, 0) * 50ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(16px); } }

/* 右下の固定ボタン（プロパティエージェントの「無料相談」） */
.cta { position: fixed; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 22px 26px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border-top-left-radius: 14px; transition: background-color 200ms ease, transform 400ms var(--ease-out); }
.cta span { transition: transform 300ms var(--ease-out); }
.cta:hover { background: var(--ink); }
.cta:hover span { transform: translateX(6px); }
.cta.is-hidden { transform: translateY(110%); }

/* ---------- 1. はじまり ---------- */
.hero { position: relative; height: 190vh; }
.hero-stage { position: sticky; top: 0; height: var(--stage-h, 100svh); overflow: hidden; display: grid; place-items: center; }
.hero-word { position: absolute; left: 0; right: 0; top: 38%; transform: translate(var(--mx, 0px), calc(-50% + var(--my, 0px))); transition: transform 600ms var(--ease-out); display: flex; flex-direction: column; align-items: center; font-family: var(--serif); color: var(--accent-bright); line-height: 0.92; pointer-events: none; opacity: calc(1 - var(--p, 0) * 2); }
/* 社名ロゴの登場：マークが回りながら現れ、文字が1つずつ下からせり上がり、最後に線が引かれる */
.hw-mark { width: clamp(56px, 6vw, 92px); height: auto; margin-bottom: clamp(14px, 2.4vh, 28px); animation: mark-in 1400ms var(--ease-out) 150ms both; }
.hw-c { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.hw-c i { display: inline-block; font-style: normal; transform: translateY(110%); animation: letter-up 1100ms var(--ease-out) forwards; animation-delay: calc(var(--j, 0) * 70ms + 450ms); }
.hw-line { display: block; width: clamp(120px, 28vw, 520px); height: 1.5px; margin-top: clamp(18px, 3vh, 32px); background: currentColor; transform: scaleX(0); animation: line-draw 1200ms var(--ease-out) 1350ms forwards; }
html.is-intro .hero-word, html.is-intro .hero-word * { animation-play-state: paused !important; }
@keyframes mark-in { from { opacity: 0; transform: rotate(-140deg) scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes letter-up { to { transform: none; } }
@keyframes line-draw { to { transform: scaleX(1); } }
.hw-l { font-size: var(--step-display); letter-spacing: 0.04em; transform: translateX(calc(var(--p, 0) * -24vw)); }
.hw-r { font-size: calc(var(--step-display) * 0.34); letter-spacing: 0.6em; margin-right: -0.6em; transform: translateX(calc(var(--p, 0) * 24vw)); }
.hero-oval { position: relative; z-index: 1; width: 96vw; height: calc(var(--stage-h, 100svh) * 0.9); margin: 0; overflow: hidden; background: var(--panel); clip-path: inset(calc((1 - var(--p, 0)) * 50%) round max(24px, calc((1 - var(--p, 0)) * 50%))); will-change: clip-path; }
.hero-oval img { width: 100%; height: 100%; object-fit: cover; object-position: 25% 26%; transform-origin: 0 0; will-change: transform; }
.hero-scroll { position: absolute; bottom: 24px; right: var(--margin); font: 0.75rem/1 var(--serif); letter-spacing: 0.3em; color: var(--muted); opacity: calc(1 - var(--p, 0) * 3); }
.hero-scroll::after { content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0; background: var(--ink); transform-origin: top; animation: drop 2s var(--ease-out) infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
/* 最初の画面の左下：会社が何をしているかを先に言う。写真が広がると消える */
.hero-copy { position: absolute; z-index: 2; left: var(--margin); bottom: clamp(28px, 6svh, 64px); width: min(640px, calc(100% - 2 * var(--margin))); opacity: calc(1 - var(--p, 0) * 2.4); transform: translateY(calc(var(--p, 0) * -40px)); }
.hero-copy > * + * { margin-top: 16px; }
.hero-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.3; letter-spacing: 0.04em; }
.hero-title span { display: inline-block; }
.hero-sub { max-width: 34em; font-size: var(--step-small); color: var(--muted); }

/* ---------- 共通のブロック ---------- */
.block { padding: var(--section) var(--margin); }

/* 2. 目指すこと：スクロールで塗られる文字 */
/* 目指すこと：明朝体・小さめの文字・広い行間で、真ん中にそろえて静かに見せる */
.about { max-width: 1280px; margin: 0 auto; text-align: center; }
.about .nb { display: inline-block; }
.about-rule { display: block; width: 1px; height: clamp(40px, 7vh, 72px); margin: 4px auto 28px; background: var(--accent-bright); }
.about .head { font-family: "Shippori Mincho", serif; font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.375rem); letter-spacing: 0.14em; line-height: 1.6; }
.fill-text { margin: clamp(40px, 7vh, 72px) auto 0; max-width: 40em; font-family: "Shippori Mincho", serif; font-size: clamp(0.9375rem, 0.86rem + 0.35vw, 1.1875rem); line-height: 2.5; font-weight: 400; letter-spacing: 0.1em; }
.fill-text .ch { color: var(--faint); transition: color 300ms ease; }
.fill-text .ch.on { color: var(--ink); }
.about-note { margin-top: clamp(40px, 7vh, 72px); font-size: var(--step-small); letter-spacing: 0.08em; color: var(--muted); }

/* 3. 敬と愛：濃い面と、回る細い線の輪 */
.value { position: relative; background: var(--dark); color: #f4efe8; padding: var(--section) var(--margin); overflow: hidden; }
.value-stage { position: relative; height: min(90vw, 760px); display: grid; place-items: center; }
.value-rings { position: absolute; width: min(90vw, 760px); height: min(90vw, 760px); }
.vr { fill: none; stroke: rgba(244, 239, 232, 0.35); stroke-width: 0.8; transform-origin: 0 0; }
.vr-1 { animation: spin 60s linear infinite; }
.vr-2 { stroke: rgba(240, 138, 91, 0.7); stroke-width: 1.2; animation: spin 38s linear infinite reverse; }
.vr-dots { stroke: rgba(240, 138, 91, 0.8); stroke-width: 1.6; stroke-linecap: round; animation: spin 90s linear infinite; }
.vr-rope { stroke: #e2672f; stroke-width: 1.2; stroke-linecap: round; transform-origin: 0 0; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.value-center { position: relative; text-align: center; }
.value-title { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.value-title span { font-size: var(--step-lead); }
.value-title b { font-size: clamp(4rem, 2rem + 8vw, 9rem); font-weight: 500; line-height: 1.05; letter-spacing: 0.08em; padding-left: 0.08em; }
.value-body { max-width: 1200px; margin: 0 auto; }
.value-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: 24px; }
.value-h { font-size: var(--step-head); color: #f08a5b; margin-bottom: 12px; }
.value-cols p { color: #e7e0d7; }
.value-cols .ln { display: inline-block; }   /* 文の区切りで折り返す（1文字だけ次の行に落ちない） */
@media (min-width: 901px) { .value-cols p { font-size: clamp(0.875rem, 1.25vw, 1.125rem); } }   /* PCは2行に収まる大きさ */
.poster { margin: clamp(56px, 7vw, 96px) auto 0; max-width: 860px; perspective: 1400px; }
.poster-sheet { position: relative; border-radius: var(--radius); overflow: hidden; transform-origin: 50% 100%; transform: rotateX(var(--tilt, 0deg)) rotateY(var(--turn, 0deg)); transition: transform 200ms linear; }
.poster-base { width: 100%; }
.hand { position: absolute; display: block; height: auto; }
.poster figcaption { margin-top: 12px; font-size: var(--step-small); color: #b8aea3; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-stamp] .hand { opacity: 0; transform: scale(1.4) rotate(-8deg); }
  .js [data-stamp].is-stamped .hand { animation: stamp 620ms cubic-bezier(0.3, 1.4, 0.5, 1) forwards; animation-delay: calc(var(--n) * 260ms + 200ms); }
}
@keyframes stamp { 0% { opacity: 0; transform: scale(1.4) rotate(-8deg); } 55% { opacity: 1; transform: scale(0.94) rotate(1deg); } 100% { opacity: 1; transform: none; } }

/* 4. 代表のことば */
.message { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px clamp(40px, 6vw, 120px); max-width: 1280px; margin: 0 auto; }
.message-side { position: sticky; top: calc(var(--bar) + 32px); align-self: start; }
.message-body > * + * { margin-top: 1.4em; }
.ceo { margin: 32px 0 0; max-width: 360px; }
.ceo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.ceo figcaption { margin-top: 12px; font-size: var(--step-small); letter-spacing: 0.08em; color: var(--muted); }
.sign { font-size: var(--step-lead); font-weight: 500; padding-top: 0.6em; }
.sign span { display: block; margin-top: 6px; font-size: var(--step-small); font-weight: 400; color: var(--muted); }

/* 5. 住まいの転機 */
.turns { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px clamp(40px, 6vw, 120px); max-width: 1280px; margin: 0 auto; align-items: start; }
.turns-side { position: sticky; top: calc(var(--bar) + 32px); }
.turns-side > p { margin-top: 16px; }
.turns-oval { margin-top: 36px; width: min(100%, 380px); aspect-ratio: 3 / 4; border-radius: 50%; overflow: hidden; }
.turns-oval img { width: 100%; height: 100%; object-fit: cover; }
.row { border-bottom: 1px solid var(--line); }
.row-btn { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; background: none; border: 0; color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: color 240ms ease; }
.row-name { font-size: var(--step-lead); font-weight: 500; transition: transform 300ms var(--ease-out); }
.row-kind { font-size: var(--step-small); flex: none; }
.row-btn:hover, .row.is-active .row-btn { color: var(--ink); }
.row-btn:hover .row-name, .row.is-active .row-name { transform: translateX(12px); }
.row.is-active .row-kind { color: var(--accent); font-weight: 700; }
.row-desc { overflow: hidden; max-height: 0; opacity: 0; padding-left: 12px; transition: max-height 420ms var(--ease-out), opacity 300ms ease, padding 420ms var(--ease-out); }
.row.is-active .row-desc { max-height: 12em; opacity: 1; padding-bottom: 20px; }
.compose { margin-top: 40px; padding: clamp(22px, 3vw, 36px); background: var(--panel); border-radius: var(--radius); }
.compose-title { font-size: var(--step-lead); margin-bottom: 16px; }
.compose-label { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }
.compose-out { margin: 16px 0; padding: 16px 18px; background: #fff; border-radius: 10px; min-height: 5.5em; transition: background-color 300ms ease; }
.compose-out.is-new { background: #fbe6da; }
.compose-note { min-height: 1.6em; margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.to-search { margin-top: 24px; }

/* 6. ご相談の流れ：重なっていくカード */
.flow { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px clamp(40px, 6vw, 120px); align-items: start; }
.flow-head { position: sticky; top: calc(var(--bar) + 32px); }
.flow-head > p:last-child { margin-top: 16px; max-width: 26em; }
.stack { display: grid; gap: 28px; }
.stack-card { position: sticky; top: calc(var(--bar) + 28px + var(--n) * 14px); min-height: 260px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--panel); box-shadow: 0 -1px 0 var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
.stack-card:nth-child(even) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.stack-card:last-child { background: var(--accent); color: #fff; }
.stack-no { font: 0.875rem/1 var(--serif); letter-spacing: 0.16em; color: var(--accent-bright); margin-bottom: auto; }
.stack-card:last-child .stack-no { color: #fff; }
.stack-card h3 { font-size: var(--step-lead); margin-top: 48px; }
.stack-card p { margin-top: 8px; max-width: 30em; }

/* 7. オフィスのようす：縦スクロールで横に流れる */
.office { display: block; height: 400vh; position: relative; z-index: 1; }
.fly-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; perspective: 1200px; }
.h-track { display: flex; align-items: center; gap: clamp(24px, 4vw, 72px); padding: 0 var(--margin); will-change: transform; transform-style: preserve-3d; }
.h-intro { flex: none; width: min(440px, 80vw); }
.h-intro > p:last-child { margin-top: 16px; }
.h-card { flex: none; width: clamp(300px, 52vw, 820px); margin: 0; transform-origin: 50% 50%; will-change: transform; }
.h-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
.h-card figcaption { margin-top: 12px; font-size: var(--step-small); }
.fly-bar { position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 160px; height: 3px; margin-left: -80px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.fly-bar i { display: block; height: 100%; background: var(--accent-bright); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.fly-static.office { height: auto; padding: var(--section) 0; }
.fly-static .fly-stage { position: static; height: auto; overflow: visible; display: block; perspective: none; }
.fly-static .h-track { flex-wrap: wrap; align-items: flex-start; transform: none !important; }
.fly-static .h-intro { width: 100%; }
.fly-static .h-card { width: min(100%, 560px); transform: none !important; }
.fly-static .fly-bar { display: none; }

/* 8. 会社情報 */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(40px, 6vw, 100px); max-width: 1280px; margin: 0 auto; align-items: start; }
.info { margin-top: 28px; }
.info > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.info dt { color: var(--muted); }
.addr { white-space: nowrap; }
.info .addr { font-size: min(1em, 3.1vw); }
.company-map { padding-top: 64px; }
.gmap iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--panel); }
.gmap figcaption { margin: 12px 0 28px; font-size: var(--step-small); }

/* ---------- 下 ---------- */
.foot { padding: var(--section) var(--margin) 110px; background: #fff; }
.foot-word { font: 500 clamp(1.75rem, 0.4rem + 9.4vw, 10.5rem)/0.95 var(--serif); letter-spacing: 0.04em; color: var(--accent-bright); white-space: nowrap; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-top: 48px; }
.foot-info { display: flex; flex-direction: column; gap: 4px; font-style: normal; font-size: var(--step-small); color: var(--muted); line-height: 1.7; }
.foot-info a { color: inherit; }
.foot-info .addr { font-size: min(var(--step-small), 3.1vw); }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 40px; font-size: var(--step-small); }
.foot-nav a { text-decoration: none; transition: color 160ms ease; }
.foot-nav a:hover { color: var(--accent); }
.foot-legal { margin-top: 40px; font-size: var(--step-small); color: var(--muted); }

/* ---------- 出てくる動き（スクリプトがないときは全部見える） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(24px); animation: rise 1000ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 300ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--d, 0) * 100ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vr, .vr-rope, .hero-scroll::after { animation: none; }
  /* 動きを減らす設定のスマホ：画面の高さに頼らず上から順に並べる（アドレスバーの出入りでずれない） */
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding: calc(var(--bar) + 48px) var(--margin) 24px; }
  .hero .hero-word { position: static; transform: none; opacity: 1; }
  .hero .hero-copy { position: static; order: 2; width: auto; opacity: 1; transform: none; }
  .hero .hero-oval { order: 3; width: 100%; height: auto; aspect-ratio: 4 / 3; clip-path: none; border-radius: var(--radius); }
  .hero .hero-oval img { object-position: 25% 24%; }
  .hero-scroll { display: none; }
  .fill-text .ch { color: var(--ink); }
  .hw-mark, .hw-c i, .hw-line { animation: none; transform: none; }
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 900px) {
  :root { --bar: 64px; }
  .hero-word { top: 38%; }
  .hero-oval { height: calc(var(--stage-h, 100svh) * 0.86); }
  .bar.is-solid { background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ceo { max-width: 420px; }
  .hero-scroll { display: none; }
  .message, .turns, .flow, .company { grid-template-columns: 1fr; }
  .message-side, .turns-side, .flow-head { position: static; }
  .turns-oval { width: min(70%, 300px); }
  .value-cols { grid-template-columns: 1fr; }
  .company-map { padding-top: 0; }
  .stack-card { min-height: 220px; }
  .h-card { width: 84vw; }
  .h-track { padding: 0 20px; gap: 20px; }
}
@media (max-width: 560px) {
  .fill-text { letter-spacing: 0.06em; }
  .bar-mark span { display: none; }
  .bar-right { gap: 6px; }
  .bar .pill { min-height: 36px; padding: 0 11px; font-size: 0.8125rem; }
  .bar .pill i { display: none; }   /* スマホは3つ並ぶので点を消して幅をつめる */
  .info > div { grid-template-columns: 1fr; gap: 0; }
  .cta { padding: 16px 18px; font-size: 0.9375rem; }
  .foot-nav { grid-template-columns: 1fr 1fr; gap: 6px 20px; }
}

/* 物件検索の準備中のお知らせ */
.soon { width: min(420px, calc(100% - 32px)); padding: 40px 28px 28px; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); text-align: center; box-shadow: 0 24px 60px rgba(28, 25, 22, 0.25); }
.soon::backdrop { background: rgba(28, 25, 22, 0.55); }
.soon-title { font-size: var(--step-lead); font-weight: 500; }
.soon-text { margin-top: 8px; color: var(--muted); }
.soon-close { margin-top: 28px; justify-content: center; min-width: 140px; }
