/* ============================================================
   モデルハウス LP — Figma node 2:4 を再現
   モバイルファースト（基準幅 393px）/ 中央寄せレスポンシブ
   ============================================================ */

:root {
  --beige: #ebe8e2;
  --ink: #000000;
  --page-max: 430px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }
/* メニュー展開中は背面スクロールを固定 */
body.nav-open { overflow: hidden; }

body {
  background: #cfccc6;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-feature-settings: "palt" 1;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

/* ページコンテナ（スマホ幅で中央寄せ） */
.page {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

/* ---------- Header ---------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.logo {
  display: block;
  margin: 15px 0 0 18px;
  width: 119px;
}
.logo img { width: 100%; height: auto; }

.menu-btn {
  width: 76px;
  height: 76px;
  background: #d9d9d9;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
/* ハンバーガーの3本線（Figma: 48.5×41 / stroke 4） */
.menu-btn__bar {
  display: block;
  width: 48px;
  height: 4px;
  background: #fff;
}

/* ---------- ナビゲーションメニュー（ページ内リンク） ---------- */
.nav-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-max);
  height: 100%;
  height: 100dvh;
  background: rgba(43, 40, 36, 0.97);
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-menu__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}
.nav-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}
.nav-menu__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-menu__list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-menu__list a {
  display: block;
  padding: 18px 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.2em;
  transition: color 0.2s ease;
}
.nav-menu__list a:hover {
  color: #e08a5f;
}
.nav-menu__list .en {
  display: block;
  margin-top: 4px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  opacity: 0.55;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 393 / 852;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: 126% auto; /* 幅基準で拡大し画像の縦横比を保つ */
  background-position: 49% 71%;
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}

.hero__copy {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
}

.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: 40px;
  letter-spacing: 0.16em;
  line-height: normal;
  text-align: center;
}

.hero__sub {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.05em;
  line-height: 42px;
  text-align: center;
}

/* 販売価格（ヒーロー内） */
.hero__price {
  margin: 6px 0 0;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
}

/* ---------- Concept（3社の連携 / つくり手のメッセージ） ---------- */
.concept {
  padding: 56px 0 0;
}
.concept__text {
  padding: 0 20px;
}
.concept__title {
  margin: 0 0 18px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.17em;
  line-height: 38px;
}
.concept__body {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 29px;
}
.concept__img {
  width: 100%;
  margin-top: 24px;
}

/* Message: 縦長ポートレートを横長の帯としてトリミング */
.concept--message .concept__img {
  aspect-ratio: 398 / 265;
  object-fit: cover;
  object-position: center 28%;
}

/* ---------- Locale（杉並区松庵 / 将来性のある土地） ---------- */
.locale {
  padding: 50px 0 0;
  display: flex;
  flex-direction: column;
}
.locale--reverse {
  padding-top: 90px;
  padding-bottom: 20px;
}
.locale__title {
  margin: 0;
  padding: 0 20px 27px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.17em;
  line-height: normal;
}
.locale__row {
  display: flex;
  flex-direction: column;
  gap: 27px;
}
.locale__body {
  margin: 0;
  padding: 0 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 29px;
}
/* ---------- Slideshow（コンセプト画像） ---------- */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 393 / 295;
  overflow: hidden;
}
.slideshow--pc {
  display: none;
}
.slideshow__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 写真キャプション（施設名・物件からの距離・撮影時期） */
.slideshow__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.slideshow__slide:nth-child(1) { animation: slideshow-fade-1 32s infinite; }
.slideshow__slide:nth-child(2) { animation: slideshow-fade-2 32s infinite; }
.slideshow__slide:nth-child(3) { animation: slideshow-fade-3 32s infinite; }
.slideshow__slide:nth-child(4) { animation: slideshow-fade-4 32s infinite; }

@keyframes slideshow-fade-1 {
  0%   { opacity: 1; }
  18%  { opacity: 1; }
  25%  { opacity: 0; }
  93%  { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes slideshow-fade-2 {
  0%   { opacity: 0; }
  18%  { opacity: 0; }
  25%  { opacity: 1; }
  43%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes slideshow-fade-3 {
  0%   { opacity: 0; }
  43%  { opacity: 0; }
  50%  { opacity: 1; }
  68%  { opacity: 1; }
  75%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes slideshow-fade-4 {
  0%   { opacity: 0; }
  68%  { opacity: 0; }
  75%  { opacity: 1; }
  93%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- Beige sections (Spec / Furniture / Booking) ---------- */
.section--beige {
  background: var(--beige);
  padding: 48px 0 56px;
}
.section__head {
  text-align: center;
  margin-bottom: 28px;
}
.section__en {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: 0.03em;
}
.section__ja {
  margin: 0;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.19em;
}
.section__chart {
  width: calc(100% - 16px);
  margin: 0 auto;
}

/* ---------- 物件の特徴 ---------- */
.spec-list {
  margin: 0 8px;
}
.spec-list__row {
  display: grid;
  grid-template-columns: 76px 1fr;
  border-bottom: 3px solid var(--beige);
}
.spec-list__row dt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  background: #cfcfcf;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: center;
}
.spec-list__row dd {
  margin: 0;
  padding: 14px 14px 16px;
  background: #f2f2f2;
}
.spec-list__spec {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.spec-list__point {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: #333;
}

/* ---------- 物件概要・家具付き販売について ---------- */
.outline {
  padding: 56px 0 64px;
  background: #fff;
}
.outline.section--beige {
  background: var(--beige);
}
.outline__lead {
  margin: 0 0 24px;
  padding: 0 24px;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 29px;
}
.outline__table {
  margin: 0;
  padding: 0 24px;
}
.outline__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #c9c5bd;
}
.outline__row:first-child { border-top: 1px solid #c9c5bd; }
.outline__row dt {
  flex: 0 0 106px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 22px;
}
.outline__row dd {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 22px;
}
/* 情報公開日・次回更新予定日（見出し直下に見やすい大きさで表示） */
.outline__date {
  margin: 0 24px 20px;
  padding: 10px 14px;
  border: 1px solid #c9c5bd;
  background: #f7f6f3;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
/* スマホは1項目1行、PCは「／」区切りで1行 */
.outline__date-item { display: block; }
.outline__date-sep { display: none; margin: 0 0.6em; }

/* ---------- Living Experience ---------- */
.living {
  padding: 64px 0;
}
.living__head {
  padding: 0 20px;
  margin-bottom: 40px;
}
.living__title {
  margin: 0 0 22px;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.17em;
}
.living__lead {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 29px;
}

/* ---------- Scenes ---------- */
/* 画像は枠の左右端までフルブリードさせるため、横paddingはテキストにのみ付ける */
.scene {
  padding: 40px 0;
}
.scene--beige {
  background: var(--beige);
}
.scene__title {
  margin: 0 20px 26px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.07em;
  line-height: 35px;
}
.scene__title span { display: block; }

.scene__body {
  margin: 28px 20px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 29px;
}

/* Scene 02/03/04 の写真（318x317 ≒ 正方形）。枠の左右端ぴったりに配置 */
.scene__img {
  display: block;
  object-fit: cover;
}
.scene__img--right {
  width: 80.9%;       /* 318 / 393 */
  aspect-ratio: 318 / 317;
  margin-left: auto;  /* 右端フラッシュ */
}
.scene__img--left {
  width: 80.9%;
  aspect-ratio: 318 / 317;
  margin-right: auto; /* 左端フラッシュ */
}

/* Scene 01 — 2枚の写真をオーバーラップ（Figma座標を再現） */
.scene__images--overlap {
  position: relative;
  margin-bottom: 26px;
}
.scene__img--back {
  width: 91.6%;            /* 360 / 393、左端フラッシュ */
  aspect-ratio: 360 / 245;
  object-fit: cover;
  margin: 0;
}
.scene__img--front {
  width: 69%;              /* 271 / 393 */
  aspect-ratio: 271 / 202;
  object-fit: cover;
  position: relative;
  margin: 2.8% 0 0 31%; /* 11px下げ＋左122px(=31%) → 右端フラッシュ・重ねない */
  z-index: 2;
}

/* ---------- 来場予約 CTA ---------- */
.reserve-cta {
  padding: 0;
  background: #fff;
}
/* ベージュは全幅。上端中央が下にくぼむ、浅く広い下向きV字（ブランドの装飾モチーフ） */
.reserve-cta__panel {
  position: relative;
  background: var(--beige);
  padding: 92px 24px 64px;
  text-align: center;
  /* 左右端(11px)から中央(62px)へ向かう下向きV */
  clip-path: polygon(0 11px, 50% 62px, 100% 11px, 100% 100%, 0 100%);
}
.reserve-cta__title {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.17em;
}
.reserve-cta__title:not(:first-child) {
  margin-top: 48px;
}
.reserve-cta__text {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 29px;
}
.reserve-cta__btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 32px auto 0;
  padding: 18px 0;
  background: #cb4719;
  color: #fff;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.17em;
  text-align: center;
  text-decoration: none;
}
.reserve-cta__btn:hover { background: #b13d14; }
.reserve-cta__tel {
  margin-top: 40px;
}
.reserve-cta__tel-label {
  margin: 0 0 4px;
  font-size: 14px;
}
.reserve-cta__tel-num {
  display: block;
  font-weight: 500;
  font-size: 37px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.reserve-cta__tel-note {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 29px;
}

/* ---------- Access ---------- */
.access {
  padding: 56px 0 64px;
  background: #fff;
}
.access__map {
  width: calc(100% - 90px);
  margin: 0 auto 32px;
}
.access__table {
  margin: 0;
  padding: 0 30px;
}
.access__map-embed {
  width: calc(100% - 90px);
  margin: 28px auto 0;
  aspect-ratio: 4 / 3;
}
.access__map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.access__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #c9c5bd;
}
.access__row:first-child { border-top: 1px solid #c9c5bd; }
.access__row dt {
  flex: 0 0 59px;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.access__row dd {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 22px;
}

/* ---------- Floor Plan ---------- */
.floorplan {
  padding: 56px 0 64px;
  background: #fff;
}
.floorplan__img {
  width: calc(100% - 80px);
  margin: 0 auto 28px;
}
.floorplan__img:last-child { margin-bottom: 0; }
/* 1枚もの図面（SP＝縦積み版／PC＝横並び版） */
.floorplan__img--sp {
  display: block;
  width: calc(100% - 40px);
  margin: 0 auto;
}
.floorplan__img--pc { display: none; }
.floorplan__note {
  margin: 20px 0 0;
  padding: 0 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ---------- 来店フォーム ---------- */
.booking {
  padding: 48px 0 64px;
}
.booking__form {
  padding: 0 24px;
}
.field {
  margin-bottom: 30px;
}
.field > label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.req {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  background: #cb4719;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  vertical-align: middle;
}
.opt {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  background: #9a9a9a;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  vertical-align: middle;
}
.field__hint {
  display: block;
  margin-top: 6px;
  color: #cb4719;
  font-size: 12px;
  line-height: 1.5;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdb9b1;
  border-radius: 2px;
  box-sizing: border-box;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #cb4719;
}
.field textarea { resize: vertical; }
/* 希望日時（日付＋時間）の横並びレイアウト */
.field__inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.field__inline-group > input[type="date"] {
  flex: 2 1 200px;
}
.field__inline-group > select {
  flex: 1 1 150px;
}
.field--inline .field__inline-group {
  display: flex;
  gap: 16px;
}
.field--inline .field__inline-group span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.field--inline .field__inline-group input {
  width: 80px;
}
.booking__note {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 24px;
  min-height: 1px;
}
.booking__note.is-error { color: #cb4719; }
.booking__note.is-success { color: #2a7a3b; }
.booking__submit {
  display: block;
  width: 100%;
  padding: 18px 0;
  background: #cb4719;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.booking__submit:hover { background: #b13d14; }
.booking__submit:disabled {
  background: #c9a99c;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */
.footer {
  background: #b9b5ae;
  color: #fff;
  text-align: center;
  padding: 40px 20px 48px;
}
.footer__logo {
  width: 198px;
  margin: 0 auto 24px;
}
.footer__info p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 24px;
}

/* モデルハウス版フッター（協力2社ロゴ＋コピーライト） */
.footer--mh {
  padding: 24px 20px;
}
.footer--mh .footer__logo {
  margin: 0 auto 18px;
}
.footer--mh .footer__info p {
  line-height: 22px;
}
.footer__partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  margin-top: 22px;
}
.footer__partner {
  display: block;
  height: auto;
}
.footer__partner--hamasho { width: 165px; }
.footer__partner--imahouse { width: 159px; }
.footer__copy {
  margin: 26px 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 19px;
}

/* ---------- 注釈（完成予想CG） ---------- */
.cg-note {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: right;
  color: #333;
}
.living .cg-note { padding: 14px 20px 0; }
/* 周辺写真の距離・徒歩分数の算出基準（起点・着点の明示） */
.locale__note {
  padding: 10px 20px 0;
  text-align: left;
}
.access .cg-note { padding: 10px 30px 0; }
/* ヒーロー画像上に重ねる白注釈（右下隅） */
.cg-note--hero {
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- レスポンシブ（デスクトップでも中央のスマホ幅を維持） ---------- */
@media (min-width: 431px) {
  body { padding: 0; }
}
