/* 하위 페이지 공통 구성요소 */

/* ---------- 페이지 상단 ---------- */
.page-head {
  background: var(--ink); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.page-head .eyebrow { color: var(--brand-light, #4fd1a1); }
.page-head .eyebrow::before { background: var(--brand-light, #4fd1a1); }
.page-head h1 { font-size: 42px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { margin-top: 18px; font-size: 17px; color: rgba(255,255,255,.75); max-width: 620px; }
.page-head .wrap { position: relative; z-index: 2; }
.crumb { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.crumb a { color: rgba(255,255,255,.7); }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; }

/* 페이지 내 목차 */
.toc { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 72px; z-index: 30; }
.toc .wrap { display: flex; gap: 28px; overflow-x: auto; }
.toc a { padding: 16px 0; font-size: 14.5px; color: var(--sub); white-space: nowrap; border-bottom: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-color: var(--line); }

/* ---------- 2단 구성 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr 1fr; }
.split + .split { margin-top: 88px; }
.split h3 { font-size: 26px; line-height: 1.45; margin-bottom: 16px; }
.split p { font-size: 15.5px; color: var(--sub); }
.split ul { margin-top: 20px; display: grid; gap: 10px; }
.split li { font-size: 15px; padding-left: 16px; position: relative; }
.split li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 1.5px; background: var(--brand); }

/* ---------- 문제 / 효과 목록 ---------- */
.plain-grid { display: grid; gap: 20px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.box {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px;
}
.box .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 18px; }
.box .ico svg { width: 22px; height: 22px; stroke: var(--brand); }
.box.warn .ico { background: var(--warn-soft); }
.box.warn .ico svg { stroke: var(--warn); }
.box h4 { font-size: 16.5px; line-height: 1.5; margin-bottom: 8px; }
.box p { font-size: 14px; color: var(--sub); }
.box .n { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--mute); letter-spacing: .08em; display: block; margin-bottom: 8px; }

/* 키워드 나열 */
.keywords { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.keywords li {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 20px; font-size: 15px; font-weight: 500;
}
.keywords li.key { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 계층 구조 (L1~L5) ---------- */
.levels { display: grid; gap: 10px; }
.level {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; background: #fff;
}
.level .tag {
  font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--brand);
  background: var(--brand-soft); border-radius: 6px; padding: 6px 0; text-align: center;
}
.level b { font-size: 16px; display: block; }
.level span { font-size: 14px; color: var(--sub); }
.level.last { border-color: var(--brand); box-shadow: 0 8px 24px rgba(12,122,85,.08); }
.levels .indent-1 { margin-left: 0; }
.levels .indent-2 { margin-left: 24px; }
.levels .indent-3 { margin-left: 48px; }
.levels .indent-4 { margin-left: 72px; }
.levels .indent-5 { margin-left: 96px; }

/* ---------- 역할별 화면 ---------- */
.persona { border-top: 2px solid var(--ink); padding-top: 20px; }
.persona b { font-size: 17px; display: block; margin-bottom: 10px; }
.persona ul { display: grid; gap: 6px; }
.persona li { font-size: 14px; color: var(--sub); }

/* ---------- 사양표 ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.spec th, .spec td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec thead th { background: var(--bg-soft); font-size: 14px; color: var(--sub); border-bottom: 1px solid var(--ink); }
.spec thead th.m { color: var(--ink); font-size: 16px; font-family: var(--font-en); }
.spec tbody th { width: 22%; font-weight: 600; color: var(--sub); font-size: 14px; }
.spec td { color: var(--ink); }
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.spec caption { caption-side: bottom; text-align: left; font-size: 12.5px; color: var(--mute); padding: 14px 20px; }

/* ---------- 구성도 ---------- */
.diagram {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px;
}
.node { text-align: center; position: relative; padding: 0 8px; }
.node .icon {
  height: 90px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  display: grid; place-items: center; margin-bottom: 14px;
}
.node .icon svg { width: 36px; height: 36px; stroke: var(--ink); }
.node b { font-size: 15px; display: block; }
.node span { font-size: 13px; color: var(--sub); }
.node:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 45px; width: 12px; height: 12px;
  border-top: 1.5px solid var(--mute); border-right: 1.5px solid var(--mute); transform: rotate(45deg);
}
.wire { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 4px; display: block; }

/* ---------- 문의 폼 ---------- */
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.field .req { color: var(--brand); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 8px 0 24px; }
.agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-note { font-size: 13px; color: var(--mute); margin-top: 14px; }
.contact-side { background: var(--bg-soft); border-radius: 14px; padding: 36px 32px; }
.contact-side h3 { font-size: 18px; margin-bottom: 20px; }
.contact-side dl { display: grid; gap: 16px; font-size: 14.5px; }
.contact-side dt { font-size: 13px; color: var(--mute); margin-bottom: 2px; }
.contact-side dd { color: var(--ink); }
.contact-side dd a { color: var(--brand); font-weight: 600; }
.contact-side .hr { height: 1px; background: var(--line); margin: 26px 0; }

/* ---------- 회사 정보 ---------- */
.info { width: 100%; border-collapse: collapse; font-size: 15px; }
.info th, .info td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.info th { width: 180px; color: var(--sub); font-size: 14px; font-weight: 600; background: var(--bg-soft); }
.history { display: grid; gap: 0; }
.history li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.history .yr { font-family: var(--font-en); font-weight: 700; font-size: 18px; color: var(--brand); }
.history b { font-size: 16px; display: block; margin-bottom: 4px; }
.history span { font-size: 14px; color: var(--sub); }

/* ---------- 본문(약관 등) ---------- */
.prose { max-width: 780px; font-size: 15.5px; color: var(--sub); }
.prose h2 { font-size: 20px; color: var(--ink); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 18px 0; display: grid; gap: 8px; }
.prose li { padding-left: 16px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--mute); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.prose .date { font-size: 14px; color: var(--mute); margin-top: 32px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .page-head { padding: 56px 0 48px; }
  .page-head h1 { font-size: 32px; }
  .toc { top: 0; }
  .split, .split.wide-left { grid-template-columns: 1fr; gap: 32px; }
  .split + .split { margin-top: 64px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .diagram { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .node:nth-child(2)::after { display: none; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .levels .indent-2, .levels .indent-3, .levels .indent-4, .levels .indent-5 { margin-left: 0; }
}
@media (max-width: 640px) {
  .page-head h1 { font-size: 26px; }
  .page-head p { font-size: 15.5px; }
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .diagram { grid-template-columns: 1fr; padding: 24px 20px; }
  .node::after { display: none !important; }
  .split h3 { font-size: 21px; }
  .level { grid-template-columns: 52px 1fr; gap: 14px; padding: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .info th { width: 110px; padding: 14px; font-size: 13px; }
  .info td { padding: 14px; }
  .history li { grid-template-columns: 1fr; gap: 6px; }
  .spec th, .spec td { padding: 14px; }
  .spec { min-width: 520px; }
  .contact-side { padding: 28px 22px; }
}

/* 문의 페이지 선택지 카드 (cta3 밖에서도 동작) */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .opts { grid-template-columns: 1fr; } }

/* 홈 도입 사례 요약 띠 */
.case-summary {
  margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.case-summary b { display: block; font-size: 18px; margin-bottom: 6px; }
.case-summary span { font-size: 14.5px; color: var(--sub); }
@media (max-width: 640px) { .case-summary { padding: 24px 20px; } .case-summary .btn { width: 100%; } }

/* ---------- 도입사례 카드 (상품 리스트형) ---------- */
.case-hero { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-bottom: 56px; }
.case-hero img { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s;
}
.case-card:hover { border-color: var(--brand); box-shadow: 0 14px 32px rgba(12,122,85,.09); }
.case-card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card .cat {
  position: absolute; left: 12px; top: 12px; background: rgba(14,20,21,.82); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.case-card .body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.case-card h4 { font-size: 17.5px; line-height: 1.45; }
.case-card .scale { font-size: 13px; color: var(--brand); font-weight: 600; margin: 4px 0 16px; }
.case-card dl { display: grid; grid-template-columns: 52px 1fr; gap: 8px 12px; font-size: 14px; }
.case-card dt { color: var(--mute); font-weight: 600; font-size: 12.5px; padding-top: 1px; }
.case-card dd { color: var(--sub); line-height: 1.65; }
@media (max-width: 1024px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-hero { grid-template-columns: 1fr 1fr; }
  .case-hero img { height: 200px; }
  .case-hero img:first-child { grid-column: span 2; height: 240px; }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-hero { grid-template-columns: 1fr; }
  .case-hero img, .case-hero img:first-child { height: 200px; grid-column: auto; }
}

/* ---------- 실측 절감 사례 ---------- */
.measured-wrap { display: flex; flex-direction: column; gap: 24px; }
.measured-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.measured-shots figure { margin: 0; }
.measured-shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--bg-soft); }
.measured-shots figcaption { margin-top: 10px; font-size: 13.5px; color: var(--sub); display: flex; align-items: center; gap: 8px; }
.measured-shots figcaption b { font-family: var(--font-en); font-size: 12px; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 8px; }
.measured-body { display: flex; flex-direction: column; gap: 16px; }
.ba { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 24px; }
.ba-row {
  display: grid; grid-template-columns: 1.3fr 1fr 24px 1fr 1.2fr; align-items: center; gap: 10px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.ba-row:last-child { border-bottom: 0; }
.ba-t { color: var(--sub); font-weight: 600; }
.ba-b { color: var(--mute); text-align: right; font-family: var(--font-en); }
.ba-ar { color: var(--mute); text-align: center; }
.ba-a { color: var(--ink); font-weight: 700; font-family: var(--font-en); }
.ba-d { color: var(--brand); font-weight: 600; text-align: right; font-size: 13.5px; }
@media (max-width: 1024px) {
  .measured-shots { grid-template-columns: 1fr 1fr; }
  .measured-shots figure:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .measured-shots { grid-template-columns: 1fr; }
  .measured-shots figure:first-child { grid-column: auto; }
}
@media (max-width: 640px) {
  .ba-row { grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 14px 0; }
  .ba-t { grid-column: span 2; }
  .ba-ar { display: none; }
  .ba-b { text-align: left; }
  .ba-a { text-align: right; }
  .ba-d { grid-column: span 2; text-align: left; }
}

/* ---------- 상단 메뉴 하위 항목 ---------- */
.nav .nav-link { color: var(--sub); transition: color .2s; }
.nav .nav-link:hover, .nav .nav-link.on { color: var(--ink); }
.nav .nav-link.on { font-weight: 600; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > .nav-link::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.nav-item .sub {
  position: absolute; left: -16px; top: 100%; min-width: 250px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(22,32,42,.10);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s;
}
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item .sub a { display: block; padding: 11px 14px; border-radius: 7px; }
.nav-item .sub a:hover { background: var(--bg-soft); }
.nav-item .sub b { display: block; font-family: var(--font-en); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.nav-item .sub span { font-size: 12.5px; color: var(--mute); }

/* 솔루션 페이지 전환 탭 */
.sol-switch { display: flex; gap: 8px; margin-bottom: 26px; }
.sol-switch a {
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 18px;
  font-size: 14px; color: rgba(255,255,255,.75); transition: all .2s;
}
.sol-switch a:hover { border-color: #fff; color: #fff; }
.sol-switch a.on { background: #fff; border-color: #fff; color: var(--ink); font-weight: 600; }

@media (max-width: 1024px) {
  .nav.open .nav-item { display: block; width: 100%; }
  .nav.open .nav-item > .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-item .sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 8px 12px; min-width: 0;
  }
  .nav.open .nav-item .sub a { padding: 10px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-item > .nav-link::after { float: right; margin-top: 8px; }
}

/* 연혁 여러 줄 */
.history li { align-items: start; }
.history span { line-height: 1.85; }

/* 문의 폼 상태 메시지 */
/* 자동 등록 방지용 칸 — 사람 눈에는 보이지 않고 로봇만 채움 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 14px; font-size: 14.5px; padding: 12px 14px; border-radius: 8px; background: var(--bg-soft); color: var(--sub); }
.form-status.ok { background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.form-status.err { background: var(--warn-soft); color: var(--warn); font-weight: 500; }

/* 구글 지도 */
.map-box { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 360px; border: 0; display: block; filter: saturate(0.9); }
.map-link {
  display: inline-flex; gap: 6px; align-items: center; position: absolute; right: 14px; bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: 0 6px 18px rgba(22,32,42,.12);
}
.map-link:hover { background: var(--bg-soft); }
@media (max-width: 640px) { .map-box iframe { height: 280px; } }

/* 실제 화면 링크 */
.shot-link { display: block; position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 16px 40px rgba(22,32,42,.08); }
.shot-link img { width: 100%; display: block; }
.shot-link .shot-cap {
  position: absolute; left: 14px; bottom: 14px; background: rgba(14,20,21,.82); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}
.shot-link:hover { border-color: var(--brand); }
.shot-link:hover .shot-cap { background: var(--brand); }

/* 개발 중 표시 */
.soon {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 12px; font-weight: 600; color: var(--warn);
  background: var(--warn-soft); border: 1px solid #f0d3bd; border-radius: 999px; padding: 3px 10px;
}

/* 로고 줄바꿈 방지 + 메뉴 간격 (일본어 메뉴가 길어 좁은 화면에서 밀림) */
.header .logo { white-space: nowrap; flex: none; }
.header .nav { gap: 26px; }
@media (max-width: 1320px) {
  .header .wrap { gap: 24px; }
  .header .nav { gap: 18px; font-size: 14.5px; }
  .header .lang { margin-right: 4px; }
}
@media (max-width: 1150px) {
  .header .nav { gap: 14px; font-size: 14px; }
  .header-right .btn-line { display: none; }
}
