/* トップ（入口）。写真を主役に、主ボタンは「はじめる」1 つ。 */
.mw-landing main { display: block; margin: 0; }
.hero { position: relative; min-height: min(100svh, 56rem); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
/* P20：トップの写真は見本の家（Owner のデモ用マンション）と同じ実際の撮影結果の 1 枚（リビング）。新しい画像は作らず、暗いグラデーションを重ねるだけ */
.hero-photo { position: absolute; inset: 0; z-index: -2; background: url("/sample-home/hero.jpg") center 30% / cover no-repeat; animation: mw-bloom 1.1s var(--mw-ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,10,8,.15) 0%, rgba(12,10,8,.05) 30%, rgba(14,12,9,.78) 64%, var(--mw-ground) 96%); }
.hero-copy { inline-size: 100%; max-inline-size: 40rem; padding: 0 var(--mw-gutter) calc(2.25rem + env(safe-area-inset-bottom)); display: grid; gap: 1rem; }
.hero h1 { font-size: clamp(2.05rem, 8.4vw, 3.3rem); line-height: 1.32; letter-spacing: .06em; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-lede { color: #efe4cf; font-size: clamp(1rem, 3.9vw, 1.12rem); line-height: 1.85; max-inline-size: 30rem; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .35rem; }
.hero-actions .mw-btn-primary { flex: 1 1 11rem; }
.hero-actions .mw-btn-quiet { flex: 1 1 10rem; }
.hero-note { color: var(--mw-muted); font-size: .86rem; line-height: 1.7; }
.hero-error:empty { display: none; }
.hero-error { color: var(--mw-danger); font-size: .92rem; }

.steps { padding: 3.2rem var(--mw-gutter) 1rem; max-inline-size: 64rem; margin: 0 auto; display: grid; gap: 1rem; }
.steps h2 { font-size: clamp(1.45rem, 5.6vw, 2rem); }
.step-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .85rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.2rem; border-radius: var(--mw-radius-l);
  background: linear-gradient(180deg, var(--mw-surface-2), var(--mw-surface)); border: 1px solid var(--mw-line); box-shadow: var(--mw-shadow-soft); }
.step-no { flex: none; inline-size: 2.4rem; block-size: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mw-serif); font-size: 1.15rem; color: var(--mw-amber); border: 1px solid var(--mw-line-strong); background: rgba(240,194,124,.07); }
.step h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.step p { color: var(--mw-muted); font-size: .95rem; line-height: 1.75; }

.promise { padding: 1.4rem var(--mw-gutter) 1rem; max-inline-size: 64rem; margin: 0 auto; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.promise-list li { display: grid; gap: .15rem; text-align: center; padding: .95rem .4rem; border-top: 1px solid var(--mw-line); }
.promise-list strong { font-family: var(--mw-serif); font-weight: 600; font-size: 1.12rem; color: var(--mw-amber); letter-spacing: .08em; }
.promise-list span { color: var(--mw-muted); font-size: .8rem; line-height: 1.5; }


@media (min-width: 760px) {
  .hero { align-items: center; }
  .hero-copy { padding-inline-start: max(4rem, var(--mw-gutter)); padding-bottom: 4rem; }
  .hero::after { background: linear-gradient(90deg, rgba(12,10,8,.86) 0%, rgba(12,10,8,.55) 42%, rgba(12,10,8,.08) 75%), linear-gradient(180deg, rgba(0,0,0,0) 70%, var(--mw-ground)); }
  /* 縦長の写真なので、広い画面では右側に置く（引き伸ばさない） */
  .hero-photo { left: auto; width: min(46vw, 40rem); background-position: center 35%; }
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { flex-direction: column; }
}
/* 横向きの iPhone：写真の高さを抑えて文字を読みやすく */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100svh; align-items: center; }
  .hero::after { background: linear-gradient(90deg, rgba(12,10,8,.88) 0%, rgba(12,10,8,.6) 50%, rgba(12,10,8,.1) 85%); }
  .hero-photo { left: auto; width: 46vw; background-position: center 35%; }
  .hero-copy { max-inline-size: 30rem; padding: calc(3.6rem + env(safe-area-inset-top)) var(--mw-gutter) 1.4rem max(2rem, env(safe-area-inset-left)); gap: .6rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-lede { font-size: .95rem; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: mw-fade .2s linear both; } }
/* p19 の flow.css が入口の main に付ける上の余白を打ち消す（写真を画面の上端から出す） */
body.mw-landing main, body.mw-landing[data-flow] main:has(#start) { margin: 0 !important; max-width: none; padding: 0; }
/* P20：トップの写真の下の注記（見本の家の写真・人物は AI のイメージ） */
.hero { flex-wrap: wrap; align-content: flex-end; }
.hero-ai-note { inline-size: 100%; margin: -1.4rem 0 0; padding: 0 var(--mw-gutter) calc(1rem + env(safe-area-inset-bottom)); color: var(--mw-muted); font-size: .74rem; line-height: 1.6; opacity: .9; }
@media (min-width: 760px) {
  .hero-ai-note { position: absolute; right: 0; bottom: 0; inline-size: min(46vw, 40rem); margin: 0; padding: .55rem 1rem; text-align: center; color: #efe4cf;
    background: linear-gradient(180deg, rgba(12,10,8,0), rgba(12,10,8,.72)); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero-ai-note { position: absolute; right: 0; bottom: 0; inline-size: 46vw; margin: 0; padding: .4rem .8rem; text-align: center; color: #efe4cf; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
}
