:root {
  --ink: #0b1220;
  --ink-soft: #1e293b;
  --muted: #5b6678;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --cyan: #06b6d4;
  --accent-grad: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-grad);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px;
  border: 2.5px solid #fff; border-radius: 4px; border-right-color: transparent;
}
.brand-name { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: 0.04em; }
.brand-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--blue); }
.nav-cta {
  background: var(--accent-grad); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}
.nav-cta:hover { opacity: 0.92; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 75% -10%, #14306e 0%, #0b1220 55%) , var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-svg { width: 100%; height: 100%; }
.wave { animation: drift 14s ease-in-out infinite alternate; }
.w2 { animation-duration: 18s; animation-delay: -6s; }
@keyframes drift {
  from { transform: translateX(-18px); }
  to   { transform: translateX(18px); }
}
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }

.hero-inner {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  padding: 110px 20px 120px;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  color: #7dd3fc; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 800; line-height: 1.32; letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero-lead { font-size: 15.5px; color: #c7d2e4; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer; border: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08); color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-wide { min-width: 240px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ============ SECTIONS ============ */
.section { padding: 84px 20px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-narrow { max-width: 720px; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--cyan); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 800;
  margin-bottom: 34px; letter-spacing: 0.02em;
}

/* ============ SERVICES ============ */
.service-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.10), rgba(6, 182, 212, 0.10));
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.service-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags li {
  font-size: 12px; font-weight: 600; color: var(--blue-dark);
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.18);
  padding: 4px 12px; border-radius: 999px;
}
#top { position: absolute; top: 0; }

.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 12px 24px;
  background: var(--accent-grad); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 700;
  box-shadow: 0 5px 16px rgba(29, 78, 216, 0.32);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.service-link::before { content: "▶"; font-size: 10px; }
.service-link:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; }

.service-note { margin-top: 26px; font-size: 13.5px; color: var(--muted); }

/* ============ COMPANY ============ */
.company-table {
  width: 100%; max-width: 720px; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.company-table th, .company-table td {
  padding: 17px 22px; font-size: 15px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th {
  width: 32%; background: var(--bg-alt); color: var(--ink-soft);
  font-weight: 700; white-space: nowrap;
}

/* ============ CONTACT FORM ============ */
.contact-lead { font-size: 14.5px; color: var(--muted); margin-bottom: 30px; }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.req {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff;
  background: #dc2626; border-radius: 4px; padding: 1px 7px;
  margin-left: 8px; vertical-align: 2px;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
textarea { resize: vertical; }

.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-agree .agree-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.form-agree input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 4px; accent-color: var(--blue);
  flex-shrink: 0;
}
.form-submit { text-align: center; margin-top: 30px; }
.form-status { text-align: center; margin-top: 16px; font-size: 14px; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: #047857; }
.form-status.ng { color: #dc2626; }

#turnstile-row { display: flex; justify-content: center; }

/* ============ PRIVACY ============ */
.privacy-body { font-size: 14px; color: var(--ink-soft); }
.privacy-body p { margin-bottom: 14px; }
.privacy-body ol { padding-left: 22px; margin-bottom: 14px; }
.privacy-body li { margin-bottom: 10px; }
.privacy-contact { font-size: 13px; color: var(--muted); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: #94a3b8; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 26px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; flex-wrap: wrap; gap: 8px;
}
.footer-brand { font-weight: 700; color: #e2e8f0; letter-spacing: 0.04em; }

/* ============ RESPONSIVE ============ */
.pc-only { display: inline; }
@media (max-width: 640px) {
  .pc-only { display: none; }
  .hero-inner { padding: 84px 20px 90px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .section { padding: 64px 18px; }
  .company-table th { width: 38%; padding: 14px 14px; }
  .company-table td { padding: 14px 14px; }
}
