/* 신정더폴: 기존 PC 페이지 및 원본 기능을 그대로 두는 모바일 세로형 구성 (2026-11-08) */
.sj-mobile-storynav,
.sj-long-section { display: none; }

@media (max-width: 900px) {
  html { scroll-padding-top: 12px; }
  body.main .main_container {
    display: flex!important;
    flex-direction: column!important;
    align-items: stretch!important;
    min-height: 0!important;
    height: auto!important;
    width: 100%!important;
    overflow: visible!important;
    background: #fff;
  }
  body.main .main_container > * { box-sizing: border-box; max-width: 100%; min-width: 0; flex-shrink: 0; }
  body.main .main_container > .sj-mobile-hero { order: 0; }
  body.main .main_container > .sj-mobile-storynav { order: 1; }
  body.main .main_container > .sj-ls-offer { order: 2; }
  body.main .main_container > .sj-ls-overview { order: 3; }
  body.main .main_container > .sj-mobile-slide-intro { order: 4; }
  body.main .main_container > #main-slider { order: 5; }
  body.main .main_container > .sj-ls-location { order: 6; }
  body.main .main_container > .sj-ls-complex { order: 7; }
  body.main .main_container > .sj-ls-community { order: 8; }
  body.main .main_container > .sj-ls-type { order: 9; }
  body.main .main_container > .sj-ls-visit { order: 10; }
  body.main .main_container > .main_summary { order: 11; }
  body.main .main_container > .sj-mobile-quicknav { display: none!important; }
  body.main .sj-mobile-slide-intro { padding-top: 64px!important; }
  body.main #main-slider { flex: 0 0 auto!important; }
  body.main .sj-mobile-storynav {
    display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
    padding: 13px 17px 14px; background: #f5f2ed; overscroll-behavior-x: contain;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  body.main .sj-mobile-storynav a {
    display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
    scroll-snap-align: start; text-decoration: none!important; color: #1c3555!important;
    background: #fff; min-height: 39px; padding: 0 14px; border: 1px solid #e0dcd5;
    font-size: 13px; font-weight: 700; white-space: nowrap; border-radius: 22px;
  }
  body.main .sj-mobile-storynav a:focus-visible,
  body.main .sj-long-section a:focus-visible,
  body.main .sj-long-section button:focus-visible { outline: 3px solid #cda979; outline-offset: 2px; }
  body.main .sj-long-section {
    display: block!important; width: 100%!important; padding: 67px 18px 66px!important;
    overflow: hidden; scroll-margin-top: 16px;
    color: #172e4e; background: #fff; word-break: keep-all;
    font-family: 'Noto Sans KR', 'Noto Sans', Arial, sans-serif;
  }
  body.main .sj-long-section:nth-of-type(even) { background: #faf9f7; }
  body.main .sj-ls-overview, body.main .sj-ls-complex,
  body.main .sj-ls-type, body.main .sj-ls-visit { background: #f8f9fb!important; }
  body.main .sj-section-heading { margin: 0 2px 30px; }
  body.main .sj-eyebrow {
    display: flex; gap: 10px; align-items: center; color: #a17b50;
    font-size: 11px!important; font-weight: 800; letter-spacing: 2px; margin: 0 0 16px;
  }
  body.main .sj-eyebrow span { font-size: 13px; font-weight: 900; letter-spacing: 0; }
  body.main .sj-section-heading h2 {
    color: #172e4e!important; font-size: clamp(29px, 8vw, 39px)!important;
    font-weight: 800!important; letter-spacing: -1.5px; line-height: 1.3!important; margin: 0 0 14px!important;
  }
  body.main .sj-section-lead {
    color: #627084!important; font-size: clamp(14px, 3.7vw, 16px)!important;
    line-height: 1.8!important; font-weight: 450; margin: 0!important;
  }
  body.main .sj-long-section .sj-caption {
    color: #747d8b!important; margin: 14px 0 20px!important;
    font-size: 11px!important; line-height: 1.85!important;
  }
  body.main .sj-figure {
    width: 100%; position: relative; margin: 0 0 22px!important;
    overflow: hidden; border: 1px solid #e9e9e9; background: #fff; border-radius: 10px;
    box-shadow: 0 7px 22px rgba(17,38,69,.035);
  }
  body.main .sj-figure img {
    display: block; box-sizing: border-box; max-width: 100%!important;
    width: 100%!important; height: auto!important; object-fit: contain!important;
    margin: 0 auto; border: 0;
  }
  body.main .sj-figure figcaption {
    display: block; margin: 0; padding: 13px 14px 3px;
    font-size: 12px!important; line-height: 1.7; color: #67758a; font-weight: 450;
  }
  body.main .sj-figure-zoom {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 46px; padding: 0 16px; box-sizing: border-box;
    font-size: 14px!important; font-weight: 750; color: #1c3e68!important;
    background: #f2f5f8; text-decoration: none!important;
  }
  body.main .sj-figure-zoom span { font-size: 20px; color: #a78156; }
  body.main .sj-text-link {
    display: flex; justify-content: space-between; align-items: center;
    text-decoration: none!important; font-size: 15px!important; font-weight: 750;
    color: #1e416b!important; padding: 15px 17px; border: 1px solid #bdc9d7;
    border-radius: 5px; margin: 12px 0 0;
  }
  body.main .sj-long-section .sj-subheading { margin: 36px 3px 18px; }
  body.main .sj-subheading span, body.main .sj-unit-title > span {
    font-size: 10px; font-weight: 750; letter-spacing: 2px; color: #aa8b65;
  }
  body.main .sj-subheading h3, body.main .sj-unit-title h3 {
    margin: 7px 0 0!important; color: #1c3555!important; font-size: 22px!important;
    font-weight: 800; line-height: 1.4;
  }
  /* 핵심 분양 안내 */
  body.main .sj-offer-hero {
    background: linear-gradient(155deg,#0a203c 0%,#1a3d64 72%,#435b75 100%);
    color: #fff; padding: 33px 24px 35px; border-radius: 12px 12px 0 0;
  }
  body.main .sj-offer-label { margin: 0 0 17px!important; color: #e3c7a2!important; font-size: 11px; letter-spacing: 1.8px; }
  body.main .sj-offer-hero h3 { color: #fff; font-size: 27px; line-height: 1.35; letter-spacing: -1.2px; margin: 0 0 18px!important; font-weight: 450; }
  body.main .sj-offer-hero h3 strong { color: #f1d3a1; font-weight: 900; }
  body.main .sj-offer-hero > p:last-child { font-size: 13px; line-height: 1.8; color: #cbd9e7; margin: 0; }
  body.main .sj-benefits { display: grid; grid-template-columns: 1fr; gap: 1px; background: #e1e7ec; border-radius: 0 0 12px 12px; overflow: hidden; }
  body.main .sj-benefits > div { background: #f9fafb; min-height: 80px; display: grid; grid-template-columns: 43px 1fr; grid-template-rows: 1fr 1fr; padding: 16px 18px; box-sizing: border-box; align-items: center; gap: 1px 9px; }
  body.main .sj-benefits span { grid-row: 1 / span 2; font-size: 15px; font-weight: 800; color: #a78156; }
  body.main .sj-benefits strong { font-size: 18px; font-weight: 800; color: #203c61; }
  body.main .sj-benefits small { font-size: 12px; color: #718096; }
  body.main .sj-strong-link {
    display: flex; align-items: center; justify-content: space-between;
    box-sizing: border-box; min-height: 60px; padding: 16px 20px;
    font-size: 16px; color: #fff!important; font-weight: 800; border-radius: 7px;
    background: #183b63; text-decoration: none!important;
  }
  /* 사업개요 정보 */
  body.main .sj-project-info { display: grid; gap: 1px; overflow: hidden; margin: 0 0 22px; border: 1px solid #dce3eb; border-radius: 9px; background: #dce3eb; }
  body.main .sj-project-info > div { background: #fff; padding: 16px 17px; display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: start; }
  body.main .sj-project-info span { color: #7c8794; font-size: 12px; font-weight: 600; line-height: 1.8; }
  body.main .sj-project-info strong { color: #1b3557; font-size: 14px; line-height: 1.8; font-weight: 700; }
  body.main .sj-location-points { display: grid; gap: 10px; margin: 0 0 27px; }
  body.main .sj-location-points > div { padding: 17px 19px; border: 1px solid #e4e9ee; border-left: 3px solid #bd9872; background: #f9fafb; }
  body.main .sj-location-points b { display: block; color: #a9835e; letter-spacing: 1.4px; font-size: 10px; margin: 0 0 8px; }
  body.main .sj-location-points strong { display: block; color: #1c365b; font-size: 17px; line-height: 1.35; }
  body.main .sj-location-points span { display: block; color: #718194; font-size: 12px; line-height: 1.7; margin-top: 6px; }
  body.main .sj-mapcard { padding: 22px 0 0; }
  body.main .sj-mapcard h3 { font-size: 23px; font-weight: 800; color: #1c3555; margin: 0 0 10px; }
  body.main .sj-mapcard > p { font-size: 14px; color: #65758a; margin: 0 0 18px; }
  /* 4개 타입 선택과 인테리어 */
  body.main .sj-type-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 0 0 15px; }
  body.main .sj-type-tabs button { min-width: 0; min-height: 50px; padding: 8px 2px; background: #f4f5f7; border: 1px solid #d1d8e1; border-radius: 4px; color: #304869; font-size: clamp(12px,3.4vw,15px); font-weight: 750; cursor: pointer; }
  body.main .sj-type-tabs button[aria-selected="true"] { color: #fff; border-color: #1f3b63; background: #1f3b63; }
  body.main .sj-plan-panel[hidden] { display: none!important; }
  body.main .sj-plan-panel { display: block; }
  body.main .sj-plan-pdf { margin-top: -10px; margin-bottom: 20px; padding: 12px 16px; min-height: 47px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; background: #e8edf4; color: #1d3b61!important; border-radius: 5px; font-size: 14px; font-weight: 750; text-decoration: none!important; }
  body.main .sj-unit-title { padding: 22px 2px 10px; margin: 14px 0 8px; }
  body.main .sj-unit-title > p { font-size: 13px; line-height: 1.8; color: #798494; margin-top: 10px; }
  /* 공급표는 글자가 작으므로 미리보기 + 원본 링크 */
  body.main .sj-sales-panel { border: 1px solid #dce3ea; border-radius: 10px; padding: 22px 17px 17px; margin-bottom: 11px; background: #fff; }
  body.main .sj-sales-panel > span { font-size: 10px; letter-spacing: 1.7px; color: #a9835d; font-weight: 750; }
  body.main .sj-sales-panel h3 { font-size: 22px!important; color: #1d385e!important; margin: 8px 0 12px; }
  body.main .sj-sales-panel p { font-size: 13px; line-height: 1.75; color: #6a788a; margin: 0 0 17px; }
  body.main .sj-supply-preview { position: relative; width: 100%; height: 260px; overflow: hidden; border: 1px solid #eef0f3; background: #fff; }
  body.main .sj-supply-preview img { display: block; width: 100%; max-width: 100%; height: auto; }
  body.main .sj-supply-preview::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 95px; pointer-events: none; background: linear-gradient(transparent,#fff); }
  body.main .sj-sales-panel > a { display: flex; justify-content: space-between; text-decoration: none!important; padding: 16px 4px 5px; color: #1b3b64!important; font-weight: 800; font-size: 15px; }
  body.main .sj-sales-actions { display: grid; gap: 9px; }
  body.main .sj-sales-actions a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 11px 16px; color: #1e4069!important; background: #eff2f5; font-size: 14px; font-weight: 750; border-radius: 5px; text-decoration: none!important; }
  /* 최종 방문예약 CTA. 실제 신청 폼은 기존 컴포넌트를 그대로 사용 */
  body.main .sj-visit-card { padding: 34px 23px; background: #153253; color: white; border-radius: 11px; }
  body.main .sj-visit-card > span { font-size: 10px; letter-spacing: 1.8px; color: #d7b994; }
  body.main .sj-visit-card h3 { color: #fff; font-weight: 800; font-size: 27px; margin: 14px 0 15px; }
  body.main .sj-visit-card p { font-size: 14px; line-height: 1.8; color: #e1e8ef; margin: 0 0 20px; }
  body.main .sj-visit-primary { display: flex; justify-content: space-between; align-items: center; background: #d7ba95; color: #163253!important; border-radius: 5px; text-decoration: none!important; font-size: 16px; font-weight: 850; padding: 19px; margin: 0 0 10px; }
  body.main .sj-visit-call { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff!important; font-size: 15px; padding: 15px 4px; border: 1px solid #adc0d2; border-radius: 5px; text-decoration: none!important; }
  body.main .sj-visit-call strong { font-size: 20px; letter-spacing: -.3px; }
  @media (prefers-reduced-motion: reduce) { .sj-mobile-storynav { scroll-behavior: auto; } }
}
@media (max-width: 350px) {
  body.main .sj-long-section { padding-left: 14px!important; padding-right: 14px!important; }
  body.main .sj-type-tabs { gap: 3px; }
  body.main .sj-type-tabs button { font-size: 12px; }
  body.main .sj-benefits strong { font-size: 17px; }
  body.main .sj-section-heading h2 { font-size: 29px!important; }
}
