/* ============================================================
   PC対応スタイル（index-pc.html 専用）
   styles.css を土台に、モバイルはそのまま／PC幅(1024px〜)で
   Figma「Desktop - 1」(2068:176) のレイアウトを再現
   ============================================================ */

/* ヒーロー背景は HTML の inline 指定をやめ CSS で切り替える */
.hero__bg {
  background-image: url("images/sale-hero-sp.jpg");
  background-size: cover;
  background-position: center bottom; /* 縦長写真の下部（建物）を見せ、上部の空にコピーを重ねる */
}

/* PC専用要素はモバイルでは非表示（チャートPC版） */
.section__chart--pc { display: none; }

/* ============================================================
   デスクトップ（1024px〜）
   ============================================================ */
@media (min-width: 1024px) {

  /* ページコンテナを全幅に解放 */
  .page {
    max-width: none;
    background: #fff;
  }

  /* ---------- Header（透過バー＋横並びナビ） ---------- */
  .header {
    align-items: center;
    padding: 0 40px;
  }
  .logo {
    margin: 26px 0 0 0;
    width: 150px;
  }
  .menu-btn { display: none; }

  /* ナビをヒーロー右上の横並びバーへ（オーバーレイを解除） */
  .nav-menu {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    padding: 22px 24px 0 0;
    z-index: 30;
  }
  .nav-menu__close { display: none; }
  /* 半透明の角丸パネルを敷いて視認性を確保 */
  .nav-menu__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 5px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  .nav-menu__list li,
  .nav-menu__list li:first-child {
    border: none;
  }
  /* 日本語ラベルの下に英語を小さく表示／黒文字で視認性アップ */
  .nav-menu__list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 13px;
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 1.3;
    color: #2b2824;
    text-shadow: none;
    white-space: nowrap;
  }
  .nav-menu__list a:hover {
    color: #c06a3c;
  }
  .nav-menu__list .en {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: 0.08em;
    opacity: 0.6;
  }
  /* 最後の「来場予約」をボタン風に */
  .nav-menu__list li:last-child a {
    margin-left: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #2b2824;
    color: #fff;
  }
  .nav-menu__list li:last-child a:hover {
    background: #463f37;
    color: #fff;
  }
  .nav-menu__list li:last-child .en { opacity: 0.7; }

  /* ---------- Hero（Figma 2068:356 / 1440×850 を忠実に再現） ---------- */
  /* 全要素を1440幅基準の比率（% と vw）で配置し、Figmaを等倍スケール */
  /* 高さは最大でも画面の高さに収め、URLを開いた瞬間にヒーロー全体が見えるように */
  .hero {
    aspect-ratio: 1440 / 850;
    max-height: 100vh;
  }
  .hero__bg {
    background-image: url("images/sale-hero-pc.jpg");
    /* 建物は左、右側はぼかし加工済み。右側にコピーを置くため左寄せで全面に敷く */
    background-size: cover;
    background-position: left center;
  }
  /* 右側の明るいぼかし部分にコピーを載せるため、PCは白のグラデーション＋濃い文字 */
  .hero__bg::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.75) 100%);
  }
  .hero { color: #1f2a33; }
  .hero__price { border-color: rgba(31, 42, 51, 0.55); }
  /* タイトル・サブを .hero 基準で個別に絶対配置（Figmaの中央寄せブロックを再現） */
  .hero__copy { display: contents; }
  .hero__title {
    position: absolute;
    top: 33.5%;             /* 285 / 850 */
    left: 76.07%;           /* 1095.5 / 1440（中心） */
    transform: translateX(-50%);
    width: max-content;
    z-index: 2;
    margin: 0;
    text-align: center;
    font-feature-settings: normal; /* palt無効：Figma(Yu Gothic)の字間に合わせる */
    font-size: min(4.861vw, 8.235vh); /* 70/1440幅 と 70/850高さ の小さい方 */
    letter-spacing: 0.15em; /* 10.5 / 70 */
    text-indent: 0;
    line-height: normal;
  }
  .hero__sub {
    position: absolute;
    top: 49.9%;              /* 424 / 850 */
    left: 76.07%;            /* タイトルと同じ中心にそろえる */
    transform: translateX(-50%);
    width: max-content;
    z-index: 2;
    margin: 0;
    text-align: center;
    font-feature-settings: normal; /* palt無効：Figmaの字間に合わせる */
    font-size: min(1.806vw, 3.059vh); /* 26/1440幅 と 26/850高さ の小さい方 */
    letter-spacing: 0.05em; /* 1.3 / 26 */
    line-height: 1.923;     /* 50 / 26 */
  }
  /* 販売価格：サブコピーの下、同じ中心線にそろえる */
  .hero__price {
    position: absolute;
    top: 71%;
    left: 76.07%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 2;
    margin: 0;
    font-size: min(1.389vw, 2.353vh); /* 20/1440幅 と 20/850高さ の小さい方 */
    padding: 0.4em 1.2em;
  }

  /* ---------- Concept（左テキスト＋右画像） ---------- */
  .concept {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 96px 40px;
  }
  .concept__text {
    flex: 1 1 0;
    padding: 0;
  }
  .concept__title {
    font-size: 36px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
  .concept__body {
    font-size: 16px;
    line-height: 34px;
  }
  .concept__img {
    flex: 1 1 0;
    width: 50%;
    margin-top: 0;
    object-fit: cover;
  }
  /* Message: 写真を左・テキストを右に反転 */
  .concept--message {
    flex-direction: row-reverse;
    padding-top: 0;
  }

  /* ---------- Locale（見出し＋左右段組みの本文・写真） ---------- */
  .locale {
    max-width: 1360px;
    margin: 0 auto;
    padding: 96px 40px 0;
  }
  .hero + .locale {
    padding-top: 65px;
  }
  .locale--reverse {
    padding-top: 120px;
    padding-bottom: 116px;
  }
  .locale__title {
    padding: 0;
    margin-bottom: 41px;
    font-size: 34px;
    letter-spacing: 0.17em;
    line-height: 1.64;
  }
  .locale__row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0;
  }
  .locale--reverse .locale__row {
    flex-direction: row-reverse;
  }
  .locale__body {
    padding: 0;
    flex: 0 1 617px;
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 43px;
    transform: translateY(-45px);
  }
  .locale--reverse .locale__body {
    transform: translate(40px, -100px);
  }
  .slideshow--sp {
    display: none;
  }
  .slideshow--pc {
    display: block;
    flex: 0 0 678px;
    width: 678px;
    height: 400px;
    aspect-ratio: auto;
  }
  .slideshow__caption {
    padding: 4px 12px;
    font-size: 12px;
  }
  /* 注記は写真の幅にそろえ、写真の真下に置く（1つ目は右、2つ目は左） */
  .locale__note {
    width: 678px;
    max-width: 100%;
    margin-left: auto;
    padding: 12px 0 0;
  }
  .locale--reverse .locale__note {
    margin-left: 0;
    margin-right: auto;
  }

  /* ---------- Beige sections（Spec / Furniture / Booking） ---------- */
  .section--beige {
    padding: 80px 0 96px;
  }
  .section__head {
    margin-bottom: 40px;
  }
  .section__en { font-size: 18px; }
  .section__ja { font-size: 36px; }
  /* チャートはPC専用画像に差し替え */
  .section__chart--sp { display: none; }
  .section__chart--pc {
    display: block;
    width: auto;
    height: auto;
    /* ビューポートが狭い場合（1920×1080の150%表示≒1280px等）でも
       左右にはみ出さないよう、画面幅から余白を引いた値で頭打ちにする */
    max-width: min(1360px, calc(100% - 80px));
    margin: 0 auto;
  }

  /* ---------- 物件の特徴（項目／仕様／ポイントの3列） ---------- */
  .spec-list {
    max-width: min(1360px, calc(100% - 80px));
    margin: 0 auto;
  }
  .spec-list__row {
    grid-template-columns: 200px 1fr;
    border-bottom-width: 4px;
  }
  .spec-list__row dt {
    padding: 20px 12px;
    font-size: 17px;
    letter-spacing: 0.2em;
  }
  .spec-list__row dd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: center;
    column-gap: 48px;
    padding: 22px 36px;
  }
  .spec-list__spec {
    margin: 0;
    font-size: 16px;
  }
  .spec-list__point {
    font-size: 14px;
  }

  /* ---------- 物件概要・家具付き販売について ---------- */
  .outline {
    padding: 96px 40px;
  }
  .outline__lead,
  .outline__table {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }
  .outline__lead {
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 34px;
  }
  .outline__row { padding: 16px 0; gap: 24px; }
  .outline__row dt { flex-basis: 180px; font-size: 15px; line-height: 26px; }
  .outline__row dd { font-size: 15px; line-height: 26px; }
  .outline__date {
    max-width: 960px;
    margin: 0 auto 28px;
    padding: 12px 20px;
    font-size: 16px;
  }
  .outline__date-item { display: inline; }
  .outline__date-sep { display: inline; }

  /* ---------- Living Experience ---------- */
  .living {
    padding: 96px 0;
  }
  .living__head {
    max-width: 1360px;
    margin: 0 auto 56px;
    padding: 0 40px;
  }
  .living__title { font-size: 34px; }
  .living__lead {
    font-size: 16px;
    line-height: 34px;
    max-width: 760px;
  }

  /* ---------- Scenes（左右交互の2カラム） ---------- */
  .scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    align-items: center;
    max-width: 1360px;
    margin: 0 auto;
    padding: 48px 40px;
  }
  .scene__title {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 24px;
    font-size: 34px;
    line-height: 1.5;
  }
  .scene__body {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 16px;
    line-height: 34px;
  }
  /* グリッド配置の対象は「単一画像」と「重ね画像コンテナ」だけに限定。
     重ね画像の中の back/front には触れない（styles.css の段違い配置を活かす） */
  .scene__img--right,
  .scene__img--left,
  .scene__images {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
  }
  /* 単一画像はカラム幅いっぱい（Figma rect 584x406） */
  .scene__img--right,
  .scene__img--left {
    width: 100%;
    aspect-ratio: 584 / 406;
    margin: 0;
  }
  /* 偶数番（Scene 02 / 04）は画像を左・テキストを右へ反転 */
  .scene:nth-of-type(even) .scene__title,
  .scene:nth-of-type(even) .scene__body {
    grid-column: 2;
  }
  .scene:nth-of-type(even) .scene__img--right,
  .scene:nth-of-type(even) .scene__img--left,
  .scene:nth-of-type(even) .scene__images {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  /* Scene 01：PCは「奥=右上・手前=左下」の段違い配置（Figma Desktop 準拠） */
  .scene:first-of-type {
    align-items: start;
    /* 背の高い重ね画像で本文が下へ押されないよう、余白は3行目(1fr)が吸収。
       タイトル・本文は上詰めにし、他Sceneと同等の行間にそろえる */
    grid-template-rows: max-content max-content 1fr;
  }
  .scene:first-of-type .scene__images { grid-row: 1 / 4; }
  /* 上詰めだけだと詰まりすぎるため、本文に上マージンを足して他Sceneと同程度の間隔に */
  .scene:first-of-type .scene__body { margin-top: 60px; }
  .scene__images--overlap {
    margin: 0;
    width: 100%;
  }
  /* 奥（LDK）：右端そろえ・幅広（Figma Rectangle29 584px / x816） */
  .scene:first-of-type .scene__img--back {
    width: 86%;          /* 584 / 680(画像領域) */
    margin: 0 0 0 14%;   /* 右へ寄せて右端フラッシュ */
    aspect-ratio: 584 / 406;
  }
  /* 手前（キッチン）：左端そろえ・幅狭・少し下げる（Figma Rectangle30 501px / x720） */
  .scene:first-of-type .scene__img--front {
    width: 73.7%;        /* 501 / 680 */
    margin: 4% 0 0 0;    /* 左端そろえ＋上に約24px相当の隙間 */
    aspect-ratio: 501 / 348;
  }

  /* ---------- 来場予約 CTA ---------- */
  .reserve-cta__panel {
    /* PCは全幅。上端のV字を画面幅に比例させてスケール（中央が下にくぼむ） */
    clip-path: polygon(0 1.6vw, 50% 9vw, 100% 1.6vw, 100% 100%, 0 100%);
    padding: calc(9vw + 56px) 40px 100px;
  }
  .reserve-cta__title { font-size: 32px; }
  .reserve-cta__text {
    font-size: 16px;
    line-height: 34px;
  }
  .reserve-cta__btn {
    max-width: 560px;
    font-size: 26px;
    padding: 22px 0;
  }
  .reserve-cta__tel-num { font-size: 48px; }

  /* ---------- Access（地図＋表の2カラム） ---------- */
  .access {
    padding: 96px 40px;
  }
  .access > .section__head { margin-bottom: 48px; }
  .access {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
  }
  .access > .section__head { grid-column: 1 / -1; }
  .access__map {
    grid-column: 1;
    width: 100%;
    margin: 0;
  }
  .access__table {
    grid-column: 2;
    padding: 0;
  }
  .access__row { padding: 18px 0; }
  .access__row dt { flex-basis: 80px; font-size: 16px; }
  .access__row dd { font-size: 16px; line-height: 28px; }
  .access__map-embed {
    grid-column: 1 / -1;
    width: 100%;
    margin: 48px 0 0;
    aspect-ratio: 16 / 7;
  }
  .access .cg-note { grid-column: 1 / -1; }

  /* ---------- Floor Plan（1F/2F/RF が1枚に入った横並び版） ---------- */
  .floorplan {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 96px 40px;
  }
  .floorplan > .section__head {
    flex-basis: 100%;
    margin-bottom: 16px;
  }
  .floorplan__img {
    width: calc((100% - 64px) / 3);
    margin: 0;
  }
  .floorplan__img--sp { display: none; }
  .floorplan__img--pc {
    display: block;
    width: 100%;
    margin: 0;
  }
  .floorplan__note {
    flex-basis: 100%;
    max-width: 1360px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    text-align: center;
  }

  /* ---------- 注釈（完成予想CG / PC） ---------- */
  .cg-note { font-size: 12px; }
  .cg-note--hero {
    right: 24px;
    bottom: 16px;
    color: rgba(31, 42, 51, 0.75);
  }
  .living .cg-note {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 40px 0;
    /* Figma(Desktop-1)どおり、PCでは左寄せ・1行 */
    text-align: left;
  }
  /* PCではモバイル用の改行を無効化して1行に */
  .living .cg-note__sp-br { display: none; }
  .access .cg-note {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px 0 0;
  }

  /* ---------- 来店フォーム ---------- */
  .booking { padding: 80px 0 96px; }
  .booking__form {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 40px;
  }

  /* ---------- Footer（横一列：ロゴ／会社情報／協力2社ロゴ） ---------- */
  .footer--mh {
    padding: 0;
  }
  .footer__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 29px;
    max-width: 1288px;
    margin: 0 auto;
    padding: 27px 20px;
  }
  .footer--mh .footer__logo {
    width: 272px;
    margin: 0;
  }
  .footer__info {
    margin-right: 44px; /* gap 29px と合わせて Figma の 73px */
    text-align: left;
  }
  .footer--mh .footer__info p {
    font-size: 15px;
    line-height: 23px;
  }
  .footer__partners {
    gap: 41px;
    margin-top: 0;
  }
  .footer__partner--hamasho { width: 256px; }
  .footer__partner--imahouse { width: 244px; }
  .footer__copy {
    position: absolute;
    right: 20px;
    bottom: 12px;
    margin: 0;
    font-size: 15px;
    line-height: 24px;
    text-align: right;
  }
}

/* ============================================================
   中間幅（1024〜1440px / 1920×1080 を150%表示した時など）
   ナビが詰まってロゴと被る・見出しが切れるのを防ぐ
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1440px) {
  .nav-menu { padding: 18px 18px 0 0; }
  .nav-menu__list { padding: 4px 6px; }
  .nav-menu__list a {
    padding: 5px 9px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }
  .nav-menu__list .en { font-size: 8px; }
  .nav-menu__list li:last-child a { padding: 7px 13px; }
  /* ロゴをやや小さくして横並びの余白を確保 */
  .logo { width: 120px; }
}
