:root {
  --navy: #0a2540;
  --blue: #1763d6;
  --blue-dark: #0f4ba8;
  --ink: #1a2330;
  --muted: #5b6675;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft2: #eef2f8;
  --radius: 10px;
  --maxw: 1080px;
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 37, 64, 0.12);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  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: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.brand .brand-name { font-size: 17px; color: var(--navy); }
.brand .brand-sub { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.08em; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--blue); }
.nav .btn-nav {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
}
.nav .btn-nav:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy); display: block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: all .2s;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(10,37,64,0.82), rgba(23,99,214,0.72)),
    url("../img/hero.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0 130px;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero p {
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 620px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.22); }

/* ===== Page header (sub pages) ===== */
.page-head {
  background: linear-gradient(120deg, var(--navy), var(--blue-dark));
  color: #fff;
  padding: 70px 0 64px;
}
.page-head .eyebrow { font-size: 13px; letter-spacing: 0.18em; color: rgba(255,255,255,0.7); text-transform: uppercase; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); margin-top: 10px; font-weight: 800; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0; }
.breadcrumb a:hover { color: var(--blue); }

/* ===== Sections ===== */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
}
.section-head p { color: var(--muted); margin-top: 14px; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card .ic {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-soft2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); }

/* ===== Service detail blocks ===== */
.svc-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.svc-block:last-child { border-bottom: 0; }
.svc-num {
  font-size: 22px; font-weight: 800; color: var(--blue);
  border: 2px solid var(--bg-soft2); border-radius: 10px;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
}
.svc-block h3 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.svc-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag {
  font-size: 13px; color: var(--blue-dark);
  background: var(--bg-soft2); border-radius: 999px;
  padding: 6px 14px; font-weight: 600;
}

/* ===== Works ===== */
.work-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.work-thumb {
  background: linear-gradient(135deg, #2a3f55, #16263a);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 30px;
}
.work-thumb .ttl { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; }
.work-thumb .sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; }
.work-body { padding: 36px 34px; }
.work-cat {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--blue); background: var(--bg-soft2); padding: 5px 12px; border-radius: 6px; margin-bottom: 14px;
}
.work-body h3 { font-size: 22px; color: var(--navy); margin-bottom: 14px; }
.work-body ul { list-style: none; margin: 16px 0; }
.work-body li { padding-left: 22px; position: relative; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.work-body li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.work-link { color: var(--blue); font-weight: 600; font-size: 14px; word-break: break-all; }
.work-link:hover { text-decoration: underline; }

/* ===== About ===== */
.about-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-table th, .about-table td {
  text-align: left;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}
.about-table tr:last-child th, .about-table tr:last-child td { border-bottom: 0; }
.about-table th {
  width: 200px;
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 700;
}
.about-table td { color: var(--ink); }
.about-table ul { margin: 0; padding-left: 18px; }

/* ===== Stats / reasons ===== */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reason {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
}
.reason .num { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; }
.reason h3 { font-size: 18px; color: var(--navy); margin: 10px 0; }
.reason p { font-size: 14px; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 30px; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: #eef2f8; }

/* ===== Contact form ===== */
.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto;
}
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.field label .req { color: #d62b2b; font-size: 12px; margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-soft);
  transition: border .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; }
.contact-meta { margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.contact-meta strong { color: var(--navy); }

/* ===== Legal / privacy ===== */
.legal h2 { font-size: 20px; color: var(--navy); margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink); font-size: 15px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin-bottom: 6px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer .brand .brand-name { color: #fff; }
.site-footer .brand .brand-sub { color: rgba(255,255,255,0.6); }
.footer-about { margin-top: 16px; line-height: 1.9; color: rgba(255,255,255,0.7); }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; font-size: 13px; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 8px;
}

/* ===== Pricing ===== */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.price-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.price-card .price-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--blue); text-transform: uppercase; }
.price-card .amount { font-size: 30px; font-weight: 800; color: var(--navy); margin: 14px 0 4px; }
.price-card .amount small { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-card .unit { font-size: 13px; color: var(--muted); }
.price-card ul { list-style: none; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.price-card li { padding-left: 20px; position: relative; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.price-card li::before { content: "・"; position: absolute; left: 2px; color: var(--blue); }
.price-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 16px;
}
.faq-item .q { font-weight: 700; color: var(--navy); font-size: 16px; padding-left: 32px; position: relative; }
.faq-item .q::before {
  content: "Q"; position: absolute; left: 0; top: -2px;
  color: var(--blue); font-weight: 800; font-size: 18px;
}
.faq-item .a { color: var(--muted); font-size: 14px; margin-top: 12px; padding-left: 32px; position: relative; }
.faq-item .a::before {
  content: "A"; position: absolute; left: 0; top: 0;
  color: var(--muted); font-weight: 800; font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .work-thumb { min-height: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-toggle { display: flex; }
  section { padding: 60px 0; }
  .hero { padding: 90px 0 96px; }
  .grid-4, .grid-3, .grid-2, .price-grid { grid-template-columns: 1fr; }
  .about-table th { width: 130px; }
  .form { padding: 26px 20px; }
}
