:root {
  --navy: #0f2a47;
  --navy-2: #1b3d63;
  --accent: #1e7bd6;
  --accent-soft: #e8f2fc;
  --text: #1f2933;
  --muted: #5b6876;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 12px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-word {
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 20px;
  letter-spacing: 0.22em; line-height: 1;
}
.footer-logo { color: #fff; margin-bottom: 16px; }

.nav ul { display: flex; gap: 32px; list-style: none; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; padding: 6px 0; position: relative; }
.nav a:hover { text-decoration: none; color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 9px; width: 22px; height: 2px; background: var(--navy);
  content: ""; transition: transform .2s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(30, 123, 214, 0.35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  font-family: "Montserrat", sans-serif; letter-spacing: 0.2em; font-size: 13px;
  color: #9cc8f2; margin-bottom: 20px;
}
.nw { display: inline-block; }
.hero h1 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.45; font-weight: 700; margin-bottom: 28px; }
.hero p.lead { font-size: clamp(15px, 1.8vw, 18px); color: #d6e4f2; max-width: 720px; }
.hero .actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- Page header (sub pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 72px 0 64px;
}
.page-header .eyebrow {
  font-family: "Montserrat", sans-serif; letter-spacing: 0.2em; font-size: 13px; color: #9cc8f2;
}
.page-header h1 { font-size: clamp(26px, 3.6vw, 36px); margin-top: 8px; }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
section.block.alt { background: var(--bg-alt); }

.section-title { margin-bottom: 48px; }
.section-title .eyebrow {
  font-family: "Montserrat", sans-serif; letter-spacing: 0.2em; font-size: 13px;
  color: var(--accent); font-weight: 700;
}
.section-title h2 { font-size: clamp(22px, 3vw, 30px); color: var(--navy); margin-top: 6px; line-height: 1.5; }
.section-title p { color: var(--muted); margin-top: 16px; max-width: 760px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 12px 32px rgba(15, 42, 71, 0.08); transform: translateY(-2px); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; line-height: 1.5; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Strengths (numbered) ---------- */
.strength { display: flex; gap: 20px; }
.strength .num {
  font-family: "Montserrat", sans-serif; font-size: 40px; font-weight: 700;
  color: var(--accent); line-height: 1; opacity: .85; flex-shrink: 0;
}
.strength h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.strength p { color: var(--muted); font-size: 15px; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: flow; }
.flow li {
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; font-weight: 700; color: var(--navy); font-size: 15px;
  position: relative;
}
.flow li::before {
  counter-increment: flow; content: "STEP " counter(flow);
  display: block; font-family: "Montserrat", sans-serif; font-size: 11px;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 4px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.stat {
  border-left: 3px solid #5aa9f0; padding-left: 20px;
}
.stat .value { font-family: "Montserrat", sans-serif; font-size: 36px; font-weight: 700; line-height: 1.2; }
.stat .value small { font-size: 16px; font-family: "Noto Sans JP", sans-serif; margin-left: 4px; }
.stat .label { color: #b8cfe6; font-size: 14px; }

/* ---------- Works ---------- */
.summary {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 36px 40px;
}
.summary p + p { margin-top: 14px; }

.work {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 40px; display: grid; grid-template-columns: 280px 1fr; gap: 40px;
}
.work + .work { margin-top: 20px; }
.work .tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 2px 12px; border-radius: 999px; margin-bottom: 12px;
}
.work h3 { font-size: 20px; color: var(--navy); line-height: 1.5; margin-bottom: 10px; }
.work .desc { color: var(--muted); font-size: 15px; }
.work ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; align-content: flex-start; }
.work ul li {
  font-size: 14px; padding: 6px 14px; border-radius: 6px; background: var(--bg-alt);
  border: 1px solid var(--line);
}

.skill-group h3 {
  font-size: 16px; color: var(--navy); padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-soft); display: flex; align-items: center; gap: 10px;
}
.skill-group h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--navy-2);
}

/* ---------- Company table ---------- */
.company-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.company-table th, .company-table td { padding: 22px 28px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th { width: 200px; background: var(--bg-alt); color: var(--navy); font-weight: 700; white-space: nowrap; }
.company-table ul { list-style: none; }
.company-table ul li::before { content: "・"; color: var(--accent); }

.map { margin-top: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 140%);
  color: #fff; border-radius: 20px; padding: 56px; text-align: center;
}
.cta h2 { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 12px; }
.cta p { color: #d6e4f2; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1f35; color: #9fb3c8; padding: 56px 0 32px; font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .name { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.site-footer nav ul { list-style: none; display: flex; gap: 24px; }
.site-footer nav a { color: #c9d6e3; }
.site-footer .copy { width: 100%; border-top: 1px solid #1e3550; padding-top: 24px; margin-top: 16px; font-size: 12px; font-family: "Montserrat", sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .work { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }

  section.block { padding: 64px 0; }
  .hero { padding: 72px 0 80px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .summary, .work, .card { padding: 28px 22px; }
  .cta { padding: 40px 22px; }
  .company-table th, .company-table td { display: block; width: 100%; padding: 14px 18px; }
  .company-table th { border-bottom: 0; }
  .company-table td { padding-top: 10px; }
}

/* ---------- Contact ---------- */
.nav .nav-cta {
  background: var(--navy); color: #fff; padding: 8px 18px; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
.nav .nav-cta[aria-current="page"] { background: var(--accent); color: #fff; }
.nav .nav-cta[aria-current="page"]::after { display: none; }

.contact { max-width: 760px; }
.contact-lead { color: var(--muted); margin-bottom: 32px; }
.form-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.form-frame iframe { display: block; width: 100%; height: 1400px; border: 0; }
.form-fallback { color: var(--muted); font-size: 14px; margin-top: 16px; text-align: center; }

@media (max-width: 720px) {
  .nav .nav-cta { display: inline-block; margin-top: 12px; border-bottom: 0; padding: 10px 24px; }
  .form-frame iframe { height: 1700px; }
}

/* ---------- AI × DX ---------- */
.hero-notice {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 6px 16px 6px 6px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  transition: background .15s;
}
.hero-notice:hover { text-decoration: none; background: rgba(255,255,255,0.18); }
.hero-notice .badge {
  font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  background: #5aa9f0; color: var(--navy); padding: 2px 10px; border-radius: 999px;
}

.ai-dx {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 60%);
  scroll-margin-top: 68px;
}
.ai-steps { list-style: none; }
.ai-steps .step {
  display: block; font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 12px;
}

.ai-usecases {
  margin-top: 40px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 28px 36px;
}
.ai-usecases h3 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.ai-usecases ul { list-style: none; display: grid; gap: 10px; }
.ai-usecases li { font-size: 15px; color: var(--text); }
.ai-usecases strong {
  display: inline-block; min-width: 96px; margin-right: 12px; font-size: 13px;
  color: var(--accent); background: var(--accent-soft); padding: 1px 12px;
  border-radius: 999px; text-align: center;
}

.ai-cta {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap;
}
.ai-cta p { color: var(--navy); font-weight: 500; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--accent); box-shadow: 0 8px 24px rgba(15,42,71,0.2); }

@media (max-width: 720px) {
  .hero-notice { font-size: 13px; }
  .ai-usecases { padding: 24px 20px; }
  .ai-usecases strong { display: table; margin-bottom: 2px; }
}
