/*
 * 첫 화면 한 장(원페이지) 전용. 하위 페이지는 style.css 만 쓴다.
 * 구성은 참고 사이트의 순서(비주얼 → 계약조건 → 등록 → 개요 → 입지 → 단지 → 세대 → 커뮤니티 → 견본주택)를,
 * 색·서체는 theme-jeil.css 토큰을 따른다.
 */
.op { margin-top: var(--header-h); color: var(--c-text); }
.op-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.op-sec { padding: 110px 0; }
.op-soft { background: var(--c-bg-soft); }
.op-dark { background: #1c1a1a; color: #d9d4ce; }
.op-dark .op-tit { color: #fff; }
.op-en { margin: 0 0 12px; font-family: var(--font-en); font-size: 15px; letter-spacing: .22em; color: var(--c-accent); }
.op-tit { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; font-weight: 600; color: var(--c-ink); letter-spacing: -.02em; word-break: keep-all; }
.op-tit b { color: var(--c-primary); font-weight: 800; }
.op-dark .op-tit b { color: #e0525b; }
.op-lead { margin: 0 0 40px; font-size: 18px; line-height: 1.7; word-break: keep-all; }
.op-note { margin: 22px 0 0; font-size: 13px; line-height: 1.7; color: var(--c-muted); word-break: keep-all; }
.op-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; }
.op-more a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 1px solid var(--c-line); border-radius: 22px; font-size: 15px; color: var(--c-ink); background: #fff; transition: border-color .2s, color .2s; }
.op-more a::after { content: "→"; margin-left: 8px; color: var(--c-primary); }
.op-more a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.op-dark .op-more a { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }

/* 버튼 */
.op-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; padding: 0 30px; border-radius: 30px; font-size: 17px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.op-btn-red { background: var(--c-primary); color: #fff; }
.op-btn-red:hover { background: var(--c-primary-dark); }
.op-btn-line { border: 1px solid currentColor; color: inherit; }
.op-btn-line:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ① 비주얼: 사진의 글씨(위쪽)를 가리지 않게 정보는 아래 띠에 둔다 */
.op-hero { position: relative; background: #dfe7ec; }
.op-hero-bg img { display: block; width: 100%; height: auto; aspect-ratio: 1920/1000; object-fit: cover; }
.op-hero-panel { background: linear-gradient(180deg, #24201d 0%, #1c1a1a 100%); color: #e9e2dc; padding: 44px 0 50px; }
.op-chip { display: inline-block; margin: 0 0 16px; padding: 7px 16px; border: 1px solid rgba(184,154,106,.6); border-radius: 20px; font-size: 14px; color: #e2cfa9; }
.op-hero-tit { margin: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; font-weight: 500; color: #fff; word-break: keep-all; }
.op-hero-tit b { font-weight: 800; }
.op-hero-brand { display: block; margin-bottom: 8px; font-family: var(--font-serif); font-size: .62em; font-weight: 700; color: #e2cfa9; letter-spacing: .02em; }
.op-hero-sub { margin: 14px 0 0; font-size: 16px; opacity: .8; word-break: keep-all; }
.op-hero-deal { display: inline-block; margin: 20px 0 0; padding: 10px 18px; border-radius: 6px; background: rgba(165,17,28,.35); font-size: 16px; font-weight: 600; color: #ffd9a0; }
.op-hero .op-btn-line { color: #fff; }
@media (min-width: 1025px) {
  .op-hero-panel .op-wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; }
  .op-hero-panel .op-btns { grid-column: 2; grid-row: 1 / span 4; margin: 0; flex-direction: column; }
  .op-hero-panel .op-btn { min-width: 250px; }
}

/* ② 계약조건 */
.op-deal { background: var(--c-primary-soft); }
.op-deal-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.op-deal-list li { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border: 1px solid rgba(165,17,28,.15); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(124,12,21,.05); }
.op-deal-list .n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 15px; font-weight: 700; }
.op-deal-list p { margin: 0; font-size: 19px; color: var(--c-ink); line-height: 1.45; word-break: keep-all; }
.op-deal-list b { color: var(--c-primary); }
.op-deal-list small { display: block; font-size: 13px; color: var(--c-muted); }

/* ③ 등록 폼 */
.op-reg { background: #fff; }
.op-reg .op-wrap { max-width: 860px; text-align: center; }
.op-form { margin-top: 10px; padding: 40px; border: 1px solid var(--c-line); border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.06); text-align: left; }
.op-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.op-fld { display: block; margin: 0; padding: 0; border: 0; min-width: 0; }
.op-fld > span, .op-fld > legend { display: block; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.op-fld em, .op-check em { color: var(--c-primary); font-style: normal; }
.op-check em.opt { color: var(--c-muted); }
.op-fld input[type=text], .op-fld input[type=tel], .op-fld textarea { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #d6d6d6; border-radius: 8px; font: inherit; font-size: 16px; background: #fafafa; box-sizing: border-box; }
.op-fld textarea { height: auto; padding: 12px 14px; resize: vertical; }
.op-fld input:focus, .op-fld textarea:focus { outline: 2px solid var(--c-primary); outline-offset: -1px; background: #fff; }
.op-opt { margin: 20px 0; padding: 22px; border-radius: 12px; background: var(--c-bg-soft); display: grid; gap: 18px; }
.op-opt-tit { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.op-opt-tit small { font-weight: 400; color: var(--c-muted); }
.op-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.op-chips label { position: relative; }
.op-chips input { position: absolute; opacity: 0; inset: 0; }
.op-chips span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid #d6d6d6; border-radius: 21px; background: #fff; font-size: 15px; cursor: pointer; }
.op-chips input:checked + span { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.op-chips input:focus-visible + span { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.op-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 15px; color: var(--c-ink); }
.op-check input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.op-terms-btn { margin-left: auto; padding: 4px 10px; border: 1px solid var(--c-line); border-radius: 4px; background: #fff; font-size: 13px; color: var(--c-muted); }
.op-terms { margin: 8px 0 0; padding: 14px 16px; border-radius: 8px; background: var(--c-bg-soft); font-size: 13px; line-height: 1.7; }
.op-terms p { margin: 0; }
.op-submit { display: block; width: 100%; height: 60px; margin-top: 22px; border: 0; border-radius: 10px; background: linear-gradient(90deg, var(--c-primary-dark), var(--c-primary)); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.op-submit:disabled { opacity: .6; cursor: wait; }
.op-form .form-msg { margin: 14px 0 0; min-height: 1em; font-size: 15px; }
.op-form .form-msg.err { color: var(--c-primary); }
.op-form .form-msg.ok { color: #1f7a3f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ④ 개요 */
.op-stats { list-style: none; margin: 34px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.op-stats li { padding: 28px 22px; border-radius: 14px; background: var(--c-bg-soft); }
.op-stats b { display: block; font-size: clamp(24px, 2.4vw, 32px); color: var(--c-primary); font-weight: 800; letter-spacing: -.02em; }
.op-stats span { display: block; margin-top: 6px; font-size: 15px; color: var(--c-text); word-break: keep-all; }
.op-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.op-tabs button { min-width: 110px; height: 50px; padding: 0 18px; border: 1px solid var(--c-line); border-radius: 25px; background: #fff; font-size: 16px; font-weight: 600; color: #666; cursor: pointer; line-height: 1.1; }
.op-tabs button small { display: block; font-size: 11px; font-weight: 400; }
.op-tabs button.on { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.op-tabs-many { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.op-tabs-many button { min-width: 0; padding: 0 4px; border-radius: 10px; height: 56px; }
.op-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--c-ink); font-size: 16px; }
.op-table th, .op-table td { padding: 18px 20px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; line-height: 1.6; word-break: keep-all; }
.op-table th { width: 170px; background: var(--c-bg-soft); color: var(--c-ink); font-weight: 600; white-space: nowrap; }

/* ⑤ 넓은 그림 */
.op-wide { position: relative; margin: 0; }
.op-wide img { display: block; width: 100%; height: auto; }

/* ⑥ 프리미엄 카드 */
.op-cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.op-cards li { padding: 30px 26px; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.04); }
.op-cards .k { display: block; font-size: 12px; letter-spacing: .08em; color: var(--c-accent); font-weight: 600; }
.op-cards h3 { margin: 12px 0 10px; font-size: 20px; line-height: 1.4; color: var(--c-primary); word-break: keep-all; }
.op-cards p { margin: 0; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.op-cards .op-card-cta { display: flex; flex-direction: column; justify-content: center; background: var(--c-primary); color: #fff; }
.op-cards .op-card-cta h3 { color: #fff; font-family: var(--font-serif); font-size: 24px; margin: 4px 0 16px; }
.op-cards .op-card-cta a { font-weight: 700; color: #ffd9a0; }

/* ⑦~⑪ 글 + 그림 두 칸 */
.op-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.op-split-rev { grid-template-columns: 1.15fr 1fr; }
.op-fig { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.08); }
.op-fig img { display: block; width: 100%; height: auto; }
.op-fig-tall { max-height: 640px; }
.op-fig-tall img { height: 640px; object-fit: cover; object-position: center top; }
.op-dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; margin: 28px 0 0; font-size: 16px; line-height: 1.6; }
.op-dl dt { font-family: var(--font-en); letter-spacing: .1em; color: var(--c-primary); font-weight: 600; }
.op-dl dd { margin: 0; word-break: keep-all; }
.op-checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.op-checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.6; word-break: keep-all; }
.op-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 3px; }

/* 확대 단추 */
.op-zoom { position: absolute; right: 14px; bottom: 14px; height: 38px; padding: 0 14px 0 36px; border: 0; border-radius: 19px; background: rgba(0,0,0,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") 12px center/18px no-repeat; color: #fff; font-size: 14px; cursor: pointer; }
.op-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 30px; background: rgba(0,0,0,.88); overflow: auto; }
.op-lightbox[hidden] { display: none; }
.op-lightbox img { max-width: min(1400px, 100%); height: auto; }
.op-lb-close { position: fixed; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* ⑨ 평면 */
.op-plan { text-align: center; padding: 20px; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; }
.op-plan img { max-width: 100%; height: auto; }

/* ⑫ 영상 */
.op-video { position: relative; max-width: 960px; margin: 30px auto 0; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.op-video img, .op-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.op-video button { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.25); cursor: pointer; }
.op-video button span { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--c-primary); }
.op-video button span::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 24px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
#video .op-more { justify-content: center; }

/* ⑬ 문서 */
.op-docs { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.op-docs a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--c-line); border-radius: 14px; font-size: 16px; color: var(--c-ink); transition: border-color .2s, transform .2s; }
.op-docs a:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.op-docs b { font-size: 13px; color: var(--c-primary); letter-spacing: .05em; }

/* ⑭ 마지막 */
.op-final { background: var(--c-primary-soft); }
.op-final .op-dl a { color: var(--c-primary); font-weight: 700; font-size: 22px; }

/* PC 아래 고정 줄 */
.op-bar { position: fixed; left: 50%; bottom: 18px; z-index: 92; transform: translate(-50%, 140%); display: flex; border-radius: 34px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .35s ease; }
.op-bar.show { transform: translate(-50%, 0); }
.op-bar a { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 30px; font-size: 18px; font-weight: 700; }
.op-bar-tel { background: #1c1a1a; color: #fff; }
.op-bar-tel small { font-size: 13px; font-weight: 400; opacity: .7; }
.op-bar-reg { background: linear-gradient(90deg, var(--c-accent), #cdb07e); color: #24201d; }
body.op-body { padding-bottom: 0; }

@media (max-width: 1024px) {
  .op-sec { padding: 80px 0; }
  .op-cards { grid-template-columns: repeat(2, 1fr); }
  .op-docs { grid-template-columns: repeat(2, 1fr); }
  .op-stats { grid-template-columns: repeat(2, 1fr); }
  .op-split, .op-split-rev { grid-template-columns: 1fr; gap: 36px; }
  .op-split-rev > .op-fig { order: 2; }
  .op-tabs-many { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
  .op-bar { display: none; }
  .op-wrap { padding: 0 16px; }
  .op-sec { padding: 64px 0; }
  .op-lead { font-size: 16px; margin-bottom: 28px; }
  .op-hero-bg img { aspect-ratio: auto; }
  .op-hero-panel { padding: 30px 0 34px; }
  .op-hero-sub, .op-hero-deal { font-size: 14px; }
  .op-btn { flex: 1 1 auto; height: 52px; padding: 0 18px; font-size: 16px; }
  .op-deal-list { grid-template-columns: 1fr; gap: 10px; }
  .op-deal-list li { padding: 16px 18px; gap: 14px; }
  .op-deal-list p { font-size: 17px; }
  .op-form { padding: 22px 16px; }
  .op-grid2 { grid-template-columns: 1fr; }
  .op-opt { padding: 16px; }
  .op-table th, .op-table td { display: block; width: auto; padding: 10px 12px; }
  .op-table th { border-bottom: 0; padding-bottom: 4px; }
  .op-cards { grid-template-columns: 1fr; }
  .op-tabs-many { grid-template-columns: repeat(4, 1fr); }
  .op-tabs button { min-width: 0; flex: 1 1 0; }
  .op-fig-tall, .op-fig-tall img { max-height: none; height: auto; }
  .op-plan { padding: 8px; }
  .op-dl { grid-template-columns: 1fr; gap: 4px; }
  .op-dl dd { margin-bottom: 12px; }
  /* layout.js 의 휴대폰 아래 줄에 마지막 칸이 가리지 않게 */
  .op { padding-bottom: 52px; }
}
