:root {
  --color-blue: #1e3a8a;
  --color-blue-light: #2563eb;
  --color-orange: #ea580c;
  --color-dark: #0f172a;
  --color-gray-bg: #f8fafc;
  --color-border: #e2e8f0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", sans-serif;
  --container-max: 1140px;
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background: #ffffff; color: var(--color-dark); line-height: 1.8; font-size: 15px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }

.kp-header { background: #ffffff; border-bottom: 2px solid var(--color-blue); position: sticky; top: 0; z-index: 1000; padding: 14px 0; }
.kp-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.kp-brand { white-space: nowrap; }
.kp-brand .company-sub { font-size: 11px; color: #64748b; font-weight: 700; white-space: nowrap; }
.kp-brand .company-name { font-size: 21px; font-weight: 900; color: var(--color-blue); letter-spacing: -0.01em; white-space: nowrap; }
.kp-nav { display: flex; list-style: none; gap: 22px; font-size: 13.5px; font-weight: 700; }
.kp-nav li, .kp-nav a { white-space: nowrap; }
.kp-nav a:hover { color: var(--color-blue-light); }
.kp-header-contact { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.kp-tel-box { text-align: right; line-height: 1.2; white-space: nowrap; }
.kp-tel-num { font-size: 19px; font-weight: 900; color: var(--color-orange); }
.btn-kp-diag { background: var(--color-orange); color: #fff; padding: 10px 22px; font-size: 13px; font-weight: 900; border-radius: 4px; white-space: nowrap; display: inline-block; }
.btn-kp-diag:hover { background: #c2410c; }

.hero-kp {
  background: linear-gradient(rgba(15,23,42,0.52), rgba(15,23,42,0.68)),
              url('https://images.unsplash.com/photo-1590381105924-c72589b9ef3f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #fff; padding: 110px 0 90px; text-align: center;
}
.hero-kp .badge { display: inline-block; background: var(--color-orange); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 16px; border-radius: 4px; margin-bottom: 18px; white-space: nowrap; }
.hero-kp h1 { font-size: 40px; font-weight: 900; line-height: 1.35; margin-bottom: 20px; color: #fff; }
.hero-kp p.lead { font-size: 16px; color: #e2e8f0; max-width: 680px; margin: 0 auto 36px; line-height: 1.9; }

.sec-kp { padding: 80px 0; }
.sec-head-kp { text-align: center; margin-bottom: 50px; }
.sec-head-kp .sub { font-size: 11.5px; font-weight: 800; color: var(--color-blue-light); letter-spacing: 0.25em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.sec-head-kp h2 { font-size: 32px; font-weight: 900; }

.ba-card { position: relative; width: 100%; max-width: 700px; margin: 0 auto 40px; border-radius: 8px; overflow: hidden; border: 2px solid var(--color-border); }
.ba-container { position: relative; width: 100%; height: 380px; user-select: none; }
.ba-after-img { width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; border-right: 3px solid #fff; }
.ba-before-img { width: 700px; max-width: none; height: 100%; object-fit: cover; }
.ba-range { position: absolute; bottom: 16px; left: 5%; width: 90%; z-index: 10; cursor: pointer; }
.ba-label { position: absolute; top: 14px; padding: 4px 12px; font-size: 12px; font-weight: 900; border-radius: 3px; color: #fff; white-space: nowrap; }
.ba-label.before { left: 14px; background: rgba(15,23,42,0.75); }
.ba-label.after { right: 14px; background: var(--color-blue); }

.kp-calc-card { background: var(--color-gray-bg); border: 2px solid var(--color-blue); border-radius: 8px; padding: 40px; max-width: 820px; margin: 0 auto; }
.kp-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kp-form-group { display: flex; flex-direction: column; gap: 6px; }
.kp-form-group label { font-size: 13.5px; font-weight: 800; color: #1e293b; }
.kp-input { padding: 11px; border: 1px solid #cbd5e1; border-radius: 4px; font-family: inherit; font-size: 14px; background: #fff; width: 100%; }

.kp-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.5); z-index: 3000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.kp-modal.is-active { opacity: 1; visibility: visible; }
.kp-modal-card { background: #fff; padding: 36px; border-radius: 8px; max-width: 520px; width: 90%; border-top: 6px solid var(--color-orange); position: relative; }
.kp-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 26px; cursor: pointer; }

.kp-footer { background: #0f172a; color: #94a3b8; padding: 60px 0 24px; font-size: 13px; }
.kp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.kp-footer h4 { color: #fff; font-size: 14px; font-weight: 800; border-bottom: 1px solid #334155; padding-bottom: 8px; margin-bottom: 14px; }

@media (max-width: 900px) {
  .kp-nav, .kp-tel-box { display: none; }
  .kp-calc-grid { grid-template-columns: 1fr; }
  .kp-footer-grid { grid-template-columns: 1fr; }
  .ba-before-img { width: 100%; }
  .kp-calc-card { padding: 24px 18px; }
}

@media (max-width: 768px) {
  .hero-kp { padding: 72px 0 60px; }
  .hero-kp h1 { font-size: 26px; }
  .sec-head-kp h2 { font-size: 24px; }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 24px !important; }
}
