:root {
  --navy: #1b2a41;
  --navy-deep: #10192a;
  --accent: #2f6fed;
  --accent-soft: #e8f0fe;
  --text: #253142;
  --text-muted: #5b6b7c;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --border: #e3e8ef;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  z-index: 500;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.logo span { color: var(--accent); }

nav.main-nav { display: flex; gap: 36px; }
nav.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  position: relative;
}
nav.main-nav a.active { color: var(--accent); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.header-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 520;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile nav panel ----------
   既知の不具合対策：背景は完全不透明(backdrop-filter不使用)、
   親(header)のz-indexをパネルより高く保持、will-change:transformで
   合成レイヤーを明示 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  opacity: 1;
  z-index: 510;
  will-change: transform;
  transform: translateZ(0);
  overflow-y: auto;
  padding: 24px;
}
.mobile-nav a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}
.mobile-nav .header-cta { margin-top: 20px; display: inline-flex; }

@media (max-width: 860px) {
  nav.main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav.is-open { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 96px 0 110px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9fc0ff;
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.45; margin-bottom: 20px; }
.hero p { font-size: 16px; color: #c7d2e3; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #255cd1; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: #fff; }

.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 28px;
}
.hero-visual .stat-row { display: flex; justify-content: space-between; margin-bottom: 22px; }
.hero-visual .stat-row:last-child { margin-bottom: 0; }
.stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: #9fb0c9; margin-top: 4px; }

/* ---------- Section generic ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 15px; }

/* ---------- Feature / service grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(27,42,65,0.08); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}
.cta-band h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: #e4edff; margin-bottom: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: #eef3ff; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #9fb0c9;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { font-size: 13px; color: #9fb0c9; line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 12px; text-align: center; color: #6c7f99; }

/* ---------- Page header (sub pages) ---------- */
.page-head {
  background: var(--bg-alt);
  padding: 64px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-head .eyebrow { justify-content: center; }
.page-head h1 { font-size: 32px; font-weight: 800; color: var(--navy); }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.breadcrumb a { color: var(--accent); }

/* ---------- About page ---------- */
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td {
  text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.profile-table th { width: 180px; color: var(--text-muted); font-weight: 600; background: var(--bg-alt); }

.value-row { display: flex; gap: 24px; margin-top: 16px; }
.value-item { flex: 1; text-align: center; padding: 28px 16px; background: var(--bg-alt); border-radius: var(--radius); }
.value-item .num { font-size: 26px; font-weight: 800; color: var(--accent); }
.value-item .label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Service page ---------- */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-text { order: 2; }
.service-row.reverse .service-media { order: 1; }
.service-media {
  background: var(--bg-alt);
  border-radius: 16px;
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  color: var(--accent);
}
.service-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.service-text h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.service-text p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.service-text ul li { font-size: 14px; color: var(--text); padding: 6px 0 6px 22px; position: relative; }
.service-text ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info .card { margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: -4px; margin-bottom: 20px; }
.required-tag { color: #e0564b; font-size: 11px; margin-left: 6px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-row, .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-text, .service-row.reverse .service-media { order: initial; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; margin: 0; border-radius: 0; }
}
